Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #21  
Old 09-28-2006, 10:37 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Ok, I'm just wondering: how did you setup your Pixelpost? Is it located in the root or in a subdirectory?

example: http:\\www.mydomain.com\ <- root
http:\\www.mydomain.com\pixelpost\ <- subfolder
Reply With Quote
  #22  
Old 09-28-2006, 11:59 AM
Giuseppe's Avatar
Giuseppe Offline
pp regular
 
Join Date: Sep 2006
Posts: 36
The second: subfolder.

know that is wrong but i put (to try) .htaccess in subfolder:shock: to see if it work

thxs
Reply With Quote
  #23  
Old 09-28-2006, 01:14 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
This .htaccess code might work better for you:

Code:
RewriteEngine On

# Post Slug Addon
RewriteRule ^([a-z0-9-]+)$ index.php?photoslug=$1
Just create a .htaccess file and upload it to the same directory as Pixelpost.
__________________
Jay Williams | A Different View
Reply With Quote
  #24  
Old 09-28-2006, 01:32 PM
Giuseppe's Avatar
Giuseppe Offline
pp regular
 
Join Date: Sep 2006
Posts: 36
.htaccess with new code uploaded, but link don't change.

There is a possibility rewrite engine is off?

thxs
Reply With Quote
  #25  
Old 09-28-2006, 01:38 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
The htaccess code seems to be working for me.

Example:
http://www.soveratonews.com/fotoblog/liberty

What you need to do now is edit your Pixelpost template and add this code for the next/previous links.
HTML Code:
<span class="image-previous"><a href='/fotoblog/<IMAGE_PREVIOUS_SLUG>'>Precedente</a></span>
<span class="image-next"><a href='/fotoblog/<IMAGE_NEXT_SLUG>'>Successiva</a></span>
__________________
Jay Williams | A Different View
Reply With Quote
  #26  
Old 09-28-2006, 01:52 PM
Giuseppe's Avatar
Giuseppe Offline
pp regular
 
Join Date: Sep 2006
Posts: 36
Perfect now work. THANKS

But i have three more question about:
1) How do do the same for browse_category.html like your gallery that use always the friendly link?

2) Disable or work as photoslug the click on image?

3) google_sitemap - version 1.0 built sitemap with Post Slug url?

thank you
Reply With Quote
  #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
  #28  
Old 09-28-2006, 02:34 PM
Giuseppe's Avatar
Giuseppe Offline
pp regular
 
Join Date: Sep 2006
Posts: 36
Thank you very much jaywilliams :-)
First is ok.
For the second option that work fine with your suggestion i prefer to disable link on image.

... and now go b---ak balls with the sitemap the third.
Reply With Quote
  #29  
Old 09-29-2006, 08:54 AM
Giuseppe's Avatar
Giuseppe Offline
pp regular
 
Join Date: Sep 2006
Posts: 36
Little problem:
now when i go in specific category all thumb point to last image.
There is somthing to do.

thxs
Reply With Quote
  #30  
Old 09-29-2006, 01:01 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:
Originally Posted by Giuseppe View Post
Little problem:
now when i go in specific category all thumb point to last image.
There is somthing to do.

thxs
I'll have to investigate it further, but at the moment I'm a bit to busy.
You can revert to the original code in the meantime. (or you can just re-upload my PostSlug index.php)
__________________
Jay Williams | A Different View
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 07:37 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs