* UbalencyBlog Oga how to create randon photos in header. to show change 1 by 1 like weezywap.xtgem.com & Nurawap.xtgem.com pls help me about this thanx
2017-01-04 20:49 · (0)
* Reignzlord * UbalencyBlog get the code, visit http://reignzwap.xtgem.com/forum/
2017-01-04 22:43 · (0)
* UbalencyBlog * Reignzlord Please help me oga. visit my small web www.ubalencyblog.cf to see my idea

oga
2017-01-05 04:28 · (0)
* Graham * UbalencyBlog This used to be a lot easier but the old method no longer works
this xtscript will do it
<!--parser:xtscript-->
var $list=<xt:filelist sort_type="name" sort_dir="asc" folder="/images" template="|.file_url.#" per_page="0" filter="*.*" />
var $last=call strrpos $haystack=$list;$needle=|
var $rnd=call mt_rand $min=0; $max=($last-1)
var $start=call strpos $haystack=$list;$needle=|;$offset=$rnd
var $end=call strpos $haystack=$list;$needle=#;$offset=$start
var $image=call substr $val=$list;$start=($start+1);$length=($end-$start-1)
print <img src="$image" alt="*" />
<!--/parser:xtscript-->

Copy code
NOTE The way this works The first and last images (sort is by name in the script) in the folder are not very likely to be selected so add 2 specially named duplicate image files to take up those positions in the images folder for the rare occasion when the first or last get selected
2017-01-05 08:58 (edited 2017-01-05 11:53 by Graham ) · (0)
* UbalencyBlog * Graham Thnx already i have succefully my header site www.ubalencyblog.xtgem.com
2017-01-21 05:39 · (0)

Online: Guests: 1