vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - ibProArcade - professional Arcade System (https://vborg.vbsupport.ru/showthread.php?t=101554)

Hippy 03-18-2012 12:25 PM

it's posted in the install file in the zip..

if your server is running suphp then there is no reason to set permissions.

Heardy 03-18-2012 01:22 PM

You know the {vb:raw post.crowns}?

Is there any way to make it scroll further? It only goes a certain width across my posts :(

This is an example:

http://www.mindlessjunk.com/showthre...ull=1#post1707

Hippy 03-18-2012 02:15 PM

if your using postbit
admincp> plugin manager

look for ibProArcade: Crowns in Postbit

and replace the code with this

Code:

global $crowncache;
if (!$crowncache)
{
        $this->cache['champs'] = array();
        $this->cache['tourneys'] = array();
        $this->cache['crowns'] = array();
        $this->cache['crown'] = $this->registry->db->query_first("SELECT crown_type AS type, show_crowns, show_t_won FROM " . TABLE_PREFIX . "games_settings");
        if ($this->cache['crown']['show_crowns'])
        {
                $thecrowns = $this->registry->db->query_read("
                        SELECT c.*, g.gname, cat.password FROM " . TABLE_PREFIX . "games_champs AS c, " . TABLE_PREFIX . "games_list AS g, " . TABLE_PREFIX . "games_cats AS cat
                        WHERE (c.champ_gid=g.gid) AND (g.gcat=cat.c_id) AND trim(password)='' AND g.active=1
                ");
                    while ($this_champ = $this->registry->db->fetch_array($thecrowns))
                    {
                        if (!isset($this->cache['champs']["$this_champ[champ_mid]"]))
                        {
                                $this->cache['champs']["$this_champ[champ_mid]"] = array();
                        }
                        $this->cache['champs']["$this_champ[champ_mid]"][] = array(
                                'gid' => $this_champ['champ_gid'],
                                'gtitle' => $this_champ['champ_gtitle'],
                                'gname' => $this_champ['gname']
                        );
                    }
        }
        if ($this->cache['crown']['show_t_won'])
        {
                $tourneyquery = $this->registry->db->query_read("
                        SELECT t.champion, u.userid FROM " . TABLE_PREFIX . "tournaments AS t
                        LEFT JOIN " . TABLE_PREFIX . "user AS u ON (t.champion = u.username)
                        WHERE champion<>''
                ");
                while ($this_tourney = $this->registry->db->fetch_array($tourneyquery))
                {
                        if (!isset($this->cache['tourneys']["$this_tourney[userid]"]))
                        {
                                $this->cache['tourneys']["$this_tourney[userid]"] = 0;
                        }
                        $this->cache['tourneys']["$this_tourney[userid]"]++;
                }
        }
        $crowncache = true;
}
$champs =& $this->cache['champs'];
$tourneys =& $this->cache['tourneys'];
$crown =& $this->cache['crown'];

$crowns = '';
if ($crown['show_crowns'])
{
        if (!isset($this->cache['crowns']["$post[userid]"]))
        {
                $crowns = '';
                if (isset($champs["$post[userid]"]))
                {
                        if ((count($champs["$post[userid]"]) > 1) && ($crowns[type]!=4))
                        {
                                switch ($crown['type'])
                                {
                                        case 0:
                                                $crowns = '';
                                                break;
                                        case 1:
                                                $crowns = '<marquee width="150" scrollamount="3">';
                                                break;
                                        case 2:
                                                $crowns = '<marquee width="175" name="crownscroll" scrollamount="1" direction="up" height="20">';
                                                break;
                                        case 3:
                                                $crowns = '';
                                                break;
                                }
                                $crown_end = ($crown['type'] == 1) ? '' : '<br />';
                                $counter=0;
                                foreach ($champs["$post[userid]"] AS $this_game)
                                {
                                        if ($crown['type'] == 3)
                                        {
                                                if ($counter == 5)
                                                {
                                                        $counter = 0; $crowns.= "<br />";
                                                }
                                        }
                                        $imgtext="";
                                        if ($crown['type'] == 3) { $imgtext = "$this_game[gtitle] Champion"; }
                                        $crowns .= "<a href=\"arcade.php?" . $this->registry->session->vars['sessionurl'] . "do=stats&amp;gameid=$this_game[gid]\"> <img src=\"arcade/images/$this_game[gname]2.gif\" border=\"0\" alt=\"$imgtext\" width=\"20\" height=\"20\" />";
                                        if ($crown['type']!=3)
                                        {
                                                $crowns .= $this_game[gtitle]." Champion!</a> " . $crown_end;
                                        }
                                        else
                                        {
                                                $crowns .= "</a> ";
                                        }
                                        $counter++;
                                }
                                if ($crown['type'] != 0)
                                {
                                        $crowns .= '</marquee>';
                                        if ( ($crown['show_t_won']) && (isset($tourneys["$post[userid]"])) )
                                        {
                                                $crowns .= '<br />';
                                        }
                                }
                        }
                        else
                        {
                                foreach ($champs["$post[userid]"] AS $this_game )
                                {
                                        $imgtext = "";
                                        if ($crown['type'] == 3) { $imgtext = "$this_game[gtitle] Champion"; }
                                        $crowns = "<a href=\"arcade.php?" . $this->registry->session->vars['sessionurl'] . "do=stats&amp;gameid=$this_game[gid]\"><img src=\"arcade/images/$this_game[gname]2.gif\" border=\"0\" alt=\"$imgtext\" width=\"20\" height=\"20\" /> ";
                                        if ($crown['type'] != 3)
                                        {
                                                $crowns .= "$this_game[gtitle] Champion!";
                                        }
                                        $crowns .= "</a>";
                                }
                        }
                }

                if ($crown[type]==4)
                {
                        $extra="";
                        if (count($champs["$post[userid]"])>1)
                        {
                                $extra="s";
                        }
                        $crowns = "";
                        if (count($champs["$post[userid]"]) > 0)
                        {
                                $crowns = "<img src='arcade/images/trophy.gif' alt='".(count($champs["$post[userid]"]))." Highscore".$extra."'><br />";
                        }
                }

                $this->cache['crowns']["$post[userid]"] = $crowns;
        }
        else
        {
                $crowns = $this->cache['crowns']["$post[userid]"];
        }
}
$champtext = '';
if ($crown['show_t_won'])
{
        if (isset($tourneys["$post[userid]"]) )
        {
                $champtext = "<dt><a href='arcade.php?do=viewtourneyend' target='_blank' alt='123456'>" .$vbphrase[ibpa_tourney] . " </dt></a><b>" . $tourneys[$post[userid]] . "</b>";
        }
}
$post['crowns'] = $crowns;
$post['champtext'] = $champtext;

if your using postbit_legacy change the marquee width= to suite

Heardy 03-18-2012 02:39 PM

Thanks Hippy!

I had to edit it to make it 170 instead of 150 but it worked perfectly!

Hippy 03-18-2012 02:46 PM

Welcome 150 was tested on postbit so it may be wider if your using postbit_legacy

enjoy

Heardy 03-18-2012 03:06 PM

Yeah, I used it on postbit_legacy, thanks!

skol 03-18-2012 06:06 PM

Would it be possible to stop the marqee in postbit when you hover over it.

Hippy 03-19-2012 11:18 PM

Quote:

Originally Posted by skol (Post 2310711)
Would it be possible to stop the marqee in postbit when you hover over it.

sorry bud I seen this when you posted it but I was busy as a mofo ;)


go to your admincp> Plugins & Products> under plugin manager
look for ibProArcade: Crowns in Postbit
click it or click edit ...
look for
Code:

                    case 1:
                        $crowns = '<marquee width="150" scrollamount="3">';
                        break;
                    case 2:
                        $crowns = '<marquee width="175" name="crownscroll" scrollamount="1" direction="up" height="20">';
                        break

and change it to

Code:

                    case 1:
                        $crowns = '<marquee width="150" onmouseout="this.scrollAmount=3" onmouseover="this.scrollAmount=1" scrollamount="3">';
                        break;
                    case 2:
                        $crowns = '<marquee width="175" name="crownscroll" onmouseout="this.scrollAmount=1" onmouseover="this.scrollAmount=0" scrollamount="1" direction="up" height="20">';
                        break;


skol 03-20-2012 11:35 PM

Cheers Hippy...:up:

Hippy 03-21-2012 12:08 AM

Quote:

Originally Posted by skol (Post 2311580)
Cheers Hippy...:up:

welcome
anytime:up:


All times are GMT. The time now is 04:03 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.10595 seconds
  • Memory Usage 1,783KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (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