User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Existing Scripts section within the Web Development category of DaniWeb, a massive community of 402,746 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,513 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Existing Scripts advertiser: Web Code Converter
Views: 24028 | Replies: 117
Reply
Join Date: May 2005
Posts: 3
Reputation: projectpilot is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
projectpilot projectpilot is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite for vB 3.0.7

  #11  
May 1st, 2005
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

Great hack !!!

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.
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,892
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 110
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite for vB 3.0.7

  #12  
May 1st, 2005
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.
Reply With Quote  
Join Date: May 2005
Posts: 1
Reputation: leeds1 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
leeds1 leeds1 is offline Offline
Newbie Poster

** Help **

  #13  
May 1st, 2005
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 ??
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,892
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 110
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite for vB 3.0.7

  #14  
May 1st, 2005
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.
Reply With Quote  
Join Date: Apr 2005
Posts: 16
Reputation: yakusasci is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
yakusasci yakusasci is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite for vB 3.0.7

  #15  
May 1st, 2005
That's great ! Thanks for your quick answer.

Just one last question : is it possible, just for forums names to customize them ? I'd like to change forumid.html into forum_name.html ?
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,892
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 110
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite for vB 3.0.7

  #16  
May 1st, 2005
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.
Reply With Quote  
Join Date: Apr 2005
Posts: 16
Reputation: yakusasci is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
yakusasci yakusasci is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite for vB 3.0.7

  #17  
May 1st, 2005
Ok perfect tks again !
Reply With Quote  
Join Date: Apr 2005
Posts: 16
Reputation: yakusasci is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
yakusasci yakusasci is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite for vB 3.0.7

  #18  
May 1st, 2005
Ah I've tested it on an intern forum and I've found something forgotten dani superstar :

when viewing an annoucement (announcementxxx.html), in the nav bar at the top there are dynamic links :

forum > subforum
>>announcement
Reply With Quote  
Join Date: Apr 2005
Posts: 16
Reputation: yakusasci is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
yakusasci yakusasci is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite for vB 3.0.7

  #19  
May 1st, 2005
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
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,892
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 110
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite for vB 3.0.7

  #20  
May 1st, 2005
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.
Last edited by cscgal : May 2nd, 2005 at 7:04 pm.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Existing Scripts Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Existing Scripts Forum

All times are GMT -4. The time now is 8:01 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC