Back to vBulletin 3.5 Add-ons

V3arcade - Show Last Score News
Mod Version: 1.00, by MioTraGusa

This modification is in the archives.
vB Version: 3.5.3 Rating: (0 vote - 0 average) Installs: 11
Released: 01 Mar 2006 Last Update: 02 Mar 2006 Downloads: 8
Not Supported DB Changes Uses Plugins Template Edits Code Changes  

This Modification show the last scores and the games played in V3arcade main page.
I do not know if the next version of v3arcade taught also the latest scores, but this modification is a way for it.

Fully phrased modification.
Tested in Vbulletin 3.5.3 and V3arcade 1.0.2

Products to import: (1) - product-v3arcade_score_news_english.xml or product-v3arcade_score_news_spanish.xml
Templates to edit: (1) - arcade_main
Templates Added: (2) - arcade_scor_bit & arcade_scor_bit_first
Phrases Added: (4)
DB changes: Add new fields in arcade_news_scor

Instructions...
  • Download the attached product and install it in Admin CP -> Plugin System -> Manage Products -> [Add/Import Product]
  • Edit the template "arcade_main"
Search
HTML Code:
<tbody id="collapseobj_newsandevents" style="$vbcollapse[collapseobj_newsandevents]">
    <tr align="center">
      <td class="alt1" valign="top" style="padding: 0px">
          <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
          $newsbits
          </table>
      </td>
    </tr>
</tbody>

Bellow add
HTML Code:
<thead>
    <tr align="center">
      <td class="thead"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('newscorevents')"><img id="collapseimg_newscorevents" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_newscorevents].gif" alt="" border="0" /></a>$vbphrase[newscorevents]</td>
    </tr>
</thead>
<tbody id="collapseobj_newscorevents" style="$vbcollapse[collapseobj_newscorevents]">
    <tr align="center">
      <td class="alt1" valign="top" style="padding: 0px">
          <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
          $scorbits
          </table>
      </td>
    </tr>
</tbody>
  • Edit arcade.php file in /forumroot/
Search
PHP Code:
'arcade_news_bit'
Bellow add
PHP Code:
'arcade_scor_bit_first',
 
'arcade_scor_bit'
Search
PHP Code:
        eval('$newsbits .= "' fetch_template('arcade_news_bit') . '";');
    } 
Bellow add
PHP Code:
  // MioTraGuSa Modification Last Scores
    // Fetch the latest scores.
    
$scorbits '';
    
$scorquery $db->query_read("SELECT * FROM " TABLE_PREFIX "arcade_news_scor AS arcade_news_scor ORDER BY datescor DESC LIMIT " $vbulletin->options['quicksearchresults']);
    while (
$scor $db->fetch_array($scorquery))
    {
        
exec_switch_bg();

    
// Format the score news date/time.

    
$scor['date'] = vbdate($vbulletin->options['logdateformat'], $scor['datescor']);
    
$scor['newstext'] = unhtmlspecialchars($parser->do_parse($scor['scortext'], falsetruetruefalsetruefalse));
    if (
$scor['scorid'] == "1")
        {
        eval(
'$scorbits .= "' fetch_template('arcade_scor_bit_first') . '";');
        } else {
            eval(
'$scorbits .= "' fetch_template('arcade_scor_bit') . '";');
            }
    } 


Search
PHP Code:
    // Save the session.
    
$db->query_write("UPDATE " TABLE_PREFIX "arcade_sessions SET ping='$difference', valid=$validate WHERE sessionid=" $vbulletin->GPC['id'] . " AND userid=" $vbulletin->userinfo['userid']); 
Bellow add
PHP Code:
  // MioTraGuSa Modification Last Scores    
    
$gamescornews['score'] = sprintf((float)$game['score']);
    if (
$gamescornews['score'] <= 1) {
    
$db->query_write("INSERT INTO " TABLE_PREFIX "arcade_news_scor (scortext, scortype, scorgame, scoruserid, datescor) VALUES ('" addslashes(construct_phrase($vbphrase['x_points_in_the_y_gamezero'], $vbulletin->userinfo['username'], $gamescornews['score'], $game['title'])) . "', 'auto', '$game[gameid]', " .$vbulletin->userinfo['userid']. ", " TIMENOW ")");
    } else {
        
$db->query_write("INSERT INTO " TABLE_PREFIX "arcade_news_scor (scortext, scortype, scorgame, scoruserid, datescor) VALUES ('" addslashes(construct_phrase($vbphrase['x_points_in_the_y_game'], $vbulletin->userinfo['username'], $gamescornews['score'], $game['title'])) . "', 'auto', '$game[gameid]', " .$vbulletin->userinfo['userid']. ", " TIMENOW ")");
        }
  
// MioTraGuSa END Modification Last Scores 
  • Upload modified file
  • Enjoy!!

If your like this modification, please click

Sorry for my very bad english ...:nervous:

Download

This modification is archived and cannot be downloaded.

Supporters / CoAuthors

  • MioTraGusa

Screenshots

   

Similar Mods

V3Arcade - Scrollable news / more news vBulletin 3.0 Full Releases
V3Arcade - So long 0 score posting vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024