Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #31  
Old 09-29-2006, 07:14 PM
Giuseppe's Avatar
Giuseppe Offline
pp regular
 
Join Date: Sep 2006
Posts: 36
Thanks for the time you spent for me , now don't use your addons, but i subscribe to this TD when somthing go on i will be back.

bye
Reply With Quote
  #32  
Old 10-21-2006, 02:40 PM
me! Offline
pp veteran
 
Join Date: Sep 2006
Posts: 65
Hi

Just wondering

I am getting

Post Slug Patch: NOT INSTALLED
Post Slug Database: OK

The primary addon install went ok. I can create slug title names. I manually patched my index.php. But I can not use the <addon tag>.

From reading the post, it seems like i need to create a .htaccess file. Does anyone have an example. The ones I found on the web, I am not sure they are correct.

Thanks for any all help,
Yvonne
__________________
www.auntyvonne.com
Reply With Quote
  #33  
Old 10-21-2006, 03:04 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 me! View Post
I am getting

Post Slug Patch: NOT INSTALLED
Post Slug Database: OK

The primary addon install went ok. I can create slug title names. I manually patched my index.php. But I can not use the <addon tag>.
Have you tried my pre-patched index.php file yet?
http://members.atlantic.net/~john195...beta_PATCH.zip

(Make a backup of your current index.php file, and then upload my modified one to take its place.)

If the patch was installed properly, you should then be able to access you photos via this url:

index.php?photoslug=[your_photoslug_name]

Quote:
Originally Posted by me! View Post
From reading the post, it seems like i need to create a .htaccess file.

Creating a .htaccess file is not necessary for the addon to work.

Let me know if you have any other questions. :-)
__________________
Jay Williams | A Different View
Reply With Quote
  #34  
Old 10-21-2006, 09:07 PM
me! Offline
pp veteran
 
Join Date: Sep 2006
Posts: 65
Hi Jay,

The pre-made index.php worked!! Thank you. Just a quick question. If I wanted to create a permalink for the current page how would that be done?

Thanks,
Yvonne
__________________
www.auntyvonne.com
Reply With Quote
  #35  
Old 10-21-2006, 10:07 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 me! View Post
If I wanted to create a permalink for the current page how would that be done?
I used the post slug URL as my permalink (example)

By using .htaccess you can make permalinks just about anything you want.

If you have a specific way you would like to do the permalinks, just post it and I'll see if I can help you.
__________________
Jay Williams | A Different View
Reply With Quote
  #36  
Old 10-22-2006, 01:10 PM
me! Offline
pp veteran
 
Join Date: Sep 2006
Posts: 65
Hi Jay,

When looking at your website the slug titles show up at load. This is not happening on my site.

on opening it shows (I tried looking at your source code to see what you are doing that I am doing, but it did not jump out at me.
http://auntyvonne.com/

Permalink Clicked. It shows:

http://auntyvonne.com/index.php?showimage=79

Permalink Code:
<a href="index.php?showimage=<IMAGE_ID>">Permalink</a>
created this line because current image does not show up


pervious
http://auntyvonne.com/index.php?photoslug=yellow-beak
permalink clicked it shows:
http://auntyvonne.com/index.php?showimage=78


Next
works the same way


Current
If the future I will be adding a current link. I am thinking of using this
<a href="index.php" title="Current">Current</a>
Is there a better way of doing this using slug?




Side Note:

I just installed the google-site map addon.

It creates a site map with just the id. Do you think I could blend it with id and slug? Here is the code from that addon

$query = mysql_query("SELECT id,datetime FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime<='$cdate') ORDER BY datetime desc ");

while(list($id,$datetime) = mysql_fetch_row($query))
{
$datetime = strtotime($datetime);
$datetime =date("Y-m-d",$datetime);
$output .= "
<url>
<loc>".$cfgrow['siteurl']."index.php?showimage=$id</loc> <---- this is where I am thinking I could add the slug? What do you think.


Thanks You,
Yvonne
__________________
www.auntyvonne.com
Reply With Quote
  #37  
Old 10-22-2006, 04:07 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:
When looking at your website the slug titles show up at load. This is not happening on my site.
First off, I am using a .htaccess file to make the post slugs load without showing index.php

Creating a .htaccess file in your pixelpost directory with this code should do the trick.

Code:
RewriteEngine On

# Post Slug Addon
RewriteRule ^([a-z0-9-]+)$ index.php?photoslug=$1
Secondly, I have my previous next links setup like this:
HTML Code:
<span class="image-previous"><a href='<IMAGE_PREVIOUS_SLUG>'>Previous</a></span> <span class="image-next"><a href='<IMAGE_NEXT_SLUG>'>Next</a></span>
You can also use that previous link for the image link as well.

If you want to do a post slug permalink, use code similar to this:
HTML Code:
Permalink Code:
<a href="index.php?photoslug=<IMAGE_SLUG>">Permalink</a>
or this if you are useing the .htaccess code:
HTML Code:
[html]Permalink Code:
<a href="<IMAGE_SLUG>">Permalink</a>
[/html]

Quote:
If the future I will be adding a current link. I am thinking of using this
<a href="index.php" title="Current">Current</a>
Is there a better way of doing this using slug?
That way works, but this way is even cleaner:
HTML Code:
<a href="/" title="Current">Current</a>
Maybe it's just me, but I prefer all my links to be as simple as possible. :-)

I'm not currently using the Google maps addon, but this should work...
PHP Code:
$query mysql_query("SELECT id,datetime,slug FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime<='$cdate') ORDER BY datetime desc ");

    while(list(
$id,$datetime,$slug) = mysql_fetch_row($query))
    {
        
$datetime strtotime($datetime);
        
$datetime =date("Y-m-d",$datetime);
        
$output .= "
        <url>
        <loc>"
.$cfgrow['siteurl']."index.php?photoslug=$slug</loc>" 
You could also modify that url if you are using .htaccess

Hopefully that answers you questions.
Feel free to post again if you need more assistance.
__________________
Jay Williams | A Different View
Reply With Quote
  #38  
Old 10-22-2006, 05:18 PM
me! Offline
pp veteran
 
Join Date: Sep 2006
Posts: 65
Hi Jay,


Thanks I will give a whirl.

Y
__________________
www.auntyvonne.com
Reply With Quote
  #39  
Old 10-28-2006, 06:01 PM
me! Offline
pp veteran
 
Join Date: Sep 2006
Posts: 65
Hi Jay,

Sorry for the dumb basic questions which will follow. I am new to all this an well, making beginners mistakes.

I created the .htaccess file and loaded but still seeing the index.php insted of the slug. What I learned so far from the web and have done...
a) use notepad note wordpad
b) confirmed chmod is 644
c) used ascii to upload
d) placed in my root directory same spot as index.php

Thinks not sure of...
a) web said it will work only on apache. I am on a linux hosting.
b) to i have to enable it or turn it on?

Thanks for any and all help,
Y
__________________
www.auntyvonne.com
Reply With Quote
  #40  
Old 10-28-2006, 09:58 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Quote:
Originally Posted by me! View Post
Hi Jay,
a) web said it will work only on apache. I am on a linux hosting.
b) to i have to enable it or turn it on?
a) Linux hosting is equivalent to Apache webserver, so it will work.
b) no, when the Apache finds the .htaccess code it will use it.

Hope this helps.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 07:56 AM.

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