Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
bsweb
Regular
Regular


Joined: Jun 19, 2006
Posts: 57

PostPosted: Mon Jul 28, 2008 6:04 am Reply with quote

Hi,

I'm using Raven Nuke 2.02.02 and wondered if there was a block somewhere that would display the latest weblinks added and approved

Cheers
 
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Mon Jul 28, 2008 6:09 am Reply with quote

bsweb, is not blocks\block-Top10_Links.php such a block? Wink

BTW, you are way behind on RN releases... so many fixes are in the latest, including security. You might want to consider upgrading and staying more current...

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
bsweb
PostPosted: Mon Jul 28, 2008 7:05 am Reply with quote

Thanks for that Montego but that lists the top links, what I wanted to do was to list the most recent links to give viewers more incentive to leave links.

As to being a bit behind on RN releases, I'm having a bit of trouble with my broadband connection not finding my website, so until my provider sorts it out or I move then I'll have to stick with it. Don't fancy uploading via dialup!

If there is a way to modify that block to show the latest 5 links that would be great
 
montego
PostPosted: Mon Jul 28, 2008 7:11 am Reply with quote

Well, you could try to make that SQL line as follows:

$result = $db->sql_query('SELECT lid, title FROM '.$prefix.'_links_links ORDER BY lid DESC LIMIT 0,5');
 
bsweb
PostPosted: Mon Jul 28, 2008 9:36 am Reply with quote

Thanks Montego that works a treat but the page the links open to is a bit confusing to say the least so I have changed it with a little assistance from a previous post ( Only registered users can see links on this board! Get registered or login! ) and with a little bit more adjusting the $content line became.
Code:
$content .= "<strong><big>&middot;</big></strong>&nbsp;$a: <a href=\"links.html?amp;l_op=visit&amp;lid=$lid&amp;ttitle=$title\">$title2</a><br />";
so it now opens the target website.

Many Thanks again Very Happy
 
montego
PostPosted: Tue Jul 29, 2008 6:36 pm Reply with quote

Good work!
 
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Wed Jul 30, 2008 7:33 am Reply with quote

I did the same thing on my block a while back. Smile

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©