vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Latest Arcade Score (more than one?) (https://vborg.vbsupport.ru/showthread.php?t=198866)

edytwinky 01-05-2009 10:44 PM

Worked like a charm thank you!

GreasySpoon 01-06-2009 06:26 PM

Quote:

Originally Posted by fayzeybabe (Post 1703285)
Ok sorted thanks
How many does it show and can you set the amount it shows ?

5 Latest Arcade Scores will be shown with this modification but you can set the amount in the query.

$DB->query("SELECT s.*, g.gtitle, g.decpoints, c.password FROM ibf_games_scores AS s, ibf_games_list AS g, ibf_games_cats AS c WHERE s.gid=g.gid AND g.gcat=c.c_id AND g.active=1 AND trim(password)='' ORDER BY datescored DESC LIMIT 0,5");

Set the amount of scores in the bold part (LIMIT 0, 5) of the query. Replace the 5 with a count that you wish.

Greetz

Nintendo-Daily 01-07-2009 10:51 PM

Wow!! Finally!! Thank you soooo much! This is exactly what I wanted to do. Thanks GreasySpoon!! You're the best!

Nintendo-Daily 01-08-2009 10:58 PM

Members of my board have brought up a problem after I made these modifications. Here's what's going on:

If I am not logged into my board, the latest scores say "array".

If I am logged into my board, I see the 5 latest scores like I want to.

I am the admin of my board. All other groups (even if logged in) see "array"

Any idea what's going on? I followed the link that GreasySpoon provided for his arcade and I saw the 5 latest scores on his arcade page. What's wrong with mine?

GreasySpoon 01-09-2009 05:43 AM

arcade.php
Find:
PHP Code:

//header
        
$this->arcade->make_links($newest_score['gid'] , $newest_score['gtitle']);
        
$viewerav ""

Replace with:
PHP Code:

//header
        //$this->arcade->make_links($newest_score['gid'] , $newest_score['gtitle']);
        //$viewerav = ""; 

Please check this step. I think you have forget this step or did something wrong in this part.

Do you have the latest arcade installed? It worked for me with ibProArcade v2.6.7+ and with the newest one (ibProArcade v2.6.8+).

Someone else, from above, with this problem?

Greets

Nintendo-Daily 01-09-2009 10:46 AM

uh oh...I am getting the following error in my arcade.php file:

Parse error: syntax error, unexpected '[' in /abc/abc/abc/arcade.php on line 2327

GreasySpoon, would you mind sharing your //latest score and champions and //header sections of your arcade.php file?

I'm not sure what I did, but now the arcade isn't even accessible :(

GreasySpoon 01-09-2009 01:13 PM

I cant, because i have modified more then only the scores part. Download ibProArcade and overwrite the modified scripts. And than, try again.

Nintendo-Daily 01-09-2009 02:59 PM

Overwrite the modified scripts? Do you mean the modified arcade.php and skin_arcade.php files?

GreasySpoon 01-09-2009 03:07 PM

Yes, reupload that both files and than try again.

Nintendo-Daily 01-09-2009 04:14 PM

OK, I'll try it and let you know. Thanks GreasySpoon :)


All times are GMT. The time now is 10:34 AM.

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.02137 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete