943,691 Members | Top Members by Rank

Ad:
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
May 1st, 2005
0

Re: vBulletin mod_rewrite for vB 3.0.7

Quote 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?

Quote 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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
projectpilot is offline Offline
3 posts
since May 2005
May 1st, 2005
0

Re: vBulletin mod_rewrite for vB 3.0.7

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.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
May 1st, 2005
0

** Help **

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 ??
Sponsor
Reputation Points: 10
Solved Threads: 0
Newbie Poster
leeds1 is offline Offline
1 posts
since May 2005
May 1st, 2005
0

Re: vBulletin mod_rewrite for vB 3.0.7

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.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
May 1st, 2005
0

Re: vBulletin mod_rewrite for vB 3.0.7

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 ?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
yakusasci is offline Offline
16 posts
since Apr 2005
May 1st, 2005
0

Re: vBulletin mod_rewrite for vB 3.0.7

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.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
May 1st, 2005
0

Re: vBulletin mod_rewrite for vB 3.0.7

Ok perfect tks again !
Reputation Points: 10
Solved Threads: 0
Newbie Poster
yakusasci is offline Offline
16 posts
since Apr 2005
May 1st, 2005
0

Re: vBulletin mod_rewrite for vB 3.0.7

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
yakusasci is offline Offline
16 posts
since Apr 2005
May 1st, 2005
0

Re: vBulletin mod_rewrite for vB 3.0.7

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
yakusasci is offline Offline
16 posts
since Apr 2005
May 1st, 2005
0

Re: vBulletin mod_rewrite for vB 3.0.7

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 8:04 pm.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Configuring Readymade Scripts Forum Timeline: Seeking Text Editor for web pages
Next Thread in Configuring Readymade Scripts Forum Timeline: Error message: can I fix the problem?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC