![]() |
woah i had to edit nearly all of my templates :eek:
first important one do a search template for the forum action part Quote:
Quote:
only images i couldn't find the link to edit to add $bburl/ to are Quote:
Quote:
|
I also had a problem with the bbcode smilies not showing up. I had to edit functions.php and add a slah before the href in this line:
Code:
$bbcode=str_replace(trim($smilie[smilietext]),"<img src=\"/$smilie[smiliepath]\" border=\"0\" alt=\"\">",$bbcode); Not sure about the posted by link yet. I wish I'd never thought of this hack now :( |
i fixed the smilies and posticon problem by adding a slash / in the edit smilies in the admin panel
also another problem merging threads won't work with your shorter url :( is it possible to show/display the real url in a small table on/under the thread or on the merge thread template i.e. display something like please input the thread to merge in the format http://animeboards.com/showthread.php?s=&threadid=XXXX where XXXX corresponds to http://animeboards.com/tXXXX/s.html |
Quote:
There must be an easier way than this. I'm going to spend a few hours reading the Apache docs. I can't believe it needs to be this hard. |
Quote:
|
I see that I'm digging up an old thread, but I have a solution to the problem discussed.
The answer is rewriting! Code:
RewriteRule ^f([0-9]+)/s([^/]*)/$ /forumdisplay.php?forumid=$1&s=$2 [L] |
Quote:
what i did for my subsequent styles was create replacement variables for form and other urls and it works but i'll try your method when an upgrade to the next release might force me to revert too many templates :D |
Eva check your PM's please
|
Like eva2000, I also solved it the hard way :(
Although the form problems were happening in both IE and Netscape, Netscape also had a lot of other problems with normal links. Does this method work with Netscape? I'll try it when 2.02 is released :) |
Quote:
Any Help is greatly appreciated. Steven |
Quote:
|
Fantastic hack! But I have some problems:
Okay, a.m. fastforward's hint works for me, but I have problems with rewriting in general as it seems. This is my .htaccess on Apache 1.3.20 placed in the root dir. Code:
RewriteEngine on http://mcseboard.de/forum/foo/ is rewritten to http://mcseboard.de/bar/index.html So, rewrites seem to work - just try the link. But my board behaves as usual making no notice of the rules as it seems. What's going wrong here? Thanks for any hint, -Tom P.S.: I don't have access to httpd.conf or the RewriteLog if there is... |
This is what i have in my .htaccess in the root directory:
Quote:
My vB is here: http://www.automotiveforums.com/vbulletin/index.php any help would be appreciated. |
Hi,
does rewriting work in general? Try to test it with something like RewriteRule ^vbulletin/foo/(.*)$ /bar/index.html [R] Enter http://yourdomain/vbulletin/foo/ Rewriting works for me in general, but the board doesn't seem to be affected... -Tom |
RewriteRule ^vbulletin/foo/(.*)$ /index.php [R]
that works, when you go to http://www.automotiveforums.com/vbulletin/foo/ it directs you to the index page. |
Then we seem to have the same problem... :(
|
Sure does look like it.
|
This may or may not help. It will probably confuse things even more :)
Here's what I have in my httpd.conf: Code:
RewriteRule ^/f([0-9]+)/?$ /forumdisplay.php?forumid=$1&s=$2 [L] In your problem examples I notice you don't start the url with a slash. You might want to try that. You never know. |
Hi fastforward,
thanks for answering, I tried that, but it didn't seem to work :( Are these the only two line regarding rewrite in your conf? Where is the one which builds the /f1/... or /fx/...? :) I really would like to sort it out since this is one of the most useful hack for vB ever - maybe even for php-based sites in general. Thanks, -Tom |
Quote:
http://animeboards.com/f38/s http://animeboards.com/t20418/s.html ? currently i have in my httpd.conf Quote:
|
Gimme till tomorrow night and I'll redo the hack based on the 2.02 code and post full instructions. I'll use the 'double rewrite' method that porfiry contributed to avoid changing a bazillion templates :)
ThomasP: The /f12 bits are created by editing the templates. All the rewrite does is change those short urls back to something that the vB php code knows about. |
oops, my bad - I see.
Thanks for your help and take your time, -Tom |
I finally got it to work by taking out the extra "/" from the first 2 lines, wooohooo!!!:D
Now I face smaller, yet another problem. Take this page for example: http://www.automotiveforums.com/vbulletin/t4667.html The 2nd page of the thread will not be indexed by search engines :( How can I use mod_rewrite to make the 2nd page be http://www.automotiveforums.com/vbulletin/t4667-2.html 3rd page: http://www.automotiveforums.com/vbulletin/t4667-3.html... etc? Thanks for any help. |
Well, I've done it!:D
http://www.automotiveforums.com/vbulletin/t4667.html And click on page 2, 3, and 4 ;) Thread [ << < 1 2 3 4 > >> ] If there's anybody that wants the rewrite code for this I'll post it, it was easier than I thought, after twisting my head for 2 hours. |
Quote:
Mine appears to be working on IE, but I haven't tried every possible scenario and I haven't tested it on Netscape. It handles multipage threads, but I still need to add support for multi-page threadlistings. Once complete, you should be able to block spiders from all dynamic urls and still have them index ALL posts. If anyone wants to help debug it, here it is: ---------------------------------------------- 1) Edit /etc/httpd.conf httpd.conf needs editing to enable and configure mod_rewrite. Here's all the relevent bits from my httpd.conf. It can go anywhere between the <VirtualHost> & </VirtualHost> tags. RewriteEngine on RewriteRule ^/f([0-9]+)/s([^/]+?)$ /forumdisplay.php?forumid=$1&s=$2 [L] RewriteRule ^/t([0-9]+)/s([^/]+?)\.html$ /showthread.php?threadid=$1&s=$2 [L] RewriteRule ^/s([^/])+?/$ /index.php?s=$1 [L] 2) Edit Templates a. The following templates contain the forum links that need changing (one occurance in each) -> forumdisplay_forumbit_level1_nopost -> forumdisplay_forumbit_level1_post -> forumdisplay_forumbit_level2_nopost -> forumdisplay_forumbit_level2_post -> forumhome_forumbit_level1_nopost -> forumhome_forumbit_level1_post -> forumhome_forumbit_level2_nopost -> forumhome_forumbit_level2_post The new link should be: <a href="$bburl/f$forum[forumid]/">$forum[title]</a> b. The following template contains the thread link that needs changing: -> forumdisplaybit The new link should be: <a href="$bburl/t$thread[threadid].html">$thread[title]</a> c. The following templates contain the pagenav bits: -> forumdisplay_multipagenav_pagenumber Replace the link within this templatewith: $bburl/t$thread[threadid]-$acurpage.html -------------------------------------------------------------- |
This is what I added for the thread#-page#.html to work:
RewriteRule ^t([0-9]+)-([0-9]+)\.html$ showthread.php?threadid=$1&perpage=10&pagenumber=$ 2 [L] Then I had to modify functions.php You can find what to modify by finding the veriables that correspond to the page nav in the templates. |
Has anyone managed to get that working via .htaccess?
If mod_rewrite is enabled it works as well via .htaccess - right? At least that works on my account: thx, -Tom |
Quote:
|
where can I find the htaccess that you speak of, I mean I looked all over my account and could not find it...
|
Just create one...
|
Quote:
|
Hi GameCrash!
have you tried that hack on d)f? Btw: I'm with d)f now, too. Great support and nice features. cu, -Tom |
Sorry, D)F does not support mod_rewrite. So if you try to turn the RewriteEngine to on you will get an error 500, sorry ;)
|
Quote:
The following works for example: create a directory named "test" and put the above into an .htaccess into the dir. test to try that - it works! But not all from fastforwards samples, so that's why I wonder... :confused: -Tom |
Well... maybe they have enabled it now as so many people have asked for it - the last time I asked they said it's disabled...
|
I see, yeah could be...
Still couldn't get it working properly. Do you have any plans to try that? I'll play around the next days with it. cu, -Tom |
No, I won't as I will change my hoster the next days (I hope). I will go to a gamesite hoster - it's cheaper for me ;)
|
May I ask which one?
|
No :D
And I don't think we should discuss this in this thread any more ;) |
So does anyone have a final version of this hack, as I would really like to use it on my site via an .htaccess file.
|
All times are GMT. The time now is 11:28 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|