vBulletin mod_rewrite

Reply

Join Date: Sep 2004
Posts: 34
Reputation: TraderX is an unknown quantity at this point 
Solved Threads: 0
TraderX's Avatar
TraderX TraderX is offline Offline
Light Poster

Re: vBulletin mod_rewrite

 
0
  #101
Sep 27th, 2004
hehe I guess so as it does create the link.... the link didn't go any where.... got an error
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 34
Reputation: TraderX is an unknown quantity at this point 
Solved Threads: 0
TraderX's Avatar
TraderX TraderX is offline Offline
Light Poster

Re: vBulletin mod_rewrite

 
0
  #102
Sep 27th, 2004
ok... I just finish every thing from post #1, but at the top of my pages I am getting this

script type="text/javascript">
(www.4xtraders.com/forum to take a look)

What did I do wrong?
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 34
Reputation: TraderX is an unknown quantity at this point 
Solved Threads: 0
TraderX's Avatar
TraderX TraderX is offline Offline
Light Poster

Re: vBulletin mod_rewrite

 
0
  #103
Sep 27th, 2004
Sorry for so many post... but I seem to be having a prob with my links to my sub-forums. I am not sure if I did some thing wrong or missed a step.

On my boards, you can see the sub-forum with it's link. Now the prob is that it is a broken link

http://www.4xtraders.com/forum/.html

Which leads to no where land.... Any ideas on how to correct this or tell me what I did wrong?

Coll
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 18
Reputation: tekkitan is an unknown quantity at this point 
Solved Threads: 0
tekkitan tekkitan is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #104
Sep 27th, 2004
Originally Posted by Ted S
It looks like you missed the party by keith... $thread['url'] = ereg_replace("[/?!.$%£()~*@]+", "", $thread['url']); (I believe thats on page 5 of the thread)
Ted, that still didn't fix the problem. You need to modifiy this code to work with your method, which resides in showthread.php and forumdisplay.php:

[php]foreach ($parentlist AS $forumID)
{
$forumTitle = $forumcache["$forumID"]['title'];
$navbits["forum$forumID.html"] = $forumTitle; // edited by dani
}[/php]

here is a link to my forums so you can see what is wrong. look at the navigation part ("The PC Forum - PC Troubleshooting, Help, and Discussion > Hardware > Motherboards"):

http://www.thepcforum.com/forum/t4-d...sions-a&b.html
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 18
Reputation: tekkitan is an unknown quantity at this point 
Solved Threads: 0
tekkitan tekkitan is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #105
Sep 28th, 2004
For people having my problem, I have fixed it. People using Ted's method, go into showthread.php and forumdisplay.php and search for "dani". edit your code to look like this below:

[php]foreach ($parentlist AS $forumID)
{
$forumTitle = $forumcache["$forumID"]['title'];
$forumURL = strtolower(str_replace(" ", "-",str_replace("/", "-", $forumTitle)));
$navbits["f$forumID-$forumURL.html"] = $forumTitle; // edited by dani
}[/php]

navigation links should now work nicely
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 10
Reputation: Cyber-SEO is an unknown quantity at this point 
Solved Threads: 0
Cyber-SEO Cyber-SEO is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #106
Sep 29th, 2004
Great forum guys, seo guy just told me about and the rewrite hack so i started following the steps.

It's my first time using this forum so I'm gonna come out as a dummy here .

Anyway here's my question.

At the bottom of Step 2 of the original #1 post it says:

  1. All need to be replaced with the following:
  2.  
  3. PHP Code:
  4. <a href="$forum[url].html">

What exactly do you mean here? replace what with the following?

I searched all 7 pages to find out if anyone asked the same question but i wan't able to find it... I'm guessing that there is something wrong with me here.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 10
Reputation: Cyber-SEO is an unknown quantity at this point 
Solved Threads: 0
Cyber-SEO Cyber-SEO is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #107
Sep 29th, 2004
Originally Posted by Cyber-SEO
Great forum guys, seo guy just told me about and the rewrite hack so i started following the steps.

It's my first time using this forum so I'm gonna come out as a dummy here .

Anyway here's my question.

At the bottom of Step 2 of the original #1 post it says:

  1. All need to be replaced with the following:
  2.  
  3. PHP Code:
  4. <a href="$forum[url].html">

I searched all 7 pages to find out if anyone asked the same question but i wan't able to find it... I'm guessing that there is something wrong with me here.


LOL, N/M I'm an idiot....
What exactly do you mean here? replace what with the following?
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 34
Reputation: TraderX is an unknown quantity at this point 
Solved Threads: 0
TraderX's Avatar
TraderX TraderX is offline Offline
Light Poster

Re: vBulletin mod_rewrite

 
0
  #108
Sep 29th, 2004
Originally Posted by Cyber-SEO
LOL, N/M I'm an idiot....
What exactly do you mean here? replace what with the following?
Don't even worry about it.... did you see that idiot that kept posting and post asking questions while not following ALL of the steps first....WAIT that was me!!

It took me a couple read thrus to understand it. What you need to do is open each one from FORUMHOME templates. ie.. forumhome_forumbit_level1_nopost, forumhome_forumbit_level1_post, forumhome_forumbit_level2_nopost, forumhome_forumbit_level2_post, forumhome_subforumbit_nopost, forumhome_subforumbit_post

Each one of them has the same code, search for
[PHP]<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"> [/PHP]
and then replace it with
[PHP]<a href="$forum[url].html">[/PHP]

I am thinking that is was just an easier way for her to post it is all

Hope that helps
Coll
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 10
Reputation: Cyber-SEO is an unknown quantity at this point 
Solved Threads: 0
Cyber-SEO Cyber-SEO is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #109
Sep 29th, 2004
Has anyone noticed that the nav bar links kind of give us duplicate content pages?

Here is an example:

http://www.agentserver.net/forum/agentserver.html

We have this url repeated with:

http://www.agentserver.net/forum/forum1.html

This happens when you view a thread or a sub forum, the navbar will display the forum url names as forum[number].

As an example you can view:
http://www.agentserver.net/forum/how...questions.html

And you will notice that the AgentServer title is pointing to the page http://www.agentserver.net/forum/forum1.html
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,026
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 125
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite

 
0
  #110
Sep 29th, 2004
Hey there Cyber-SEO. Glad you got it worked out. The navbar problem has already been explained in my original post. The problem is that the way that vBulletin calculates subforums, a forum ID # is required to be within the loop, in order for vBulletin to figure out the parent forums of a subforum and correctly make the navbit. For that reason, your options are to have forum1.html or to have f1-forumname.html like Ted S has done it. It's logically impossible to have forumname.html only
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC