View Single Post
  #27  
Old 09-28-2006, 02:16 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
Quote:
1) How do do the same for browse_category.html like your gallery that use always the friendly link?
This requires some modification of the Pixelpost code.

Open up your modified index.php file.
Go to line 724.

you should see this code:
PHP Code:
        $lookingfor 1;
        
$query mysql_query("SELECT 1,id,headline,image,datetime FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime<='$cdate') ORDER BY datetime desc");
    }


    while(list(
$count,$id,$title,$name,$datetime) = mysql_fetch_row($query))
    {
        if( 
$count != $lookingfor ) continue;   // Major hack for the browse filters.
        
$title pullout($title);
        
$title htmlspecialchars($title,ENT_QUOTES);
        
$thumbnail "thumbnails/thumb_$name";
        
$thumb_output .= "<a href=\"$showprefix$id\"><img src=\"$thumbnail\" alt=\"$title\" title=\"$title\" class=\"thumbnails\" /></a>";
    } 
now copy-paste this "modified" code over that code.
PHP Code:
        $lookingfor 1;
        
$query mysql_query("SELECT 1,id,headline,image,datetime,slug FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime<='$cdate') ORDER BY datetime desc");
    }


    while(list(
$count,$id,$title,$name,$datetime,$slug) = mysql_fetch_row($query))
    {
        if( 
$count != $lookingfor ) continue;   // Major hack for the browse filters.
        
$title pullout($title);
        
$title htmlspecialchars($title,ENT_QUOTES);
        
$thumbnail "thumbnails/thumb_$name";
        
$thumb_output .= "<a href=\"/fotoblog/$slug\"><img src=\"$thumbnail\" alt=\"$title\" title=\"$title\" class=\"thumbnails\" /></a>";
    } 

See if that fixes it for you.


Quote:
2) Disable or work as photoslug the click on image?
That's easy to do.
Simply open up your template and edit the image link.
HTML Code:
<a href="/fotoblog/<IMAGE_PREVIOUS_SLUG>">
[...IMAGE_CODE...]
</a>
Quote:
3) google_sitemap - version 1.0 built sitemap with Post Slug url?
I haven't used that addon, so I am not sure how it is built. Maybe the author of that addon could assist you?
__________________
Jay Williams | A Different View
Reply With Quote