Welcome, Guest. Please Login or Register.
November 25, 2024, 08:53:02 PM
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] Smart URLs v2.1 « previous next »
Pages: 1 ... 6 7 [8] 9 10 ... 18 Reply Ignore Print
Author Topic: [beta 1.5.4] Smart URLs v2.1  (Read 212913 times)
Cerberus
Full Member
***
Posts: 100


Who's a llama?!

WWW
Re:[beta 1.5.4] Smart Urls v1.0
« Reply #105 on: December 07, 2003, 11:10:13 PM »
Reply with quote

First of all, thanks! The version 2 seems to be great (I've just tried it on a clean YaBB SE install).

I've also tried to install by hand the version 1 on a super-modded pfabb. Well, it works :D !

BTW: I'm soon goin' back to linux ;D ::).
Logged

Best Regards, Cerberus
Check out http://www.pocketpcrussia.com :)
pege
Full Member
***
Posts: 146


Re:[beta 1.5.4] Smart Urls v1.0
« Reply #106 on: December 07, 2003, 11:27:57 PM »
Reply with quote

Quote from: Anguz on December 07, 2003, 07:54:47 PM
btw, your yabbse counter is shown twice, is it something in your template?

also, did you test the keywords?

ok, here it is in Subs.php

Quote
      if ($modSettings['timeLoadPageEnable'] == 1 && stristr($curline, '</body>'))
      {
         $time_end = getmicrotime();
         $time = round($time_end - $time_start, 3);
         $curline = preg_replace('/<\/body>/i', '<div align="center"><font size="1">' . $txt['yse301'] . $time . $txt['yse302'] . '</font></div></body>', $curline);
         if($modSettings['smartUrl'] == 1 && $modSettings['sUrl_counter'] == 1){
            global $urlCount, $sUrl_time;
            $sUrl_time = round($sUrl_time, 3);
            $sUrl_counter = '<br />Smart URLs: +'.$sUrl_time.'s smart_url('.$urlCount.')';
         }else
            $sUrl_counter = '';
         $time_end = getmicrotime();
         $time = round($time_end - $time_start, 3);
         $curline = preg_replace('/<\/body>/i', '<div align="center"><font size="1">' . $txt['yse301'] . $time . $txt['yse302'] . $sUrl_counter . '</font></div></body>', $curline);

should be

Quote
      if ($modSettings['timeLoadPageEnable'] == 1 && stristr($curline, '</body>'))
      {
         $time_end = getmicrotime();
         $time = round($time_end - $time_start, 3);
         if($modSettings['smartUrl'] == 1 && $modSettings['sUrl_counter'] == 1){
            global $urlCount, $sUrl_time;
            $sUrl_time = round($sUrl_time, 3);
            $sUrl_counter = '<br />Smart URLs: +'.$sUrl_time.'s smart_url('.$urlCount.')';
         }else
            $sUrl_counter = '';
         $time_end = getmicrotime();
         $time = round($time_end - $time_start, 3);
         $curline = preg_replace('/<\/body>/i', '<div align="center"><font size="1">' . $txt['yse301'] . $time . $txt['yse302'] . $sUrl_counter . '</font></div></body>', $curline);

that worked for me.

Yes, keywords works well, for forum and boards!  what a monster!


« Last Edit: December 07, 2003, 11:30:21 PM by pege » Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v1.0
« Reply #107 on: December 07, 2003, 11:32:14 PM »
Reply with quote

Quote from: Cerberus on December 07, 2003, 11:10:13 PM
First of all, thanks! The version 2 seems to be great (I've just tried it on a clean YaBB SE install).

I've also tried to install by hand the version 1 on a super-modded pfabb. Well, it works :D !

BTW: I'm soon goin' back to linux ;D ::).

great! I'd love some links to see them working with the mod :D

btw, doesn't pfabb need the op=forum thing in the new urls? does it work fine without it? also, are you being able to access the boards fine? it wouldn't work with Spider URLs and I didn't have the time to play with it to solve it, so it remained a mystery ;D

thank you for the feedback!

regarding going back to Linux, does it mean you're on IIS? is the 'onevar' format working fine then?
« Last Edit: December 08, 2003, 12:01:03 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
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v1.0
« Reply #108 on: December 07, 2003, 11:46:59 PM »
Reply with quote

pege, I found my mistake, in the mod file I used <add after> instead of <replace> for that step, sorry ;D

fixed the mod and updated the zip

that code block should look like this now

      if ($modSettings['timeLoadPageEnable'] == 1 && stristr($curline, '</body>'))
      {
         $time_end = getmicrotime();
         $time = round($time_end - $time_start, 3);
         if($modSettings['smartUrl'] == 1 && $modSettings['sUrl_counter'] == 1){
            global $urlCount, $sUrl_time;
            $sUrl_time = round($sUrl_time, 3);
            $sUrl_counter = '<br />Smart URLs: +'.$sUrl_time.'s smart_url('.$urlCount.')';
         }else
            $sUrl_counter = '';
         $curline = preg_replace('/<\/body>/i', '<div align="center"><font size="1">' . $txt['yse301'] . $time . $txt['yse302'] . $sUrl_counter . '</font></div></body>', $curline);
      }
« Last Edit: December 08, 2003, 12:03:16 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
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v1.0
« Reply #109 on: December 07, 2003, 11:55:39 PM »
Reply with quote

QuoteYes, keywords works well, for forum and boards!  what a monster!

sweet :D

did the keywords appear in the title well? I didn't see them in your board, but you could've disabled it in modsettings

for forum I understand you're talking about the one that covers the whole community... did the ones for category work fine too? or you didn't try them?
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
pege
Full Member
***
Posts: 146


Re:[beta 1.5.4] Smart Urls v2.0
« Reply #110 on: December 08, 2003, 04:55:55 AM »
Reply with quote

the keywords for title option is checked, but i'm not sure how they work.  the board title still appears in the tab.  still checking this out... :)
Logged
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.0
« Reply #111 on: December 08, 2003, 08:47:25 AM »
Reply with quote

Anguz, your board and Pege's both have a PHPSESSID in every link.  Should that be there?  A search engine will almost definately ignore any link with a session id in it (or at least severly limit the number of pages it indexes).
« Last Edit: December 08, 2003, 08:55:19 AM by dschwab9 » Logged
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.0
« Reply #112 on: December 08, 2003, 08:53:59 AM »
Reply with quote

The links look like this for me:

http://pege.net/yabbse/index.php/bible-answers/jesus/b4.htm?PHPSESSID=b6129b39043f11de60d821113d8390db
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.0
« Reply #113 on: December 08, 2003, 09:09:35 AM »
Reply with quote

I noticed the same thing, specially as a Guest... I don't really understand why, cause I have absolutely no experiece with sessions...

could someone that knows explain why this could be? excuse my ignorance :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
pege
Full Member
***
Posts: 146


Re:[beta 1.5.4] Smart Urls v2.0
« Reply #114 on: December 08, 2003, 02:28:02 PM »
Reply with quote

This article says Google filters out PHPSESSID from urls:

http://www.highrankings.com/forum/index.php?s=f559030a786cf78bdb7a1f423f19d937&showtopic=2078&st=0&#entry24907

I did a site search on www.laakademia.com, and the articles were spidered without session id, even though they appear when you visit the site.

One article about this says that the php session id is appended to the url in the event a cookie cannot be set.  

Quote
[this article was chached in google...the site is currently down]
www.codewalkers.com/archives/phpcoding/4872.html

RE: Session ID showing in URL

by nazly on October 31 2003, 03:09


When the session is initialized the session id is either stored in a cookie on the user side or is propagated in the URL. If I'm not mistaken the reason why it shows up in the URL because cookies are disabled.
Or if it happens eventually check whether this happens after you delete the cookies.

I noticed after you click around for a while on the forum, the session id is no longer in the url.  maybe something is keeping the cookie from loading or setting properly?  Or do we even need to worry, if Google filters "PHPSESSID"?
« Last Edit: December 08, 2003, 03:17:18 PM by pege » Logged
pege
Full Member
***
Posts: 146


Re:[beta 1.5.4] Smart Urls v2.0
« Reply #115 on: December 08, 2003, 05:06:30 PM »
Reply with quote

ok, here's a thread on this subject in SMF...

http://www.simplemachines.org/community/index.php?topic=2140

maybe it needs an    ob_end_clean(); somewhere.
« Last Edit: December 08, 2003, 06:24:35 PM by pege » Logged
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.0
« Reply #116 on: December 08, 2003, 10:04:33 PM »
Reply with quote

Have you actually read something *from google* saying they filter it out?  They do not release much information about their crawler or indexing methinds, so anything posted a site other than Google itself is generally either not true, or just speculation.

I have seen pages with PHPSESSID in the URL listed in google, so I'm pretty sure they do not filter it.
Logged
pege
Full Member
***
Posts: 146


Re:[beta 1.5.4] Smart Urls v2.0
« Reply #117 on: December 08, 2003, 10:18:34 PM »
Reply with quote

Quote from: dschwab9 on December 08, 2003, 10:04:33 PM
Have you actually read something *from google* saying they filter it out?...

well, i did a site search for Anguz's site, and the articles did not have the phpsessid.  when you go to the site yourself, however, the phpsessid shows up for the exact same articles.  
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.0
« Reply #118 on: December 08, 2003, 10:42:23 PM »
Reply with quote

it doesn't filter them

http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=site:hablajapones%2Eorg+HablaJapones

other than looking ugly, I don't know what bad it does

I'd like not to have it there, at least for the spiders... a solution could be to make Google register to the forum ;D
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.0
« Reply #119 on: December 08, 2003, 10:56:34 PM »
Reply with quote

you could do this

<edit file>
index.php
</edit file>

<search for>
if (function_exists('session_start'))
</search for>

<replace>
if (function_exists('session_start') && $username != 'Guest')
</replace>


but first I'd want to know if the session is actually useful when used with a Guest :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
Pages: 1 ... 6 7 [8] 9 10 ... 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.165 seconds with 20 queries.