Welcome, Guest. Please Login or Register.
October 09, 2024, 02:20:07 AM
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  |  Mod Ideas and Creation  |  Search Engines Optimize « previous next »
Pages: 1 2 [3] 4 5 ... 11 Reply Ignore Print
Poll
Question: Do you want YaBBSE to be optimized for Search Engines
Yes, sure
No, thank you
Is it possible?

Author Topic: Search Engines Optimize  (Read 24238 times)
I, Brian
Full Member
***
Posts: 238


It is coming...

WWW
Re:Search Engines optimization
« Reply #30 on: June 13, 2003, 07:33:03 AM »
Reply with quote

Hm, while the non-coders like myself attempt to decipher the cryptic clues... :)

Hprod - what did you actually change in your YaBB files to compliment the mod_rewrite? This is a mod in the making, but I've not seen posted.

[Unknown] - just to clarify, the code you posted goes in the .htaccess file, just after the mod_rewrite code hprod posted?

Logged

hprod
Jr. Member
**
Posts: 84


En mi debilidad me haces fuerte, Señor (San Pablo)

Re:Search Engines optimization
« Reply #31 on: June 13, 2003, 08:13:01 AM »
Reply with quote

Sorry Brian,
here is an example

BoardIndex.html - Line 449
               <tr>

                  <td class="windowbg" width="6%" align="center" valign="top">' . $new . '</td>

                  <td class="windowbg2" align="left" width="60%">

                     <a name="b' . $row_board['ID_BOARD'] . '"></a>

                     <font size="2"><b><a href="' . 'http://www.marianistas.org/comunidad' . '_' . $row_board['ID_BOARD'] . '.htm' . '">' . $row_board['boardName'] . '</a></b><br />

                     ' . $row_board['description'] . '</font>' . $showmods . '

                  </td>

                  <td class="windowbg" valign="middle" align="center" width="6%">

                     ' . $row_board['numTopics'] . '

                  </td>


and .htaccess
RewriteEngine On
Options +FollowSymlinks
RewriteBase /

RewriteRule ^(.*)comunidad_(.*).htm $1comunidad/index.php?board=$2


If you do this change you will transform all your Dynamic Board UrL's from Dynamic into static ones:
From
http://www.marianistas.org/comunidad/index.php?board=1
To
http://www.marianistas.org/comunidad_1.htm


[Unknow] Solution is more elegant, and pretty good. ;-)
Logged
I, Brian
Full Member
***
Posts: 238


It is coming...

WWW
Re:Search Engines optimization
« Reply #32 on: June 13, 2003, 08:32:39 AM »
Reply with quote

Thanks for that, much appreciated. I figure [Unknown]'s code is actually for the .htaccess file, but I thought I'd ask for some public clarification. It seems that with this issue it would be helpful for others to have a more precise idea of what to chaneg. :)


A quick but important point, though - if I apply the rewrite - via either method - will my old links be affected? Only I've just opened a contest in conjunction with some other sites on one of my forums, and I need to know the dynamic link I gave them will work. If not, I'll just have to put off the pro-spidering code for a few months, which would be a shame.



EDIT: Nope - I'm afraid I don't understand [Unknown]'s solution - not sure what the following means:

Quote
And then just add that with ob_start('ob_url_rewrite');.
« Last Edit: June 13, 2003, 08:48:08 AM by I, Brian » Logged

hprod
Jr. Member
**
Posts: 84


En mi debilidad me haces fuerte, Señor (San Pablo)

Re:Search Engines optimization
« Reply #33 on: June 13, 2003, 10:29:29 AM »
Reply with quote

Brian,
old Url's are not affected, you can see it at my site.
You can use old and new URL's!!!!

;-)

We will flood GOOGLE searches with our forums!!!!!!
Logged
I, Brian
Full Member
***
Posts: 238


It is coming...

WWW
Re:Search Engines optimization
« Reply #34 on: June 13, 2003, 01:35:55 PM »
Reply with quote

It sounds superb!

May I dare publicly to be a complete dunce and ask for a fuller description of what's involved coding wise? I'm afraid the example doesn't help as I am not aware of how that affects the overall coding - seems that it touches on wider issues, especially as you mentioned editing messageindex.

I realise a lot of YaBB users understand coding issues, but some of us can only work from simpler instructions. The whole issue of coders sharing their insights is the life-blood of free projects such as YaBB SE, but please realise that not everyone understands the very isssues, knowledge, and practices, that those with better computer skills sometimes take for granted. :)

YaBB SE has a wider audience. Perhaps to members non-coders like myself may appear a little slow or stupid. I simply appeal for patience - I can help where I can, but as an aspiring novelist and musician my own key skills rarely have any direct application I can offer for YaBB SE.

And this whole spidering issue is one that I've been trying to work on for some time. Until it's sorted I manually submit all new threads to Google. works while my forums are small, but they're growing.





Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Search Engines optimization
« Reply #35 on: June 13, 2003, 11:35:44 PM »
Reply with quote

Add my code to the end of index.php, just before the line with ?>.

Then find this:
   ob_start("ob_gzhandler");
else
   ob_start();


And replace it with:
{
  ob_start('ob_url_rewrite');
   ob_start("ob_gzhandler");
}
else
   ob_start('ob_url_rewrite');


That should do it.

-[Unknown]
Logged
I, Brian
Full Member
***
Posts: 238


It is coming...

WWW
Re:Search Engines optimization
« Reply #36 on: June 14, 2003, 06:17:09 PM »
Reply with quote

1. Added code to index.php at end, before "?>"


function ob_url_rewrite($buffer)
{
 return preg_replace(
     array('~"' . preg_quote($scripturl, '~') . '\?board=(\d+)"~', '~"' . preg_quote($scripturl, '~') . '\?board=(\d+);action=display;threadid=(\d+)"~', '~"' . preg_quote($scripturl, '~') . '\?board=(\d+);action=display;threadid=(\d+);start=(\d+)"~'),
     array('"' . $boardurl . '_\\1.html"', '"' . $boardurl . '_\\1_\\2.html"', '"' . $boardurl . '_\\1_\\2_\\3.html"'),
     $buffer);
}



- checked


2. Find/replace "ob_start" code


  ob_start("ob_gzhandler");
else
  ob_start();


- checked


3. Add following to .htaccess:

RewriteEngine On
Options +FollowSymlinks
RewriteBase /

RewriteRule ^(.*)community_(\d+).html $1community/index.php?board=$2
RewriteRule ^(.*)community_(\d+)_(\d+).html $1community/index.php?board=$2;action=display;threadid=$3
RewriteRule ^(.*)community_(\d+)_(\d+)_(\d+).html $1community/index.php?board=$2;action=display;threadid=$3;start=$4



Result - hm, no visible change. Did I do something wrong? Or is there a small error somewhere? Or did I need to do something else first?

I feel silly asking, especially as people are taking patient care to answer.


« Last Edit: June 14, 2003, 06:21:11 PM by I, Brian » Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Search Engines optimization
« Reply #37 on: June 14, 2003, 08:05:42 PM »
Reply with quote

What's the URL to your site?

-[Unknown]
Logged
I, Brian
Full Member
***
Posts: 238


It is coming...

WWW
Re:Search Engines optimization
« Reply #38 on: June 14, 2003, 08:28:28 PM »
Reply with quote

http://www.chronicles-network.net
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Search Engines optimization
« Reply #39 on: June 14, 2003, 08:55:37 PM »
Reply with quote

Quote from: I, Brian on June 14, 2003, 08:28:28 PM
http://www.chronicles-network.net

That uses /forum... you'll need to change the community stuff to forum.

Did you put it in the root .htaccess?

At least your board is still running... that's a good sign.

-[Unknown]
Logged
I, Brian
Full Member
***
Posts: 238


It is coming...

WWW
Re:Search Engines optimization
« Reply #40 on: June 14, 2003, 09:04:17 PM »
Reply with quote

Sorry, yes - forum is on instead of community.

Logged

I, Brian
Full Member
***
Posts: 238


It is coming...

WWW
Re:Search Engines optimization
« Reply #41 on: June 14, 2003, 09:43:46 PM »
Reply with quote

And then hacked.
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Search Engines optimization
« Reply #42 on: June 14, 2003, 09:44:59 PM »
Reply with quote

Quote from: I, Brian on June 14, 2003, 09:43:46 PM
And then hacked.

Wha?!

-[Unknown]
Logged
Cerberus
Full Member
***
Posts: 100


Who's a llama?!

WWW
Re:Search Engines optimization
« Reply #43 on: June 15, 2003, 08:40:02 AM »
Reply with quote

Quote from: hprod on June 13, 2003, 10:29:29 AMWe will flood GOOGLE searches with our forums!!!!!!

;D ;D ;D
Logged

Best Regards, Cerberus
Check out http://www.pocketpcrussia.com :)
I, Brian
Full Member
***
Posts: 238


It is coming...

WWW
Re:Search Engines optimization
« Reply #44 on: June 16, 2003, 12:46:50 PM »
Reply with quote

Back to the topic issue:

[unknown]

Any ideas? I've tried again, but still get no change.


hprod

Apologies - I'm afraid I didn;t understand your example. Would it be possible to give a more complete illustration of what you did?


Logged

Pages: 1 2 [3] 4 5 ... 11 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Search Engines Optimize « 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 24 queries.