• [MOD] Google Friendly Urls For 4images Best Seo Mod 4 0 5 1
Currently:  

Author Topic: [MOD] Google Friendly Urls For 4images Best Seo Mod  (Read 663413 times)

0 Members and 1 Guest are viewing this topic.

Offline rodier

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #120 on: April 23, 2008, 03:28:55 AM »
really cool 100% working :-)
thanks

Please xox can you look on sitemap for google  generator? its mod here on page .. but its working only with another short url mod ..   I look inside and it seems pretty simply it took names from sql and generate url..  but my knowledge is not enough good to change the generator to work with your seo mod .. can you try it please? :)

will be cool if yes.. thanks :)
« Last Edit: April 23, 2008, 05:28:42 AM by rodier »

Offline titika

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #121 on: May 24, 2008, 08:59:36 PM »
Code: [Select]
/* ORIGINAL CODE
  function url($url, $amp = "&") {
    global $l;
    $dummy_array = explode("#", $url);
    $url = $dummy_array[0];

    if ($this->mode == "get" && !preg_match("/".SESSION_NAME."=/i", $url)) {
      $url .= preg_match("/\?/", $url) ? "$amp" : "?";
      $url .= SESSION_NAME."=".$this->session_id;
    }

    if (!empty($l)) {
      $url .= preg_match("/\?/", $url) ? "$amp" : "?";
      $url .= "l=".$l;
    }

    $url .= (isset($dummy_array[1])) ? "#".$dummy_array[1] : "";
    return $url;
  }
*/
  function url($url, $amp = "&") {
    global $l, $user_info;
    $dummy_array = explode("#", $url);
    $url = $dummy_array[0];
    $url = str_replace('&', '&', $url);
    if (!defined('IN_CP')) {
      if (strstr($url, 'index.php')) {
        $url = str_replace('index.php', '', $url);
      }
      elseif (strstr($url, 'search.php')) {
        if (strstr($url, 'page=')) {
          preg_match('#page=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('search.php', 'search.'.$matches[1].'.htm', $url);
            $query = str_replace('page='.$matches[1].'&', '', $query);
            $query = str_replace('&page='.$matches[1], '', $query);
            $query = str_replace('page='.$matches[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
        else {
          $url = str_replace('search.php', 'search.htm', $url);
        }
      }
      elseif (strstr($url, 'lightbox.php')) {
        if (strstr($url, 'page=')) {
          preg_match('#page=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('lightbox.php', 'lightbox.'.$matches[1].'.htm', $url);
            $query = str_replace('page='.$matches[1].'&', '', $query);
            $query = str_replace('&page='.$matches[1], '', $query);
            $query = str_replace('page='.$matches[1], '', $query);
            if (!empty($query)) {
                $url .= '?' . $query;
            }
          }
        }
        else {
          $url = str_replace('lightbox.php', 'lightbox.htm', $url);
        }
      }
      elseif (strstr($url, 'categories.php')) {
        if (strstr($url, 'cat_id=') && strstr($url, 'page=')) {
          preg_match('#cat_id=([0-9]+)&?#', $url, $matches1);
          preg_match('#page=([0-9]+)&?#', $url, $matches2);
          if (isset($matches1[1]) && isset($matches2[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('categories.php', 'cat'.$matches1[1].'.'.$matches2[1].'.htm', $url);
            $query = str_replace('cat_id='.$matches1[1].'&', '', $query);
            $query = str_replace('&cat_id='.$matches1[1], '', $query);
            $query = str_replace('cat_id='.$matches1[1], '', $query);
            $query = str_replace('page='.$matches2[1].'&', '', $query);
            $query = str_replace('&page='.$matches2[1], '', $query);
            $query = str_replace('page='.$matches2[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
        elseif (strstr($url, 'cat_id=')) {
          preg_match('#cat_id=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $cat_url = get_category_url($matches[1]);
            $url   = str_replace('categories.php', 'http://'.$cat_url.'.tepkigosterelim.com', $url);
            $query = str_replace('cat_id='.$matches[1].'&', '', $query);
            $query = str_replace('&cat_id='.$matches[1], '', $query);
            $query = str_replace('cat_id='.$matches[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
        else {
          $url = str_replace('categories.php', 'cat.htm', $url);
        }
      }
      elseif (strstr($url, 'details.php?image_id=')) {
        if (strstr($url, 'image_id=') && strstr($url, 'mode=')) {
          preg_match('#image_id=([0-9]+)&?#', $url, $matches1);
          preg_match('#mode=([a-zA-Z0-9]+)&?#', $url, $matches2);
          if (isset($matches1[1]) && isset($matches2[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('details.php', 'img'.$matches1[1].'.'.$matches2[1].'.htm', $url);
            $query = str_replace('image_id='.$matches1[1].'&', '', $query);
            $query = str_replace('&image_id='.$matches1[1], '', $query);
            $query = str_replace('image_id='.$matches1[1], '', $query);
            $query = str_replace('mode='.$matches2[1].'&', '', $query);
            $query = str_replace('&mode='.$matches2[1], '', $query);
            $query = str_replace('mode='.$matches2[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
        else {
          preg_match('#image_id=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('details.php', 'img'.get_image_url($matches[1]).'.htm', $url);
            $query = str_replace('image_id='.$matches[1].'&', '', $query);
            $query = str_replace('&image_id='.$matches[1], '', $query);
            $query = str_replace('image_id='.$matches[1], '', $query);
            if (!empty($query)) {
              $url .= '?' . $query;
            }
          }
        }
      }
      elseif (strstr($url, 'postcards.php?image_id=')) {
        preg_match('#image_id=([0-9]+)&?#', $url, $matches);
        if (isset($matches[1])) {
          $split = explode('?', $url);
          $url = $split[0];
          $query = @$split[1];
          $url   = str_replace('postcards.php', 'postcard.img'.$matches[1].'.htm', $url);
          $query = str_replace('image_id='.$matches[1].'&', '', $query);
          $query = str_replace('&image_id='.$matches[1], '', $query);
          $query = str_replace('image_id='.$matches[1], '', $query);
          if (!empty($query)) {
            $url .= '?' . $query;
          }
        }
      }
    }
    if ($this->mode == "get" && strstr($url, $this->session_id)) {
      $url .= strpos($url, '?') !== false ? '&' : '?';
      $url .= SESSION_NAME."=".$this->session_id;
    }
    if (!empty($l)) {
      $url .= strpos($url, '?') ? '&' : '?';
      $url .= "l=".$l;
    }
    $url = str_replace('&', $amp, $url);
    $url .= isset($dummy_array[1]) ? "#".$dummy_array[1] : "";
    return $url;
  }
} //end of class


Koddaki şu kısmı değiştirdim...



Code: [Select]
$url   = str_replace('categories.php', 'http://'.$cat_url.'.tepkigosterelim.com', $url);



Benim istediğim

http://www.tepkigosterelim.com/http://deneme1.tepkigosterelim.com 
değil de, linklerin;

"http://deneme1.tepkigosterelim.com" şeklinde gözükmesi. bunu nasıl yapabilirim...

Offline titika

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #122 on: May 25, 2008, 01:34:42 PM »
tamamdır, okey okey..

Links --> http://cat-name.tepkigosterelim.com  (okey )
but
.htaccess code =) ?..

Offline silentg

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • WallpaperJoint
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #123 on: June 05, 2008, 02:17:42 AM »
Any solution to fixing the problems with dropdown menu?

thanks

Offline 12noon

  • Pre-Newbie
  • Posts: 1
    • View Profile
    • 12noon gallery
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #124 on: June 08, 2008, 01:45:17 PM »
Same problem here. The drop down menu takes me to a none existent web page. I need help fixing it or removing the drop down all together.

EDIT

Found that i needed to add these last few lines to the .htaccess

Code: [Select]
RewriteRule ^cat\.htm$ categories.php?%{QUERY_STRING}
RewriteRule ^lightbox\.htm$ lightbox.php?%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.lightbox.htm$ details.php?image_id=$1&%{QUERY_STRING}

RewriteRule ^img([0-9]+)\.search.htm$ details.php?image_id=$1&%{QUERY_STRING}
RewriteRule ^postcard\.img([0-9]+)\.htm$ postcards.php?image_id=$1&%{QUERY_STRING}

 8)
That worked. Thanks.
« Last Edit: June 08, 2008, 02:14:30 PM by 12noon »

Offline silentg

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • WallpaperJoint
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #125 on: June 21, 2008, 01:52:12 AM »
Still having problems with the seo mod drop down selection.
When a user is in a category with 100 pages. And on 2nd page. If the user wishes to change the image displayed per page setting from 20 - 40 then the mod redirects the user to a page that doesn't exist.

Example: Try changing the number of images displayed on this page:
http://www.wallpaperjoint.com/cat-vehicles-30.htm?page=2

help would be appreciated.


thanks,
SilentG

Offline birdost

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #126 on: July 08, 2008, 11:09:02 PM »
ellerinden öptüm... thanks you're crazy , i think (banlamasınlar diye iki ingilizce kelime  :wink:)

Offline qBass17

  • Addicted member
  • ******
  • Posts: 1.800
  • I ♥ 4I
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #127 on: July 16, 2008, 12:23:11 PM »
Bei mir klappt das in der 1.7.6 nicht!
Egal welches Bild ich anklicke er findet es nicht!

Offline raaja4u

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #128 on: July 17, 2008, 09:10:11 AM »
1)open the .htaccess file and add the lines to the .htaccess
Code: [Select]
RewriteEngine On

#RewriteBase /
RewriteRule ^cat-(.*)-([0-9]+).htm categories.php?cat_id=$2&%{QUERY_STRING}
#Mod_bmollet : Image name in URL
RewriteRule ^img-(.*)-([0-9]+).htm details.php?image_id=$2&%{QUERY_STRING}

#Mod_bmollet : This is to make search function work  ( redirect links from search results )
RewriteRule ^search\.htm$ search.php?%{QUERY_STRING}
RewriteRule ^search\.([0-9]+)\.htm$ search.php?page=$1&%{QUERY_STRING}


Do u mean.. .htaccess in      public_html/.htacess ?

i juz need to paste this code below the file right? bit im getting 404 error

Offline qBass17

  • Addicted member
  • ******
  • Posts: 1.800
  • I ♥ 4I
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #129 on: August 02, 2008, 12:19:52 PM »
Soll ich eine htaccess erstellen?
Welche ist gemeint?
Im root gibt es keine!

Und läuft das Teil denn mit 1.7.6?

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #130 on: August 02, 2008, 09:03:34 PM »
Die Antwort war nicht für Dich  :wink:
Danke Harald




Offline qBass17

  • Addicted member
  • ******
  • Posts: 1.800
  • I ♥ 4I
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #131 on: August 02, 2008, 11:06:18 PM »
Nene, das war meine Frage :D

Ich check das wirklich nicht!
Wo ist denn in 4images eine htacces vorhanden bzw. welche wird gebraucht für diesen Mod oder muss im Root eine erstellt werden?

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #132 on: August 02, 2008, 11:19:02 PM »
Ich frage mich täglich was Du da machst  :wink:
Du installierst dir alles was es hier gibt, aber infomationen in den Mods übergehst Du einfach.

Quote
Ich check das wirklich nicht!
Wo ist denn in 4images eine htacces vorhanden bzw. welche wird gebraucht für diesen Mod oder muss im Root eine erstellt werden?

Hast Du überhaubt das erste Posting gelesen, und Dir die seo.rar runter geladen ??
da ist eine session.php und auch deine .htaccess enthalten.

Also was soll die Frage  :?:
Danke Harald




Offline qBass17

  • Addicted member
  • ******
  • Posts: 1.800
  • I ♥ 4I
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #133 on: August 02, 2008, 11:33:12 PM »
Ich frage mich täglich was Du da machst  :wink:
Du installierst dir alles was es hier gibt, aber infomationen in den Mods übergehst Du einfach.

Quote
Ich check das wirklich nicht!
Wo ist denn in 4images eine htacces vorhanden bzw. welche wird gebraucht für diesen Mod oder muss im Root eine erstellt werden?

Hast Du überhaubt das erste Posting gelesen, und Dir die seo.rar runter geladen ??
da ist eine session.php und auch deine .htaccess enthalten.

Also was soll die Frage  :?:


So kann man das nicht sagen! Ich installiere nicht wahllos die Mods. Viele Teste ich einfach nur ob die klappen und erweitere somit meine Liste die ich hier führe. Aber ab und an verstehe ich einiges nicht, es ist mir meist zu viel Text, soviel kann ich manchmal auch nicht behalten und dann komme ich durch einander. Ich habe nunmal eine Aufnahmeschwäche mein Hauptproblem liegt darin "Zu lesen und gleichzeitig zu behalten und zu verstehen" im nachhinein verstehe ich es dann....

B²t:
Aber ich weis auch durch die seo.rar nicht wohin mit der htaccess dann!

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #134 on: August 02, 2008, 11:52:34 PM »
wenn nichts dabei steht, gehört diese Datei eigentlich ins Root

und wenn man direkt unter einem Posting antwortet, braucht man nicht aufs zitat klicken :wink:
Danke Harald




 

Post your comments here