Post Info Items and new plugins
I wanted to add some new options to the Post Info Items. An example would be this Share This
I have figured this much out 1. bfa_postinfo.php is where the code for the plugin and the %example% are coded. I noticed that is not the normal <php> that must plugins in use. I tried to code a plugin and failed :p 2. bfa_theme_options.php is where the description is held. Any help would be greatly appreciated and when I finish the hacks I will post the code so you can expand your list of integrated plugins. |
You're right, but you'd need a plugin template tag that does not print output, something like
PHP Code:
PHP Code:
PHP Code:
I have not tried this. If you want to try this, please let me know if it worked. |
I've been looking at this and not quite clear exactly where you are suggesting I insert the additional code - could you clarify perhaps? I'd love to use this as Share This is a more powerful tool (in my opinion) than sociable.
To clarify, I can't find postinfo.php anywhere. |
Quote:
It's fixed now in the post above The reason I chose Sociable is that Share This requires using an offsite service if memory serves right |
Further clarification - found what I should edit, tried the above code - didn't work.
Here is what I tried exactly: Code:
if (strpos($postinfo_string,'%share-this')!==false) { Code:
if (strpos($postinfo_string,'%share-this')!==false) { Code:
$postinfo = str_replace("%share-this%", $share_this, $postinfo); Code:
<?php if (function_exists('sharethis_button')) { sharethis_button(); } ?> |
After you did the code additions in bfa_postinfo.php as described in post #2, you'd have to add %share-this% to one of the textareas at Atahualpa Theme Options -> Post/Page Info Items
|
I'm sorry Flynn - I should have mentioned I did include the %share-this% to no avail. I'm going to go back and try again to see if perhaps I missed something.
Tried again in multiple combinations - still no dice. |
Plus the share this plugin needs to be installed (=uploaded) and activated
|
Oh I definitely have Share this uploaded and activated - I still am not having any success. I'm sorry for being such a pain. I think I don't understand the code enough to see what I should be doing - this is a bit beyond my novice php abilities. :)
|
I AM A GOD AMONG MEN!
.... okay, not really. But I did fix the problem and it's so stupid I'm going to beat myself for a few hours now. PHP Code:
PHP Code:
|
All times are GMT -6. The time now is 09:01 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.