Welcome, Guest. Please Login or Register.
November 25, 2024, 05:35:19 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 ... 12 13 [14] 15 16 ... 18 Reply Ignore Print
Author Topic: [beta 1.5.4] Smart URLs v2.1  (Read 212896 times)
zoki
Noobie
*
Posts: 40


Have you seen me offline?

ICQ - 46742125
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #195 on: December 19, 2003, 02:09:26 PM »
Reply with quote

Btw what is the purpose of $boardseen=1 on boardindex?

That link should get me to the last message in particular topic, but it does not.
Logged

All your psychedelics are belong to us!
zoki
Noobie
*
Posts: 40


Have you seen me offline?

ICQ - 46742125
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #196 on: December 19, 2003, 04:30:28 PM »
Reply with quote

You see, the way it is now, in url for board kw it puts for example "b5.htm", "b17.htm"......
And for topic kw it puts "t12.htm", "t56.htm" .
Logged

All your psychedelics are belong to us!
Anguz
YaBB God
*****
Posts: 641


llama me?!

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

those aren't keywords, those are the thread and board IDs

it's good that you have the keywords checked in modsettings, but you also have to input the keywords for each board and category or nothing will be shown...

do that where you create/modify/delete categories and boards

I don't know exactly what $boardseen is for, but it's there in the original urls, so I left it there
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
zoki
Noobie
*
Posts: 40


Have you seen me offline?

ICQ - 46742125
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #198 on: December 20, 2003, 09:31:33 PM »
Reply with quote

See, I didn't know where I was supposed to set my KWs. Tanx for that.

Everything's fine now...

I just have to find out why it puts "/" in front of everything in <title> ..... </title>
Logged

All your psychedelics are belong to us!
zoki
Noobie
*
Posts: 40


Have you seen me offline?

ICQ - 46742125
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #199 on: December 23, 2003, 05:18:55 PM »
Reply with quote

I would like if ALL links on my board would be according to smart urls...

For example on the bottom, in the "Recent posts" box, links to the recent posts are in old format.
Logged

All your psychedelics are belong to us!
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #200 on: December 23, 2003, 06:09:16 PM »
Reply with quote

Quote from: zoki on December 23, 2003, 05:18:55 PM
I would like if ALL links on my board would be according to smart urls...

For example on the bottom, in the "Recent posts" box, links to the recent posts are in old format.

you can do it if you want :)
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 #201 on: December 24, 2003, 04:02:58 AM »
Reply with quote

Quote from: Anguz on December 23, 2003, 06:09:16 PM
Quote from: zoki on December 23, 2003, 05:18:55 PM
I would like if ALL links on my board would be according to smart urls...

For example on the bottom, in the "Recent posts" box, links to the recent posts are in old format.

you can do it if you want :)

me too, Anguz, how do you make them work, if you use like a yy function in Subs to call recent posts?...e.g. how would you modify this one?

Quote
function yyrecentp() {
   global $settings,$scripturl,$txt,$censored,$recentsender,$db_prefix, $post, $dummy,$showlatestcount,$showBoard,$showPoster,$showTime, $block, $prefs, $color;
   
   $display = 3;
   $request = mysql_query("SELECT m.smiliesEnabled,m.posterTime,m.ID_MEMBER,m.ID_MSG,m.subject,m.body,m.ID_TOPIC,t.ID_BOARD,b.name as bname,c.name as cname,m.posterName,t.numReplies FROM {$db_prefix}messages as m,{$db_prefix}topics as t,{$db_prefix}boards as b,{$db_prefix}categories as c WHERE (m.ID_TOPIC = t.ID_TOPIC AND t.ID_BOARD = b.ID_BOARD AND b.ID_CAT=c.ID_CAT AND (FIND_IN_SET('$settings[7]',c.memberGroups)!=0 OR c.memberGroups='' OR '$settings[7]'='Administrator' OR '$settings[7]'='Global Moderator')) ORDER BY m.posterTime DESC LIMIT $display");
   
   while ($curr_post = mysql_fetch_array($request)) {
      $block[contents] = $block[contents]."<a href=\"$scripturl?board=$curr_post[ID_BOARD];action=display;threadid=$curr_post[ID_TOPIC];boardseen=1\"><li>$curr_post[subject]</a><BR>";
      }
echo $block[contents];
   }

i tried wrapping the url in the ".smart_url()." , but couldn't seem to get it right.
« Last Edit: December 24, 2003, 04:04:16 AM by pege » Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

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

it may not be correct, but I'd change this line
$block[contents] = $block[contents]."<a href=\"$scripturl?board=$curr_post[ID_BOARD];action=display;threadid=$curr_post[ID_TOPIC];boardseen=1\"><li>$curr_post[subject]</a><BR>";
to
$block[contents] = $block[contents]."<a href=\"".smart_url($scripturl?board=$curr_post[ID_BOARD];action=display;threadid=$curr_post[ID_TOPIC];boardseen=1)."\"><li>$curr_post[subject]</a><BR>";
the thing is to wrap the url to the board/thread with smart_url()

this code didn't have it, but in case you want to change some other part that does, leave out the "#xxx" part at the end of the url... i.e.
smart_url($scripturl).'#'.$curcat

let me know how it goes
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 #203 on: December 24, 2003, 02:13:15 PM »
Reply with quote

well, tried every option i could think of, and got one of three variables: parse error (doesn't have the \ to escape the " in ".smart_url), uninterpolated text (with '.smart_url, the url displays like http://pege.net/'.smart_url(...), or empty baseref (http://pege.net).

BUT....

because of how smart urls recognizes things, i was able to get the same results by hard-coding this...

<a class=\"small\" href=\"$scripturl/news/b$curr_post[ID_BOARD]/t$curr_post[ID_TOPIC].htm\">•&nbsp;$curr_post[subject]</a>

so it works for what i need it.  yay! i would like to figure out how to make it work without that.
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #204 on: December 24, 2003, 05:48:10 PM »
Reply with quote

hehe.... well... hardcoded works, but you can't change it back easily...

I made a mistake in the above code, the smart_url part should be

smart_url($scripturl.'?board='.$curr_post[ID_BOARD].';action=display;threadid='.$curr_post[ID_TOPIC].';boardseen=1')
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 #205 on: December 26, 2003, 06:51:43 AM »
Reply with quote

just had All The Web spider the site.  they hit 304 of about 380 topics, including the content of the article!  wierd thing is, they took the content of each article from printpage, AND, two days ago, i disabled printpage unless you're a member (or so i thought).  any one have something like that happen?
Logged
dschwab9
Full Member
***
Posts: 144


I'm a llama!

WWW
Re:[beta 1.5.4] Smart Urls v2.1
« Reply #206 on: December 29, 2003, 08:45:52 PM »
Reply with quote

I don't think Google like the 2.1 URL format.  Has anyone had it pull a significant number of pages from their board?

When I was running the old version of spider urls, google was very active on the forum.  After a month or so of running 2.1 and looking at the logs, google seems to be pulling the main page daily, but never going anywhere else (maybe because of the issue with the session ID? - I never could get rid of it)

I upgraded to SMF last night, and google is actively crawling my forum again today.
Logged
pege
Full Member
***
Posts: 146


Re:[beta 1.5.4] Smart Urls v2.1
« Reply #207 on: December 29, 2003, 09:12:35 PM »
Reply with quote

i don't know if i've waited long enough yet for Google to spider or not.  but, i did get rid of the session id.  Unknown gave a fix for that on SMF...here it is....

add:

Quote
@ini_set('session.use_trans_sid', 0);

before

Quote
if (function_exists('session_start'))
{
       session_start();
       $sc = session_id();

in Index.php

i've had the same thing with most search engines, they come there every day and do the first page.  Alltheweb did spider almost everything on my site, but wierdly, it was the urls with printpage.  i can't imagine they would have a problem with the new urls.  maybe they just aren't doing their massive spiders yet.
Logged
Anguz
YaBB God
*****
Posts: 641


llama me?!

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

funny... I can't really tell, cause I've put my forum offline for a while

why don't you try taking the keywords off the urls and leave them in the title if you want... make the urls as simple as they can be

perhaps google now decided that urls with a path after the script is an indicator of a dynamic page too and treats them as the ones with queries

it's hard to tell how google works and it changes all the time

it's pretty much a matter of searching what's working for others and then some experimetation

I believe the one for mod_rewrite is the most effective one, but I can't try it yet
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 #209 on: December 29, 2003, 11:10:40 PM »
Reply with quote

Well, I didn't have a path after the script, because I renamed it to "content" with no description.

@ini_set('session.use_trans_sid', 0);
Didn't get rid of it for me.  I even went into php.ini and set that option globally, and I still had the session ID. I renamed the session from "PHPSESSID" to "p", but google still didn't like it.

I watched google for over a month, and the existing pages stayed, but it never indexed a single page using the new format.  But, since I switched to SMF, it's kinda late to play with the mod settings now  :P

I installed smf last night and changed my $scripturl to content, so my url's look like: http://bbs.zuwharrie.com/content/topic,2966 and google was crawling within a few hours.  I just checked "Who's Online", which shoes IP addresses for each guest, and I have 5 different google IP's viewing 5 different topics right now.
Logged
Pages: 1 ... 12 13 [14] 15 16 ... 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.087 seconds with 20 queries.