PDA

View Full Version : Simple code for Welcome headers


Gsmdenis
03-04-2007, 10:00 PM
1) Go to Admincp

2) Do the template edits

--a) forumhome

Scroll about 20 lines until you find the 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:

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

<!-- breadcrumb, login, pm info -->

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

Add below:

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


<!--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 features. By joining our <STRONG>free</STRONG> community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple 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 login, please <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 here, then can not you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. <BR>
1.If you did not receive the activation code ,Please press <A
href="profile.php?do=editpassword"
rel=nofollow><B><U>Here</U></B></A></font> resend.<BR>
2.If also can not receive the activation, Please <A
href="profile.php?do=editpassword"
rel=nofollow><B><U>here</U></B></A> edit other Email Address, Our 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 before! Why 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 weeks, why not take a few moments to ask a question, help 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/showthread.php?t=119572&highlight=welcome+header

Willygsm
03-19-2007, 04:41 PM
very nice mod, will try to install :)