Forums Archive Index > Cool free scripts > use newsticker internally
Date: 16 Jan 2005 12:34 pm
I am a beginner at this but think your scripts are great!
What I would like to do is provide upload text areas on a site page so that members (or me) can update their own news ticker info.
I am not sure if this is the easiest way to "change" effectively, a scrolling text box, - yours just looks that good!
The member logs-in, goes to their (ID) "feed page" which has eg. 6 text boxes, fills in the text for each "feed", clicks submit (or update) and their newsticker is set-up (or text changed) to the text they submitted. (Like when you upload a free ad. onto a page)
Does this make any sense?
many thanks for your help - and great FREE scripts - brilliant.
beginner.
PS.. If you are able to help me (thanks) - please detail it for an absolute beginner! (me)
Date: 18 Jan 2005 5:56 am
Well there are many different ways to do the job in the case.
But let's say you would use some kind of database to store the news items for the different users. So when the user goes to your "feed page which has eg. 6 text boxes" he/she submits the items and your server-side script enters the data into the database. Now that you have the items for the current user, you can, for instance, do the following:
1) Change the extension of the V-NewsTicker file to match your server-side scripts' extension and make it executable (e.g. v_newsticker.php or v_newsticker.asp, or v_newsticker.jsp...).
2) Let's say you use PHP and you have the V-NewsTicker script in the v_newsticker.php file. Make the link to the script file in your pages look like this:
<script type="text/javascript" language="JavaScript1.2" src="v_newsticker.php?USER_ID=<?= $USER_ID; ?>"></script>
$USER_ID is just an example variable which will show which is the current user. Of course, you may want to pass, for instance, the session id in the case..
Then in the "v_newsticker.php" script you can use the variable that identifies the current user and load the news items for the current user from the database. You just have to build the items of the "v_content" JavaScript array with the PHP output.
Date: 19 Jan 2005 7:08 pm
Hi Vasil,
Thank you for your very quick (and very helpful) reply.
I do not have another lifetime to complete this! (at 66)
Please could I pay you to do the script for me?
If you are too busy I will understand, but also I am willing
to pay for your time, and for being so helpful. That's fair?
I have downloaded your scripts which work brilliantly -
but I know practically nothing about php, so I'm stuck.
If I drafted the "look" of the pages in html
(you could probably use your pages much better)
could you make your scripts work in php for me please?
How much would it cost?
I would need:
1) a sign-in page >
2) an upload "areas" page > (for text and pics, about 10 areas)
3) a pre-view page > (of submitted areas)
4) the RSS page > (finished view "browser" page)
(and probably a "failed" to sign in page + anything else you think of)
Thank you for your help, (if you can) many thanks.
Beginner.
(Jerome) jt{@}readytogo.co.uk