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, 351 guest(s) and 25 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Help with block [ ]
 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
Rubens
Nuke Cadet
Nuke Cadet


Joined: Feb 06, 2008
Posts: 2


PostPosted: Tue Mar 04, 2008 8:02 am Reply with quoteBack to top

Hi,
maybe someone has the time to help me, i would like to use a center block for downloads and reviews.
I use the NSN Download Module and i have a center block for the latest 10 downloads, i put the code here, i would like to have in the same block the latest 10 reviews.
I do not know how to do that. I hope you understand me left side the latest 10 files, right side the latest 10 reviews. Is that possible?
Could you help me with that?
Now the code for the downloads:
Code:
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}

global $prefix, $db;

$result = $db->sql_query("SELECT lid, title, date, hits FROM ".$prefix."_nsngd_downloads ORDER BY lid DESC LIMIT 0,10");
$content = "<table width=\"100%\" border=\"0\">";
while (list($lid, $title, $date, $hits) = $db->sql_fetchrow($result)) {
$lid = intval($lid);
$title = stripslashes($title);
$title2 = ereg_replace("_", " ", $title);
$post_time = $date;
$content .= " <tr>";
$content .= " <td align=\"left\" valign=\"top\">";
$content .= " <img src=\"images/blocks/downloads.png\" border=\"0\" alt=\"\" title=\"\" width=\"16\" height=\"16\">";
$content .= " </td>";
$content .= " <td align=\"left\" valign=\"top\">";
$content .= " <a href=\"modules.php?name=Downloads&amp;op=getit&amp ;lid=$lid&amp;title=$title\"><b>$title2</b></a><br>";
$content .= " </td>";
$content .= " <td align=\"right\" valign=\"top\">";
$content .= " [ Posted on $post_time | Downloads $hits ]";
$content .= " </td>";
$content .= " </tr>";
}
$content .= "</table>";


The block does not have to show esle that the image and the filename posted and date are not necessary, the same way i would like to have the latest 10 reviews in the same block.
Sorry for my english.
Thanks in advance
Find all posts by RubensView 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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.062 Seconds - 432 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::