Welcome, Guest. Please Login or Register.
November 25, 2024, 09:39:31 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 ... 10 11 [12] 13 14 ... 18 Reply Ignore Print
Author Topic: [beta 1.5.4] Smart URLs v2.1  (Read 212916 times)
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #165 on: December 13, 2003, 02:47:09 AM »
Reply with quote

that's odd... did you apply the change I told you for that? in subs.php, you should have this

         if($modSettings['smartUrl'] == 1 && ($modSettings['sUrl_counter'] == 1 || $settings[7] == 'Administrator')){
            global $urlCount, $sUrl_time;
            $sUrl_time = round($sUrl_time, 3);
            $sUrl_counter = '<br />Smart URLs: +'.$sUrl_time.'s smart_url('.$urlCount.')';
         }else
            $sUrl_counter = '';


that means that if Smart URLs is on and you're either the admin or the counter is on, then it'll show 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
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #166 on: December 13, 2003, 02:49:39 AM »
Reply with quote

Quote from: Anguz on December 13, 2003, 02:26:26 AM
how stupid... I forget to make that var global too

find this line in display.php
      global $kwYabbse, $kwCateg, $boardCat, $kwTitleSep, $currentboard;
and change it to
      global $kwYabbse, $kwCateg, $boardCat, $kwBoard, $kwTitleSep, $currentboard;

sorry  :P

I'll fix the mod file right now... done

did the separator work well? did the keywords with dashes between them, show without them in the title? I'm guessing you're not using a kw for the whole community, so it won't show

Ok, that fixed it.  Only thing is the keywords I'm using in the URL's don't really make sense in the Title, so I turned it off, but it does work.
Logged
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #167 on: December 13, 2003, 02:53:01 AM »
Reply with quote

Quote from: Anguz on December 13, 2003, 02:47:09 AM
that's odd... did you apply the change I told you for that? in subs.php, you should have this

         if($modSettings['smartUrl'] == 1 && ($modSettings['sUrl_counter'] == 1 || $settings[7] == 'Administrator')){
            global $urlCount, $sUrl_time;
            $sUrl_time = round($sUrl_time, 3);
            $sUrl_counter = '<br />Smart URLs: +'.$sUrl_time.'s smart_url('.$urlCount.')';
         }else
            $sUrl_counter = '';


that means that if Smart URLs is on and you're either the admin or the counter is on, then it'll show it

This is what you told me to do:

<search for>
         if($modSettings['smartUrl'] == 1 && $modSettings['sUrl_counter'] == 1){
</search for>

<replace>
         if($modSettings['smartUrl'] == 1 && ($modSettings['sUrl_counter'] == 1 || $settings[7] == 'Administrator')){


I just varified that it is, in fact, there, but it doesn't work.  That section of my subs.php looks like:


      $curline = $yytemplate[$i];
      if (!$yycopyin && strstr($curline,'<yabb copyright>'))
         $yycopyin = 1;
      $tags = array();
      while (preg_match("/<yabb\s+(\w+)>/", $curline, $tags))
      {
         $temp = "yy$tags[1]";
         if (function_exists($temp))
         {
            ob_start();
            $temp();
            $str = ob_get_contents();
            $curline = preg_replace("/<yabb\s+$tags[1]>/", $str, $curline);
            ob_end_clean();
         }
         else
            $curline = preg_replace("/<yabb\s+$tags[1]>/",$$temp,$curline);
      }
      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 || $settings[7] == 'Administrator')){
            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);
      }

      echo "$curline\n";
   }
Logged
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #168 on: December 13, 2003, 03:02:21 AM »
Reply with quote

Scratch all that stuff about the counter.

* dschwab9 did a typo in subs.php  ;D
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #169 on: December 13, 2003, 03:02:32 AM »
Reply with quote

the code looks alright... and if it's working like that, then I should be able to see the counter, but it's not there

« Last Edit: December 13, 2003, 03:09:12 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 v2.1
« Reply #170 on: December 13, 2003, 03:03:44 AM »
Reply with quote

Quote from: dschwab9 on December 13, 2003, 03:02:21 AM
Scratch all that stuff about the counter.

* dschwab9 did a typo in subs.php  ;D

lol I was really scratching my head  ;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
pege
Full Member
***
Posts: 146


Re:[beta 1.5.4] Smart Urls v2.1
« Reply #171 on: December 13, 2003, 02:51:25 PM »
Reply with quote

man....googlebot and a few other engines hit my site over the last couple days.  the most links they spidered was 13 out of 390 posts.  any tips?

moved the page to

www.pege.net
Logged
Cerberus
Full Member
***
Posts: 100


Who's a llama?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #172 on: December 13, 2003, 05:55:16 PM »
Reply with quote

After reading the last posts I've decided that I'll wait a bit to see a "working" version ;D
Logged

Best Regards, Cerberus
Check out http://www.pocketpcrussia.com :)
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #173 on: December 13, 2003, 06:42:13 PM »
Reply with quote

I thought it was working fine already... what's wrong that wasn't fixed? maybe I missed 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
Cerberus
Full Member
***
Posts: 100


Who's a llama?!

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

I don't know, but I'd like to install a version which has been completely tested to prevent possible problems on my website.

PS: the version 1 is great too ;) ;D (truly).
Logged

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


I'm a llama!

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

Quote from: Cerberus on December 13, 2003, 10:02:46 PM
I don't know, but I'd like to install a version which has been completely tested to prevent possible problems on my website.

PS: the version 1 is great too ;) ;D (truly).

I'm running 2.1, and it works fine - http://bbs.zuwharrie.com/
Logged
dschwab9
Full Member
***
Posts: 144


I'm a llama!

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

Quote from: pege on December 13, 2003, 02:51:25 PM
man....googlebot and a few other engines hit my site over the last couple days.  the most links they spidered was 13 out of 390 posts.  any tips?

moved the page to

www.pege.net

Google is not spidering right now - they are updating their cached version of existing pages.  I'm seeing the same thing on all of my sites.  They are only visiting pages that are already in the index it appears.  I would expect another deep crawl in a week or too based on the schedule I've been seeing.
Logged
pege
Full Member
***
Posts: 146


Re:[beta 1.5.4] Smart Urls v2.1
« Reply #177 on: December 13, 2003, 11:56:15 PM »
Reply with quote

Quote from: Anguz on December 13, 2003, 06:42:13 PM
I thought it was working fine already... what's wrong that wasn't fixed? maybe I missed it

You did a good job Anguz.  It was just my ignorance about how Google is crawling the pages right now.  This program does just what it says, and it runs stable.  Thanks!
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #178 on: December 14, 2003, 12:23:08 AM »
Reply with quote

I'm glad to hear that guys... let me know as soon as a bug crawls out, if there's any left that is

also, I want to mention an advantage I just noticed, well, I thought of it originally, but had forgotten it since and now i remembered  ;D

when I start typing my community's url, I get a list of the urls I've visited that start the same, so I can choose to jump to the one i'm looking for much faster

this is not new, but what's new, is that now I can tell what thread it is, or at least the board, from the keywords in the url... where before I had to go to the index to find my way

I don't know if that made sense, I probably didn't say it right  ::)

for this purpose, I had thought of including the title in the url as a directory too, but then discarded it cause it'd make the url too long lol
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
Cerberus
Full Member
***
Posts: 100


Who's a llama?!

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

I've installed by hand the v2.1 and I have a problem. When I click on a board link I'm being redirected to the main page ???. Could this be a pfabb-related issue ???.
Logged

Best Regards, Cerberus
Check out http://www.pocketpcrussia.com :)
Pages: 1 ... 10 11 [12] 13 14 ... 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.033 seconds with 20 queries.