emlog插件开发(可编辑的文章版权)

2013-6-18 liyangweb.com 李杨 PHP

刚接触emlog不久,突然来了兴致,何不自己开发个插件玩玩?

于是乎,有了这个“可以自定义版权信息”的小插件。

额~~~我的第一个插件,很简单,日后开发些复杂的插件去。

emlog开发起来其实很简单,但是对于初学者来说,最初可能无从下手,我这个小插件开发也就半天的时间,但是琢磨如何入门却是浪费了我一天多的时间。

下面给大家分享一下我的入门经验:

第一步,当然是看官方的《插件开发指南》,这个指南写的很“言简意赅”啊!!看的我是一头雾水,整了半天也没整明白这个doAction和addAction是什么关系。额,其实到现在也不明白。看了addAction的解释还算比较明白,看了几个前辈写的代码,貌似没有见到doAction的面。算了,我就用这一个算了。doAction('事件名','绑定到该事件上的函数名');

第二步,开始我的“Hello World!”之路,选一个事件吧,选哪个好呢?我要最直观的效果。好吧,安装上插件后直接在后台给我显示配置按钮算是最直观的了。也就是这个想法,让我着实郁闷了大半个上午!安装官方的要求建立好文件夹,插件文件以后,开始正式编码了。

QQ截图20130618175140.png

此图截与2013.06.18

这个是官方给出的挂载点,我就测呀测呀测~~~我就郁闷啊郁闷啊郁闷~~~为啥就不出效果呢???那里理解错了吗???看看前辈的代码,确实是这么写的呀!!!郁闷了许久,终于发现了其中的奥秘。亲们,看到我用红圈圈起来的部分了吗?正确的写法应该是 adm_sidebar_ext ,我了个去,可把哥郁闷坏了,英文不好也不能这么欺负吧!!!哎~~~命不好,入门就被带偏了,差点打道回府。

第三步,终于开了头,下面的工作就如鱼得水了(主要是因为要做的功能实在太简单)。额~~~历时好大一会,终于完成了。

 

插件地址:http://vdisk.weibo.com/s/Glpba

演示地址:http://www.liyangweb.com

在每篇文章下面添加版权信息,可自定义,可添加图片,html,后台使用所见即所得编辑器,非常的方便.数据保存在数据库中,不会出现文件不可写而不能添加内容的问题.插件下载地址:  http://vdisk.weibo.com/s/Glpba

本人emlog版本5.1.2
如有BUG,请留言,我会尽快处理.

 

标签: emlog插件

评论:

crisgarrett
2019-01-20 09:19
<a href="http://www.dianaandwill.com/air-jordan-retro-3-cem%C3%A6ndt-gr%C3%A5-schuheb">air jordan retro 3 cem忙ndt gr氓</a> <a href="http://www.newagecharger.com/nike-womens-trevor-williams-limited-camo-jersey-los-angeles-chargers-nfl-24-2018-salute-to-service-nflu">nike womens trevor williams limited camo jersey los angeles chargers nfl 24 2018 salute to service</a> <a href="http://www.foliekopen.com/nike-air-force-mid-1-07-skou">nike air force mid 1 07</a> <a href="http://www.milapioffret.com/nike-free-5.0-cheetah-print-womens-cross-trainers-runninge">nike free 5.0 cheetah print womens cross trainers</a> <a href="http://www.kalraslan.com/neon-green-puma-sneakers-zapatosu">neon green puma sneakers</a> <a href="http://www.umuttekelbayi.com/nike-lunarepic-low-flyknit-gr%C3%A5-himmelbl%C3%A5-chaussuresa">nike lunarepic low flyknit gr氓 himmelbl氓</a>
crisgarrett http://www.crisgarrett.com/
thehodostore
2019-01-07 14:15
<a href="http://www.ictbel.com/mens-nike-denver-broncos-10-emmanuel-sanders-elite-orange-throwback-super-bowl-50-bound-nfl-jersey-nflr">mens nike denver broncos 10 emmanuel sanders elite orange throwback super bowl 50 bound nfl jersey</a> <a href="http://www.ioioland.com/air-jordan-son-of-mars-grey-mint-green-skoa">air jordan son of mars grey mint green</a> <a href="http://www.sesliesenyurt.com/lebron-12-low-dunkman-house-sneakere">lebron 12 low dunkman house</a> <a href="http://www.wethinkjerky.com/air-jordan-future-dam%C3%A4nner-gr%C3%BCn-orange-kurpesa">air jordan future dam盲nner gr眉n orange</a> <a href="http://www.dadees.com/nike-lebron-kids-yellow-orange-sneakerb">nike lebron kids yellow orange</a> <a href="http://www.pickwickcrc.com/jordan-air-jordan-6-retro-white-infrared-black-grill-shoesg">jordan air jordan 6 retro white infrared black grill</a>
thehodostore http://www.thehodostore.com/
allyoucanlike
2019-01-04 10:10
<a href="http://www.factorxf.com/coach-wristlet-clutch-design-coache">coach wristlet clutch design</a> <a href="http://www.fikretkuskan.com/adidas-forum-mid-originals-jazz-shoesb">adidas forum mid originals jazz</a> <a href="http://www.loisiroptique.com/adidas-neo-label-wei%C3%9F-skos">adidas neo label wei脽</a> <a href="http://www.daonmobile.com/versace-belt-price-singapore-beltr">versace belt price singapore</a> <a href="http://www.robineliza.com/mackage-bag-up-xx-mackagec">mackage bag up xx</a> <a href="http://www.cinselpaketin.com/nike-flyknit-lunar-1-blue-skow">nike flyknit lunar 1 blue</a>
allyoucanlike http://www.allyoucanlike.com/
kalraslan
2019-01-02 17:52
<a href="http://www.acforlessllc.com/nike-zoom-pegasus-31-wei%C3%9F-gelb-obuvc">nike zoom pegasus 31 wei脽 gelb</a> <a href="http://www.thehodostore.com/nfl-jordan-lasley-mens-limited-purple-jersey-17-baltimore-ravens-nike-rush-vapor-untouchable-nflw">nfl jordan lasley mens limited purple jersey 17 baltimore ravens nike rush vapor untouchable</a> <a href="http://www.gandoff.com/chicago-bulls-michael-jordan-hoodie-new-adult-size-medium-other-nflv">chicago bulls michael jordan hoodie new adult size medium other</a> <a href="http://www.langbenlang.com/adidas-rose-pink-shoes-jordans-skog">adidas rose pink shoes jordans</a> <a href="http://www.glennloovens.com/nike-zoom-terra-kiger-hombres-gris-skob">nike zoom terra kiger hombres gris</a> <a href="http://www.kamilotomotiv.com/boston-red-sox-hat-nz-game-hata">boston red sox hat nz game</a>
kalraslan http://www.kalraslan.com/
mrleston
2018-12-29 14:43
<a href="http://www.nollerlincoln.com/nike-free-3.0-v5-armory-marine-commercial-kurpesa">nike free 3.0 v5 armory marine commercial</a> <a href="http://www.wimpley.com/nike-kobe-9-low-kvinders-vin-butyg">nike kobe 9 low kvinders vin</a> <a href="http://www.noumetpatrice.com/womens-nike-dallas-cowboys-88-michael-irvin-limited-olive-2017-salute-to-service-nfl-jersey-nflw">womens nike dallas cowboys 88 michael irvin limited olive 2017 salute to service nfl jersey</a> <a href="http://www.sennaparisllc.com/nike-sb-stefan-janoski-max-gul-r%C3%B8d-butyd">nike sb stefan janoski max gul r酶d</a> <a href="http://www.stylejinx.com/maschio-asics-asics-gel-kayano-20-arancia-cielo-blu-kurpesc">maschio asics asics gel kayano 20 arancia cielo blu</a> <a href="http://www.threeoaksmi.com/ralph-lauren-pony-polo-pink-polow">ralph lauren pony polo pink</a>
[url=http://www.mrleston.com/]mrleston[/url]
rebeccastaste
2018-12-28 02:22
<a href="http://www.eworklife.com/women-2012-new-nfl-jerseys-san-francisco-49ers-53-navorro-bowman-red-jerseys-hall-of-fames-50th-patch-nflv">women 2012 new nfl jerseys san francisco 49ers 53 navorro bowman red jerseys hall of fames 50th patch</a> <a href="http://www.fullcountkbo.com/nike-air-flight-89-red-white-eye-trainersa">nike air flight 89 red white eye</a> <a href="http://www.shackofstones.com/nike-sock-dart-sp-gr%C3%A5-sort-scarped">nike sock dart sp gr氓 sort</a> <a href="http://www.tamworthbacon.com/hommes-supra-skytop-orange-vert-kurpesd">hommes supra skytop orange vert</a> <a href="http://www.dvmengineers.com/ray-ban-justin-debenhams-menu-sunglassesd">ray ban justin debenhams menu</a> <a href="http://www.questoffine.com/nfl-womens-nike-pittsburgh-steelers-93-dan-mccullers-black-name-number-logo-slim-fit-t-shirt-nflr">nfl womens nike pittsburgh steelers 93 dan mccullers black name number logo slim fit t shirt</a>
rebeccastaste http://www.rebeccastaste.com/

发表评论:

Powered by emlog 冀ICP备13011830号-1