Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   12-04-2006, 10:49 PM
infizzle will become famous soon enough Join Date: Nov 2006 Posts: 11
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 -->


Last edited by Brandon; 12-04-2006 at 10:54 PM.
Quote   |  



#2   12-04-2006, 10:56 PM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 10,600 Location: Topeka, KS
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 ?
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Be sure to check out our latest Contest for a Custom Style.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar
Quote   |  



#3   12-04-2006, 11:04 PM
infizzle will become famous soon enough Join Date: Nov 2006 Posts: 11
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 ;)

Last edited by infizzle; 12-04-2006 at 11:13 PM. Reason: Automerged Doublepost
Quote   |  



#4   12-04-2006, 11:41 PM
eric is a jewel in the rougheric is a jewel in the rough Join Date: Oct 2006 Posts: 852 Location: France
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 / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Be sure to check out our latest Contest for a Custom Style.

Aeroclix -- DistantHost link directory
Domains hosting, server rent... -- Distant-Help link directory
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


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
Who do you register your domains with? bdude vBulletin Questions 25 10-16-2007 10:50 AM
Auto Add Buddy On Register DrussRob vBulletin Questions 4 09-13-2007 04:14 PM
I'll be removing the wordpress script Brandon Feedback and Suggestions 2 05-24-2007 09:44 PM
Adding google analytics script b0red vBulletin SEO Tips and SEO Questions 7 03-03-2007 02:25 PM
Register Button - Improve Registrations semann vBulletin Questions 5 10-24-2006 08:33 PM


All times are GMT -6. The time now is 01:25 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory