Go Back   vBulletin Setup > Software & Tech > vBulletin

Reply
 
LinkBack Thread Tools Display Modes
Old 12-05-2006, 05:49 AM   #1
vBulletin Owner
Feedback Score: 0 reviews
 
Join Date: Nov 2006
Posts: 11
infizzle
My own Register script problem

Ok, so I'm feeling fairly incompetent right now so maybe someone can help me...

The site is: Infizzle - Info for the Real World - Powered by vBulletin

In the main section I added a div that appears when guests look at the site encouraging them to register. I thought I was being clever by substituting it into the welcome_headers section, but it's proving to be quite the problem because now the div appears on every page the guest goes in its absolute position and I just want it on the homepage. Any thoughts on how to fix it? I would be very appreciative. Thanks!

Here's the beginning of the script:

Code:
<!-- // Start Welcome Headers // -->
<!-- google_ad_section_start(weight=ignore) -->
<if condition="$vboptions[wlhon] AND THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'login'">
	
	<if condition="$vboptions[wlhcookie] AND !$vbulletin->GPC['welcomeheader']">
	<else />

	<if condition="$vboptions[wlhguest] AND $show['guest']">
		<!-- guest welcome message -->
		<div class="register">
<span class="sidebox">
<p>Got questions? <br /> Got answers? <br /> Take part in the <br /> discussion -- <br /> <a href="http://www.infizzle.com/register.php">REGISTER</a> today!</p></span>
</div>
		<!-- / guest welcome message -->
infizzle is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 12-05-2006, 05:56 AM   #2
Guest
Feedback Score: 0 reviews
 
Former Admin's Avatar
 
Join Date: Jul 2006
Location: Topeka, KS
Posts: 14,155
Former Admin is a name known to allFormer Admin is a name known to allFormer Admin is a name known to allFormer Admin is a name known to allFormer Admin is a name known to allFormer Admin is a name known to all
Send a message via AIM to Former Admin Send a message via MSN to Former Admin Send a message via Yahoo to Former Admin
Re: My own Register script problem

I added the code tag to your post to make things easier to see.

I don't know off hand whats happening but I see it's in the same spot on all pages, and the welcome hack would be in the same place on all pages ?
Former Admin is offline   Reply With Quote
Old 12-05-2006, 06:04 AM   #3
vBulletin Owner
Feedback Score: 0 reviews
 
Join Date: Nov 2006
Posts: 11
infizzle
Re: My own Register script problem

Quote:
Originally Posted by Brandon View Post
I added the code tag to your post to make things easier to see.

I don't know off hand whats happening but I see it's in the same spot on all pages, and the welcome hack would be in the same place on all pages ?
Oh, thanks -- didn't even think about code tag.

Well, what I did was substitute my div for the "welcome box" that appears at the top of every page between the navbar and the forum when a guests comes to the site. Then I simply re-positioned and re-sized my div so that it appeared how and where I wanted...Basically, I don't really know JS and need to figure out how to recode the if statements so that it will only show on the homepage...

Sigh...Nevermind...I'm completely useless -- I figured it out. I simply needed to move the code into the forumhome as opposed to welcome template.

I need to think then post
infizzle is offline   Reply With Quote
Old 12-05-2006, 06:41 AM   #4
vBulletin Owner
Feedback Score: 0 reviews
 
eric's Avatar
 
Join Date: Oct 2006
Location: France
Posts: 1,153
eric eric
Re: My own Register script problem

well believe it or not, just posting here heped you. Basically you needed to think to post all.. and just by putting all in order to post... the bell rang ....
Lol, Brandon your site is even useful when doing not more then being a pasteboard
eric is offline   Reply With Quote
Reply
vBulletin Setup > Software & Tech > vBulletin


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Site submissions allenmur Creating Interest 1 06-07-2006 11:22 PM
Template sale sunflyer Buy and Sell 0 03-11-2006 09:48 AM
For all the kitty lovers out there. Mortally Off Topic 0 12-02-2005 03:27 AM


All times are GMT +1. The time now is 09:50 AM.

Inactive Reminders By Mished.co.uk and FTP-Anime.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133