Ok here's what I'm looking for hopefully someone knows of something that could work for this.
I want a block to place on my front page, that takes from a list/database of links and randomly displays it in the block. It needs to be fairly easy to update (as I will be adding new links pretty much daily, and yes I know html and how to make a link)
Cyberclark Elite Nuker
Joined: Nov 20, 2002
Posts: 237
Posted:
Tue Jun 17, 2003 10:22 am
Here is a block that displays one random link at a time. howver the downfall of this block is it doesn't pull from your weblinks database it just uses whatever links you add to the array with in the block code itself. Works wwell if you only have a few links you wish to randomize.
And here is a block that scroll the links from your links database. However no randomness to it, it just scrolls all the links available in your database. I am sure it wouldn't be too hard for a code junkie to add some sort of random seed to this, however I am not that man
As is I can't seem to find one that shows just random links, but maybe these blocks will get you started in the right direction.
Good Luck and Happy Nuking!!!
Harlequin Sergeant
Joined: May 09, 2003
Posts: 81
Posted:
Wed Jun 18, 2003 9:13 am
CyberClark,
Thanks again for the link to the module. It's what I'm looking for, I am however having one minor issue and maybe someone can help me. The code is written so you replace what they typed for "www.link1.com" "www.link2.com" ect. The links I want to place up are entirely to long for a block to fit on one line. So I want to do something like a normal link in html where you do <a href="link here">shown on screen here </a> and it doesn't seem to allow it. See example below:
What it shows:
Code:
* 1) edit the variable $number_links and add your links to the $links array
*
* 2) Upload file to html/blocks/ Then login and activate the block
*/
/*
* how many links to show in the page page
*/
$number_links=5;
/*
* put your links in here - follow the pattern (no comma on last element)
*/ $links=array(
'www.link1.com',
'www.link2.com',
'www.link3.com',
'www.link4.com',
'www.link5.com',
'new.link5.com'
);
I want to do something more like:
Code:
* 1) edit the variable $number_links and add your links to the $links array
*
* 2) Upload file to html/blocks/ Then login and activate the block
*/
/*
* how many links to show in the page page
*/
$number_links=5;
/*
* put your links in here - follow the pattern (no comma on last element)
*/ $links=array('<a href="http://www.local6.com/news/2272794/detail.html">Criminals</a>',
'www.link2.com',
'www.link3.com',
'www.link4.com',
'www.link5.com',
'new.link5.com'
);
Any ideas on how that can be done so that it only shows Criminals in the block, but links to the website?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum