View Full Version : Using the variables
dreado
11-13-2005, 10:19 PM
I'm trying to create a dynamic url to display images that relate the page category title. I thought this might work
Content visible to registered users only. but it doesn't. :(
Any ideas?
Ap0s7le
11-13-2005, 10:29 PM
Create a field in the DB to store image location, add that in the admin and you should be done.
Then simply call from the DB.
I just got done doing two sites that use something like this. If you need a programmer, let me know and I can really hook you up.
-Casey
Davilac
11-14-2005, 11:28 AM
If you want an easy way (I think) modify the code. You surely are using modrewrite, so you can have pages like that: ofidir.com/Arts/Animation/
if you put that code, the browser will search the image in ofidir.com/Arts/images/
What you must do is to set a folder to store the images and put an absolute path, instead of a relative path, so if you misunderstood mi poor english, what you must do is use this code:
Content visible to registered users only.
Ap0s7le
11-14-2005, 06:15 PM
What happens if you have two Cats of the same name, just in different SubCats?
You couldn't define the two seperate images eh?
-Casey
dreado
11-14-2005, 07:22 PM
Thanks Davilac, that is what I was trying to do, but I’m afraid using {$smarty.const.DOC_ROOT} makes no difference, I get exactly the same result – the url of the image just omits the {$cat.TITLE} part eg ...elisted.org/images/.gif
Content visible to registered users only.
That doesn’t bother me, because if the categories have the same name, then I’ll want the same image.
dreado
11-16-2005, 08:19 PM
...anyone know if this method is possible?
Ap0s7le
11-16-2005, 10:23 PM
dreado,
What is the link to your directory?
I don't have a way of modifying/testing it here, but if I can get FTP access than I'll look into it for you.
later
-Casey
dreado
11-16-2005, 10:29 PM
Thanks for the offer but I don't really want to give out login details.
The link is in my little toolbar thing (WWW)
dreado
11-26-2005, 12:38 AM
I'd still like to know if Content visible to registered users only. is possible :D
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.