![]() |
| ||
| Re: [Revised] vBulletin Mod_rewrite Tutorial Hi, there has been so many fixes for this tutorial. It's already confusing. is there one with all the fixes? |
| ||
| Re: [Revised] vBulletin Mod_rewrite Tutorial Yes, I've asked Dani to let me post it but I have not heard back. Update, Google has begun to index my keyword rich URLs because of this hack and I'm seeing an improvement in ranking. I wish the other issues could be resolved because the mod is worth it. |
| ||
| Re: [Revised] vBulletin Mod_rewrite Tutorial WOW. I just followed everyone's little fixes and it works like a charm. No problems even on the first run. By the way, for the page numbers, this is just fine, am I correct? http://forum.mysite.com/showthread.p...6&page=2&pp=10 It would be nice to fix that as well so google will index every page. Thanks Dani, Keith and the rest! Time to blow the competition. |
| ||
| Re: [Revised] vBulletin Mod_rewrite Tutorial Hi, Does anyone have a solution for the broken link / 404 page error when question marks are used in the title? I have followed everything from this thread, and the one before it, reading through almost 22 pages of bug fixes, different code variations etc. But I don't think anyone has solved this one yet. :sad: |
| ||
| Re: [Revised] vBulletin Mod_rewrite Tutorial Quote:
|
| ||
| Re: [Revised] vBulletin Mod_rewrite Tutorial What problems? it seems to work for me. It strips the question mark from the url. I'm more interested in the mod for the rest of the pages. Right now only the first page is search engine friendly but when you click page 2, 3 and so forth it back to .php |
| ||
| Re: [Revised] vBulletin Mod_rewrite Tutorial Anyone figure out a way to use this while using multiple styles? Using the dropdown selector ignores any attempt to change your style. |
| ||
| Re: [Revised] vBulletin Mod_rewrite Tutorial Quote:
|
| ||
| How to get title urls into previous - next thread Sorry for a newbie question but I would like to replace the showthread.html? links at the bottom of each page (previous and next thread links) with title based keyword links. I've modified the mod_rewrite hack to format thread links with both $threadID and $pagenumber as t#p# like this: t125p4-my-thread-title.html For which I modified my .htaccess line like so: RewriteRule ^t([0-9]+)p([0-9]+)-(.*).html$ showthread.html?t=$1&page=$2 [L] It rewrites just fine -- but now I need to find a way to modify the SHOWTHREAD template where the "previous" and "next thread" links are found in code like this: <div class="smallfont" align="center"> It seems like this should be pretty easy since we have access to the $threadID and $pagenumber variables -- and the URL part will be the same for all pages in the thread. However, I cannot seem to access $thread[url]. I'm too inexperienced with vBulletin and PHP to figure out what to try next. Any suggestions appreciated. - Chad |
| ||
| Re: How to get title urls into previous - next thread Aahh, my mistake. I don't want to modify the "Previous/Next Thread" links. I want to modify the numbered page links from the PAGENAV template -- specifically the numbered links 1|2|3|4 etc. which are built from the pagenav_pagelink template here: <td class="alt1"><a href="$address&page=$curpage$address2" class="smallfont" Now, it seems this is built by the function construct_page_nav in function.php so I first simplified the pagenav_pagelink template (above) to read: <td class="alt1"><a href="$tpURL.html" class="smallfont" And then added a section into the beginning of function construct_page_nav (at the beginning of the while ($curpage++ < $totalpages) loop) like this: // TEST MOD by Chad This results in a nicely formatted link: t25p2-my-test-thread-title.html So now how do I go about getting the REAL thread title and URL into the above code? - Chad |
| All times are GMT -4. The time now is 5:05 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC