Topic RSS
10:54 am
I am using the sf_hook_post_breadcrumbs hook to insert a welcome message on the forum because I couldn't figure out a better way to do it. But I would like the message to only show on the main forum page and not on any other sub-pages (forums, topics, etc.) Is this possible? Is there some other method to accomplish this? Thanks in advance for your help – this is my first endeavor into using your forum and I am loving it so far!
thats pretty much the way to do it… which hook depends on where you want the message located…
as to showing on the main forum page only, take a look on our wiki at our template tags – the pageview ones – for checking for specific page views. you will will want the sf_is_groupview() one. you can add that check in your hook.
12:33 pm
Thanks for the quick reply – glad I was on the right track. Can you explain how to use the template tag as part of the hook?
inside the hook function:
if (sf_is_groupview())
{
$out.="your welcome message";
}
return $out;
1:12 pm
Works perfectly! Thanks for the help – I would've never figured that out. :P
Hi
Where exactly would I need to add the following code?
$out = "";
if (sf_is_groupview())
{
$out.="your welcome message";
}
return $out;
Best
J. Christensen
Most Users Ever Online: 444
Currently Online:
57 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


Visit

Privacy Policy



