Go Back   NiceCoder Community Forums > Nicecoder Products > IndexU > Blocks and Modification
Register Projects FAQ Members List Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-24-2008, 08:15 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default randomly retriving a category from <%$category%>

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
Reply With Quote
  #2 (permalink)  
Old 03-24-2008, 08:51 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

Not that I'm aware of. However it should be quite easy to randomly select a category using php and RAND
Reply With Quote
  #3 (permalink)  
Old 03-24-2008, 11:16 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

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! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #4 (permalink)  
Old 03-25-2008, 04:09 AM
esm's Avatar
esm esm is offline
Active Member
 
Join Date: Apr 2003
Location: Atlanta GA
Posts: 3,411
esm is on a distinguished road
Default

Code:
Content visible to License Owner only.
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."

.
Reply With Quote
  #5 (permalink)  
Old 03-25-2008, 03:02 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

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 ???
Reply With Quote
  #6 (permalink)  
Old 03-26-2008, 01:38 AM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

Code:
Content visible to License Owner only.
*raises hand* ME ME ME!!!

If someone wants to throw out a price to figure this out, and its a reasonable price, I'll pay for it
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #7 (permalink)  
Old 03-26-2008, 09:33 AM
esm's Avatar
esm esm is offline
Active Member
 
Join Date: Apr 2003
Location: Atlanta GA
Posts: 3,411
esm is on a distinguished road
Default

Code:
Content visible to License Owner only.
sorry, dude, you are just going to have to beat your head against that keyboard a little longer. I don't know what the "youtubeMOD" is....



.
__________________
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

.
Reply With Quote
  #8 (permalink)  
Old 03-26-2008, 09:44 AM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

Code:
Content visible to License Owner only.
Zubby created a YouTube MOD. You can find it on IndexUDirectory.com
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #9 (permalink)  
Old 03-26-2008, 10:05 AM
esm's Avatar
esm esm is offline
Active Member
 
Join Date: Apr 2003
Location: Atlanta GA
Posts: 3,411
esm is on a distinguished road
Default

Code:
Content visible to License Owner only.

Sorry, dude, don't think I want to spend $34.99 to find out what it is...!!!

BTW: WTF is the deal with the 99 pennies....? Just make the damn price $35...!!! sheesh!!!!


.
__________________
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

.
Reply With Quote
  #10 (permalink)  
Old 03-26-2008, 03:25 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Talking

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 code hope he adds this to the youtube mod on his website.
Reply With Quote
  #11 (permalink)  
Old 03-26-2008, 03:39 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

Works very well

Kick Ass
Reply With Quote
  #12 (permalink)  
Old 03-26-2008, 04:27 PM
esm's Avatar
esm esm is offline
Active Member
 
Join Date: Apr 2003
Location: Atlanta GA
Posts: 3,411
esm is on a distinguished road
Default

Code:
Content visible to License Owner only.
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."

.
Reply With Quote
  #13 (permalink)  
Old 03-26-2008, 11:45 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

Code:
Content visible to License Owner only.
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 accomplish But 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! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #14 (permalink)  
Old 03-27-2008, 12:21 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to move Main Category into a New Category? jromano v5.x 2 01-02-2008 08:25 AM
Category Antony Blocks and Modification 6 12-18-2006 05:52 AM
randomly sorted listings romow v5.x 10 11-27-2006 11:32 PM
Show category description on browsing category page seomontreal v5.x 6 06-02-2005 10:08 AM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 05:52 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate