You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 50 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Random Link display module? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Harlequin
Sergeant
Sergeant


Joined: May 09, 2003
Posts: 81


PostPosted: Tue Jun 17, 2003 6:41 am Reply with quoteBack to top

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)
Find all posts by HarlequinView user's profileSend private message
Cyberclark
Elite Nuker
Elite Nuker


Joined: Nov 20, 2002
Posts: 237


PostPosted: Tue Jun 17, 2003 10:22 am Reply with quoteBack to top

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 Wink

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!!!
Find all posts by CyberclarkView user's profileSend private message
Harlequin
Sergeant
Sergeant


Joined: May 09, 2003
Posts: 81


PostPosted: Wed Jun 18, 2003 9:13 am Reply with quoteBack to top

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?

Thanks in advance
Find all posts by HarlequinView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.173 Seconds - 191 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::