Welcome, Guest. Please Login or Register.
November 25, 2024, 10:32:28 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [beta 1.5.4] Smart URLs v2.1 « previous next »
Pages: 1 ... 8 9 [10] 11 12 ... 18 Reply Ignore Print
Author Topic: [beta 1.5.4] Smart URLs v2.1  (Read 212921 times)
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.0
« Reply #135 on: December 10, 2003, 09:28:45 PM »
Reply with quote

Quote from: dschwab9 on December 10, 2003, 06:15:22 AM
One more thing for you - the counter - shouldn't that be visible only to admins?  It seems to show all the time if it's turned on.

I changed it now... it'll show always to the admin

and when checked in modsettings, it'll show to everyone else too

if($modSettings['smartUrl'] == 1 && ($modSettings['sUrl_counter'] == 1 || $settings[7] == 'Administrator')){
« Last Edit: December 10, 2003, 09:33:00 PM by Anguz » Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #136 on: December 10, 2003, 09:34:29 PM »
Reply with quote

Man!  Right after I spend 2 hours installing this thing, you go and make a new version  ::)  ;D

Do you mind posting what files you changed between 2.0 and 2.1?
« Last Edit: December 10, 2003, 10:00:38 PM by dschwab9 » Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #137 on: December 10, 2003, 09:57:53 PM »
Reply with quote

Quote from: dschwab9 on December 10, 2003, 09:34:29 PM
Man!  Right after I spend 2 hours installing this thing, you go and make a new version  ::)  ;D

Do you ming posting what files you changed between 2.0 and 2.1?

sure, give me 5 minutes and there'll be a new post with the changes
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #138 on: December 10, 2003, 10:09:46 PM »
Reply with quote

these are the changes I did in the mod a while ago, I wrote it as a mod file so you just apply it to the modded files

since you may have error with the tabs and spaces if posting the code, here's the file

http://anguz.net/yabbse/mods/sUrl_v2-2.1.txt
« Last Edit: December 10, 2003, 10:34:04 PM by Anguz » Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.0
« Reply #139 on: December 10, 2003, 10:16:40 PM »
Reply with quote

Quote from: Anguz on December 10, 2003, 09:23:20 PM
well... I'm trying to stay away from changing every url, that's what I was doing before and was way slower in relative_url, so I'll stick to this way of doing it, only modifying urls in links to boards and threads
That seems to work great.  Google is crawling my ste right now, and I'm seeing very little in the error log.  Before, it would click on all the "Post" buttons, and I would get thousands of errors about not being logged in.

Quote from: Anguz on December 10, 2003, 09:23:20 PM
can't you use a regex to detect only those urls and rewrite them? you could use the file extension in modsettings to identify them maybe, or the kw for the whole community, which will only be used in those urls, or a combination of both... if not using neither of them, maybe detecting the new format for boards or threads...  \/(b|t)([0-9]+) maybe?
That would work, but the problem is you have to have something that always stays the same (or at least the same format) to detect.  If you're detecting the entire forum keyword, why not just turn off the keyword and set it as an Apache alias to index.php (like I did to change index.php to content)?
Logged
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #140 on: December 10, 2003, 10:19:51 PM »
Reply with quote

Quote from: Anguz on December 10, 2003, 10:09:46 PM
these are the changes I did in the mod a while ago, I wrote it as a mod file so you just apply it to the modded files

Awesome!  Thanks.

Quote from: Anguz on December 10, 2003, 10:09:46 PM
since you may have error with the tabs and spaces, here's the file

http://anguz.net/yabbse/mods/sUrl_v2-2.1.txt

Actually, the problem I have is mainly with the database querries.  Nearly every querry in my entire forum has at least one field added, so it doesn't detect the line.

Is there a way to do that other than searching and replacing the entire line?  Add another line after it, maybe?
Logged
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #141 on: December 10, 2003, 10:22:36 PM »
Reply with quote

I just realized that the relative URLS and cookies and multiple domain names all work together too!

* dschwab9 like!

I have http://www.zukiweb.com/ and http://bbs.zuwharrie.com/ and a couple other names pointing to my forum.  Seems that when browsing view one of my secondary names, all the URL's remain relative, but when I click login or register, I get directed to zuwharrie.com, which is where the cookie is.
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #142 on: December 10, 2003, 10:31:30 PM »
Reply with quote

QuoteI just realized that the relative URLS and cookies and multiple domain names all work together too!

* dschwab9 like!

I have http://www.zukiweb.com/ and http://bbs.zuwharrie.com/ and a couple other names pointing to my forum.  Seems that when browsing view one of my secondary names, all the URL's remain relative, but when I click login or register, I get directed to zuwharrie.com, which is where the cookie is.
as long as you don't hit one of the links with full urls, being absolute, they'll remain on the name you called it from :)

QuoteActually, the problem I have is mainly with the database querries.  Nearly every querry in my entire forum has at least one field added, so it doesn't detect the line.

Is there a way to do that other than searching and replacing the entire line?  Add another line after it, maybe?
well... I don't think boardmod can do that, only full lines, but why don't you try applying that update, maybe no errors or very few show up, saving you the trouble of changing some by hand  :-\

QuoteAwesome!  Thanks.
;)
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #143 on: December 10, 2003, 10:44:23 PM »
Reply with quote

That seems to work great.  Google is crawling my ste right now, and I'm seeing very little in the error log.  Before, it would click on all the "Post" buttons, and I would get thousands of errors about not being logged in.
;)

That would work, but the problem is you have to have something that always stays the same (or at least the same format) to detect.  If you're detecting the entire forum keyword, why not just turn off the keyword and set it as an Apache alias to index.php (like I did to change index.php to content)?
hmm... it'd be a lot harder to change the forum that way, since you have to change many more things to make it work... if you use the forum keyword, it's easy to detect those urls and rename them to the correct url

I'm really not experieced with Apache at all, you know more, so I try to keep it simple... as long as it works... maybe the way I approach the mod_rewrite format is wrong  :P

but I believe that you can have a url like this a detect it using any or all of the parts I'm highlighting

http://domain.tld/community/categ/board/t123-15.htm

and rewrite it as

http://domain.tld/yabbse/index.php/t123-15
« Last Edit: December 10, 2003, 10:46:58 PM by Anguz » Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #144 on: December 10, 2003, 10:51:34 PM »
Reply with quote

Quote from: dschwab9 on December 10, 2003, 10:22:36 PM
I just realized that the relative URLS and cookies and multiple domain names all work together too!

* dschwab9 like!

I have http://www.zukiweb.com/ and http://bbs.zuwharrie.com/ and a couple other names pointing to my forum.  Seems that when browsing view one of my secondary names, all the URL's remain relative, but when I click login or register, I get directed to zuwharrie.com, which is where the cookie is.

and I just realized that working like this, you can have google index your whole community again, cause it's all under a different domain, without noticing that it's just the same... so you'll have that many more chances of showing up in a search

right now you only have the first page under that domain http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=site:www%2Ezukiweb%2Ecom+BBS, but next time google goes that that domain, it'll spider everything  8)

also, since the other links point to the url where the forum really is, which I think is bbs.zuwharrie.com, it may help increase your link popularity a bit hehe ;D
« Last Edit: December 10, 2003, 10:56:41 PM by Anguz » Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #145 on: December 10, 2003, 11:11:29 PM »
Reply with quote

Since I have:

$scripturl = "/content";
$cgi = "$boardurl/content?board=$board";


In Subs.php, the URL's that do not get re-written are absolute as well.  So, you never leave the domain until you click Login, Register, or Search.

Maybe you should add that to your mod as well?

I'm thinking about creating another alias and setting it up such that threads and stuff are http://bbs.zuwharrie.com/content/tech/samurai/t2731.htm

and the stuff that doesn't get re-written is http://bbs.zuwharrie.com/forum?board=12;action=post;title=Start%2Bnew%2Bthread

That would eliminate any possibility of the engine thinking content/ and content? are the same thing (if that matters)
« Last Edit: December 10, 2003, 11:15:45 PM by dschwab9 » Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #146 on: December 10, 2003, 11:41:55 PM »
Reply with quote

well.. the links to boards and threads are made absolute by the mod already

about the rewrite, it'd be good if you can write a rule that covers all the categs/boards not depeding on their keywords

sorry if I didn't get it, I still get a bit confused with the alias thing  :P
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #147 on: December 10, 2003, 11:51:04 PM »
Reply with quote

Quote from: Anguz on December 10, 2003, 11:41:55 PM
well.. the links to boards and threads are made absolute by the mod already
But there are still some that in old format, like the recent posts list and the "post, quote, and reply" pages.
Those links contain the complete URL, and would get redirected to the main domain everytime you click them.  By changing the $scripturl in Subs.php, they become relative as well, so you can browse every thread from every domain name, but when you click login or register, you go to the main domain.


Quote from: Anguz on December 10, 2003, 11:41:55 PMabout the rewrite, it'd be good if you can write a rule that covers all the categs/boards not depeding on their keywords

How would you do that, tho?  There's nothing in the URL's that consistant enough to pickup with a rewrite rule.  And, since you can have boards and cats without key words, some URLs look like http://bbs.zuwharrie.com/content/b1.htm and some are http://bbs.zuwharrie.com/content/tech/samurai/b12.htm on the same forum.
You can't rewrite based on the extension, because there may be real htm files in the same directory you don't want to rewrite.

Quote from: Anguz on December 10, 2003, 11:41:55 PM
sorry if I didn't get it, I still get a bit confused with the alias thing  :P

The alias is just another method for calling index.php.

For example, click http://bbs.zuwharrie.com/index.php/tech/samurai/b12.htm
and then
http://bbs.zuwharrie.com/content/tech/samurai/b12.htm
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #148 on: December 11, 2003, 12:04:24 AM »
Reply with quote

QuoteBut there are still some that in old format, like the recent posts list and the "post, quote, and reply" pages.
Those links contain the complete URL, and would get redirected to the main domain everytime you click them.  By changing the $scripturl in Subs.php, they become relative as well, so you can browse every thread from every domain name, but when you click login or register, you go to the main domain.
what you say would be another mod... this is what relative_url did, but it took to long... also, it doesn't matter if those links point to the other domain, if all the ones pointing to boards and threads remain in the same one ;)

QuoteHow would you do that, tho?  There's nothing in the URL's that consistant enough to pickup with a rewrite rule.  And, since you can have boards and cats without key words, some URLs look like http://bbs.zuwharrie.com/content/b1.htm and some are http://bbs.zuwharrie.com/content/tech/samurai/b12.htm on the same forum.
You can't rewrite based on the extension, because there may be real htm files in the same directory you don't want to rewrite.
you're right about the file extension... but you could use the regex I mentioned before or the dir with the keyword for the community you set in modsettings...

you could even change the file extension to something like ".rw.htm", which won't appear in any other url

http://domain.tld/t123-15.rw.htm
« Last Edit: December 11, 2003, 12:07:28 AM by Anguz » Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #149 on: December 11, 2003, 12:09:40 AM »
Reply with quote

Quote from: Anguz on December 11, 2003, 12:04:24 AM
you're right about the file extension... but you could use the regex I mentioned before or the dir with the keyword for the community you set in modsettings...
That wouldn't work either because the number of digits in the board and thread number would vary (unless I'm just totally confused)

Quote from: Anguz on December 11, 2003, 12:04:24 AM
you could even change the file extension to something like ".rw.htm", and pick up the urls that have the regex above plus the new ".rw" flag...

http://domain.tld/t123-15.rw.htm
That would work.  Wonder if a double extension would have any bad effeects with the search engines, though?
Logged
Pages: 1 ... 8 9 [10] 11 12 ... 18 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [beta 1.5.4] Smart URLs v2.1 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.069 seconds with 20 queries.