PDA

View Full Version : categories without link?


acroix
06-07-2005, 11:23 AM
Good day,

I am pretty new to Pixelpost and still 'playing' around with it but as far as I see you guys created an awesome tool.

Here is my question: is it possible to display the categories of an image without the linking.

Thanks for the help,

André

Joe[y]
06-07-2005, 11:54 AM
easy peasy. requires a slight mod to index.php

1. find the line that goes:

$image_category_all .= "<a href='$PHP_SELF?x=browse&category=$cat_id'>" .$cfgrow['catgluestart'] .$name .$cfgrow['catglueend']."</a>  ";

it should be around line 226. AND right beneath that line add the following line:

$image_category_all_nolink .= "$name  ";


2. find the line that goes:

$tpl = str_replace("<IMAGE_CATEGORY>",$image_categoryword." ".$image_category_all,$tpl);

and right beneath it add in the line:

$tpl = str_replace("<IMAGE_CATEGORY_NOLINK>",$image_categoryword." ".

you can now use the tag <IMAGE_CATEGORY_NOLINK> to show category names without links! :D

hope that helps.

acroix
06-07-2005, 12:21 PM
COOL, that did it!

Thanks a bunch.

André