Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
View Ranksets Details »»
View Ranksets
Version: , by DigitalDesktops DigitalDesktops is offline
Developer Last Online: Feb 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-16-2003 Last Update: Never Installs: 0
 
No support by the author.

Hi, i'm making an addon for this hack:
https://vborg.vbsupport.ru/showthrea...&highlight=lob

and everything is working i think except that the page is blank. can anyone help me?

PHP Code:
<?php
error_reporting
(7);

require(
"./global.php");

if (isset(
$action)==0) {
  
$action="view_categories";
}

// ###################### View the rankset categories #######################
if ($action=="view_categories") {

// Lets query the database:
$rankset_db=$DB_site->query("SELECT cat_id, cat_name, cat_creator, cat_description, cat_ranks FROM rankcategories WHERE cat_id IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19) ORDER BY cat_name ASC");




while (
$rankset_db2=$DB_site->fetch_array($rankset_db)){
    eval(
"dooutput(\"".gettemplate('display_ranks_bit')."\");");
    }




}
unset(
$output_cats);

while (
$rankset_db2=$DB_site->fetch_array($rankset_db)) {
    eval (
'$output_cats .= "'.gettemplate("display_ranks_bit").'";');
}

dooutput($output_cats);
?>

Download Now

File Type: (21.4 KB, 3 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-17-2003, 12:08 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Time to check your conditions or missing/empty templates.
Reply With Quote
  #3  
Old 04-17-2003, 10:20 PM
Stadler Stadler is offline
 
Join Date: Apr 2002
Location: Kiel, Germany
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mmh ... try using this:
PHP Code:
unset($output_cats);

while (
$rankset_db2=$DB_site->fetch_array($rankset_db)) {
    eval (
'$output_cats .= "'.gettemplate("display_ranks_bit").'";');
}

dooutput($output_cats); 
Reply With Quote
  #4  
Old 04-17-2003, 10:22 PM
DigitalDesktops DigitalDesktops is offline
 
Join Date: Mar 2003
Location: Scotland, UK
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

heres the template im using:
Attached Files
File Type: (21.4 KB, 2 views)
Reply With Quote
  #5  
Old 04-17-2003, 10:34 PM
Stadler Stadler is offline
 
Join Date: Apr 2002
Location: Kiel, Germany
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should have replaced the old while-part:
PHP Code:
<?php
error_reporting
(7);

require(
"./global.php");

if (isset(
$action)==0) {
  
$action="view_categories";
}

// ###################### View the rankset categories #######################
if ($action=="view_categories") {

  
// Lets query the database:
  
$rankset_db=$DB_site->query("SELECT cat_id, cat_name, cat_creator, cat_description, cat_ranks FROM rankcategories WHERE cat_id IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19) ORDER BY cat_name ASC");

  unset(
$output_cats);

  while (
$rankset_db2=$DB_site->fetch_array($rankset_db)) {
    eval (
'$output_cats .= "'.gettemplate("display_ranks_bit").'";');
  }
  
dooutput($output_cats);
}
?>
I hope, it works then.
Reply With Quote
  #6  
Old 04-17-2003, 10:41 PM
DigitalDesktops DigitalDesktops is offline
 
Join Date: Mar 2003
Location: Scotland, UK
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool, thanks it worked
Reply With Quote
  #7  
Old 04-17-2003, 11:01 PM
Stadler Stadler is offline
 
Join Date: Apr 2002
Location: Kiel, Germany
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For your question in IRC:

If you want the Navbar to be displayed, replace
PHP Code:
<?php
error_reporting
(7);

require(
"./global.php");
with
PHP Code:
<?php
error_reporting
(7);

require(
"./global.php");

// Make first part of Chat Nav Bar
$nav_url="";
$nav_title="Chat";
eval(
'$navbits = "'.gettemplate('nav_linkoff').'";');
eval(
'$navbar = "'.gettemplate("navbar").'";');
and Make sure, you restore the code for the navbar in the template.

[Edit:]Hu? What happened to error_reporting(7);? did somebody eat it? o.O"
Reply With Quote
Reply

Thread Tools

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 02:12 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04343 seconds
  • Memory Usage 2,292KB
  • Queries Executed 23 (?)
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
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (2)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete