4images Modifications / Modifikationen > Mods & Plugins (Requests & Discussions)

Random pictures

<< < (2/31) > >>

SLL:
ah.. that's what he wanted  :roll:

Chris:

--- Quote from: V@no ---Now, in home.html template add {random_images}
--- End quote ---

:lol:

V@no I should hire you to finish the rest of the coding for my web site so I can get back to photography !

joecks:
:D Thank you very much v@no, it works... great!!!

Only one question left  :oops:

How do you put the title "random Images" above the random images.

I hope it is no stupid question.... .

Greetings Joecks

V@no:

--- Quote from: joecks ---:D Thank you very much v@no, it works... great!!!
Only one question left  :oops:
How do you put the title "random Images" above the random images.
I hope it is no stupid question.... .
Greetings Joecks
--- End quote ---

I the code I posted, change:
--- Code: ---$site_template->register_vars("random_images", $random_images);
unset($random_images);
--- End code ---

to this:
--- Code: ---$site_template->register_vars(array(
"random_images" => $random_images,
"lang_random_images" => $lang['random_images']
));
unset($random_images);
--- End code ---


Then, open /lang/<yourlanguage>/main.php
and at the end of the file, just before ?> add this:
--- Code: ---$lang['random_images'] = "Random Images";
--- End code ---

now u can use this tag in the template: {lang_random_images}

joecks:
@ V@no ,

You are the best !!!

Now it works great !!

Greetings

Carlo

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version