Topic RSS
5:43 pm
I want to display "Special Forum Message" on Posts that belong to a specific category.
Simply i want to put different advertisements on each forum category, but above posts, not forum post list
is there a way to do it? i tried several ways but couldn't get it worked
That is the sort of thing that the program hooks are for. See this wiki section:
http://wiki.simplepressforum.c…..-of-hooks/
Very interested by this possibility but very bad php coder: any chances to see just one quick example I could then start of from
Thanks for help
Jean from France
Hooks are pretty easy – you just need to remember tbhat they must not use the php 'echo' statement to display content to the screen. They must return the string of text. So, for example, the format has to be (within a hook function):
$content = 'text or whatever you want to display';
$content .= 'And add some more text on';
$content .= … Maybe add an image tag – needs the HTML …';
return $content;
Most Users Ever Online: 444
Currently Online: SPQC
59 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 485
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2616
Members: 7328
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10839
Posts: 79131
Newest Members: ordie69, mutha66, jawaulk, mastergalen, ikkiamonrah, OlafKS, js, Anne Wayman, vinzMtl, VikingBrent
Moderators: Brandon C (158)
Administrators: Yellow Swordfish (22131), Mr Papa (23587)
Log In
Register
Home
Add Reply
Add Topic
Quote
Offline


Privacy Policy



