Page 1 of 1
What am I talking about?
Posted: Sun Sep 12, 2004 5:35 pm
by nightraven
Hi folks, this is my first time here but I hope it's okay to ask a quick question?
I am designing a website for free software tutorials, on the home page I want each software package to have a small space where I can have say 'todays featured tutorials'. I want these tutorials and the links to change constantly (selected from a list of all tutorials for that topic).
see
http://www.newventuresuccess.com/test.htm
each featured item will have a small picture, and a text link to the tutorial.
Is there anyway I can make this happen? Does anyone know what this is called so I can discuss it with people who know what they are talking about?[/url]
Posted: Sun Sep 12, 2004 5:38 pm
by feyd
I don't know of a definitive name, however it's normally done with a database query which is asked to randomly select x number of records. These records hold the image, text and link information.
Posted: Sun Sep 12, 2004 11:27 pm
by Christopher
The question is do you want to rotate through the list (i.e. show 1..10, then 11..20, then 21..30) or do you want to a random selection from the list. If you want random, the next question is do you want each set to be different from the previous set, picking each selection only from those that have not been shown, or just picking a random set which may show the same one (randomly) shown twice. There are different methods for each.
Posted: Mon Sep 13, 2004 8:23 am
by Slacker
Sounds like you want a small twist on a Random 'Insert Functionality Here' script.
Posted: Mon Sep 13, 2004 9:05 am
by CoderGoblin
You may want to look at "banner ads"

as an example of some methods to use.
iframes
Posted: Mon Sep 13, 2004 9:12 am
by phpScott
after you figure out how you want to choose your featured tutorial you may want to check out IFRAMES in html as they will allow you to add dynamic content to the front of your page if you first page is like index.html or the like.
Posted: Mon Sep 13, 2004 5:58 pm
by dull1554
only problem with iframes is that...last time i checked, and correct me if im wrong....not all browers support iframes, a matter-a-fact i think only IE 4.0 or later does....
but ive been wrong before and i could be wrong again
Posted: Mon Sep 13, 2004 6:28 pm
by feyd
Firefox 0.8+ supports iframes too.. dunno about others..
Posted: Thu Sep 16, 2004 3:32 am
by CoderGoblin
The question you need to ask is what is your target audience ? How many people within your audience will still use older browsers which do not use your features and is it worth while coding your tutorial based on that kind of browser. Coding for all browsers, whilst giving great access means a lot of complications and generally messy scripts (often bad in a tutorial).
I am all for giving an introduction page for all browsers stating that Mozilla/Explorer X is required - Download Mozila here <link>.
You have an even better case to do this within a free tutorial, after all they are getting something for free, some initial work when needed isn't too much to ask.
Posted: Thu Sep 16, 2004 3:39 am
by patrikG
Don't overcomplicate the issue with client-side stuff that's not necessary.
The SQL (MySQL) for grabbing random rows from the database would look a bit like this:
Code: Select all
SELECT tutorial_name,
tutorial_author,
tutorial_date,
tutorial_url
ORDER BY RAND()
ORDER BY RAND() will obviously do the randomizing work for you.
Posted: Thu Sep 16, 2004 7:53 am
by vigge89
feyd wrote:Firefox 0.8+ supports iframes too.. dunno about others..
IFRAMES are supported in most browsers, just the old ones which doesn't support them. I advice you not to use them though...