PDA

View Full Version : Custom header messages for different user groups


Flexo
12-29-2004, 02:46 PM
I´m almost sure I saw this once before, but I can´t seem to find it.

Is there a mod that ("which?) allows you to change the header messages, depending on what user group is visiting the forum?
E.g. something lik "Hey, visitor, why don´t you register? Once registered, you can bla this and bla that." for guests, or "Hey there, it seems you haven´t checkes your mails yet, since you have registered but not yet activated your account" and so on and so forth.

Does anybody know which one I´m talking about?

ultranerds
12-29-2004, 05:16 PM
Hi,

I'm looking for the same thing. Any advice would be much appreciated :)

Cheers

Andy

SaN-DeeP
12-30-2004, 05:36 AM
There is an awesome hack for same.
Search for Dynamic Forum Annoucment Hack from Logician in Major Additions Forum for Vb 3.0 Code Modifications Category

ultranerds
12-30-2004, 06:06 AM
Thanks for the reply ... I can't find it though :|

Cheers

Andy

darnoldy
12-30-2004, 07:03 AM
Does anybody know which one I?m talking about?

Yup, just installed a version of it on my site. Its really quite simple:

<if condition="$bbuserinfo['usergroupid'] == '1'">
<!-- stuff for guests goes here -->
</if>

<if condition="$bbuserinfo['usergroupid'] == '3'">
<!-- stuff for unconfirmed folks goes here -->
</if>

<if condition="$bbuserinfo['usergroupid'] == '7'||$bbuserinfo['usergroupid'] == '5'||$bbuserinfo['usergroupid'] == '6'">
<!-- stuff for staff goes here -->
</if>

You can build a conditional check for any user group you've set up--look in the admin control panel to find the groupid--in any template you want. If you want to show stuff to everyone *except* a group, use this form:

<if condition="$bbuserinfo['usergroupid'] != '1'">
<!-- stuff NOT for guests goes here -->
</if>

You can use this test for lots of things:
Customized header messages (I call them newsflashes and put them elsewhere)
I hid the forum stats from everyone except staff
I'm thinking of hiding avatars (actually all profile info) from guests
show ads only to certain groups

Hope this helps.

--don

ultranerds
12-30-2004, 07:08 AM
Thanks ... I literally figured this out about 30 mins ago (found out the variable name, and then just worked out the syntax from existing templates).

Thanks for the reply though... I can guarantee it will come in useful to someone in the future too :)

Cheers

Andy

darnoldy
12-30-2004, 07:12 AM
Thanks ... I literally figured this out about 30 mins ago

What took you so long...I figured it out 2 whole days ago <G>!

--don

ultranerds
12-30-2004, 07:42 AM
Had a little trouble with some prat DDOS'ing our server :|

Cheers

Flexo
12-30-2004, 04:10 PM
Thanks for the tips. The announcement hack isn?t quite was I was looking for, although it?s close. I?m looking for something to edit the basic header text (that normally shows up only for guests I think).
I?ll try darnoldy?s suggestion, thanks :)