Topic RSS
Take a look at the wiki – Plugin API – Program Hooks section. Do read th4 overview and then you want the 'Topic Hooks' page.
I think this is in my post above.
The 'overview' tells you which file to edit and how.
The 'Topic Hooks' gives you the list of available hooks to choose from.
this is the current code in the file:
$out.= sf_process_hook('sf_hook_topic_footer', array($sfvars['forumid'], $sfvars['topicid']));
do i have to replace it with
function sf_hook_topic_footer($forumid, $topicid)
{
return '';
}
my advert code
You rename the hook file to .php. You put your code in there just like it says in the wiki. Your code goes inside the function and has to be 'returned' not echoed. Your code replaces the empty quote marks of the return statement above.
do i have to replace all the codes in sf-topic-view.php with
function sf_hook_topic_footer($forumid, $topicid)
{
return ' MYADVERT HERE';
}
i'm a noob and know nothing about coding.. please help
Most Users Ever Online: 444
Currently Online: Yellow Swordfish, chaiavi, woody, prasanna, ndc
85 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 502
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2625
Members: 7360
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10888
Posts: 79519
Newest Members: ndc, MacBravO, irlandes1, triphop, betokan, Jonathan Yovani Muñoz, somosguatemala, ahcreate, eatonrabbit, prasanna
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22201), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic
Offline
Quote
Online


Privacy Policy



