lukgoh |
|
||||
---|---|---|---|---|---|
I have made a small plugin to show the number of followers from various different social sites including: Twitter, Facebook and Feedburner. I hope to add others, for example Google+. You can download the plugin here!
Here is an example of it in use on my sites footer: It is currently a standalone page, however if you edit the main php file (subscribecount.php), line 4:
You can change that to suit your needs, for example if you want to display this in the footer you can change to Hooks=footer.tags and use the following tags: {TWITTER_COUNT} {FACEBOOK_COUNT} and {FEEDBURNER_COUNT} You currently have to also input your data into the same php file for this to load your data... I am knew to php and plugin development and would like improve this and make it easier for people to use and was wondering if someone could help me develope it further. Here is the code:
I guess if you could enter the values in the admin panel that could be better... |
|||||
This post was edited by lukgoh (2012-01-18 12:20, 13 years ago) |
Kingsley |
|
---|---|
:) Very nice Mr. Skywalker (very lame, very far fetched joke .. I know) xD |
lukgoh |
|
---|---|
lol, Yeah I get that a lot :P |
Kingsley |
|
---|---|
Well, maybe it's a hint.. adopt the name dude.. Sounds fancy too, Mr. Skywalker.. |
lukgoh |
|
---|---|
I was wondering if someone could better explain the use of the $cfg variable for extensions. For example, do you have to store the contents in the database? Also how would you add an input box when a user clicks add, like they do for pages, etc. If that makes sense :D |
GHengeveld |
|
---|---|
For info about plugin config, have a look here. You can simply put the fields you need in yourplugin.setup.php and it will automatically make the config screen and store the values in the database. You can then use it like $cfg['plugin']['yourplugin']['configname']
|
lukgoh |
|
---|---|
Thanks. |