Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 12-09-2004, 09:04 AM
dannykey Offline
forum loafer
 
Join Date: Dec 2004
Posts: 3
Category ID

On my site over at www.dannykey.co.uk, under each photo i state what category it is in, and that also links to the browse page, how do i link it to the browse page filtered by that category ? Don't seem to be able to find a way.

Thanks,

Danny
Reply With Quote
  #2  
Old 12-09-2004, 09:08 AM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
so under the photo where it says animals, you want it to link direcly to http://www.dannykey.co.uk/index.php?...amp;category=3 ?
__________________
i should say more clever stuff
Reply With Quote
  #3  
Old 12-09-2004, 09:19 AM
dannykey Offline
forum loafer
 
Join Date: Dec 2004
Posts: 3
indeed but it needs to be dynamic - any ideas?
Reply With Quote
  #4  
Old 12-13-2004, 07:27 AM
dannykey Offline
forum loafer
 
Join Date: Dec 2004
Posts: 3
Does anyone know if its possible ?

Thanks
Reply With Quote
  #5  
Old 12-13-2004, 03:46 PM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
Dannykey, this would probably be possible. I don't know why it's not in there from the start.

You will need to alter some stuff though.

I'll try and help later, right now I've got no time really, very sorry

// punk
__________________
icq: 66760929
Reply With Quote
  #6  
Old 12-14-2004, 07:15 AM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
Quote:
Originally Posted by pixelpunk
Dannykey, this would probably be possible. I don't know why it's not in there from the start.

You will need to alter some stuff though.

I'll try and help later, right now I've got no time really, very sorry

// punk
Fantastic - i'll await your reply
Reply With Quote
  #7  
Old 12-14-2004, 07:54 AM
pixelpunk's Avatar
pixelpunk Offline
pixelpost guru
 
Join Date: Oct 2004
Location: Sweden
Posts: 504
Send a message via ICQ to pixelpunk
I'll advice you to email me, this thread will most likely fall out of my attention and then you will get annoyed I'm not helping you and all that stuff.

Email me and I will see it and be reminded and when I've got some time I just do it for you

punk [at] pixelpunk.se

// pixel
__________________
icq: 66760929
Reply With Quote
  #8  
Old 12-19-2004, 02:32 PM
greentraveler's Avatar
greentraveler Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 106
If you guys find a way to pull this off, please post it up when you get a chance. I'd love to add it to my site!
Reply With Quote
  #9  
Old 12-19-2004, 03:50 PM
Connie
Guest
 
Posts: n/a
If you dare to edit your index.php-file, here is how to do it, I will publish it with more details later:

open index.php in your main pixelpost folder and find line #138
Code:
$image_category = pullout($image_category['name']);
add the the following lines after line #138:

Code:
// get category for browsing
$query = mysql_query("select id from ".$pixelpost_db_prefix."categories where name='$image_category'");
$category_id = mysql_fetch_array($query);
$category_id = pullout($category_id['id']);

find line #223:
Code:
$tpl = ereg_replace("<IMAGE_ID>",$image_id,$tpl);
enter the following line after line #223:
Code:
$tpl = ereg_replace("<CATEGORY_ID>",$category_id,$tpl);
now you have the tag <CATEGORY_ID> which you can use in your template like I did at http://www.photografitti.de:

in your active image_template.html you can use this link:
Code:
<a href="index.php?x=browse&category=<CATEGORY_ID>">alle Bilder dieser Kategorie</a>
and here you are... :P
Reply With Quote
  #10  
Old 12-19-2004, 05:06 PM
greentraveler's Avatar
greentraveler Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 106
Dare I did and it worked...thanks!
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 10:00 PM.

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