|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
indeed
but it needs to be dynamic - any ideas?
|
|
#4
|
|||
|
|||
|
Does anyone know if its possible ?
Thanks |
|
#5
|
||||
|
||||
|
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 |
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
||||
|
||||
|
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 |
|
#8
|
||||
|
||||
|
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!
|
|
#9
|
|||
|
|||
|
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']); 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);
Code:
$tpl = ereg_replace("<CATEGORY_ID>",$category_id,$tpl);
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> |
|
#10
|
||||
|
||||
|
Dare I did and it worked...thanks!
|
| Post Reply |
| Thread Tools | |
|
|