Is there any way in smarty to make the <%$category%> return a random category name??
I want to supply the output to the youtube mod, so that it returns dynamic results everytime, then i could put it on the landing page index.html
kind regards
Is there any way in smarty to make the <%$category%> return a random category name??
I want to supply the output to the youtube mod, so that it returns dynamic results everytime, then i could put it on the landing page index.html
kind regards
Not that I'm aware of. However it should be quite easy to randomly select a category using php and RAND
I'd be interested in this as well... I'll see what I can do to figure it out, but if you find something echo, please let me know![]()
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
in browse.php you will see $category_name = $category_obj->GetCategoryName($cat); Use that as your guide.
use the PHP rand function to get a random number. if there are ANY missing category numbers, you will need to use a while statement to check for missing numbers. Just some ideas. you will need to write the code.
.
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
im sorry dudes but its way beyond me,
I love this MOD but it sucks that you cant grab somthing relevant (to your directory) give it to the youtubeMOD block on the index.html.
Seems a pity,
The solution is there, just someone smart has to work out some code to do this.
If this existed it would make the videos being fetched relevant and dynamic,
anyone think theres a need for this, or would use it ???
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
Well i disagree with you on that , the price is well worth a years subscription , probally not enough considering theres practically 50 mods avalible.
Let alone a great resource to the indexu script, i have to say zubby knows the script like the back of his hand and his response times are quick! normally with code / answer !
Also if you have a MOD suggestion thats good he'll put it together for you
So anyway back to the thread / problem.
I emailed zubby the thread last night and lone behold he has emailed me back the code to do this, so im gonna test now, (and also donate)
Done this for free, blimey what a god.
FSGDAG ask zubby for the codehope he adds this to the youtube mod on his website.
Works very well
Kick Ass![]()
Actually, I did look at the MODs at zubby's site and I would agree with you. If you are not a coder.
of the ones that interested me, I've already done several of them for v3.2 (and updating them for v5 would not be difficult, if any updating is even necesarry).
I think zubby is the one that made most of the improvements for v5. So I wonder why he is no longer doing it...?
But ultimately the reason for not spending the money is: I don't have any sites running INDEXU.
.
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
WAHOOO!!!!!!!! Just sent the e-mail off to Zubby!
ESM, I dont know either why Zubby isn't 'offically' with NiceCoder anymore, but frankly, I could care less... Infact, I'm happy about he's not!!Thats not a dig on anyone, but IndexUDirectory has been a GREAT resource for people like me and I'm EXTREMELY grateful for it.
I will say this ( going a little off topic here ), I would love to learn PHP as well as ESM, Zubby, Inspireme, mpdaddy, Bruce, etc. Infact, its in the top 5 of the high priority list of things for me to accomplishBut I've got a 3 and 1 year old, I've got a wife who weirdly enough actually wants me around
, I own C-4 Hosting, AND I'm a network engineer. So unfortunately, that will have to wait for just a little more time.
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
It's public knowledge and has been said on the forum before that Zubby is no longer with Nicecoder. I dont know why, and I don't care why.