Welcome, Guest. Please Login or Register.
May 06, 2024, 10:49:23 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [beta 1.5.4] Friendly URLs v1.3 « previous next »
Pages: [1] 2 3 4 Reply Ignore Print
Author Topic: [beta 1.5.4] Friendly URLs v1.3  (Read 29848 times)
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
[beta 1.5.4] Friendly URLs v1.3
« on: September 08, 2003, 03:46:45 PM »
Reply with quote

Friendly URLs spawned another two new mods that are better written and work a lot better too. After lots of testing and debugging, I got them working fine under all the circumstances I could think of.

Spider URLs
Absolute URLs

Remove Friendly URLs before installing those.

I'm locking this thread and removing the link to the zip file.

History:
03 SEP 14 removed mod
03 SEP 12 v1.3 fix prev_next links
03 SEP 10 v1.2 relative URLs
03 SEP 10 v1.15 added dschwab9's
03 SEP 08 v1.1 fixed search bug
03 SEP 08 v1 released
« Last Edit: September 14, 2003, 07:50:35 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
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:[beta 1.5.4] Friendly Urls v1.1
« Reply #1 on: September 09, 2003, 01:50:06 AM »
Reply with quote

I'm running pfabb, so that's probably part of my problem.. but anyway, here is what happens when I click a link to one of my boards:

http://127.0.0.1/mk/index.php/index.php/board-1

And the url just keeps stacking up like that with each click.

This is a board on my computer, as you can see from the url..
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Valconeye
Full Member
***
Posts: 190


Re:[beta 1.5.4] Friendly Urls v1.1
« Reply #2 on: September 09, 2003, 02:47:33 AM »
Reply with quote

i find it hard to belive your ip is 127.0.0.1
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Friendly Urls v1.1
« Reply #3 on: September 09, 2003, 02:59:40 AM »
Reply with quote

Quote from: Shadow's Pawn on September 09, 2003, 01:50:06 AM
I'm running pfabb, so that's probably part of my problem.. but anyway, here is what happens when I click a link to one of my boards:

http://127.0.0.1/mk/index.php/index.php/board-1

And the url just keeps stacking up like that with each click.

This is a board on my computer, as you can see from the url..

that's odd... it's most probably something in the url rewrite part, but I don't know why it's doing that to you

could you please zip your index.php and email it to me?
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
1979Z28
Sr. Member
****
Posts: 324


WWW
Re:[beta 1.5.4] Friendly Urls v1.1
« Reply #4 on: September 09, 2003, 03:08:06 AM »
Reply with quote

127.0.0.1 is the general IP shortcut to connect to yourself. EVERYBODY'S IP is that, by default. ;)
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:[beta 1.5.4] Friendly Urls v1.1
« Reply #5 on: September 09, 2003, 03:21:41 AM »
Reply with quote

Quote from: Valconeye on September 09, 2003, 02:47:33 AM
i find it hard to belive your ip is 127.0.0.1

Like I said, this is on my own computer.. i.e. localhost, which is 127.0.0.1

Anguz, I'll get that over to you.  Keep in mind I'm running Pfabb on that board, which is probably why I'm having problems.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Friendly Urls v1.1
« Reply #6 on: September 09, 2003, 03:29:42 AM »
Reply with quote

Quote from: Shadow's Pawn on September 09, 2003, 03:21:41 AM
Anguz, I'll get that over to you.  Keep in mind I'm running Pfabb on that board, which is probably why I'm having problems.

ok :)
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] Friendly Urls v1.1
« Reply #7 on: September 09, 2003, 06:45:54 AM »
Reply with quote

I can't really understand why it's doing that in your board, cause in mine it isn't...

I changed the code in the functions a bit to do a little test in your forum, tried it in my test forum and it works fine, maybe it solves your problem, but I can't be sure until you try it

#change urls to friendly format
ob_start('ob_friendly_url');
function ob_friendly_url($buffer)
{
   function rewrite_url($match) {
      if(strstr($match['1'], 'search2')) {
         return $match['0'];
      } else {
         $arr1 = array("=", ";", "&", "?");
         $arr2 = array("-", "_", "_", "/");
         $new = 'index.php' . str_replace($arr1, $arr2, $match['1']);
         return $new;
      }
   }
   return preg_replace_callback("/index.php([?\w;=&+%]+)/", "rewrite_url", $buffer);
}


let me know if it works please

is somebody else having the same problem Shadow's Pawn is?
« Last Edit: September 09, 2003, 10:01:23 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] Friendly Urls v1.1
« Reply #8 on: September 09, 2003, 01:56:42 PM »
Reply with quote

I just tried it and I'm having a different problem.  The links on the forum index are generated in the new format, but when I click any link, I'm getting a 404 error.  Any idea why that would happen?
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:[beta 1.5.4] Friendly Urls v1.1
« Reply #9 on: September 09, 2003, 02:05:19 PM »
Reply with quote

It's still doing the same thing..  due to the blocks and menu system of pfabb, I'm pretty sure.

Maybe I should post this over there and see if anyone has any ideas?  I'm thinking blocks.php probably needs some editting as well.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[beta 1.5.4] Friendly Urls v1.1
« Reply #10 on: September 09, 2003, 03:52:01 PM »
Reply with quote

Please remember:
- not to use this in conjunction with the Short URLs mod.
- not to use this on an IIS server.

-[Unknown]
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Friendly Urls v1.1
« Reply #11 on: September 09, 2003, 06:27:39 PM »
Reply with quote

Quote from: [Unknown] on September 09, 2003, 03:52:01 PM
Please remember:
- not to use this in conjunction with the Short URLs mod.
- not to use this on an IIS server.

-[Unknown]

Apache has a "look back" feature that scans backwards down the URL if it doesn't find what it's looking for, I don't know if IIS can work like that too, if someone knows, please tell me

about Short URLs mod, it's true, they wouldn't work as they are, they need to bit changed a bit so they could...

QuotePosted by: Shadow's Pawn  Posted on: Today at 09:05:19am  
It's still doing the same thing..  due to the blocks and menu system of pfabb, I'm pretty sure.

Maybe I should post this over there and see if anyone has any ideas?  I'm thinking blocks.php probably needs some editting as well.

ok, please let me know how it goes :)

QuotePosted by: dschwab9  Posted on: Today at 08:56:42am  
I just tried it and I'm having a different problem.  The links on the forum index are generated in the new format, but when I click any link, I'm getting a 404 error.  Any idea why that would happen?

this could be the IIS thing [Unknown] mentioned
« Last Edit: September 09, 2003, 07:11:38 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] Friendly Urls v1.1
« Reply #12 on: September 09, 2003, 09:38:44 PM »
Reply with quote

Quote from: Anguz on September 09, 2003, 06:27:39 PM
this could be the IIS thing [Unknown] mentioned

I'm not (and will never) run IIS.  It's an Apache server.

I think I know what's happening, just not sure why.  It seems that when apache sees a slash after index.php, it thinks it's a directory.

Basically, it's interpretting http://bbs.zuwharrie.com/index.php/board-33_action-display_threadid-9629 as a file called board-33_action-display_threadid-9629 in a directory called index.php.

Maybe theres a setting I should change in httpd.conf or php.ini?

Click on the link above and you'll see what I'm talking about.  I do not currently have the mod installed, but I get the exact same error when it is.
« Last Edit: September 09, 2003, 09:40:38 PM by dschwab9 » Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:[beta 1.5.4] Friendly Urls v1.1
« Reply #13 on: September 09, 2003, 09:59:33 PM »
Reply with quote

Quote from: dschwab9 on September 09, 2003, 09:38:44 PM
Quote from: Anguz on September 09, 2003, 06:27:39 PM
this could be the IIS thing [Unknown] mentioned

I'm not (and will never) run IIS.  It's an Apache server.

I think I know what's happening, just not sure why.  It seems that when apache sees a slash after index.php, it thinks it's a directory.

That would be why IIS doesn't work.

What version of Apache do you use?

-[Unknown]
Logged
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Friendly Urls v1.1
« Reply #14 on: September 09, 2003, 10:04:38 PM »
Reply with quote

Using version 2.0.40.  It may just be an apache2 thing?  I've looked for obvious things in httpd.conf, but I'm not an apache expert, so not sure I know what I'm looking for.
Logged
Pages: [1] 2 3 4 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [beta 1.5.4] Friendly URLs v1.3 « 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.017 seconds with 20 queries.