tekkitan 0 Newbie Poster

No problem. And for those who would like to know if this hack is compatible with vBAdvanced, vBIndex, or any other vBulletin hack, I really don't know - I have no experience with any of them.

What I will say, however, is that I will try my best to make this hack compliant with the new hooks 'n' plugs feature in vB 3.5 which is due out to be released soon. In the new version, supposedly hacks will not require editing of PHP code, so we'll see how that works when it gets here!

awesome :)

you'd be my favorite person ever

tekkitan 0 Newbie Poster

is there a way to get this working with the Geek Articles system so all my article's URL will look nice with the title in them?

tekkitan 0 Newbie Poster

if csgal's doesnt use the forum/thread titles in the filename.html, this one from KeithMCL is.

also on another note: Keith, why dont you update your first post to fix all the errors you made? such as missing \ in some of the find and edit lines.

tekkitan 0 Newbie Poster

In my opinion phpBB is the easiest of the boards to hack. Then again I am used to editing scripts using a CLI opposed to via a web-based interface.

tekkitan 0 Newbie Poster

Google Page Rank Is Dead ... what do u think about these ???

that's been proven wrong. lol

tekkitan 0 Newbie Poster

my PR went up on a couple of sites. 2 pr0 sites went up to pr2, and my pr3/pr1 forums, went up to pr4/pr3 forums :)

friend's site went from pr0 to pr4. there was definately an update. dont think they updated backlinks though.

tekkitan 0 Newbie Poster

Well, I posted that in mid-May ... did I say 150 to 200 posts per day? We're at 300 posts per day now! Gee these forums are skyrocketing ;)

i wish any of my forums were 1/10th as popular, lol

tekkitan 0 Newbie Poster

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:

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

navigation links should now work nicely :)

tekkitan 0 Newbie Poster

It looks like you missed the party by keith... $thread = ereg_replace("[/?!.$%£()~*@]+", "", $thread); (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:

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

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-dfi-lanparty-nfii-ultra400-revisions-a&b.html

tekkitan 0 Newbie Poster

It looks like you missed the party by keith... $thread = ereg_replace("[/?!.$%£()~*@]+", "", $thread); (I believe thats on page 5 of the thread)

alright thanks i'll look for it :)

tekkitan 0 Newbie Poster

Ted didnt post any code specific to the navbit did he?
Some of this navbit stuff i already had done myself as i did some previous hacks to remove sid from the url's and some other things to make my forum more google friendly.

no Ted didnt post it, but it definately needs to be, because it follows csgal's way, so it just breaks and 404's.

edit: i almost have the code modified correctly that goes into showthread.php and displayforum.php...

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

Only thing that it doesnt do is put the Forum Title like Ted's does (lowercase hyphenated). I dont know PHP, just general coding knowledge, so kind of struggling here :X

Example of the URL it is doing now: http://www.thepcforum.com/forum/f6-Processors%20(CPU).html

tekkitan 0 Newbie Poster

Step Eight

To finish editing the navbit breadcrumb, we must edit the .php files directly. To do this, we edit both the forumdisplay.php as well as the showthread.php files:

Do a search in forumdisplay.php for:

// draw nav bar

and do a search in showthread.php for

// draw navbar

A few lines below those lines, in both files, you will see a loop that looks somewhat like

foreach ($parentlist AS $forumID) {...}

Replace that loop with the following:

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

Unfortunately, what we're doing here, is making the forums in the breadcrumb point to forum1.html and forum2.html. Due to reasons that are beyond the scope of this tutorial, it is impossible for us to use forum-name.html here. Basically, the way that vBulletin uses recursion to generate the breadcrumb, the forum ID numbers must be in the URL for it to work correctly. If you did use $navbits["forum$url.html"] instead of $navbits["forum$forumID.html"] then vBulletin would create all navbar breadcrumbs assuming that the forum you're currently browsing is a top-level forum. In other words, it is not a subforum of anyone. The way I figure it, at least forumXX.html is better than forumdisplay.php?f=XX.

i need the code for this but using Ted's method...

tekkitan 0 Newbie Poster

hey Ted, I just noticed something else we have to edit if we follow your way of doing this. We would have to edit threadbit and postbit and do some changes.

example (postbit): http://www.thepcforum.com/forum/thread5.html
Click on Hardware or Processors (CPU) links in the navigation part.

example (threadbit): http://www.thepcforum.com/forum/f6-processors-(cpu).html
Click on Hardware link in navigation.

Unless I missed your directions on what to change?

ok i'm sorry, this is part of the navbit, sorry, i'm still learning my way around vB

tekkitan 0 Newbie Poster

hey Ted, I just noticed something else we have to edit if we follow your way of doing this. We would have to edit threadbit and postbit and do some changes.

example (postbit): http://www.thepcforum.com/forum/thread5.html
Click on Hardware or Processors (CPU) links in the navigation part.

example (threadbit): http://www.thepcforum.com/forum/f6-processors-(cpu).html
Click on Hardware link in navigation.

Unless I missed your directions on what to change?

tekkitan 0 Newbie Poster

awesome mod! works perfectly on my forum! Thanks csgal and Ted!