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

0 Members and 2 Guests are viewing this topic.

Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #270 on: May 06, 2009, 09:05:23 PM »
Can anyone tell me what the best sitemap mod to use with this is? I am going to try to read all 18 pages so forgive me if it is mentioned :)

Ok I saw the question asked in this thread... but not answered.... What are you guys using for the site map mod and this?
As long as I can finish my site before I die.

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 #271 on: May 07, 2009, 02:18:58 AM »
This mod will work with any other mods as long the others mods follow 4images standard by using $session->url() function for their URLs
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 fixyou

  • Newbie
  • *
  • Posts: 26
    • View Profile

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #273 on: May 12, 2009, 09:47:47 AM »
hi fixyou,

there is no such MOD like you wish.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline fixyou

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #274 on: May 12, 2009, 04:59:10 PM »
hi fixyou,

there is no such MOD like you wish.

 :(    
then these websites as they did?

http://imagenesparatuhi5.net

http://www.imagenesparahi5.org/


any solution for this?

 :(


Offline AntiNSA2

  • Hero Member
  • *****
  • Posts: 774
  • As long as I can finish my site before I die.
    • View Profile
    • http://www.thelifephotography.com
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #275 on: May 17, 2009, 09:59:59 PM »
True... but look at almost any webpage ( this forum too ). Link to the search result is the same with the normal link.
The problem is that both pages use the same template. One option is to make img78555.search.htm to use different template, ( named detailsearch.htm) but i guess it's more difficult.

its easy to fix, just exclude your search results from google indexing in your robots.txt

like this:
Code: [Select]
Disallow: /search.php
Disallow: /search.htm
Disallow: /*.search.*
Disallow: /*?mode=search

no more double content ;)


Is this the wise thing to do ? Is this what most people are doing?

What are the negative aspects of doing this?

As long as I can finish my site before I die.

Offline michael1234

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #276 on: May 18, 2009, 06:14:45 PM »
Ich hab ebenfalls das Problem, dass wenn ich über die Suche gehe die Urls falsch gesetzt werden.

Wenn ich Bild über Kategorieauswahl aufrufe erhalte ich diese Url:
www.xxx.de/img-hola-australien-2.htm

Aber wenn ich über Suche auf ein Bild klicke, dann bekomme ich diese UIrl:
www.xxx.de/img2.search.htm

Wie bekomme ich dies so hin:
www.xxx.de/Kategorie/Bildname-xx.htm


Über einen kleine Tip würde ich mich freuen...

Thx alot!

LG micha

Offline zorex

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #277 on: May 20, 2009, 02:26:15 AM »
Hello,

Thanks for this great Mod!

I have made necessary modifications as you mentioned,my problem is, image page is displayed as a static .htm page but categories are always displayed as .php?cat_id=xx ,surprisingly category page is displayed as .htm only when a category is selected through 'clickstream'

please have a look at www.pixeeds.com

Any Help would be appreciated

Regards,
zorex
« Last Edit: June 05, 2009, 05:20:40 PM by zorex »

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 #278 on: May 20, 2009, 04:20:17 AM »
Hello and welcome to 4images forum.

Double check step 4
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 zorex

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #279 on: May 20, 2009, 01:26:31 PM »
V@no,

thanks for your reply.

I just now discovered my home page customization (category section) is the source of the issue,i think it does entirely bypass your core functions ,whereas detail section hasn't been disturbed,that's why detail page is displayed as static .htm page,thanks for your one line instruction :idea:  in the previous post.


well, my request is how do i implement  SEO mod without disturbing home page customization,below given is customized code from index.php.
I dont want to disturb the home cusmization simply  put lot of time to achieve it.

Thanks a lot.

Code: [Select]
$result = $site_db->query('select cat_id,cat_name from 4images_categories where cat_id <> 60 and cat_id <> 61 order by cat_order');
$tab_head="<TABLE STYLE='width:auto;border:0px solid gray'>";
$tab_tail="</TABLE>";
$tab_body='';
$tdx=1;
$trs='<TR>';
$tre='</TR>';
$goo=0;
$cat_link='./categories.php?cat_id=';

//$row['cat_name']

$gscript='<script type="text/javascript"><!--
google_ad_client = "xxxx";
/* 336x280, created 5/13/09 */
google_ad_slot = "xxxx";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';

$cat_thum_img_border_color='#F5F5DC';
while ($row = mysql_fetch_assoc($result))
{
if($tdx==1)
{
$rlt = $site_db->query('select count(*) from 4images_images where cat_id='.$row['cat_id']);
$rw=mysql_fetch_row($rlt);
$rfolder=$row['cat_id'].'/';
$rfile=RandomFile($folder='./data/thumbnails/'.$rfolder, $extensions='jpg');
$img="<img onmouseover='zload(this)' onmouseout='bye()' style='border:1px solid ".$cat_thum_img_border_color."' alt='".$row['cat_name']."' src='".$rfile."'>";

if($goo==0)
{
//$tab_body=$tab_body.$trs."<td class='catAds' rowspan='3'><img  style='border:1px dotted #CCCCCC' src='./data/farm_336x280.jpg'></td><td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>";
$tab_body=$tab_body.$trs."<td class='catAds' rowspan='3'>".$gscript."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>";
$goo=1;
}
else
{
$tab_body=$tab_body."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>";
}
}
if($tdx<4 && $tdx>1)
{
$rfolder=$row['cat_id'].'/';
$rfile=RandomFile($folder='./data/thumbnails/'.$rfolder, $extensions='jpg');
$img="<img onmouseover='zload(this)' onmouseout='bye()' style='border:1px solid ".$cat_thum_img_border_color."' alt='".$row['cat_name']."' src='".$rfile."'>";

$tab_body=$tab_body."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>";
}
if($tdx==4)
{
$rfolder=$row['cat_id'].'/';
$rfile=RandomFile($folder='./data/thumbnails/'.$rfolder, $extensions='jpg');
$img="<img onmouseover='zload(this)' onmouseout='bye()' style='border:1px solid ".$cat_thum_img_border_color."' alt='".$row['cat_name']."' src='".$rfile."'>";
/*
if($goo==0)
{
$tab_body=$tab_body."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td><td class='catthumb' rowspan='3'><img style='border:1px dotted #CCCCCC' src='./data/farm_336x280.jpg'></td>".$tre;
$goo=1;
}
else*/
{

$tab_body=$tab_body."<td class='catthumb'><div class='cathead'><a href='".$cat_link.$row['cat_id']."' >".$row['cat_name'].' ['.$rw[0].']'."</a></div><a href='".$cat_link.$row['cat_id']."'>".$img."</a></td>".$tre;
}
$tdx=0;
}
$tdx=$tdx+1;

}

« Last Edit: May 20, 2009, 05:54:53 PM by zorex »

Offline zorex

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #280 on: May 20, 2009, 06:24:53 PM »
At last i found the solution by changing this:

Code: [Select]
$cat_link='./categories.php?cat_id='.$row['cat_id'];

into this:
Code: [Select]
$cat_link=$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID.'='.$row['cat_id']);

Once again thanks for this great Mod !

Regards,
zorex
« Last Edit: May 20, 2009, 11:00:17 PM by zorex »


Offline tramfahrer

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Straßenbahn-, Bus- und Eisenbahnbilder
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #282 on: May 21, 2009, 06:42:28 PM »
sobald ich die .htaccess da einfüge kommt dieser hässliche Fehler

Quote
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@tram-und-bahnbilder.de and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

habe auf 1.7.7 geupdatet

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #283 on: May 27, 2009, 01:09:52 PM »
Wie kann man denn den Profillink kürzen?

Das dieser in etwas so aussieht:

Code: [Select]
member.php?action=showprofile&user_id=1
to

Code: [Select]
nickname/profile/
Geht das?


add1

in sessions.php
before
Code: [Select]
elseif (strstr($url, 'postcards.php?image_id=')) {
add
Code: [Select]
      elseif (strstr($url, 'member.php?action=showprofile&user_id=')) {
                preg_match('#user_id=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $url   = str_replace('member.php', 'profile'.$matches[1].'.htm', $url);
          }

return $url;
}
Now short urls for profiles works and looks like
Code: [Select]
http://localhost/4images/profile49

And now I planing to make them like
Code: [Select]
http://localhost/4images/nick/profilelater planing
Code: [Select]
http://localhost/4images/search.htm?search_user=nickchange in to
Code: [Select]
http://localhost/4images/nick/gallery
If someone could help...
« Last Edit: May 27, 2009, 01:35:56 PM by Benny »

Offline Bogdan

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Press Release
Re: [MOD] Google Friendly Urls For 4images Best Seo Mod
« Reply #284 on: June 07, 2009, 04:45:56 PM »
Hi,

It's possible to change the cat and img ( /cat- and /img- ) word from the link with something else? Example: /new- or /picture .