Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-13-2004, 08:11 PM
imported_khaleel's Avatar
imported_khaleel imported_khaleel is offline
 
Join Date: Jul 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default help me someone!

I am having problems. Can someone help?

DNS Server.
vBulletin Version: 3.0.3
Licenced: Yes
Server: Linux
PHP: 4
MySQL: 4
Apache
GD 2
CGI
ASP .NET
ASP, VB, VB.NET, Visual Basic .NET
SSI
SSQL
Cpanel/WHM
ColdFusion
JSP Sun Mainframe


Scenario:

On the forum (index.php) when a guest comes on he will see the welcome message and please register avatar, also the login area.
On the other hand, when I member is logged in, he shel will see the "welcome username the time is, view new posts (link search?=new posts blah).

The problem:

I have attached the images you can also visit my site. http://death-eater.net

Basically the guest message does not come up. The forms are not aligned.
On the users logged in the table goes to timbuck 2 and no welcome message its quite awfull.

The code:

The code is (c) to Khaleel Mughal, and is for The Death-Eater.NET Community ONLY - please read the only as a few times my modifcations get used. (The mod i modified was welcome panel from vb.org)
Code:
$header
$navbar
<!-- Welcome Panel Hack V1.1 [] Created By SmasherMaster -->
<if condition="THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'adv_index'">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center"> 
<tr>
<!-- Main Welcome Panel Block [] Begin -->
	<td class="alt1" valign="middle" align="center">
	<if condition="$bbuserinfo[userid]!=0">
	<!-- Avatar Cell [] Begin -->
	<if condition="THIS_SCRIPT == 'adv_index'">
	<a href="profile.php?{$session['sessionurl']}&do=editavatar"><img src="$avatarurl" border=0></a>
	<else />
	{$welcome_avatar}
	</if>
	<!-- Avatar Cell [] End -->
	</td>

	<td class="alt2" nowrap="nowrap" style="padding:3px">
	<!-- Your Stats [] Begin -->
	<div class="smallfont">$vbphrase[first_visit_message]<br/><center>$vbphrase[all_times_are_gmt_x_time_now_is_y]</center></div>
	<!-- Your Stats [] End -->
	<else />
	<!-- Guest [] Begin -->
			<!-- Avatar --> 
		<td class="alt1" valign="middle" align="center"> 
		<a href="register.php?"><img src="images/avatars/guestavatar.gif" border="0"></a> 
		</td> 
		<!-- / Avatar --> 

		<td class="alt2" nowrap="nowrap" style="padding:0px"> 
		<!-- login form --> 
		<form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)"> 
		<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script> 
		<table cellpadding="0" cellspacing="3" border="0"> 
		<tr> 
		<td class="smallfont">User Name</td> 
		<td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td>

		</tr> 
		<tr> 
		<td class="smallfont">Password</td> 
		<td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td> 
		</tr> 
		<tr> 
		<td class="smallfont" colspan="2" nowrap="nowrap"> 
		<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />Remember Me?</label> 
		<input type="submit" class="button" value="Log in" tabindex="4" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" /> 
		</td>
		</tr> 
		</table> 
		<input type="hidden" name="ID" value="" /> 
		<input type="hidden" name="s" value="" /> 
		<input type="hidden" name="do" value="login" /> 
		<input type="hidden" name="forceredirect" value="1" /> 
		<input type="hidden" name="vb_login_md5password" /> 
		</form> 
		<!-- / login form --> 
		</td>
	<!-- Guest [] End --></if>
	</td>
<!-- Main Welcome Panel Block [] End -->
</tr>
</table>
<else />
<!-- / Welcome Panel Hack V1.1 [] Created By SmasherMaster --></if>
	<br />
Can somehelp?

IMAGES LINK:

IMAGE 1 -
IMAGE 2 -

These are temporay mirrors files are 150K sorry for being so big, just quickly screeny from paint.

Please can anyone help?

Thankyou
-kaz
Reply With Quote
  #2  
Old 10-28-2004, 10:28 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in FORUMHOME template, make sure your guess message & logged in user info are in conditional as following:
HTML Code:
<thead>
	<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]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>
		</td>
	</tr>
	<!-- / guest welcome message -->
	</if>
</thead>
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 07:12 PM.


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.03984 seconds
  • Memory Usage 2,181KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)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