vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vRewrite - SEOed URLs for vBulletin (https://vborg.vbsupport.ru/showthread.php?t=104484)

logical.angel 02-04-2006 05:44 AM

Quote:

Originally Posted by caislander
[Immortal,

Thanks for the response but when i apply the code change as is outlined in post 300 it fixes everything except the page 2 of a thread being sent to some other thread. So I over wrote that with the chance in post 316 and that gives me an error of
Code:

Parse error: parse error, unexpected '}' in..../www/html/forums/includes/functions.php(4320) : eval()'d code on line 606
What have I done wrong?

Uhmm, it's a parse error, maybe you've wrongly paste the codes, maybe lack a single quotes somewhere or needs an additional ) added or remove, try posting the codes around line 606.

Heh Immortal, I must say a great thanks to you, i've not used vRewrite yet, just heard of it today, but i've followed this thread, you really must be having a great patience to keep up working with vRewrite and additionally help with support issues.
Anyways, i'll try to get my whole hackers.mu crew to work with that bug in vRewrite maybe someone might figure out what's wrong.
Anywayz, great job.

+[logical.angel]out
logical [AT] hackers.mu

sysop2 02-04-2006 08:20 AM

Hello all, i'm new here. ;)

what am i doing wrong?
I took a clean vbulletin and installed that product.

Forum rewriting works.

Thread rewriting doesnt:
Only the 1st Thread in a forum hast se-friendly urls.
Only the 1st and the last page of threads with more than one page are rewritten:

example(3 pages) :
.../forumname/t-threadtitle-28.html
.../showthread.php?t=28&page=2
.../forumname/t-threadtitle-28-page-3.html

--

Immortal, i really appreciate your work and would say THX thousand times, but this thing is unuseable and doesnt work correctly(if I didnt do an error... but where?!).

Greetz - sysop2

Immortal 02-04-2006 01:05 PM

Quote:

Originally Posted by caislander
[Immortal,

Thanks for the response but when i apply the code change as is outlined in post 300 it fixes everything except the page 2 of a thread being sent to some other thread. So I over wrote that with the chance in post 316 and that gives me an error of
Code:

Parse error: parse error, unexpected '}' in..../www/html/forums/includes/functions.php(4320) : eval()'d code on line 606
What have I done wrong?

Double check that make sure you did it correctly. If you can wait until later today, I'll have a new release with these fixes builtin plus the merge fix.

Quote:

Originally Posted by logical.angel
Heh Immortal, I must say a great thanks to you, i've not used vRewrite yet, just heard of it today, but i've followed this thread, you really must be having a great patience to keep up working with vRewrite and additionally help with support issues.
Anyways, i'll try to get my whole hackers.mu crew to work with that bug in vRewrite maybe someone might figure out what's wrong.
Anywayz, great job.

Thanks, that's very kind of you :)

Quote:

Originally Posted by sysop2
Hello all, i'm new here.

what am i doing wrong?
I took a clean vbulletin and installed that product.

Forum rewriting works.

Thread rewriting doesnt:
Only the 1st Thread in a forum hast se-friendly urls.
Only the 1st and the last page of threads with more than one page are rewritten:

example(3 pages) :
.../forumname/t-threadtitle-28.html
.../showthread.php?t=28&page=2
.../forumname/t-threadtitle-28-page-3.html

--

Immortal, i really appreciate your work and would say THX thousand times, but this thing is unuseable and doesnt work correctly(if I didnt do an error... but where?!).

Greetz - sysop2

The fix was issued a bit ago. A new release should be released today with this fix builtin.

Snake 02-04-2006 05:25 PM

Oooo I can't wait... :D

Immortal 02-04-2006 06:18 PM

I have fixed all known errors. We are currently testing it out on my live board before I release to y'all :)

sysop2 02-04-2006 09:22 PM

:surprised: great news mate, keep up the good work
hope you release it soon :)

caislander 02-04-2006 11:33 PM

Quote:

Originally Posted by Immortal
I have fixed all known errors. We are currently testing it out on my live board before I release to y'all :)

Awesome :)

Immortal 02-05-2006 12:10 AM

vRewrite - v3arcade Rewrite

Just something I just whipped up.

Styles & Templates->v3 arcade->arcade_game_bit

Find:
Code:

<div style="padding-bottom: 4px"><a href="arcade.php?do=play&gameid=$game[gameid]"><strong>$game[title]</strong></a></div>
Replace with:
Code:

<div style="padding-bottom: 4px"><a href="arcade/games/$game[gameid].html"><strong>$game[title]</strong></a></div>
Find:
Code:

      <a href="arcade.php?do=play&gameid=$game[gameid]">$vbphrase[play_now]</a> </td>
Replace with:
Code:

<a href="arcade/games/$game[gameid].html">$vbphrase[play_now]</a>
[code]
Open up v3 arcade->arcade_headinclude at to the very end:
Code:

<base href="$vboptions[bburl]/" />
Add this to your .htaccess with the other RewriteRules:
Code:

RewriteRule ^arcade/games/(.*) arcade.php?do=play&gameid=$1 [L]

I may add other rules if I get unlazy in the future ;)

Immortal 02-05-2006 01:43 AM

Just an update..no way am I going to get done with this tonight.

1) Merge is still not working. Thanks preg_match.
2) Forumdisplay pages is not working. Thanks preg_match_all.
3) Showthread pages is not working. Thanks preg_match_all.
4) Archive links are not redirected yet.

Urgghh...

sysop2 02-05-2006 09:18 AM

awww :(
ok i see theres no reason to be euphoric... i'll check this thread later in a few days... awww again.

Greetz

sysop2 02-06-2006 04:09 PM

Hi mate, any news on this? :smoke:

SCI 02-06-2006 04:32 PM

Anyone have a quick fix to make all instances of /forum/index.php to just /forum/ ?

I edited the breadcrmb nav but the rest of the URL are still index.php in there.

Thanks

xtreme-mobile 02-06-2006 04:36 PM

Quote:

Originally Posted by Immortal
vBulletin ACP->Plugin Manager

There should be 3 plugins that concern vRewrite. Make sure only vRewrite (it is under the global_complete hook), and the vRewrite WOL (under online_preprocess or something like that). Then there is a 3rd one, disable this. This should not be enabled as it does not work correctly currently.

yeh thats better, ive disabled the redirects one :D

cheers

Immortal 02-06-2006 06:13 PM

Quote:

Originally Posted by sysop2
Hi mate, any news on this? :smoke:


We're playing the waiting game again on another thread....

Quote:

Originally Posted by SCI
Anyone have a quick fix to make all instances of /forum/index.php to just /forum/ ?

I edited the breadcrmb nav but the rest of the URL are still index.php in there.

Thanks

Sadly, it can't easily be done AFAIK.

Quote:

Originally Posted by xtreme-mobile
yeh thats better, ive disabled the redirects one

cheers

In 1.0 that plugin actually works! :D

xtreme-mobile 02-06-2006 06:29 PM

ive had to uninstall it altogether now for the moment, for some reason when the product it active i cant use the attachements button, it always says page can not be displayed

yet when i disable it the forum attachmenst work fine, strange!!!1

gonna test the attachemenst for an hour or so and try and re-install see if its definatly this product

Immortal 02-06-2006 06:43 PM

There has been a confirmed IE bug that causes this. But since, this is beyond my jurisdiction, I can't do anything sadly until IE fixes it...

Now that I think about it...I may have fixed it in 1.0 - not sure.

DKN 02-07-2006 12:39 PM

I had to uninstall this as well because the posting interface wasn't clickable, like the smilies, link button, img button, etc. Just the text area was clickable.

Immortal 02-07-2006 06:12 PM

Quote:

Originally Posted by DKN
I had to uninstall this as well because the posting interface wasn't clickable, like the smilies, link button, img button, etc. Just the text area was clickable.

https://vborg.vbsupport.ru/showpost....&postcount=376 ;)

Hanif 02-08-2006 08:23 PM

Immortal,

Any updates ma man???

Kind regards,

Hanif

Immortal 02-08-2006 09:14 PM

Still waiting...seems a lot of vB.orgers doesn't have the time nor can they try and find some time to help others, heh. :(

Brandon Sheley 02-09-2006 04:01 AM

I wish I could help you man..

i have a test board setup when i was trying the new shop out..
I'd be more then happy to try and help you.. :)

Hanif 02-09-2006 06:18 AM

Hi Immortal,

I'm not a coder but I'm sure I can help you out in other ways. Got a tet board and some time to help you. Let me know dude.

Kind regards,

Hanif

Immortal 02-11-2006 01:24 AM

I'm almost there folks! :)

SoftWareRevue 02-11-2006 02:08 AM

Go Tyler, go!

Brandon Sheley 02-11-2006 02:14 AM

don't forget to test see that it works with the eShop ;)

seems vbseo had some issues with it, not sure

let us know if we can do anything to help

Immortal 02-11-2006 02:23 AM

Well, I just want to get 1.0 released. Then I'll worry about any hack conflicts. :)

Brandon Sheley 02-11-2006 03:35 AM

sounds good, anyway i can help ?

adhari_com 02-11-2006 04:59 AM

does it function properly with apache 1.3 installed as CGI?

MamboCube 02-11-2006 08:58 AM

where is the htaccess file? im abit new to all this so it mght be a dumb question. Ive done everything else and it is rewriting the directories, but it cant access the page. The install guide keeps reffering to a .htaccess file, but there isnt one included in the the downloaded folder.

Hope you guys can help me out!!

redlabour 02-11-2006 09:32 AM

@MamboCube - in the Download in First Posting.

I like to see the Templateedits done by the Plugin.

MamboCube 02-11-2006 09:42 AM

found it now, because im on a Mac, it doesn't show the .htaccess file. Although most mac owners probably know this it may be an idea to put this down in the install guide or in the first post incase newbies (like myself) think there is a problem with the download.

Also is there anyway i can remove the copyright? through donation etc?

Immortal 02-11-2006 03:32 PM

Quote:

Originally Posted by Loco.M
sounds good, anyway i can help ?

Not currently, thanks for the offer.

Quote:

Originally Posted by adhari_com
does it function properly with apache 1.3 installed as CGI?

Should as long at mod_rewrite is enabled.

Quote:

Originally Posted by MamboCube
Also is there anyway i can remove the copyright? through donation etc?

Yup, just PM me with how much you think is right, and I'll let ya know :)

Impreza04 02-12-2006 09:16 PM

Quote:

Originally Posted by Immortal
Quote:

Some of my member looks look like this

http://www.friendcodes.com/forums/m.../corey-1.html05

That person's user name is not "corey". THat is actually my user name.
I've seen this a few times. However, I cannot reproduce this on a unhacked forum.

Im getting this too, Every user up userid 9 works fine, then user id 10's link becomes u-impreza04-1.html1 for userid 11, u-impreza04-1.html0 for user 10 etc etc

King Internet 02-13-2006 08:34 PM

I've looked at the various free SEO stuff for vBulletin, and have wondered this: why do the rewrite urls have .html on them? It looks ugly. It'd be awesome to have no extentions so vBulletin matches the rest of my site.

Immortal 02-13-2006 09:19 PM

Quote:

Originally Posted by King Internet
I've looked at the various free SEO stuff for vBulletin, and have wondered this: why do the rewrite urls have .html on them? It looks ugly. It'd be awesome to have no extentions so vBulletin matches the rest of my site.

.html or any extension helps mod_rewrite find the correct ID. IMHO, I think .html is the best, and what I use on my personal site. But then again, that's just my opinion :)

rootnik 02-14-2006 01:08 AM

Does anybody have a working htaccess.ini for the isapi_rewrite module(ISS)?

Immortal 02-14-2006 02:08 AM

AWS said he had to modify it a bit for IIS. You may want to PM him :)

AWS 02-14-2006 02:55 AM

Quote:

Originally Posted by rootnik
Does anybody have a working htaccess.ini for the isapi_rewrite module(ISS)?

Use the rules from the .htaccess file in the zip. Take out the rerrite engine on line and change the ^ at the beginning of each line to a /.

MamboCube 02-14-2006 02:58 PM

not quite sure if this is working for anybody else but i cant seem to use any of the thread tools, i just get an error message saying it cant find the url, anyone know about this?

yayvb 02-14-2006 06:00 PM

Hi, I think that I have made a lot of progress with the problems that I was having earlier (ie. only the first 'last thread' on forum page would be rewritten and also if multi page thread, page 1 worked but others directed to wrong threads).

What I did was use the updated code from Immortal found here:
https://vborg.vbsupport.ru/showpost....&postcount=316

I updated the code but also received the parse error that another member had mentioned. I saw that it looks like a previous } was no longer needed.

So I found:
Code:

#------------------------------
# misc pages
#------------------------------
$output = str_replace("search.php?do=getnew","search-getnew.html",$output);
$output = str_replace("search.php?do=getdaily","search-getdaily.html",$output);
$output = str_replace("forumdisplay.php?do=markread","markread.html",$output);
}

and just removed the } and that got rid of the parse error.

------------------------------------------------

Now everything is rewritten appropriately except multi pages aren't working. If you click on a page 2 link I get a page cannot be displayed message. I think it has something to do with my .htaccess file although I DO see the line that should take care of this.

Here are the links to a 1st and 2nd page of a multi page thread.
Before using vRewrite:
Page 1 link:
http://www.420boards.com/showthread.php?t=385

Page 2 link:
http://www.420boards.com/showthread.php?t=385&page=2

After vRewrite (multi page thread)
Page1 link:
http://www.420boards.com/smokers-lou...rbowl-385.html


Page2 link: (page cannot be displayed but same link as before rewrite)
http://www.420boards.com/showthread.php?t=385&page=2

Here is the htaccess file that I am using
Code:

RewriteEngine On
RewriteBase /
# Default

RewriteRule ^f-(.*)-page-(.*)-(.*).html forumdisplay.php?f=$1&page=$2&order=$3
RewriteRule ^f-(.*)-(.*).html forumdisplay.php?f=$2 [L]
RewriteRule ^u-(.*)-(.*).html member.php?u=$2 [L]
RewriteRule ^memberlist-(.*)-(.*)-(.*)-(.*).html memberlist.php?ltr=$1&pp=$2&sort=$3&order=$4 [L]
RewriteRule ^(.*)/t-(.*)-(.*).html showthread.php?t=$3&is_vrewrite [L]
RewriteRule ^(.*)-(.*)-lastpost.html showthread.php?goto=lastpost&t=$2 [L]
RewriteRule ^(.*)-(.*)-newpost.html showthread.php?goto=newpost&t=$2 [L]
RewriteRule ^(.*)-(.*)-lastpost.html showthread.php?goto=lastpost&t=$2 [L]
RewriteRule ^(.*)-(.*)-(.*).html showthread.php?goto=$3&t=$2 [L]
RewriteRule ^(.*)/t-(.*)-(.*)-page-(.*).html showthread.php?t=$3&page=$4 [L]
RewriteRule ^markread.html forumdisplay.php?do=markread [L]
RewriteRule ^(.*)/p-(.*)-(.*).html showthread.php?p=$3 [L]
RewriteRule ^print-(.*)-(.*).html printthread.php?t=$2 [L]
RewriteRule ^sendtofriend-(.*)-(.*).html sendmessage.php?do=sendtofriend&t=$2 [L]
RewriteRule ^search-(.*).html search.php?do=$1 [L]
RewriteRule ^(.*)-(.*)/newthread.php newthread.php?do=newthread&f=$2[L]
RewriteRule ^(.*)/newpostnoquote-(.*).php newreply.php?do=newreply&noquote=1&p=$2[L]
RewriteRule ^(.*)/newpost-(.*).php newreply.php?do=newreply&p=$2[L]
RewriteRule ^p-(.*).html showpost.php?p=$1&postcount=$1 [L]



# Other options
RewriteRule ^siteforums/(.*)-(.*).html forumdisplay.php?f=$2 [L]
RewriteRule ^members/(.*)-(.*).html member.php?u=$2 [L]
RewriteRule ^(.*)/(.*)-(.*).html showthread.php?t=$3 [L]

# Sitemap
RewriteRule ^(sitemap.*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]



All times are GMT. The time now is 09:25 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.02384 seconds
  • Memory Usage 1,853KB
  • 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
  • (10)bbcode_code_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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