PDA

View Full Version : Search Engine Optimization For Your Archive


Milad
03-19-2006, 10:00 PM
Description: Add keywords to your archive URLs

BETA HACK

Features:

Add keywords to your archive URLs.


Planed Features:

Google/Yahoo sitemap generator for new URLs style.


Installation:

Install Latest Product
In /archive/global.php
Find: (about line 153) $output .= "$indent <li><a href=\"" . (!SLASH_METHOD ? 'index.php?' : '') . "f-$forumid.html\">$forum[title_clean]</a></li>\n";And Replcae with:$output .= "$indent <li><a href=\"" . (!SLASH_METHOD ? 'index.php?' : '') . "f-$forumid" . parse_title($forum['title_clean']) . ".html\">$forum[title_clean]</a></li>\n";
Find: (about line 193) $navarray[] = "<a href=\"" . (!SLASH_METHOD ? 'index.php?' : '') . "f-$forumid.html\">" . $vbulletin->forumcache["$forumid"]['title_clean'] . "</a>";Replace with: $navarray[] = "<a href=\"" . (!SLASH_METHOD ? 'index.php?' : '') . "f-$forumid" . parse_title($vbulletin->forumcache["$forumid"]['title_clean']) . ".html\">" . $vbulletin->forumcache["$forumid"]['title_clean'] . "</a>";
In /archive/index.php
Find (about line 299) $output .= print_archive_page_navigation($foruminfo['threadcount'], $vbulletin->options['archive_threadsperpage'], "f-$foruminfo[forumid]");Replace with: $output .= print_archive_page_navigation($foruminfo['threadcount'], $vbulletin->options['archive_threadsperpage'], "f-$foruminfo[forumid]" . parse_title($foruminfo['title']));
Find (about line 374): $output .= print_archive_page_navigation($threadinfo['replycount'] + 1, $vbulletin->options['archive_postsperpage'], "t-$threadinfo[threadid]");Replace With: $output .= print_archive_page_navigation($threadinfo['replycount'] + 1, $vbulletin->options['archive_postsperpage'], "t-$threadinfo[threadid]" . parse_title($threadinfo['title']));
Find: $output .= "\t<li><a href=\"" . (!SLASH_METHOD ? 'index.php?' : '') . "t-$thread[threadid].html\">$thread[title]</a>" . iif($pda, " <i>(" . construct_phrase($vbphrase['x_replies'], $thread['replycount']) . ")</i>") . "</li>\n";Replace with: $output .= "\t<li><a href=\"" . (!SLASH_METHOD ? 'index.php?' : '') . "t-$thread[threadid]" . parse_title($thread['title']) . ".html\">$thread[title]</a>" . iif($pda, " <i>(" . construct_phrase($vbphrase['x_replies'], $thread['replycount']) . ")</i>") . "</li>\n";
Of course Upload your modified files
test your archive and enjoy.
Click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=110880) to receive updates.


ChangeLog:

0.9.0 20th, Mar 2006
Inital Release.
0.9.1 27th, Mar 2006
Function Boosted.
0.9.2 27th, Mar 2006
0.9.1 re-uploaded as 0.9.2 , minor change.

The Chief
03-20-2006, 02:40 PM
demo or example? :)

projectego
03-20-2006, 02:54 PM
demo or example? :)
His forum: http://www.basharialep.com/forum/archive/

Milad
03-20-2006, 03:03 PM
This is English Forum http://www.basharialep.com/forum/archive/index.php/f-62-English-forum.html

The Chief
03-20-2006, 03:25 PM
This is English Forum http://www.basharialep.com/forum/archive/index.php/f-62-English-forum.html
nice, looks awesome ;)

puertoblack2003
03-20-2006, 05:10 PM
i have vbseo lite installed, will this cause conflict with the scripts?

SaN-DeeP
03-21-2006, 07:39 AM
hmmm worth testing. will post my comments after few days.

Snake
03-21-2006, 10:40 AM
Thanks man that's just awesome!

Milad
03-21-2006, 01:13 PM
i have vbseo lite installed, will this cause conflict with the scripts?

Since vBSEO Lite (Not the full one which is better than this of course) doesn't add keywords to URLs, this is better for you.
But for the forum itself, this mod does nothing
My mod is specialized in Archives Only.

So install this and disable VBSEO Lite for your archive

city-love
03-23-2006, 09:27 AM
سؤال مافائدة الهاك بالعربي من فضلك ؟

Milad
03-23-2006, 12:03 PM
سؤال مافائدة الهاك بالعربي من فضلك ؟

translation: What are the benefits of this hack?

This hack adds thread title in the archive URLs as keywords so it'll give your pages a higher ranking in search engines.

In Arabic:
يُضيف هذا الهاك عنوان الموضوع في روابط الأرشيف ككلمات مفتاحية keywords
وبذلك يُعطي لصفحاتك ترتيباً أعلى في محركات البحث.

lazytown
03-25-2006, 06:14 AM
I'd still like to see a demo of this (the one provided says "Bandwidth Exceeded")

-vissa

Milad
03-25-2006, 09:23 AM
It's working !!

Milad
03-27-2006, 11:42 AM
0.9.1 Released

Edit: 0.9.1 re-uploaded as 0.9.2 , minor change.

ThorstenA
03-28-2006, 09:43 AM
I think you can change these variables by using plugin. See the "Put google adsense in plugin", as far as I remember it was also dealing with the same variables like this code modification.

Nixpeiler
03-29-2006, 12:07 AM
nice Milad thx for this hack
for my german forum I extend yor array to



$search_replace = array(
'.' => '',
':' => '',
';' => '',
'!' => '',
'?' => '',
'\'' => '',
'\\' => '',
'/' => '',
'&gt;' => '',
'&lt;' => '',
'&quot;' => '',
'&amp;' => '',
'$' => '',
')' => '',
'?' => 'ae',
'?' => 'ue',
'?' => 'oe',
'?' => 'AE',
'?' => 'UE',
'?' => 'OE',
'?' => 'ss',
'<' => '',
'>' => '',
'#' => '',
'„' => '',
'“' => '',
'?' => '',
'[' => '',
']' => '',
'}' => '',
'{' => '',
'(' => ''
);


regards

Milad
03-29-2006, 01:59 PM
I think no problem with these charachters, look in wikipedia there are arabic letters, and I run this in my forum without problems.
what do you think?

Nixpeiler
03-30-2006, 10:38 AM
hello Milad

problem is in the german-language ä, ü, ö ....

without that the url shows
archive/t-102215-BilligFlug-in-die-T%FCrkei-Egal-wo.html

with the change
archive/t-102215-BilligFlug-in-die-Tuerkei-Egal-wo.html

I hope you understand which I mean (my bad English)

regards

Milad
04-03-2006, 11:18 AM
I understood you, but I have the same problem with arabic language, but I believe there is no problem.
You had this URL in the address bar, but google will understand it as it is

lightwave
08-08-2006, 03:32 PM
How come no one is installing this? such a great mod!

rantrave
08-11-2006, 07:21 AM
Works Beautifully Milad! Excellent Job!

kabadayi
09-22-2006, 05:45 PM
thanks man

993ti
11-07-2006, 06:45 PM
Also works with 3.6.2 ;)

activa
10-14-2007, 12:28 AM
thanks .

i was update it to 3.6.8 .. wrk like a charm thanks

diettalk
07-26-2008, 09:59 AM
I'd like to see this updated for 3.7.2

Alfa1
12-25-2008, 01:25 PM
Does this work on vb 3.7.4 or 3.8?

Milad
12-26-2008, 12:29 PM
I don't think so.