이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

WP-Addpub

설명

WP-addpub is a very simple plugin that let’s you upload your banners or your html and javascript code to your blog. Can be used, also, for any kind of script (google adsense, paypal donate, youtube video…)

The advantages of this plugin:

  • Enabling and disabling the banner
  • Display banners in different areas.
  • Ability to display a banner depending on any special field (category, tag, etc).
  • Ability to display a banner depending on the language using the field filter.
  • Ability to add/edit a script banner.
  • Ability to display a random banner.
  • Display banner in content of pages or posts using shortcode.

A brief Markdown Example

How-to use:

Add the following line in your theme:

The parameter of the function is a string that contains variables:

  • bannerID : Id of the banner
  • zone: a text field that can be used to identify an area of your page (eg sidebar, footer)
  • filter: a text field that can be used as a criterion for display (ie value: French, English or Category1, Category2)
  • random : display a random banner (random=true)

or

Add a shortcode into content of pages or posts : [wp-addpub]

Add attributes to the shortcode to get the banner :
* bannerID : Id of the banner. bannerID attribute goes alone. the others could be mixed together.
* zone: a text field that can be used to identify an area of your page (eg sidebar, footer)
* filter: a text field that can be used as a criterion for display (ie value: French, English or Category1, Category2)
* random : display a random banner (random=true)

스크린샷

  • Add a banner
  • Edit a banner (How-to insert a HTML Code)
  • Display an embedded object

설치

  1. Unzip the file and place the folder wp-addpub in the directory plugins wordpress \ wp-content \ plugins
  2. Activate the plug wp-addpub
  3. Go on the management of banners in the Options> WP-Addpub

These variables can be used separately or together (example: “zone=sidebar&filter=EN”)

FAQ

Can I manage a banner per category ?

Yes, you can use filter to specify the category’s ID.

e.g.
$catid = get_the_category(); // get the ID of the category
wp_addpub(“filter=”.$catid[0]->term_id); // show banner that has filter equal to the cat id

Can I add a banner to the content of my post ?

Yes, the shortcode [wp-addpub] allows you to add a banner into pages or posts. For attributes, follow the section “How-to use”.

e.g.
[wp-addpub bannerid=”12″]

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“WP-Addpub”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “WP-Addpub”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.2.8

  • (Fixed) Shortcode attribute names are always converted to lowercase before they are passed into the handler function.
  • (Fixed) MYSQL error when inserting a new banner.

1.2.7

  • Add a banner into pages and posts using the shortcode [wp-addpub]
  • A second argument is added to the php function wp_addpub as boolean ($echo). set to true to echo the result or set to false for return the result as string.

1.2.6

  • add an ‘alt’ on image
  • russian translation by Vladimir Vasilenko (aka jeltoesolnce)

1.2.5

  • add CDATA to javascript code to ignore by the validator (reported by Jorge)
  • add the full url to swfobject (reported by Jorge)
  • add width to the banner type input
  • bug fixed : when updating a banner without uploading a new file, it changes to html code.

1.2.4

  • code optimization
  • bug : user level access set to 8 (reported by Lars)
  • bug : error when adding a html banner (reported by inklude)

1.2.3

  • bug div id when displaying many swf in the same page.
  • show error if cannot upload the file

1.2.2

  • bug ie7 resolved.

1.2.1

  • Display a random banner using random argument. e.g. : wp_addpub (“zone=sidebar&random=true”);

1.2

  • Accept a script as a banner
  • Check if there is a new version of the plugin
  • Correct bug : Edit banner

1.1

  • add new file “swfload.swf” => enable to click an swf banner
  • BUG Display flash
  • Change varchar(255) to TEXT