• [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 707231 times)

0 Members and 1 Guest are viewing this topic.

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #345 on: May 17, 2010, 01:10:19 PM »
Thanks V@no.. your fix works great !!.. :)   The number 35 was just an example to describe the page number.. :)

Today, I made the changes and it worked.. !!

In my sessions.php, 'cat' word of below line is replaced by 'k' only.. so I made the new changes accordingly..

Code: [Select]
            $url   = str_replace('categories.php', 'cat'.$matches1[1].'.'.$matches2[1].'.htm', $url);


Thanks again V@no.. !!!



Offline didoman

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #346 on: May 18, 2010, 04:32:31 AM »
It's been a couple of years now of this mod, and I just want to know is it worth installing.

Does this have any benefit with search engines SEO etc... Or is how 4images originally written just as good.

there are so many changes with this MOD, I'm a bit scared and skeptical on trying to fix something that isn't broken.. If you know what I mean :mrgreen:

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #347 on: May 22, 2010, 02:33:53 PM »
Hi All -
               As far as I know, removing the numbers from the category page is not possible, means after installing this mod my category page url looks like this ( k-aishwarya-rai-3.htm). If I will remove the number 3 then, this url will not work..

But Is it possible to get the url  having only category name?? like  www.bhwallpapers.com/aishwaryarai.htm .

I think its possible, because I think one website has already using this type of mod... and its "www. wallpapergate. com/alilarter.html"  ( i believe this website is using 4image )


It would be great, if someone can find out the changes required for this.. :)


Offline Memf

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #348 on: May 30, 2010, 09:17:34 PM »
Hello :)

Thank you for this wonderful mod, everything works beautiful! But there is a problem with lightboxes... When viewing the album, being on the front page - all photos are added to the lightbox without problems, but on the other album pages (2, 3, etc.) gives an error:

Not Found
The requested URL /cat20.2.html was not found on this server.

.... By the way, working links to the lightbox on the first album pages look like: /cat-{cat_name}-{image_id}.htm?action=addtolightbox&id={image_id}, on the other album pages (2, 3, etc.) they have the form: /cat20.2.htm?action=addtolightbox&id={image_id}, therefore, gives an error "Not found" :( How fix it? Please help.

my .htaccess (sessions.php, the same as in the first post of this topic):

Code: [Select]
RewriteEngine On

#RewriteBase /
RewriteRule ^cat-(.*)-([0-9]+)\.htm$ categories.php?cat_id=$2&%{QUERY_STRING}
RewriteRule ^cat\.htm$ categories.php?%{QUERY_STRING}
#Mod_bmollet : Image name in URL
RewriteRule ^img-(.*)-([0-9]+)\.htm$ details.php?image_id=$2&%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.search.htm$ details.php?image_id=$1&%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.lightbox.htm$ details.php?image_id=$1&%{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}
RewriteRule ^lightbox\.htm$ lightbox.php?%{QUERY_STRING}
RewriteRule ^lightbox\.([0-9]+)\.htm$ lightbox.php?page=$1&%{QUERY_STRING}

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

P.S. - sorry for my english  :oops:

So, V@no, please help me... or anyone else can help me?!?!

P.S. - 3 months no one has helped me with this problem!  8O

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #349 on: May 30, 2010, 11:49:38 PM »
If I'm not mistaken batu544 had this problem, try this fix.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #350 on: June 06, 2010, 02:24:30 PM »
HI i have this mod installed and working great i was just wondering like rite now it shoes the IMAGE AS LIKE say /img1188.htm   on address bar can it be like /image name.htm  Like what ever the image name is becomes the url

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #351 on: June 06, 2010, 08:25:21 PM »
it should display img-imageName-imageID.htm
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline __G__

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #352 on: June 07, 2010, 01:35:52 AM »
Hmm mine only shows /image ID .htm not imagename hmm.. how can i fix this

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #353 on: June 07, 2010, 02:58:28 AM »
restore backups and try again?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline sxdte

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #354 on: June 12, 2010, 07:50:58 AM »
we tried your mods on a brand new installation, and have mod_rewite enbled (I am server admin)

I unfornutalely have to said it not work for us.
When I click any images , it report a 404 error (page not found)
I can provide if you want a site to test it

Sincerely

Offline satine88

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #355 on: June 19, 2010, 02:08:52 PM »
Hello

I have just seen that on my site when doing a search  ( http://www.fond-ecran-gratuit.biz/search.htm )

The url is like:
-http://www.fond-ecran-gratuit.biz/img47804.search.htm

I forgot some?

Thank you for your help:)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #356 on: June 19, 2010, 06:03:20 PM »
That is normal and supposed to be like that. the "search" keyword in the url tells 4images to show previous/next images from search result, not from category of the current viewing image.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline satine88

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #357 on: June 19, 2010, 07:21:54 PM »
That is normal and supposed to be like that. the "search" keyword in the url tells 4images to show previous/next images from search result, not from category of the current viewing image.

Okay, but there is no risk that the search engines (Google, Yahoo, Bing) indexes the pages that
are not in url rewrite?

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #358 on: June 29, 2010, 07:00:06 PM »
All -
      I came up with an another question. Its related to two different mods.. but I am posting the question here.. :)


Could anyone please write some MOD to put below url in SEO formatted url.. ??
Code: [Select]
http://www.bhwallpapers.com/download.php?action=resize&image_id=15982&multi_download_select=2

The expected url would be

Code: [Select]
http://www.bhwallpapers.com/d-image-name-1600x1200-15982.htm

below are conversion details

d ==> download.php?action=resize
15982 stands for the image_id
multi_download_select=2 ==> 1600x1200
multi_download_select=1 ==> 12345x6789
multi_download_select=3 ==> aaaaaxbbbbb


any help will be appreciated.. :)


Thanks,
batu544

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #359 on: June 30, 2010, 02:59:10 AM »
Not tested.

In includes/sessions.php above
      elseif (strstr($url'postcards.php?image_id=')) {

Insert this:
      elseif (strstr($url'download.php?action=resize')) {
        
preg_match('#image_id=([0-9]+)&multi_download_select=([0-9]+)#'$url$matches);
        if (isset(
$matches[1])) {
          global 
$download_multi_sizes;
          
$split explode('?'$url);
          
$url $split[0];
          
$query = @$split[1];
          
$url   str_replace('download.php?action=resize''d'.get_image_url($matches[1]).'-'.$matches[2].'-'.$download_multi_sizes[$matches[2]][0].'.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);
          
$query str_replace('multi_download_select='.$matches[2].'&'''$query);
          
$query str_replace('&multi_download_select='.$matches[2], ''$query);
          
$query str_replace('multi_download_select='.$matches[2], ''$query);
          if (!empty(
$query)) {
            
$url .= '?' $query;
          }
        }
      }


In .htaccess add this:
Code: [Select]
RewriteRule ^d-(.*)-([0-9]+)-([0-9]+)-[0-9]+x[0-9]+\.htm$ download.php?action=resize&image_id=$2&multi_download_select=$3&%{QUERY_STRING}

since used the same function as for details.php to generate url, the final url should be the in this format:
Code: [Select]
http://www.bhwallpapers.com/d-image-name-15982-2-1600x1200.htm
Because multidownload mod uses array indexes, the 1600x1200 in the example will only be used as decoration, you can manually change the numbers, but it will not change image size.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)