The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello I Need To Show The Highest Top Members In Reputation In Header
Or The Highest Member In Reputation In Header --------------- Added [DATE]1296733658[/DATE] at [TIME]1296733658[/TIME] --------------- Edit Lets Say This is Show The Reputation Of You {vb:raw bbuserinfo.field5} Whats The Code To Show Highest User In This Field ? --------------- Added [DATE]1296761452[/DATE] at [TIME]1296761452[/TIME] --------------- Edit 2 SELECT COUNT( * ) AS `Rows` , `field5` FROM `userfield` GROUP BY `field5` ORDER BY `field5` LIMIT 0 , 30 I Found The Table That I Was Searching For. Is There Anyone Who Can Help Me To Show It Up In Forums Templates |
#2
|
||||
|
||||
![]()
you need to use plugin for your code, save result in variable, then insert it in a template
|
#3
|
|||
|
|||
![]() Quote:
Can You Do That Coz I Tried And Faild Really |
#4
|
||||
|
||||
![]()
Are you trying to show the person with the highest reputation, or the person with the highest number in field5? userfield.field5 is not the reputation, unless you have set it up to be that way?
|
#5
|
|||
|
|||
![]() Quote:
It Show Highest Reputation I Tried To Edit It To Make Get The Highest Number In Field 8 The Original Code Code:
$getrepx = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "user ORDER BY reputation DESC LIMIT 0, $adet"); while ($getrep = $db->fetch_array($getrepx)) { $sonuclaryaz .= "<a href=\"member.php?u=".$getrep['userid']."\">".$getrep['username']."</a> (".$getrep['reputation']."), "; } Code:
$getrepx = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "userfield ORDER BY field8 DESC LIMIT 0, $adet"); while ($getrep = $db->fetch_array($getrepx)) { $sonuclaryaz .= "<a href=\"member.php?u=".$getrep['userid']."\">".$getrep['username']."</a> (".$getrep['field8']."), "; } The Highest Number In X Field |
#6
|
||||
|
||||
![]()
And what is the result of your edit? Isn't it working? What is the output - can we see it?
|
#7
|
|||
|
|||
![]()
(nothing), (nothing), (nothing)
But When I Make It Like That Code:
$getrepx = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "user ORDER BY posts DESC LIMIT 0, $adet"); while ($getrep = $db->fetch_array($getrepx)) { $sonuclaryaz .= "<a href=\"member.php?u=".$getrep['userid']."\">".$getrep['username']."</a> (".$getrep['posts']."), "; } Now Why It Cant Import Data From The userfield Table Is There's Somethign Wrong In This Code ? Code:
$getrepx = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "userfield ORDER BY field8 DESC LIMIT 0, $adet"); while ($getrep = $db->fetch_array($getrepx)) { $sonuclaryaz .= "<a href=\"member.php?u=".$getrep['userid']."\">".$getrep['username']."</a> (".$getrep['field8']."), "; } |
#8
|
|||
|
|||
![]() Quote:
Also LIMIT 0 is not necessary. And what is $adet? |
#9
|
||||
|
||||
![]()
What Adrian said about $adet - what is it? And, userfield only has userinformation, not username, so that isn't going to spit out (you need to JOIN with the user table). But, you should have gotten something to spit out. You didn't even get the "(" and ")" to spit out? If not, then you aren't outputting it correctly. What are you doing to output the variable $sonuclaryaz? We really do need to see the whole thing or else we can't tell where you are going wrong.
|
#10
|
|||
|
|||
![]()
Thats A Product From vBulletin Iam Not The Programmer I Put It As Example Coz Its Show What I Need Exactly
Can You Give Me The Right PHP Code To Get Userfied Information Or Can U Do A Plugin Doing This I Think You Are Understood My Needs Now I Need To Retrieve The Userfield Information From Userfield Table From X Field And Show It In Forumhome If You Can't Just Give Me The Way On How To Start A Small Plugin Like The One I Posted Show Highest Member In X Field And I Appreciate Your help Really --------------- Added [DATE]1298508413[/DATE] at [TIME]1298508413[/TIME] --------------- Quote:
https://vborg.vbsupport.ru/showpost....7&postcount=10 Can You Edit This Product For Me To Satisfy My Need And Make It Show The Highest Members In Field X Instead Of Reputation --------------- Added [DATE]1298509744[/DATE] at [TIME]1298509744[/TIME] --------------- Iam Going To Sleep Now I Ask You Plz To Subscribe To Thread Plz So I Can Reach You And Thanks SO Much For Your Help You Are Gentlemen |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|