Hi,
On search template if I want to show a random embed how do I do this?
Search question
Re: Search question
<thumb num=1 order=easy_rand> <!--EMBED_CODE--></thumb>
Don't forget to run script update
Re: Search question
Hi,
Thanks that worked. Is there anyway to show random number of search queries on a page, from what I see it is fixed now like for example <thumb num=1-50>, so it will show 20 queries per page, if I want it to show any number between 25-50 is it possible?
Thanks that worked. Is there anyway to show random number of search queries on a page, from what I see it is fixed now like for example <thumb num=1-50>, so it will show 20 queries per page, if I want it to show any number between 25-50 is it possible?
Re: Search question
We won't be able to change such template
what's the point to have a random number here ?
what's the point to have a random number here ?
Don't forget to run script update
Re: Search question
Was just checking if we have such functionality. Its just to make the search queries look more random than fixed. Any way we can do this in php?
Re: Search question
an easy way if to output that into php array
like
<thumb num=1-50>
<?php
$somearray[] = 'gallery data';
?>
</thumb>
and then output random number if elemetns from $somearray
this way we can cache $somearray
like
<thumb num=1-50>
<?php
$somearray[] = 'gallery data';
?>
</thumb>
and then output random number if elemetns from $somearray
this way we can cache $somearray
Don't forget to run script update
Re: Search question
What code do I put exactly in $somearray[] and how do I output a random number?
Re: Search question
Exactly what you need to output ..
the question is like "what should I put into template?" depends on what you need, i don't have a ready-made code for you
the question is like "what should I put into template?" depends on what you need, i don't have a ready-made code for you
Don't forget to run script update
Re: Search question
How do get I gallery data elements in $somearray[]?
Re: Search question
$somearray[] = '<!--GALLERY_ID--> and other tags as usual';
Don't forget to run script update