Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Simple code for Welcome headers Details »»
Simple code for Welcome headers
Version: 1.00, by Gsmdenis Gsmdenis is offline
Developer Last Online: Feb 2019 Show Printable Version Email this Page

Version: 3.6.5 Rating:
Released: 03-04-2007 Last Update: Never Installs: 3
 
No support by the author.

1) Go to Admincp

2) Do the template edits

--a) forumhome

Scroll about 20 lines until you find the code:

---------------------------------------------------------

PHP Code:
<if condition="$show['guest']">

<!-- 
guest welcome message -->

<
tr>

<
td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>

</
tr>

<
tr>

<
td class="alt1" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">

<
phrase 1="faq.php$session[sessionurl_q]2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>

</
td>

</
tr>

<!-- / 
guest welcome message -->

</if> 
------------------------------------------------------------

Del that and save.





--b) Edit navbar


Find:

--------------------------------------------------------------------------------

HTML Code:
<!-- breadcrumb, login, pm info -->
--------------------------------------------------------------------------------

Add below:

--------------------------------------------------------------------------------

PHP Code:
<!--Start---By Denis--->
<if 
condition="THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'login'">
<if 
condition="$show['guest']">
<
TABLE class=tborder cellSpacing=1 cellPadding=6 width="100%" align=center 
border
=0>
<
THEAD>
<!-- 
guest welcome message start BY Denis -->
<
TR>
<
TD class=tcat colSpan=5>Welcome to our forum <B></B>!</TD>
</
TR>
<
TR>
<
TD class=alt1 colSpan=5><p>You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other featuresBy joining our <STRONG>free</STRONGcommunity you will have access to post topicscommunicate privately with other members (PM), respond to pollsupload content and access many other special featuresRegistration is fastsimple and absolutely free so please, <A href="register.php?"><STRONG>join our community today</STRONG></A>! <BR>
<
BR>
If 
you have any problems with the registration process or your account loginplease <A href="sendmessage.php">contact us</A>. </p>
</
TD>
</
TR>
<!-- / 
guest welcome message BY Denis-->
</
THEAD>
<
TBODY>
</
TBODY>
</
TABLE>
<else /> 
<if 
condition="is_member_of($bbuserinfo, 3)">
<
TABLE class=tborder cellSpacing=1 cellPadding=6 width="100%" align=center 
border
=0>
<
THEAD>
<!-- 
guest welcome message BY Denis -->
<
TR>
<
TD class=tcat colSpan=5>Welcome to our forum <B></B>! Forum information :</TD>
</
TR>
<
TR>
<
TD class=alt1 colSpan=5><p>Please activaition your account by Email, If u did not activation you account herethen can not you will have access to post topicscommunicate privately with other members (PM), respond to pollsupload content and access many other special features. <BR>
1.If you did not receive the activation code ,Please press <
href
="profile.php?do=editpassword" 
rel=nofollow><B><U>Here</U></B></A></fontresend.<BR>
2.If also can not receive the activationPlease <
href
="profile.php?do=editpassword" 
rel=nofollow><B><U>here</U></B></Aedit other Email AddressOur forum will be send that again.<BR>
3.Other reason. <BR>
4.Other reason.</FONT></p>
</
TD>
</
TR>
<!-- / 
guest welcome message BY Denis -->
</
THEAD>
<
TBODY>
</
TBODY>
</
TABLE>
<else />
<if 
condition="$bbuserinfo[posts]<1">
<
TABLE class=tborder cellSpacing=1 cellPadding=6 width="100%" align=center 
border
=0>
<
THEAD>
<!-- 
guest welcome message BY Denis-->
<
TR>
<
TD class=tcat colSpan=5>Welcome to our forum <B></B>! Forum information :</TD>
</
TR>
<
TR>
<
TD class=alt1 colSpan=5><p>Our records indicate that you have never posted to our site beforeWhy not make your first post today by saying hello to our community in our Introductions forum.  Why not start with your first post today !<br>
</
p>
</
TD>
</
TR>
<!-- / 
guest welcome message BY Denis-->
</
THEAD>
<
TBODY>
</
TBODY>
</
TABLE>
 
<!-- / 
never posted message BY Denis-->
<else /> 
<if 
condition="$headerstime - 1209600 > $bbuserinfo[lastpost]">
<
TABLE class=tborder cellSpacing=1 cellPadding=6 width="100%" align=center 
border
=0>
<
THEAD>
<!-- 
guest welcome message BY Denis -->
<
TR>
<
TD class=tcat colSpan=5>Welcome to our forum <B></B>! Forum information :</TD>
</
TR>
<
TR>
<
TD class=alt1 colSpan=5><p>it appears that you have not posted on our forums in several weekswhy not take a few moments to ask a questionhelp provide a solution or just engage in a conversation with another member in any one of our forums?</p>
</
TD>
</
TR>
<!-- / 
guest welcome message BY Denis-->
</
THEAD>
<
TBODY>
</
TBODY>
</
TABLE>
<!-- / 
hasnt posted lately message BY Denis-->
</if>
</if>
</if>
</if>
</if>
<
br>
<!--
Finish---By Denis---> 
--------------------------------------------------------------------------------

Save that !


3) Done

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-05-2007, 10:49 PM
Gray Matter Gray Matter is offline
 
Join Date: May 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Shouldn't this be in template modifications?
Reply With Quote
  #3  
Old 03-06-2007, 05:01 AM
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Location: Istanbul
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pls. Screenshots
Reply With Quote
  #4  
Old 03-06-2007, 07:50 AM
Gsmdenis Gsmdenis is offline
 
Join Date: Jan 2006
Location: Hongkong
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No need the Screenshots, 100% sure working perfect !

BR.,

Denis
Reply With Quote
  #5  
Old 03-06-2007, 08:02 AM
dizzy100 dizzy100 is offline
 
Join Date: Mar 2006
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats nice apart from no explanation of what the hack does and no screenshots to back up what it does So you may be sure, but we are not
Reply With Quote
  #6  
Old 03-06-2007, 09:34 AM
Gsmdenis Gsmdenis is offline
 
Join Date: Jan 2006
Location: Hongkong
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same as this Screenshots


https://vborg.vbsupport.ru/showthrea...welcome+header
Reply With Quote
  #7  
Old 03-19-2007, 04:41 PM
Willygsm Willygsm is offline
 
Join Date: Mar 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice mod, will try to install
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 09:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04336 seconds
  • Memory Usage 2,310KB
  • Queries Executed 20 (?)
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)bbcode_html
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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