vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Custom header messages for different user groups (https://vborg.vbsupport.ru/showthread.php?t=73469)

Flexo 12-29-2004 02:46 PM

Custom header messages for different user groups
 
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

Quote:

Originally Posted by Flexo
Does anybody know which one I?m talking about?

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

Code:

<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:

Code:

<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

Quote:

Originally Posted by ultranerds
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 :)


All times are GMT. The time now is 08:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01081 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete