vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Search Engine Optimization For Your Archive (https://vborg.vbsupport.ru/showthread.php?t=110880)

Milad 03-19-2006 10:00 PM

Search Engine Optimization For Your Archive
 
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:
  1. Install Latest Product
  2. In /archive/global.php
    1. Find: (about line 153)
      PHP Code:

      $output .= "$indent  <li><a href=\"" . (!SLASH_METHOD 'index.php?' '') . "f-$forumid.html\">$forum[title_clean]</a></li>\n"

      And Replcae with:
      PHP Code:

      $output .= "$indent  <li><a href=\"" . (!SLASH_METHOD 'index.php?' '') . "f-$forumidparse_title($forum['title_clean']) . ".html\">$forum[title_clean]</a></li>\n"

    2. Find: (about line 193)
      PHP Code:

      $navarray[] = "<a href=\"" . (!SLASH_METHOD 'index.php?' '') . "f-$forumid.html\">" $vbulletin->forumcache["$forumid"]['title_clean'] . "</a>"

      Replace with:
      PHP Code:

      $navarray[] = "<a href=\"" . (!SLASH_METHOD 'index.php?' '') . "f-$forumidparse_title($vbulletin->forumcache["$forumid"]['title_clean']) . ".html\">" $vbulletin->forumcache["$forumid"]['title_clean'] . "</a>"

  3. In /archive/index.php
    1. Find (about line 299)
      PHP Code:

      $output .= print_archive_page_navigation($foruminfo['threadcount'], $vbulletin->options['archive_threadsperpage'], "f-$foruminfo[forumid]"); 

      Replace with:
      PHP Code:

      $output .= print_archive_page_navigation($foruminfo['threadcount'], $vbulletin->options['archive_threadsperpage'], "f-$foruminfo[forumid]parse_title($foruminfo['title'])); 

    2. Find (about line 374):
      PHP Code:

      $output .= print_archive_page_navigation($threadinfo['replycount'] + 1$vbulletin->options['archive_postsperpage'], "t-$threadinfo[threadid]"); 

      Replace With:
      PHP Code:

      $output .= print_archive_page_navigation($threadinfo['replycount'] + 1$vbulletin->options['archive_postsperpage'], "t-$threadinfo[threadid]parse_title($threadinfo['title'])); 

    3. Find:
      PHP Code:

      $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:
      PHP Code:

      $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"

  4. Of course Upload your modified files
  5. test your archive and enjoy.
  6. Click https://vborg.vbsupport.ru/ 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

Quote:

Originally Posted by The Chief
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/arc...ish-forum.html

The Chief 03-20-2006 03:25 PM

Quote:

Originally Posted by Milad

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

Quote:

Originally Posted by puertoblack2003
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

Quote:

Originally Posted by city-love
سؤال مافائدة الهاك بالعربي من فضلك ؟

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

Code:


            $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.


All times are GMT. The time now is 05:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01217 seconds
  • Memory Usage 1,812KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (10)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete