View Single Post
  #52  
Old 10-30-2005, 07:41 PM
Ted S Ted S is offline
 
Join Date: Dec 2003
Location: SoCal
Posts: 3,954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the actual code which you can add yourself if so desired (rather than use the plugin).

At the end of your header template add:
Code:
<if condition="THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'login'">
<if condition="$show['guest']"> 
	<!-- guest welcome message --> 
	<br />
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<thead>
	<tr> 
	<td class="alt1" colspan="6">
	    <phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>
	     $vbphrase[welcome_ads]
	</td>
	</tr>
	</thead>
	</table>
	<!-- / guest welcome message -->
<else /> 

<if condition="is_member_of($bbuserinfo, 3)">
	<!-- / unconfirmed user message -->
	<br />
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<thead>
	<tr> 
	<td class="alt1" colspan="6">
	   $vbphrase[welcome_unconfirmed]
	   $vbphrase[welcome_ads]
	</td>
	</tr> 
	</thead>
	</table>
	<!-- / unconfirmed user message -->
<else />

<if condition="$bbuserinfo[posts]<1">
	<!-- never posted message -->
	<br />
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<thead>
	<tr>
	  <td class="alt1" colspan="6">
	     <phrase 1="$bbuserinfo[username]">$vbphrase[welcome_neverposted]</phrase>
	      $vbphrase[welcome_ads]
	 </td>
	</tr>
	</thead>
	</table>  
	<!-- / never posted message -->
<else /> 

<if condition="$headerstime - 1209600 > $bbuserinfo[lastpost]">
	<!-- never posted message -->
	<br /> 
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
	<thead>
	<tr> 
	    <td class="alt1" colspan="6">
	       <phrase 1="$bbuserinfo[username]">$vbphrase[welcome_postmoreoften]</phrase>
	        $vbphrase[welcome_ads]
	   </td>
	</tr>
	</thead>
	</table>
	<!-- / never posted message -->
</if>
</if>
</if>
</if>
</if>
Then added 3 global phrases as follows:

welcome_unconfirmed
Code:
Your account has not been confirmed and is not yet active! To become a registered user on this forum (required for posting or accessing special features) you will need to verify your email address by clicking a special link sent to you in our original welcome email. If you have lost this email, or it never arrived, please go <a href="./register.php?do=requestemail">here</a> to request another activation email be sent to you. If you suspect your email address is set wrong, go <a href="./sendmessage.php">here</a> and fill the form out so an administrator can fix your account. Also please be sure to disable any spam filters you may have for our website, so that this and all future messages can reach you.
welcome_neverposted
Code:
Hello {1},<br />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. <br /><br /> Why not start with your first post today and become an active part {2} forums now!
welcome_postmoreoften
Code:
Hello {1} 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?
I also recommend you udpate the standard welcome phrase first_visit_message to something along the lines of:
Code:
<SPAN class=smallfont>Welcome to Welcome to the <strong>{3}</strong> forums. <br /><br />You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE 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 your own photos and access many other special features. Registration is fast, simple and absolutely free so please, <a href="{2}"><strong>join our community today</strong></a>! <br /><br />If you have any problems with the registration process or your account login, please contact <a href="/sendmessage.php">contact support</a>.
My appologies for all of the problems. This hack has been working successfuly on many sites for almost a year, unfortunately the plugin has some hiccups but I'm sure those can be resolved shortly.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01726 seconds
  • Memory Usage 1,793KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete