function with random image and structures

Use GitHub to post feature requests for phpwcms.
Locked
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

function with random image and structures

Post by cyrano »

hi there,

does someone know how difficult it is to make this:

I have 10 sructure levels and wish to have random images on the top of each page.

I don't want to make for every structure level a new template, but want to have a function, that is able to put images dedicated for each structure level per random on the top of the page.

I would like to store the images for e.g. in the phpwcms_filestorage folders and call them for e.g. like this:

for random images in level 1: folder 1
for random images in level 2: folder 2
and so on...

or is it possible to make it like:

imagename: nameoflevel_imgaename.jpg
and the function is able to read the first of the name and all images are stored in e.g. folder 1 of phpwcms_filestorage.

What do you think about?

greetings
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
Pappnase

Post by Pappnase »

hello cyrano

i would say palce the pictures ins seperate folder in dthe picture dir! then call the pictures with the random image tag. did you use for every structure an own template!? if not place the image tag in an article!
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi pappnase,

thank you for answering.

hmm, i have now all images per random in the head of the pages and don't want the function mixed with the main content....

so i don‘t want to use a seperate template for each structure level.

I will be able to change all the behaviours on one function or element.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
Pappnase

Post by Pappnase »

hello cyrano

did you also try the script from jan212!?
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi pappnase,
i know about , but i know this script works different... :-)

but thank you for rember to this.

i have more trouble with the nav-row.... :-(
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
Pappnase

Post by Pappnase »

i have seen that you have trouble with the nav_row tag! but why did you place this problem in the hacks part! :roll: :wink:
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

because it is featured in the hacks and enhancements folder, so i thought to ask for help in the support of H&E.... isn't right there?
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

you could...
write a simple CASE: function
use a {php:}


... or request someone here to write a simple case: function ;)
Locked