vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Simple code for Welcome headers (https://vborg.vbsupport.ru/showthread.php?t=141239)

Gsmdenis 03-04-2007 10:00 PM

Simple code for Welcome headers
 
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

Gray Matter 03-05-2007 10:49 PM

Shouldn't this be in template modifications?

Atakan KOC 03-06-2007 05:01 AM

Pls. Screenshots

Gsmdenis 03-06-2007 07:50 AM

No need the Screenshots, 100% sure working perfect !

BR.,

Denis

dizzy100 03-06-2007 08:02 AM

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

Gsmdenis 03-06-2007 09:34 AM

Same as this Screenshots


https://vborg.vbsupport.ru/showthrea...welcome+header

Willygsm 03-19-2007 04:41 PM

very nice mod, will try to install :)


All times are GMT. The time now is 05:31 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.01278 seconds
  • Memory Usage 1,784KB
  • 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
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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