NukeXchange Network

          

NukeZone Hosting - Fast, Affordable and Dependable
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·decompressing EN-Book-Nuke.tar.tar
·How to allow spaces/gaps/"-" in allowed usernames
·How to Setup PHPNUKE on win2k
·cannot save changes
·voting?
·Nuke forum picture problem
·How to change smtp port on wampserver and windows
·yet another 301 redirect problem
·Image display? - newbie
·php nuke help

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: qwertz
Today: 2
Yesterday: 0
Overall: 15102

Visitation:
Guests: 470
Members: 0
Total: 470


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Nuke Sites Link Directory
Nuke Sites Link Directory

NukeResources :: View topic - Top poster Block
NukeResources Forum Index

NukeResources Forum Index -> Random Thoughts -> Top poster Block
Post new topic  Reply to topic    View previous topic :: View next topic 
Top poster Block
PostPosted: Sat May 20, 2006 4:42 pm Reply with quote
djdiper
Resource Seeker
Resource Seeker
 
Joined: Apr 07, 2006
Posts: 16




Hi there people Wink

I downloaded the Top Poster block from this site.
The block shows top 5 posters in the forum.

There is one thing I would like to change in this block.
This block shows contents downwards with this code:

Code:
}
$a = 1;
    global $user, $cookie, $sitename, $prefix, $user_prefix, $dbi, $admin, $module_name;
    $result=sql_query("SELECT user_id, username, user_posts, user_avatar FROM ".$user_prefix."_users ORDER BY user_posts DESC LIMIT 0,5", $dbi);
    while(list($user_id, $username, $user_posts, $user_avatar) = sql_fetch_row($result, $dbi)) {
$content .= "<div align=\"center\"><table class=\"outer\" cellpadding=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" cellspacing=\"1\" border=\"0\">";
$content .= "<tr class=\"even\" vAlign=\"middle\">";
$content .= "<td align=\"middle\">";
if ($user_avatar=="") {
$content .= "  <a href=\"forum-userprofile-.html$user_id\"><img alt src=\"modules/Forums/images/avatars/noimage.gif\" border =\"0\" width=\"32\"></a></td>";
}
else
if (eregi("http://", $user_avatar)) {
$content .= "  <a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\"><img alt src=\"$user_avatar\" border =\"0\" width=\"32\"></a></td>";
}
else
$content .= "  <a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\"><img alt src=\"modules/Forums/images/avatars/$user_avatar\" border =\"0\" width=\"32\"></a></td>";
$content .= "<td align=\"middle\"> <a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\"><b>$username</b></a> <br> <a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$username\">Posts:</a>";
$content .= " <a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$username\">$user_posts</a> </td>";
$content .= "</tr>";
$content .= "</table></div><hr>";
}


Do you know how I can get this shown on one row?
I've tried to change the code tr and td, but with no luck..

Can anybody help me?
View user's profile Send private message
PostPosted: Sat May 20, 2006 6:47 pm Reply with quote
darklord
Resourceful
Resourceful
 
Joined: Feb 25, 2006
Posts: 210




see those <br> tags..remove em
but that will show 5 post..in one long row...expand ur site badly
If u want something different post with a little more detail.

_________________

for those who STAND shall NEVER fall and those who fall shall rise once more...never give up the end is just another beginning.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
PostPosted: Sun May 21, 2006 1:00 am Reply with quote
djdiper
Resource Seeker
Resource Seeker
 
Joined: Apr 07, 2006
Posts: 16




darklord wrote:
see those <br> tags..remove em
but that will show 5 post..in one long row...expand ur site badly
If u want something different post with a little more detail.


Thx for the reply m8.

I want this as a Center block. Thats why i need it all in one line.
There is only one <br> tag, and removing that doesn't help.

Take a look at Raven's Site and see his Forum Center block.
THAT is what I would like Wink
Not the Expand thing, but take a look at Top Users part of it!
View user's profile Send private message
PostPosted: Sun May 21, 2006 3:11 am Reply with quote
darklord
Resourceful
Resourceful
 
Joined: Feb 25, 2006
Posts: 210




now thats a bit better of detail...thats not somethin i could help u with using the code u posted..that is a block in itself..
u need to search for the block.

_________________

for those who STAND shall NEVER fall and those who fall shall rise once more...never give up the end is just another beginning.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
PostPosted: Sun May 21, 2006 3:13 am Reply with quote
djdiper
Resource Seeker
Resource Seeker
 
Joined: Apr 07, 2006
Posts: 16




darklord wrote:
now thats a bit better of detail...thats not somethin i could help u with using the code u posted..that is a block in itself..
u need to search for the block.


Got it to work.

The code will be like this then:

Code:
$a = 1;
    global $user, $cookie, $sitename, $prefix, $user_prefix, $dbi, $admin, $module_name;
    $result=sql_query("SELECT user_id, username, user_posts, user_avatar FROM ".$user_prefix."_users ORDER BY user_posts DESC LIMIT 0,5", $dbi);
$content .= "<div align=\"center\"><table class=\"outer\" cellpadding=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" cellspacing=\"1\" border=\"0\">";
$content .= "<tr class=\"even\" vAlign=\"middle\">";
    while(list($user_id, $username, $user_posts, $user_avatar) = sql_fetch_row($result, $dbi)) {
 
$content .= "<td align=\"middle\">";
if ($user_avatar=="") {
$content .= "  <a href=\"forum-userprofile-.html$user_id\"><img alt src=\"modules/Forums/images/avatars/noimage.gif\" border =\"0\" width=\"32\"></a></td>";
}
else
if (eregi("http://", $user_avatar)) {
$content .= "  <a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\"><img alt src=\"$user_avatar\" border =\"0\" width=\"32\"></a></td>";
}
else
$content .= "  <a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\"><img alt src=\"modules/Forums/images/avatars/$user_avatar\" border =\"0\" width=\"32\"></a></td>";
$content .= "<td align=\"middle\"> <a href=\"modules.php?name=Forums&amp;file=profile&amp;mode=viewprofile&amp;u=$user_id\"><b>$username</b></a> <br> <a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$username\">Posts:</a>";
$content .= " <a href=\"modules.php?name=Forums&amp;file=search&amp;search_author=$username\">$user_posts</a> </td>";
 
}
$content .= "</tr>";
$content .= "</table></div><br>";
View user's profile Send private message
PostPosted: Sun May 21, 2006 3:20 am Reply with quote
darklord
Resourceful
Resourceful
 
Joined: Feb 25, 2006
Posts: 210




link me to ur site plz

_________________

for those who STAND shall NEVER fall and those who fall shall rise once more...never give up the end is just another beginning.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
PostPosted: Sun May 21, 2006 3:23 am Reply with quote
djdiper
Resource Seeker
Resource Seeker
 
Joined: Apr 07, 2006
Posts: 16




darklord wrote:
link me to ur site plz


Check Out our forum block at nukenorway or hxnorway Wink

both of them are my sites Rolling Eyes
View user's profile Send private message
PostPosted: Sun May 21, 2006 4:32 am Reply with quote
darklord
Resourceful
Resourceful
 
Joined: Feb 25, 2006
Posts: 210




id like to see the block i mean working.

_________________

for those who STAND shall NEVER fall and those who fall shall rise once more...never give up the end is just another beginning.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
PostPosted: Sun May 21, 2006 4:37 am Reply with quote
djdiper
Resource Seeker
Resource Seeker
 
Joined: Apr 07, 2006
Posts: 16




darklord wrote:
id like to see the block i mean working.


I have added the above code to the forum block.
You will see it on the frontpage of the site Wink
View user's profile Send private message
PostPosted: Sun May 21, 2006 4:49 am Reply with quote
darklord
Resourceful
Resourceful
 
Joined: Feb 25, 2006
Posts: 210




cant see it..time for bed though...ill look at it tomorrow

_________________

for those who STAND shall NEVER fall and those who fall shall rise once more...never give up the end is just another beginning.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Top poster Block
 NukeResources Forum Index -> Random Thoughts
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
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 139 unique hit(s) in the past 24 hours.
Forums ©
Download the Best Archiver in the World


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.35 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::