PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
bsweb
Regular
Regular


Joined: Jun 19, 2006
Posts: 57

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

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: 7452
Location: Arizona

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

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...
View user's profile Send private message Visit poster's website
bsweb
Regular
Regular


Joined: Jun 19, 2006
Posts: 57

PostPosted: Mon Jul 28, 2008 7:05 am Reply with quote Back to top

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
View user's profile Send private message
montego
Site Admin


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

PostPosted: Mon Jul 28, 2008 7:11 am Reply with quote Back to top

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');
View user's profile Send private message Visit poster's website
bsweb
Regular
Regular


Joined: Jun 19, 2006
Posts: 57

PostPosted: Mon Jul 28, 2008 9:36 am Reply with quote Back to top

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 to the forums!
) 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
View user's profile Send private message
montego
Site Admin


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

PostPosted: Tue Jul 29, 2008 6:36 pm Reply with quote Back to top

Good work!
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


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

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

I did the same thing on my block a while back. Smile
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum