Welcome, Guest. Please Login or Register.
November 25, 2024, 03:39:29 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 ... 14 15 [16] 17 18 Reply Ignore Print
Author Topic: [beta 1.5.4] Smart URLs v2.1  (Read 212892 times)
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #225 on: January 16, 2004, 11:37:09 PM »
Reply with quote

Quote from: trystan on January 16, 2004, 09:09:23 PM
Dschwab9: (I added it to the .htaccess file because you can do that as a temporary thing - it's not ideal (just to see if indeed I was runnng on Apache 1.3.3 or 2.0. I couldn't put it into httpd.conf because if I did I would have to stop and restart Apache - and I don't have the privelages on the "managed" server to do it) :'(

You CANNOT put it in the .htaccess file AT ALL.  No way no how, ain't gonna work.  It absolutely HAS to go in httpd.conf.

Also, you do not have to restart apache for .htaccess to take effect - That's why it's slower.  htaccess is read everytime a page is requested.  http.conf is read once into memory when apache starts.

Many (actually most) apache config items cannot be specified in htaccess (imagine the security risk that would create)

If you don't have access to http.conf, you'll have to either get your host to do it, or switch to a host that has it enabled.
« Last Edit: January 16, 2004, 11:38:35 PM by dschwab9 » Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #226 on: January 16, 2004, 11:55:22 PM »
Reply with quote

Quote from: trystan on January 16, 2004, 10:54:09 PM
Right brilliant,  loaded it, and it says (amongst lots of other things):

SERVER_SOFTWARE    Apache/1.3.29 (Unix)

I don't know what it is then, can pathinfo be disabled in Apache 1.3.29? dunno... talk with your ISP and ask them to help you... they should :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 #227 on: January 17, 2004, 12:04:20 AM »
Reply with quote

Quote from: Anguz on January 16, 2004, 11:55:22 PM
can pathinfo be disabled in Apache 1.3.29?

Yes.  It's enabled by default, but you can put AcceptPathInfo = Off in httpd.conf and disable it.
Logged
trystan
Noobie
*
Posts: 13


Trystan

Re:[beta 1.5.4] Smart Urls v1.0
« Reply #228 on: January 17, 2004, 09:38:44 AM »
Reply with quote

Quote from: dschwab9 on November 11, 2003, 08:39:25 AM
You can set AcceptPathInfo On in your .htaccess as long as your host has AllowOverride turned on (they should, otherwise .htaccess wouldn't work at all)

.Htaccess is not the recomended method of turning it on, but you can do it that way.

The "AcceptPathInfo On" (or "off") is only a valid expression in Apache 2.x
So, the "lookback" feature cannot be diabled in Apache 1.3.29 using this command - it mus be another command.

(I do have access to the httpd.conf file (and can edit it) but like I said I can't stop & restart Apache - wrong permissions)
Logged
trystan
Noobie
*
Posts: 13


Trystan

Re:[beta 1.5.4] Smart Urls v2.1
« Reply #229 on: January 20, 2004, 10:44:06 AM »
Reply with quote

This is the reply I got from "One And One Internet" I asked them either to upgrade the Apache to 2.x or re-enable the "look back" feature of the Apache 1.3.29 that is installed. Bear in mind that it is a dedicated server for us, but it is a "managed" one:
QuoteThank you for your callThe look back feature on apache is disabled, it is a feature we do not allow with our hosting. If you have any further questions do not hesitate to contact us.Kind regardsDaniel BarnesTechnical Support1&1 Internet Ltd.

I'm stuck. Does anybody know which files to change? I have shell access, and I can get the server rebooted.
Logged
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #230 on: January 20, 2004, 12:49:57 PM »
Reply with quote

You're not going to be able to change httpd.conf unless you have root access, and assuming it's shared account, you most likely do not.
Logged
trystan
Noobie
*
Posts: 13


Trystan

Re:[beta 1.5.4] Smart Urls v2.1
« Reply #231 on: January 20, 2004, 01:02:15 PM »
Reply with quote

It's not a shared account. It's a managed dedicated server - ie. nobody else shares the server. Whoohoo!

I have shell access as an user and can edit the httpd.conf file as the permissions allow me to do it - since for some reason the "owner" of the httpd.conf file is me.



Logged
Fizzy
Full Member
***
Posts: 214


Re:[beta 1.5.4] Smart Urls v2.1
« Reply #232 on: January 28, 2004, 07:20:05 PM »
Reply with quote

Anguz,

I uploaded the mod last night and I have to say that this mod takes the award for being the single best mod ever.

Googles eating multiple pages like its going out of fashion.

Thank you for a fantastic mod.

Logged
trystan
Noobie
*
Posts: 13


Trystan

Re:[beta 1.5.4] Smart Urls v2.1
« Reply #233 on: January 28, 2004, 10:26:29 PM »
Reply with quote

....which bothes me that I still don't know how apache's 1.29 configuration could have been changed on my server for the "look back" feature to have been disabled... ANY IDEAS ANYBODY? (see my previous posts)
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #234 on: January 29, 2004, 05:02:23 AM »
Reply with quote

I just installed this on a very heavily modified install of Enigma.  I had to wrap a lot of my urls manually with the smart_url function, and it needs a bit of tweaking to fit my site, but it works.

http://www.shadowpawn.net

I'm going to go through and try and get all my urls using the smart_url function tomorrow.
« Last Edit: January 29, 2004, 05:12:14 AM by Shadow's Pawn » 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] Smart Urls v2.1
« Reply #235 on: January 29, 2004, 05:39:20 AM »
Reply with quote

Fizzy
that's great! :)

Trystan
I wish I could be of more help on that

Shadow's Pawn
wonderful! finally it worked with the portal! I'm really glad, thx for letting us know :D ... could you write the mod for Enigma? I'm sure many will appreciate it ;)
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
trystan
Noobie
*
Posts: 13


Trystan

Re:[beta 1.5.4] Smart Urls v2.1
« Reply #236 on: January 29, 2004, 02:39:59 PM »
Reply with quote

Ah! I've found something:

http://httpd.apache.org/docs/content-negotiation.html

The "look back" is a "MultiViews" thing...

I put:
Options MultiViews

in my .htaccess file and I got a "403 error" - forbidden..
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #237 on: January 31, 2004, 08:11:36 PM »
Reply with quote

My site is very highly modified, so I don't know if I can get the mod to work on a normal install of Enigma... although I've had quite a bit of success getting it to work with the blocks.
Since I don't have a visible boardindex, I haven't even bothered with doing any modifications with the boardindex.  So basically all I have done is installed the function into subs and the stuff for index.php, then wrapped urls in the blocks manually.

If you look at my site, you'll see what I mean.  You can't even tell I had the forums installed unless you know what you are looking at.

However, I think I can probably get it working with a normal Enigma install, which I am going to try out later on since I have a couple other sites based on the portal that do use the forum section as well, so the mod would be very useful.

I'll post any progress here.
Logged

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


Re:[beta 1.5.4] Smart Urls v2.1
« Reply #238 on: February 02, 2004, 12:02:38 PM »
Reply with quote

I've noticed that I have a small problem with the Who's Online mod since introducing SmartUrl.

Basically it looks like Who's Online who.php relies on the "action=" tag to identify who is doing what on the forum. Now that the "action=display" has been removed any members viewing a thread on a URL of

yabbse/index.php/t1234.php

shows in the Who's Online list as
Viewing the main index of

I'm guessing that because the URL doesn't contain an "action=" it thinks that the member is looking at index.php.

I tracked down this in who.php


      else
         $userAction = $txt['who92'] . '<a href="' . $scripturl . '">' . $mbname . '</a>.';

which controls the index.php "main index" part and tries to incorporate


         $query3 = mysql_query("SELECT ID_TOPIC FROM {$db_prefix}messages WHERE ID_TOPIC = '$threadid' LIMIT 1") or database_error(__FILE__, __LINE__);    
            list($subject) = mysql_fetch_row($query3);  
             $userAction = $txt['who79'] . '<a href="' . $scripturl . '\/t' . $threadid . '.php">' . $subject . '</a>.';


But it doesn't give a result.

Any thoughts anyone on how work around the "action=" problem?
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #239 on: February 02, 2004, 06:43:53 PM »
Reply with quote

try this... go back to the unmodified who.php and look for this block

     /* action */
     $action_array = explode(';', $actionInfo);
     $index = 0;
     while ($index < count($action_array))
     {
        parse_str($action_array[$index]);
        $index++;
     }


add this after

      #Smart URL get vars
      if(empty($action) && empty($board) && empty($threadid) && $modSettings['smartUrl'] == 1 && $modSettings['sUrl_format'] == 'pathinfo' && preg_match('~/(b|t)\d+~', $actionInfo)){
         $arr = array_reverse(explode('/', $actionInfo));
         $arr = explode('.', $arr['0']);
         $arr = explode('-', $arr['0']);
         if($arr['0']{0} == 'b')
            $board = (int) substr($arr['0'], 1);
         if($arr['0']{0} == 't')
            $thread1 = (int) substr($arr['0'], 1);
         $start = $arr['1'];
         unset($arr);
         if(isset($thread1)){
            $result = mysql_query("SELECT ID_BOARD FROM {$db_prefix}topics WHERE ID_TOPIC= " . $thread1 . " LIMIT 1") or database_error(__FILE__, __LINE__);
            list($board) = mysql_fetch_row($result);
            mysql_free_result($result);
            $threadid = $thread1;
            $action = 'display';
            unset($thread1);
         }
      }


I haven't tried it though, let me know how if it worked
« Last Edit: February 02, 2004, 06:46:53 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
Pages: 1 ... 14 15 [16] 17 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.066 seconds with 20 queries.