4images Forum & Community

4images Modifications / Modifikationen => Templates & Styles (Requests & Discussions) => Topic started by: wickedd on June 11, 2008, 03:43:04 PM

Title: HOW: one photo from each category in index?
Post by: wickedd on June 11, 2008, 03:43:04 PM
hey gyus, please, is it possible to do this?

on index, instead of latest images, I need one image from each kategory(first or latest, doesnt matter)
maybe just change sql request for {new_images} will be enough, I dont know

thank you
Title: Re: HOW: one photo from each category in index?
Post by: mawenzi on June 11, 2008, 03:48:31 PM
... try this ...
... [MOD] Category Image v1.0.2 ... a random image in category_bit.html ...
... http://www.4homepages.de/forum/index.php?topic=6922.0 ...
Title: Re: HOW: one photo from each category in index?
Post by: wickedd on June 11, 2008, 03:55:08 PM
thanks for quick reply but I dont want picture instead of category name
I just need different sql command for different pictures at index :)
Title: Re: HOW: one photo from each category in index?
Post by: mawenzi on June 11, 2008, 04:23:32 PM
... it is not a picture instead of category name ... !
... it is a additional picture ... !
... but of course you can also show a category image otherwise ...
... it should be a request in Mods & Plugins (Requests & Discussions) ... ;)
Title: Re: HOW: one photo from each category in index?
Post by: wickedd on June 11, 2008, 07:37:03 PM
thanks, that mod works great but i dont get it how put that kategory image into index page
Title: Re: HOW: one photo from each category in index?
Post by: mawenzi on June 11, 2008, 07:49:16 PM
... it is not a MOD, it is only a short hint as a very short tutorial ...
...
... you can make a copy of section "Show New Images" in your index.php ...
... so, now you can edit this section to your needs to show "One Image Of Each Category" ...
... and register the tag e.g. "image_of_each_cat" ...
... in home.html you can now use {image_of_each_cat} ...
...
... the rest is "fine tuning" ... ;)
Title: Re: HOW: one photo from each category in index?
Post by: wickedd on June 12, 2008, 11:25:40 AM
thanks again man for your good-will but im really stupid in that kind of things :D

... so, now you can edit this section to your needs to show "One Image Of Each Category" ... // yeah i get it, but question is how edit, because i dont know

I need advice like "Find this, add this below" :)