| | |
vBulletin mod_rewrite for vB 3.0.7
Please support our Existing Scripts advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2005
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by cscgal
Hey there fellas. I just want to give you an update on the DaniWeb mod_rewrite hack - I've updated it to what DaniWeb is currently using, in a whole new tutorial. There is support for multiple pages, Who's Online (no more Unknown locations!), previous / next threads, linear / hybrid / threaded modes, and much more! Enjoy
http://www.daniweb.com/tutorials/tutorial22840.html
Hey I just followed here from theadminzone.com to ask you a couple of questions.
2 questions are:
1. The xml file ( the style file vbulletin-seo.xml ) you posted in your tutorial, is it a fresh install of VB 3.0.7 also? Can I just import the style and all the style changes to reflect the mod_rewrite is alreade done there?
2. How did you have the archive post links to go to the actual forum thread links?
3. What do you mean by the following quote you mentioned in your thread at daniweb.com and how do you accomlish it. I am a not good at the web stuff yet. Can you please give me a step by step of what to do to get it done?
•
•
•
•
Originally Posted by cscgal
I feel that by simly putting the forum title into CSS'ed H1 and H2 tags, you can accomplish just as much SEO as keyword-rich URLs (which I don't even think weigh very much anyways) without the overhead.
Answers to your questions:
(1) Yes! It's a fresh vB 3.0.7 with only mod_rewrite applied to it. In addition, it only contains templates that were changed. That means that if you have your own style with a custom CSS, and header and footer templates edited, you can merge it right in there, and it will work.
(2) To make your archive work like a sitemap, where the links to the threads redirect to your *real* forum threads (mod_rewritten versions, of course!) then make the following two changes to your archive/index.php file. (Just as in the above tutorial, replace the first line with the second line)
[html]
echo "<p class=\"largefont\">$vbphrase[view_full_version] : <a href=\"$vboptions[bburl]/forumdisplay.php?f=$foruminfo[forumid]\">$foruminfo[title]</a></p>\n<hr />\n";
echo "<p class=\"largefont\">$vbphrase[view_full_version] : <a href=\"../../forum$foruminfo[forumid].html\">$foruminfo[title]</a></p>\n<hr />\n";
echo "\t<li><a href=\"" . (!SLASH_METHOD ? 'index.php?' : '') . "t-$thread[threadid].html\">$thread[title]</a>" . iif($pda, " <i>(" . construct_phrase($vbphrase['x_replies'], $thread['replycount']) . ")</i>") . "</li>\n";
echo "\t<li><a href=\"../../thread$thread[threadid].html\">$thread[title]</a>" . iif($pda, " <i>(" . construct_phrase($vbphrase['x_replies'], $thread['replycount']) . ")</i>") . "</li>\n";
[/html]
(3) There is another version of this hack (also in the Web Hosting Tutorials section of this site) that uses keyword-rich URLs such as my-forum-name.html as opposed to forum123.html. (It's an older version, however, from 3.03 I believe). In any case, what I choose to do instead, is somewhere in the navbar template, add the code:[html]<h1>$foruminfo[title]</h1>[/html] and then use CSS to make h1 { } look anyway that I want (so that it's not enormous.) You see, Google puts weight on text emphasized in header h1 and h2 tags.
(1) Yes! It's a fresh vB 3.0.7 with only mod_rewrite applied to it. In addition, it only contains templates that were changed. That means that if you have your own style with a custom CSS, and header and footer templates edited, you can merge it right in there, and it will work.
(2) To make your archive work like a sitemap, where the links to the threads redirect to your *real* forum threads (mod_rewritten versions, of course!) then make the following two changes to your archive/index.php file. (Just as in the above tutorial, replace the first line with the second line)
[html]
echo "<p class=\"largefont\">$vbphrase[view_full_version] : <a href=\"$vboptions[bburl]/forumdisplay.php?f=$foruminfo[forumid]\">$foruminfo[title]</a></p>\n<hr />\n";
echo "<p class=\"largefont\">$vbphrase[view_full_version] : <a href=\"../../forum$foruminfo[forumid].html\">$foruminfo[title]</a></p>\n<hr />\n";
echo "\t<li><a href=\"" . (!SLASH_METHOD ? 'index.php?' : '') . "t-$thread[threadid].html\">$thread[title]</a>" . iif($pda, " <i>(" . construct_phrase($vbphrase['x_replies'], $thread['replycount']) . ")</i>") . "</li>\n";
echo "\t<li><a href=\"../../thread$thread[threadid].html\">$thread[title]</a>" . iif($pda, " <i>(" . construct_phrase($vbphrase['x_replies'], $thread['replycount']) . ")</i>") . "</li>\n";
[/html]
(3) There is another version of this hack (also in the Web Hosting Tutorials section of this site) that uses keyword-rich URLs such as my-forum-name.html as opposed to forum123.html. (It's an older version, however, from 3.03 I believe). In any case, what I choose to do instead, is somewhere in the navbar template, add the code:[html]<h1>$foruminfo[title]</h1>[/html] and then use CSS to make h1 { } look anyway that I want (so that it's not enormous.) You see, Google puts weight on text emphasized in header h1 and h2 tags.
•
•
Join Date: May 2005
Posts: 1
Reputation:
Solved Threads: 0
Hi
I have just added the hack but my pagenav is screwed up
I see your forum points to pages OK, but I seem to have an additional "&page" within the URL which of course points to a 404, eg :
forum4&page=2-lastpost--10--1.html
when browsing the forums and
threadnav913&page=2-10.html
I believe it should be simply without the "&page="
any ideas ??
I have just added the hack but my pagenav is screwed up
I see your forum points to pages OK, but I seem to have an additional "&page" within the URL which of course points to a 404, eg :
forum4&page=2-lastpost--10--1.html
when browsing the forums and
threadnav913&page=2-10.html
I believe it should be simply without the "&page="
any ideas ??
This would be from the pagenav and pagenav_pagelink templates. Are you sure that you correctly applied the template modifications for those two templates? Double check.
yakusasci,
Because of the reasons posted at http://www.daniweb.com/techtalkforum...117002-10.html, I do not do this myself. Once I ensure that this hack is perfected and bug-free, I may expand it to work that way. In the meantime, there is an existing tutorial on how to do this at http://www.daniweb.com/tutorials/tutorial12725.html although it is optimized for an earlier version of vB3. You may wish to take a look at it.
Because of the reasons posted at http://www.daniweb.com/techtalkforum...117002-10.html, I do not do this myself. Once I ensure that this hack is perfected and bug-free, I may expand it to work that way. In the meantime, there is an existing tutorial on how to do this at http://www.daniweb.com/tutorials/tutorial12725.html although it is optimized for an earlier version of vB3. You may wish to take a look at it.
•
•
Join Date: Apr 2005
Posts: 16
Reputation:
Solved Threads: 0
Other bug :
when I read a subject for example :
threadedpost262465.html#post262465
if I try to change the forum style (box at the bottom left) it doesn't work; I get an url like threadedpost262465.html?styleid=3#post262465 but with the same style;
same thing on a forum : forum70.html?styleid=3; doesn't work.
hope this helps
when I read a subject for example :
threadedpost262465.html#post262465
if I try to change the forum style (box at the bottom left) it doesn't work; I get an url like threadedpost262465.html?styleid=3#post262465 but with the same style;
same thing on a forum : forum70.html?styleid=3; doesn't work.
hope this helps
Oops! Sory I missed the announcements. In the announcement.php file:
[php]
$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
$navbits["forum$forumID.html"] = $forumTitle;
$navbits["$vboptions[forumhome].php"] = $vbphrase['announcements'];
$navbits[""] = $vbphrase['announcements'];[/php]
As far as the style chooser is concerned, it will take a bit of work, but I'll get that working as soon as I can. I don't have much experience with it because I don't offer my members the ability to switch styles.
[php]
$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
$navbits["forum$forumID.html"] = $forumTitle;
$navbits["$vboptions[forumhome].php"] = $vbphrase['announcements'];
$navbits[""] = $vbphrase['announcements'];[/php]
As far as the style chooser is concerned, it will take a bit of work, but I'll get that working as soon as I can. I don't have much experience with it because I don't offer my members the ability to switch styles.
Last edited by cscgal; May 2nd, 2005 at 8:04 pm.
![]() |
Similar Threads
- vBulletin mod_rewrite (PHP)
- [Revised] vBulletin Mod_rewrite Tutorial (PHP)
- vBulletin mod_rewrite for vB 3.0.7 (Growing an Online Community)
- vBulletin mod_rewrite in phpBB mod format (Existing Scripts)
Other Threads in the Existing Scripts Forum
- Previous Thread: Seeking Text Editor for web pages
- Next Thread: Error message: can I fix the problem?
| Thread Tools | Search this Thread |








: