vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - DC SEO vB URL Rewrite (https://vborg.vbsupport.ru/showthread.php?t=91324)

Zhen-Xjell 11-13-2005 07:35 PM

Quote:

Originally Posted by Dean C
There is no issue here. That URL serves a function. It redirects to a page with an anchor on with the most recent post. There is no reason whatsoever to rewrite this URL.

Those things are basically for aesthetics. It helps the user see the topic of the thread they are going to, especially if its offsite.

Moncal 11-14-2005 02:03 AM

Quote:

Originally Posted by Dean C
This is impossible because it makes no changes to your database whatsoever.

I don't know how it happened, but it most certainly did.

When I tried to import the plugin I got a blank white page in admincp that told me that there was an error and that I was either using a vB 3.5.1 file (which I wasn't) or that I needed to upload tools.php and rebuild the cache. When I and everyone else got completely locked out of my forum (including admincp).

Floris came to the rescue and got it fixed today.

harry1951 11-14-2005 01:05 PM

*clicks install*

glassy 11-14-2005 03:33 PM

I was wondering if it is possible to make the urls of my threads / categories

www.url.com/t/32343.html and www.url.com/f/4.html

I have tried myself and got it all working except from when you click links (wherever there is /t/ or /f/) the link does the following www.url.com/f/newthread.php?do=newthread&f=4

Any help would be great otherwise sorry to bother you :p

Dean C 11-14-2005 08:13 PM

glassy - I've no plans to implement that URL structure. Sorry :)

mikehawk 11-14-2005 09:22 PM

attn: This is not compatible with the DC SEO vB database indexer for Yahoo and Google. :ermm:

Dean C 11-14-2005 10:09 PM

Quote:

Originally Posted by mikehawk
attn: This is not compatible with the DC SEO vB database indexer for Yahoo and Google. :ermm:

Sorry? I haven't wrote such a thing? :)

mikehawk 11-14-2005 10:48 PM

Quote:

Originally Posted by Dean C
Sorry? I haven't wrote such a thing? :)

lol, well I guess that is why they do not work together. :nervous:

Zhen-Xjell 11-16-2005 01:56 AM

Example on foreign char returns:

http://www.google.com/search?hl=en&q...=Google+Search

Dontom 11-16-2005 07:00 PM

Hello,
I intend to use this on a german forum - we use umlauts there (a,?,?,?) - will the code from here (https://vborg.vbsupport.ru/showpost....&postcount=348) replace them by their english equivalents? (ae, ue, oe, ss)

Thanks
Thomas

Zhen-Xjell 11-16-2005 08:48 PM

Quote:

Originally Posted by Dontom
Hello,
I intend to use this on a german forum - we use umlauts there (a,?,?,?) - will the code from here (https://vborg.vbsupport.ru/showpost....&postcount=348) replace them by their english equivalents? (ae, ue, oe, ss)

Thanks
Thomas

Hi Dontom, I use Dean's code too, and the umlaut's are preserved:

http://de.castlecops.com/forum

Dean C 11-17-2005 01:24 AM

Quote:

Originally Posted by Dontom
Hello,
I intend to use this on a german forum - we use umlauts there (a,?,?,?) - will the code from here (https://vborg.vbsupport.ru/showpost....&postcount=348) replace them by their english equivalents? (ae, ue, oe, ss)

Thanks
Thomas

The latest version replaces foreign characters with their english equivalent. But I have yet to decide whether to replace foreign chars or not yet :) Please bare in mind I have not yet released the latest version.

Dontom 11-17-2005 03:37 AM

Thank you both for your answer! I will wait then for the next version
Thomas

descds 11-17-2005 04:14 PM

OK i tried this but for some reason i couldn't get it to work.

I already have SEO friendly url's running in my subdreamer part of the site so i uploaded the plugin and put the copied

PHP Code:

RewriteRule ^f([0-9]+)-([A-Za-z0-9\-]+)\.htmlforumdisplay.php?f=$[L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.htmlshowthread.php?t=$1&page=$5&pp=10 [L

To my already established .htaccess file

PHP Code:

Options All -Indexes
Options 
+FollowSymLinks
RewriteEngine On
RewriteBase 
/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*) index.php 

so i ended up with

PHP Code:

Options All -Indexes
Options 
+FollowSymLinks
RewriteEngine On
RewriteBase 
/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*) index.php

RewriteRule 
^f([0-9]+)-([A-Za-z0-9\-]+)\.htmlforumdisplay.php?f=$[L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.htmlshowthread.php?t=$1&page=$5&pp=10 [L

It was working in as much to say that the forum links changed to html links but clicking them resulted in a page not found.

So i thought maybe its the base url as my forums, like many, are in the /forum/ directory of the root.

So i removed that, still the same. So i changed too

RewriteBase /forum

Still the same

and tried

RewriteBase /forum/

Still the same. What did i do wrong ? :)

Dean C 11-17-2005 11:57 PM

It's not that simple descds. This rule redirects everything (which is a bad thing), but I won't get into a discussion on poor usage of mod_rewrite now:

Code:

RewriteRule ^(.*) index.php
This will send every single URL you type to index.php. Why it's doing that I have no idea. This should be a temporary fix for you though:

Code:

Options All -Indexes
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^f([0-9]+)-([A-Za-z0-9-]+).html$
RewriteCond %{REQUEST_URI} !^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9-]+).html$
RewriteRule ^(.*) index.php

RewriteRule ^f([0-9]+)-([A-Za-z0-9-]+).html$ forumdisplay.php?f=$1 [L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9-]+).html$ showthread.php?t=$1&page=$5&pp=10 [L]

Give it a try anyway :)

descds 11-18-2005 06:30 AM

Quote:

Originally Posted by Dean C
It's not that simple descds. This rule redirects everything (which is a bad thing), but I won't get into a discussion on poor usage of mod_rewrite now:

Code:

RewriteRule ^(.*) index.php
This will send every single URL you type to index.php. Why it's doing that I have no idea. This should be a temporary fix for you though:

Code:

Options All -Indexes
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^f([0-9]+)-([A-Za-z0-9-]+).html$
RewriteCond %{REQUEST_URI} !^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9-]+).html$
RewriteRule ^(.*) index.php

RewriteRule ^f([0-9]+)-([A-Za-z0-9-]+).html$ forumdisplay.php?f=$1 [L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9-]+).html$ showthread.php?t=$1&page=$5&pp=10 [L]

Give it a try anyway :)


Thanks Dean but it didn't work :( My SEO friendly urls for subdreamer worked perfectly well but the forum ones results in a page not found on clicking ...

Any other ideas ?

Dean C 11-18-2005 09:57 AM

Do you have subdreamer and your forum in the same directory?

ginger22 11-18-2005 10:10 AM

Some questions about this hack:
1. Bug in thread, when it displayes pages, i.g. page2 have http://www.alpari-idc.com/en/forum/t...his-forum.html and page 3 of 3 have - http://www.alpari-idc.com/en/forum/s...9&page=3&pp=10
why?
2. How about "Last post" in forum index? it have http://www.alpari-idc.com/en/forum/s...=newpost&t=291, but i want to have hack this too.

P.S. Sorry for my English.

descds 11-18-2005 11:18 AM

Quote:

Originally Posted by Dean C
Do you have subdreamer and your forum in the same directory?

No dean. Subdreamer is off the root and the forum is in forum/

Dean C 11-18-2005 01:16 PM

Quote:

Originally Posted by descds
No dean. Subdreamer is off the root and the forum is in forum/

Then put just put the .htaccess file that is in the original zip in the forum directory ;)

Dontom 11-18-2005 01:23 PM

Dean, any idea when you might publish the latest version? I am still waiting due to the german umlauts...

thanks
Thomas

descds 11-18-2005 02:29 PM

Quote:

Originally Posted by Dean C
Do you have subdreamer and your forum in the same directory?


Woohooo dean your the man. Works like a charm :)

Can i send this information to the subdreamer community ?

Also is there anyway i can make you a small donation ?

Thankyou once more ... This is as good as VB SEO and acheives all i wanted. And at least i can see what this is doing :)

Thanks once more.

**descds** clicks install ..

Dean C 11-18-2005 02:38 PM

Quote:

Originally Posted by Dontom
Dean, any idea when you might publish the latest version? I am still waiting due to the german umlauts...

thanks
Thomas

No idea at the moment. I'm going to try and bundle the latest beta this weekend and send it to a few foreign boards for testing :)

Dean C 11-18-2005 02:42 PM

Quote:

Originally Posted by descds
Woohooo dean your the man. Works like a charm :)

Can i send this information to the subdreamer community ?

Also is there anyway i can make you a small donation ?

Thankyou once more ... This is as good as VB SEO and acheives all i wanted. And at least i can see what this is doing :)

Thanks once more.

**descds** clicks install ..

You can send the information there way sure :) The rewriterule is terrible and the everything atom should only be used on very rare occasions. Also the rule should have a $ at the end but that's another issue for another day ;)

I would be most grateful for a donation. Just send me an email via my website and I'll reply with my paypal details.

Dean C 11-18-2005 02:44 PM

Quote:

Originally Posted by ginger22
Some questions about this hack:
1. Bug in thread, when it displayes pages, i.g. page2 have http://www.alpari-idc.com/en/forum/t...his-forum.html and page 3 of 3 have - http://www.alpari-idc.com/en/forum/s...9&page=3&pp=10
why?
2. How about "Last post" in forum index? it have http://www.alpari-idc.com/en/forum/s...=newpost&t=291, but i want to have hack this too.

P.S. Sorry for my English.

1) I'm not aware of any bugs with the paging system. If anyone could show me a live example I'll look into it.

2) Please read earlier in the thread for the reason why I am not going to rewrite the lastpost URL.

descds 11-18-2005 03:17 PM

Quote:

Originally Posted by Dean C
You can send the information there way sure :) The rewriterule is terrible and the everything atom should only be used on very rare occasions. Also the rule should have a $ at the end but that's another issue for another day ;)

I would be most grateful for a donation. Just send me an email via my website and I'll reply with my paypal details.

Thanks again dean. I know i have a bit of a cheek here and all but can you offer them any advice ?

I haven't spoken to them and only use their software so please don't see it as those asking. I'm just curious how it could be made better and would pass on the info ..

Also one minor cosmetic issue with the plugin

When you view who's online if a user is in a thread you get

Unknown Location
/forum/f18-movies-on-dvd.html

I'm certainly not going to loose any sleep over it though :) Maybe something to look at for the next release ..

Dontom 11-18-2005 03:48 PM

Quote:

Originally Posted by Dean C
No idea at the moment. I'm going to try and bundle the latest beta this weekend and send it to a few foreign boards for testing :)

Can I send you an application for beta testing via your website? I runb two foreign forums, one of them a bigboard
Thomas

Nutz 11-18-2005 04:01 PM

Dean C any chance you can come on to the vB.org chat?

Thanks,
Mat

Dean C 11-18-2005 04:14 PM

Quote:

Originally Posted by descds
Thanks again dean. I know i have a bit of a cheek here and all but can you offer them any advice ?

I haven't spoken to them and only use their software so please don't see it as those asking. I'm just curious how it could be made better and would pass on the info ..

Also one minor cosmetic issue with the plugin

When you view who's online if a user is in a thread you get

Unknown Location
/forum/f18-movies-on-dvd.html

I'm certainly not going to loose any sleep over it though :) Maybe something to look at for the next release ..

Sorry I don't have time to have a look into the software :) You'll have to take that up with them. As for the who's online issue, it's fixed in the next version.

descds 11-18-2005 05:40 PM

Quote:

Originally Posted by Dean C
Sorry I don't have time to have a look into the software :) You'll have to take that up with them. As for the who's online issue, it's fixed in the next version.

understandable dean, but i had to ask :)

Thanks again for a great hack, its much appreciated ..

Makaveli105 11-18-2005 10:15 PM

not sure if this has been mentioned...

in Forum display, if you try to change the style using the dropdown at the bottom, it doesnt work, it just reloads the page.

im also having trouble with the whos online which is well known by now

Thanks Dean, Great hack!

Lizard King 11-18-2005 10:24 PM

There is a fix for whois online within the thread. I advise you to check and install that ;)

Makaveli105 11-18-2005 10:41 PM

oh, alright, ill check it out :), thanks, has anyone else had the changing styles problem?

Dean C 11-18-2005 11:31 PM

Quote:

Originally Posted by Makaveli105
oh, alright, ill check it out :), thanks, has anyone else had the changing styles problem?

Yep and unfortunately it can't really be fixed.

Edit:

Hmm actually I have an idea :)

Makaveli105 11-19-2005 03:45 AM

:D good luck with it, if it can't be fixed it can't be fixed, still a great hack :)

descds 11-19-2005 07:53 AM

Quote:

Originally Posted by Lizard King
There is a fix for whois online within the thread. I advise you to check and install that ;)

thanks that did it :)

It doesnt re-write the urls to html in who's online though and has the older php relevance. I assume that was intentional ? How would that effect spiders ? if at all ..

Clicking the url to a thread a user is viewing sends them to the

http://www.talkdvd.net/forum/showthread.php?t=347

instead of

http://www.talkdvd.net/forum/t347-on...ng-future.html

I personally think a rewrite of all urls would help avoid confusion here. Users are seeing two types of urls in different situations and i know it is only really cosmetic but it would make it look uniform.

So the last reply and who's online SEO friendly urls would just make it look and feel more intergrated ...

But either way its an outstanding hack and i'm happy to use it.

Dean C 11-19-2005 11:26 AM

Quote:

Originally Posted by descds
thanks that did it :)

It doesnt re-write the urls to html in who's online though and has the older php relevance. I assume that was intentional ? How would that effect spiders ? if at all ..

Clicking the url to a thread a user is viewing sends them to the

http://www.talkdvd.net/forum/showthread.php?t=347

instead of

http://www.talkdvd.net/forum/t347-on...ng-future.html

I personally think a rewrite of all urls would help avoid confusion here. Users are seeing two types of urls in different situations and i know it is only really cosmetic but it would make it look uniform.

So the last reply and who's online SEO friendly urls would just make it look and feel more intergrated ...

But either way its an outstanding hack and i'm happy to use it.

This is semi-fixed in the new version. I've just thought of a way I can rewrite the URLs. But at the moment all old URLs are 301-redirected to the new URLs, with no negative consequence.

descds 11-19-2005 03:06 PM

Quote:

Originally Posted by Dean C
This is semi-fixed in the new version. I've just thought of a way I can rewrite the URLs. But at the moment all old URLs are 301-redirected to the new URLs, with no negative consequence.

if you mean that clicking

http://www.talkdvd.net/forum/showthread.php?t=347

should redirect and show as

http://www.talkdvd.net/forum/t347-o...ing-future.html

it doesnt :)

clicking http://www.talkdvd.net/forum/showthread.php?t=347 results in seeing http://www.talkdvd.net/forum/showthread.php?t=347 ...

Is that what its supposed to do or is something i have here wrong ?

Dean C 11-19-2005 03:45 PM

Yes that's what I meant, but read what I said again. It's fixed in the new version ;) Which I have yet to release!

descds 11-19-2005 04:24 PM

Quote:

Originally Posted by Dean C
Yes that's what I meant, but read what I said again. It's fixed in the new version ;) Which I have yet to release!

no problems dean :)

Just wanted to clarify incase i had something wrong this end ..

Keep up the good work ..


All times are GMT. The time now is 01:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01805 seconds
  • Memory Usage 1,872KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete