Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-29-2004, 02:46 PM
Flexo Flexo is offline
 
Join Date: Sep 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 12-29-2004, 05:16 PM
ultranerds ultranerds is offline
 
Join Date: Dec 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

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

Cheers

Andy
Reply With Quote
  #3  
Old 12-30-2004, 05:36 AM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 12-30-2004, 06:06 AM
ultranerds ultranerds is offline
 
Join Date: Dec 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reply ... I can't find it though :|

Cheers

Andy
Reply With Quote
  #5  
Old 12-30-2004, 07:03 AM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 12-30-2004, 07:08 AM
ultranerds ultranerds is offline
 
Join Date: Dec 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 12-30-2004, 07:12 AM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 12-30-2004, 07:42 AM
ultranerds ultranerds is offline
 
Join Date: Dec 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Had a little trouble with some prat DDOS'ing our server :|

Cheers
Reply With Quote
  #9  
Old 12-30-2004, 04:10 PM
Flexo Flexo is offline
 
Join Date: Sep 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:33 AM.


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.04141 seconds
  • Memory Usage 2,235KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete