PDA

View Full Version : Please help, huge problem with getting my vBa homepage to work right.


verbs
09-23-2007, 11:10 PM
So here is my problem.

I just had a new web design done, and everything seems to be OK, except for one huge problem, which the developer can't figure out for the life of him, and neither can I.

I have a welcome message that appears when guests goes to my homepage at www.obesitydiscussion.com, or when they try to do something on the site only a member can do. It says:

Welcome to our Welcome to our Obesity Forum / Weight Loss Forum / Diet Forum.

Obesity continues to affect more and more people both directly and indirectly, and we're here to help. Our Obesity Forum / Weight Loss Forum / Diet Forum offers a place to talk about the latest obesity studies, information on obesity, childhood obesity, healthy recipes (such as the atkins diet), obesity surgery, diet pills, exercise, weight loss support issues, and more.

You are currently viewing our boards as a guest which gives you limited access to our website. By joining our free community you will have access to post topics and responses, communicate privately with others, upload and view content, and access many other special features. Registration is fast, simple and absolutely free so please, join our community !

You may also see some of the recent topics below, or go to the home page of our Obesity Forum. If you have any problems registering or logging in, please contact our webmaster.

Now, the underlined words above are links to either the register page, contact us page or our messageboard index, depending on which one you click. They work perfectly on every single page on the site except for the vBa homepage at www.obesitydiscussion.com. For whatever reason, the URL you get taken to after clicking the link on the homepage is missing the word "forums" in it.

For example, when you click "contact our webmaster" link on the homepage, it will take you to: http://www.obesitydiscussion.com/sendmessage.php

If you click that same "contact our webmaster" link in the welcome message on any other page other than the homepage it'll take you to:
http://www.obesitydiscussion.com/forums/sendmessage.php

How do I get that link on the homepage to add the word "/forums" in the URL but not do it to all the other pages on my website? I tried adding the word "/forums" to the URL manually in the phrase manager, and while it did fix the homepage, all the other pages on the site that have the welcome message get screwed up, and that same "contact us" link for example becomes http://www.obesitydiscussion.com/forums/forums/sendmessage.php with an extra "/forums" in it, so then those links go bad.

I'm stumped.

Brandon Sheley
09-23-2007, 11:50 PM
it's using the relative path.. You'll want to go in the phrase and put the actual path.. Altho I suggest you make the welcome header an image for SEO purposes.

verbs
09-23-2007, 11:59 PM
it's using the relative path.. You'll want to go in the phrase and put the actual path.. Altho I suggest you make the welcome header an image for SEO purposes.I'm gonna use IMG tags so you can see the links better.

I tried changing it to the actual path and then what it will do for example, is still use the relative path and change the send message to: www.obesitydiscussion.com/www.obesitydiscussion.com/forums/sendmessage.php on the homepage,

and then every other page other than the homepage in that welcome message will be www.obesitydiscussion.com/forums/www.obesitydiscussion.com/forums/sendmessage.php.

I don't know why it's continuing to use the relative path. Here is the coding I currently have in there.

Welcome to our <strong>Welcome to our Obesity Forum / Weight Loss Forum / Diet Forum.</strong><br /><br />Obesity continues to affect more and more people both directly and indirectly, and we're here to help. Our Obesity Forum / Weight Loss Forum / Diet Forum offers a place to talk about the latest obesity studies, information on obesity, childhood obesity, healthy recipes (such as the atkins diet), obesity surgery, diet pills, exercise, weight loss support issues, and more. <br /><br />You are currently viewing our boards as a guest which gives you limited access to our website. By joining our <strong>free</strong> community you will have access to post topics and responses, communicate privately with others, upload and view content, and access many other special features. Registration is fast, simple and absolutely free so please, <a rel="nofollow" href="forums/register.php"><strong>join our community </strong></a>! <br /><br />You may also see some of the recent topics below, or go to the home page of our <a href="/forums">Obesity Forum.</a> If you have any problems registering or logging in, please <a rel="nofollow" href="forums/sendmessage.php">contact our webmaster</a>.

For example, with the "Join our community" link, I changed it to: <a rel="nofollow" href="www.obesitydiscussion.forums/register.php"><strong>join our community </strong></a>!

And by doing that the end result was www.obesitydiscussion.com/www.obesitydiscussion.com/forums/register.php on the homepage welcome message, and then all the other pages that had the welcome message became www.obesitydiscussion.com/forums/www.obesitydiscussion.com/forums/register.php

.....So as you can see they were all still pulling that relative path you speak of. Any suggestions on how to change that?

Oh, fixed it, I had to add this code in the vBa template.

http://www.vbadvanced.com/forum/showpost.php?p=105413&postcount=7