Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 02-23-2011, 11:13 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try a query more like:
PHP Code:
$getrepx $db->query_read("SELECT userfield.field8, user.userid, user.username 
FROM " 
TABLE_PREFIX "userfield 
LEFT JOIN " 
TABLE_PREFIX "user
ON (user.userid = userfield.userid)
ORDER BY userfield.field8 DESC LIMIT 10"
); 
Not knowing how you are putting this into the page though doesn't help us figure out why nothing is displaying. You really need to post the part where you add it to the template - both the php page and what is in the template.
Reply With Quote
  #12  
Old 02-24-2011, 06:23 AM
3amalah 3amalah is offline
 
Join Date: Nov 2010
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Try a query more like:
PHP Code:
$getrepx $db->query_read("SELECT userfield.field8, user.userid, user.username 
FROM " 
TABLE_PREFIX "userfield 
LEFT JOIN " 
TABLE_PREFIX "user
ON (user.userid = userfield.userid)
ORDER BY userfield.field8 DESC LIMIT 10"
); 
Not knowing how you are putting this into the page though doesn't help us figure out why nothing is displaying. You really need to post the part where you add it to the template - both the php page and what is in the template.
Hello Lynne Thanks So Much For Your Answer Look

https://vborg.vbsupport.ru/attachmen...1&d=1298535707

Thats The Product

I Edited It With The Code You Provided Me

All I Need It To Do Is Just Show The Highest Member In Field 8

I Dont Need More Features Or Anything

Or Just Write Me The Php Code And I Will try For It

And Special Thanks For You
Reply With Quote
  #13  
Old 02-24-2011, 02:22 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't want to know what the original looks like, I am only interested in what you are doing with the code for your site. You need to post about *your* product.
Reply With Quote
  #14  
Old 02-24-2011, 04:14 PM
3amalah 3amalah is offline
 
Join Date: Nov 2010
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I don't want to know what the original looks like, I am only interested in what you are doing with the code for your site. You need to post about *your* product.
Ok Lynne I Made Field Show Every User Level

Everyone Has A Level

I Need The Top Users In Field X That Show Levels In Forumhome

To Become Like That

Lynne : Level 10
3amalah : Level 5
xxx : Level 2
Reply With Quote
  #15  
Old 02-24-2011, 04:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I understand what you *want*. I want to see all your current code. Please post your plugin, telling us the hook location, and put code tags around it. And post any template, giving us the template name, and put code tags around it. If you insert something into an existing template, tell us what template and give us about 10 lines from it. We cannot help if we cannot see what your code currently looks like.
Reply With Quote
  #16  
Old 02-24-2011, 05:02 PM
3amalah 3amalah is offline
 
Join Date: Nov 2010
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I understand what you *want*. I want to see all your current code. Please post your plugin, telling us the hook location, and put code tags around it. And post any template, giving us the template name, and put code tags around it. If you insert something into an existing template, tell us what template and give us about 10 lines from it. We cannot help if we cannot see what your code currently looks like.
Iam Sorry I Dont Have A Code Right Now I Just Was Installing The Top Rep Product

And I Found It The Same Idea That Iam Searching For

So I posted It But Iam Currently Dont Have A Code

I Just Need To Show This Data In Forumhome Template

The Field Number Is Field 8
Reply With Quote
  #17  
Old 02-24-2011, 06:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you aren't writing any code for this, then I would suggest hiring someone to do it. We are trying to help you write it here, but if you aren't actually trying to write it, then we can't help you.
Reply With Quote
  #18  
Old 02-24-2011, 08:02 PM
3amalah 3amalah is offline
 
Join Date: Nov 2010
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
If you aren't writing any code for this, then I would suggest hiring someone to do it. We are trying to help you write it here, but if you aren't actually trying to write it, then we can't help you.
Ok Lynne One Last Question

I WIll Do The Same As The Product I Showed You

Could You Provided Me With The Code That Get The Data From Database

From Userfield ---> Field X

And I Will make The Variable And Plugin

And Thanks So Much
Reply With Quote
  #19  
Old 02-24-2011, 09:18 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already provided you with the query to get the data from the database on the last page.
Reply With Quote
  #20  
Old 02-25-2011, 10:58 AM
3amalah 3amalah is offline
 
Join Date: Nov 2010
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I already provided you with the query to get the data from the database on the last page.
Aha I Saw It Now Thank You Lynne I Will Try It Myself With Your Code

And Thanks For Your Help

And Sorry For Wasting Your Time
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06394 seconds
  • Memory Usage 2,249KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete