• [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 707251 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 #360 on: June 30, 2010, 09:48:04 AM »
Hi V@no -
                No Luck.. Its not working.. :( I was just trying to debug the php file and it seems the control is never going to that part of code due to the
Code: [Select]
if (!defined('IN_CP'))  line of code in url function..


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 #361 on: June 30, 2010, 04:58:42 PM »
The problem is in multidownload mod, it doesn't use $sessions->url() function for the links and it should.
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 batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #362 on: July 01, 2010, 09:56:53 PM »
Hi V@no,
               I changed the code which generates the link for multi download and I passed it thru 4images standard url function but the output link is not correct..

actual Multi download code was :
Code: [Select]
$multi_download_group .="<td align='center'><a href='".ROOT_PATH."download.php?action=resize&amp;image_id=".$image_row['image_id']."&amp;multi_download_select=".$var."'".$multi_download_var['target'].">".$download_multi_sizes[$var][0]."</a></td>";

I changed it to
Code: [Select]
$multi_download_group .= "<td align='center'><a href=\"".$site_sess->url(ROOT_PATH."download.php?action=resize&amp;image_id=".$image_row['image_id']."&amp;multi_download_select=$var"). "\" >".$download_multi_sizes[$var][0]."</a></td>";

and the resulted output after this modification is ..

http://www.bhwallpapers.com/download.php?action=resize


Is there anything left and needs to be changed.. ??

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 #363 on: July 02, 2010, 08:36:24 AM »
try replace &amp; with &
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 batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #364 on: July 02, 2010, 11:27:28 AM »
Hi V@no,
               I changed the below line
Code: [Select]
$split = explode('?', $url);  to
Code: [Select]
$split = explode('&', $url);  and it worked .. !! :)



Thank you for your help.. !! :)

only one issue is Multi Download is not using any array for displaying the original size image.. so its not working for original size link..


Thanks again.. !!

batu544



Offline Jinjo52

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #365 on: July 03, 2010, 03:27:33 PM »
Hi i just installed the seo Freindly Urls for 4 images but got a big problem a whole category cant be displayed and i got a blank screen when i click on the radndom image in my gallery most of this images are in "unsortierte Bilder" and none of it can be displayed.Also my new images cant be displayed there i also got a blank screen for example Look here http://www.gbbilder.eu/r-noch-unsortiere-bilder-123-da619656-31587.htm or go to http://www.gbbilder.eu and Click on  Neue Bilder.Every other Category works expect zhis one and it got about 18000 Pictures which are now missing.Can somebody please help me or does somebody know how to change it to make it work?
And Yes Admin i looked in the tread found nothing on the whole 25 pages about that.

sorry for my bad english it is not verywell.
MFg Phil

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #366 on: July 06, 2010, 08:18:54 PM »
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.

V@no,
             Can I put original-size at the end when I encounter &multi_download_select=30 in the url ??



Jinjo52,
            Have you checked your server error log ?? If there is any error message please post it here, may be someone can figure out what's the problem in your case.

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 #367 on: July 07, 2010, 12:10:20 AM »
@Jinjo52:
Are you sure it's after you installed this mod?
Original path of the page doesn't work either:
http://www.gbbilder.eu/details.php?image_id=31587

To troubleshoot, in global.php find:
error_reporting(E_ERROR E_WARNING E_PARSE);

Insert below:
error_reporting(E_ALL);
ini_set("display_errors"1);


See if any error show, if nothing, check server's error logs (contact your host administrators for more info)


@batu544:
The problem is, neither the multi size download, nor this mod has actual image dimensions.
I think your best bet would be ask budduke to add additional item into $download_multi_sizes array that would temporary hold original image dimensions.
« Last Edit: July 07, 2010, 12:50:52 AM by V@no »
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 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 #368 on: July 08, 2010, 01:42:44 AM »
@batu544:
try this.
in includes/functions.php find:
    $site_template->register_vars(array(
      
"media_src" => $media_src,


insert above:
    global $download_multi_sizes_original;
    
$download_multi_sizes_original = ($image_info) ? $image_info false;



Then in includes/sessions.php replace the code I posted on previous page with 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$download_multi_sizes_original;
          
$split explode('?'$url);
          
$url $split[0];
          
$query = @$split[1];
          
$dim "0x0";
          if (
$matches[2] >= count($download_multi_sizes))
          {
            if (@
$download_multi_sizes_original)
              
$dim $download_multi_sizes_original[0] . "x" $download_multi_sizes_original[1];
          }
          else
          {
            
$dim $download_multi_sizes[$matches[2]][0];
          }
          
$url   str_replace('download.php?action=resize''d'.get_image_url($matches[1]).'-'.$matches[2].'-'.$dim.'.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;
          }
        }
      }
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 budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #369 on: July 09, 2010, 01:28:54 AM »
@ V@no and batu544,
I am not sure if you saw my post on my mods thread or not...
http://www.4homepages.de/forum/index.php?topic=22741.msg148801#msg148801

If your way above is easier then what I tried then I will not bother adding the code permently to my mod. I see that it does not have any issues but if your way works better then I will not bother with mine.

@batu544,
If you can let me know what happens in your testing and what worked for you I would appreciate it...
Buddy Duke
www.budduke.com

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #370 on: July 09, 2010, 07:24:36 AM »
V@no and budduke-

Here is the test result of the code..

Original size actual link before applying the changes :  http://www.bhwallpapers.com/download-diya-mirza-14272-30-.htm  ( doesn't work )

Please note the above link got generated by processing the link in 4image session url function.


budduke's code :
  It changed the link to look like  : http://www.bhwallpapers.com/download-diya-mirza-14272-30-Original%20Size.htm 

This is what I am expecting, but when clicking on this link.. it doesn't work . It link remains same on the page but actually it displays the homepage for me.. ( the reason of displaying the home page for me is due to my .htaccess code. As per my .htaccess if a not found encountered then it redirects to my home page ).

V@no's code :
  It changed the original size link to ==> http://www.bhwallpapers.com/d-diya-mirza-14272-30-1024x768.htm 
The number 1024x768 changes to different number for different images..

Final result : Original size link not working and this change also affects other download link and non of download link works..




Thanks,
batu544

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #371 on: July 09, 2010, 10:50:30 AM »
That's because you altered my "original" code to produce download-imagename-imageid-downloadsize-widthxheight.htm and forgot to do the same in new version ;)
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #372 on: July 09, 2010, 11:39:32 AM »
That's because you altered my "original" code to produce download-imagename-imageid-downloadsize-widthxheight.htm and forgot to do the same in new version ;)

What a silly mistake I have done ...  :oops:

Now Its working perfectly..the original size link points to the original image with a link format like

/download-imagename-imageid-downloadsize-widthxheight.htm


Thanks for all your help.. :)

Offline simpley

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #373 on: July 10, 2010, 09:33:37 PM »
I have recently installed best seo mod on 1.77 and it works fine generates the url nicely within the site.

However when i check on google the pages have not been picked up. When i use a tool to see what a spider sees for search engine purposes, the url shows this,

http://www.mydomain/./image-4.htm

Where the folder i have installed 4images  to is replaced with a "."

Is there another file i have to change to make the folder show in the generated url for search engines to find ?


i used the download files from the first page
also i have upload the pre-edited files for 1.7.4 http://rapidshare.com/files/33076491/seo.rar.html
this seo.rar file contains .htaccess file and /include/sessions.php file you can use it withour modifying
« Last Edit: July 10, 2010, 10:42:42 PM by simpley »

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 #374 on: July 10, 2010, 11:10:39 PM »
do you have robots.txt file? maybe it's something there that screwing bots?
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)