vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   v3arcade Show 5 Random Games on the Forum Home (https://vborg.vbsupport.ru/showthread.php?t=101982)

MioTraGusa 12-15-2005 10:55 AM

Updated Forumdisplay pluggin ->> v3_5_103_ra_forumdisplay.xml

dan35 12-15-2005 08:43 PM

Thank you so much, MioTraGusa :)

VBUsers 12-27-2005 09:04 PM

is there one for ibProArcade? can you make one for it?

XtremeOffroad 01-06-2006 04:53 AM

Worked fine on 3.5.3
Installed, Thank you.

swa 01-11-2006 10:51 PM

awesome hack! any chance of making the style look like this?

MioTraGusa 02-21-2006 07:45 PM

***Updated to 1.0.5***

LBSources 02-26-2006 09:02 PM

is it just me or are the images missing from the zip? i have red Xs nothing else .. and i dont see the images that are required in the zip file..

MioTraGusa 02-28-2006 11:20 AM

Sorry!!!! ... redownload the attached file again, I Have badly the head some times.
Sorry again...

**Updated with correct images**

xtreme-mobile 02-28-2006 04:41 PM

this looks much better than the previous version

well done

only problem i have now is it only shows up 3 games and the other 2 are blank and say no permission when i click them

any ideas?

MioTraGusa 02-28-2006 06:37 PM

thanks xtreme-mobile...

Quote:

Originally Posted by xtreme-mobile
only problem i have now is it only shows up 3 games and the other 2 are blank

the option on CP to change small pics to big pics, As this it? in big or small.
the games shows in blank are v3arcade games or ibpro Games
Quote:

Originally Posted by xtreme-mobile
and say no permission when i click them

ufff... if your have permision for play in the games you would should be able to play .. the modification don?t have permisions

please the link to your forum for see it?

my english is very bad!:ermm:

xtreme-mobile 02-28-2006 06:41 PM

<a href="http://www.extreme-mobile.com" target="_blank">http://www.extreme-mobile.com</a>

the permissions are set up ok, the blank ones does not link to a game id thats why it is blank i believe

is there a way to edit the coding so i can add the id?

LBSources 02-28-2006 06:46 PM

Quote:

Originally Posted by MioTraGusa
Sorry!!!! ... redownload the attached file again, I Have badly the head some times.
Sorry again...

**Updated with correct images**

good deal.. thanks !

Lenny

MioTraGusa 02-28-2006 07:27 PM

PHP Code:

    $result_randomgames $db->query("SELECT gameid, title, miniimage, stdimage, description, highscore, highscorerid, votepoints, votecount, sessioncount, username, catname, " TABLE_PREFIX "arcade_games.categoryid FROM " TABLE_PREFIX "arcade_games JOIN  " TABLE_PREFIX "user ON " TABLE_PREFIX "arcade_games.highscorerid = " TABLE_PREFIX "user.userid JOIN " TABLE_PREFIX "arcade_categories ON " TABLE_PREFIX "arcade_games.categoryid = " TABLE_PREFIX "arcade_categories.categoryid ORDER BY RAND() LIMIT 5"); 

the query link the game id whith mini image and standart image and the link is http://your.forum.is/arcade.php?do=play&gameid=239

analize the query ...

tests to install more games ... or reinstall the modification .. ufff :paranoid:

Morrus 03-03-2006 12:47 PM

A slight variation I made which I think is a tad cleaner. This is a replacement for the article_randomgame5_alt template.

Use alt1 and alt2 as your two colours in the settings in the AdminCP.

Place the $showrandomgame just below the <!-- end what's going on box --> line in FORUMHOME.

Code:

         
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="341%" align="center">
  <thead>
  <tr>
    <td class="$vboptions[ranstyle1]" colspan="5"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_randomtopic')"><img id="collapseimg_forumhome_randomtopic" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" alt="" border="0" /></a>5
      Random Arcade Games (Buy an <a href="http://www.enworld.org/nuttest/estore.php?do=action&itemid=32">Arcade
      Pass</a> from the eStore!)</td>
  </tr>
  </thead> <tbody id="collapseobj_forumhome_randomtopic" style="$vbcollapse[collapseobj_forumhome_randomtopic]">
  <tr>
    <td class="$vboptions[ranstyle2]" width="5%" valign="middle">
      <center><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid0">
        <img src="$vboptions[arcadeimages]/$randomstimg0" title="$randomdescr0" border=0 width=50 height=50 hspace=2 vspace=1 align=absmiddle>
      </center></a>
      </td>
    <td class="$vboptions[ranstyle2]" width="5%" valign="middle">
      <center><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid1">
        <img src="$vboptions[arcadeimages]/$randomstimg1" title="$randomdescr1" border=0 width=50 height=50 hspace=2 vspace=1 align=absmiddle>
      </center></a>
      </td>
    <td class="$vboptions[ranstyle2]" width="5%" valign="middle">
      <center><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid2">
        <img src="$vboptions[arcadeimages]/$randomstimg2" title="$randomdescr2" border=0 width=50 height=50 hspace=2 vspace=1 align=absmiddle>
      </center></a>
      </td>
    <td class="$vboptions[ranstyle2]" width="5%" valign="middle">
      <center><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid3">
        <img src="$vboptions[arcadeimages]/$randomstimg3" title="$randomdescr3" border=0 width=50 height=50 hspace=2 vspace=1 align=absmiddle>
      </center></a>
      </td>
    <td class="$vboptions[ranstyle2]" width="5%" valign="middle">
      <center><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid4">
        <img src="$vboptions[arcadeimages]/$randomstimg4" title="$randomdescr4" border=0 width=50 height=50 hspace=2 vspace=1 align=absmiddle>
      </center></a>
      </td>
  </tr>
  <tr>
    <td class="$vboptions[ranstyle2]" width="17%" valign="middle" align="center"><font size=1><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid0">$randomtitle0</a><br>
      <a href="arcade.php?categoryid=$randomcatid0">$randomcatn0</a> <br>
      <a href="member.php?$session[sessionurl_q]u=$randomhigid3" target="_blank">$randomname0</a><a href="arcade.php?categoryid=$randomcatid0">
      </a> <br>
      <img src="$vboptions[arcadeimages]/rstb$randomrating0.gif" title="$vbphrase[rating5]" border=0 hspace=4 align=absmiddle>
    </td>
    <td class="$vboptions[ranstyle2]" width="17%" valign="middle" align="center"><font size=1><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid1">$randomtitle1</a><br>
      <a href="arcade.php?categoryid=$randomcatid1">$randomcatn1</a> <br>
      <a href="member.php?$session[sessionurl_q]u=$randomhigid3" target="_blank">$randomname1</a><a href="arcade.php?categoryid=$randomcatid1">
      </a> <br>
      <img src="$vboptions[arcadeimages]/rstb$randomrating1.gif" title="$vbphrase[rating5]" border=0 hspace=4 align=absmiddle>
    </td>
    <td class="$vboptions[ranstyle2]" width="17%" valign="middle" align="center"><font size=1><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid2">$randomtitle2</a><br>
      <a href="arcade.php?categoryid=$randomcatid2">$randomcatn2<br>
      </a><a href="member.php?$session[sessionurl_q]u=$randomhigid3" target="_blank">$randomname2</a><a href="arcade.php?categoryid=$randomcatid2">
      </a><a href="arcade.php?categoryid=$randomcatid2"> <br>
      <img src="$vboptions[arcadeimages]/rstb$randomrating2.gif" title="$vbphrase[rating5]" border=0 hspace=4 align=absmiddle>
      </a></td>
    <td class="$vboptions[ranstyle2]" width="17%" valign="middle" align="center"><font size=1><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid3">$randomtitle3</a><br>
      <a href="arcade.php?categoryid=$randomcatid3">$randomcatn3<br>
      </a><a href="member.php?$session[sessionurl_q]u=$randomhigid3" target="_blank">$randomname3</a><a href="arcade.php?categoryid=$randomcatid3">
      <br>
      <img src="$vboptions[arcadeimages]/rstb$randomrating3.gif" title="$vbphrase[rating5]" border=0 hspace=4 align=absmiddle>
      </a></td>
    <td class="$vboptions[ranstyle2]" width="17%" valign="middle" align="center"><font size=1><a href="$vboptions[bburl]/arcade.php?$session[sessionurl_q]do=play&gameid=$randomgameid4">$randomtitle4</a><br>
      <a href="arcade.php?categoryid=$randomcatid4">$randomcatn4</a> <br>
      <a href="member.php?$session[sessionurl_q]u=$randomhigid4" target="_blank">$randomname4<br>
      <img src="$vboptions[arcadeimages]/rstb$randomrating4.gif" title="$vbphrase[rating5]" border=0 hspace=4 align=absmiddle>
      </a></td>
  </tr>
  </tbody>
</table>
<br />


MioTraGusa 03-03-2006 06:03 PM

Interesting variation. Good work.

If you change this piece of code
HTML Code:

        <td class="$vboptions[ranstyle1]" colspan="5"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_randomtopic')"><img id="collapseimg_forumhome_randomtopic" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" alt="" border="0" /></a>5
          Random Arcade Games (Buy an <a href="http://www.enworld.org/nuttest/estore.php?do=action&itemid=32">Arcade
          Pass</a> from the eStore!)</td>

to this another,
HTML Code:

        <td class="$vboptions[ranstyle1]" colspan="5"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_randomtopic')"><img id="collapseimg_forumhome_randomtopic" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" alt="" border="0" /></a>$vbphrase[arcade_5random]</td>
I can link your personal modification in the first message
:up:

yayvb 03-09-2006 04:46 PM

I noticed since upgrading from the old version that sometimes now my skin is broken because either the game name is too long or the usernames, I'm not sure which is causing the problem. Any way to fix this?

yayvb 03-09-2006 05:03 PM

It looks like if I edit the arcade title names to something shorter, it still breaks sometimes due to longer usernames. For instance I have a user who's name is similar to this: OUTDOORGROWER so even though his name may only be listed once in the random 5 hack, it is long enough to break the skin. If we could make the limit like 10 characters maybe?

yayvb 03-11-2006 05:11 AM

Hi, I keep seeing the skin broken every other refresh it seems, which means my users are too. I hate my users seeing the skin broken, so if there is no way to limit username length, can I just install the old arcade plugin to return it the way it was before? I don't want a broken skin any longer hehe.

MioTraGusa 03-11-2006 10:34 AM

Sorry, forgive me for causing a expect.

Ok, if your like limit to 10 characters alone you have to continue my instructions ...

in the pluggin manager serach the pluggin "Arcade - Show 5 Random Games on the Forum Home" and edit...

Serach the following code:
PHP Code:

$randomhighs0 round($randomhighs0,0); 

Just Above add:
PHP Code:

$xx 10;
$x = ($xx 2);
if ((
strlen($randomname0)) > $xx)
{
$randomname0 substr($randomname00$x)."..."
}
if ((
strlen($randomname1)) > $xx)
{
$randomname1 substr($randomname10$x)."..."
}
if ((
strlen($randomname2)) > $xx)
{
$randomname2 substr($randomname20$x)."..."
}
if ((
strlen($randomname3)) > $xx)
{
$randomname3 substr($randomname30$x)."..."
}
if ((
strlen($randomname4)) > $xx)
{
$randomname4 substr($randomname40$x)."..."


Note: the variable $xx, change the limit of characters ($xx = 10) you can change the value for adapting the aspect in your template.

Sorry again, and test it....

as already I said before... my english is very bad... I expect that be understood.

bye....

yayvb 03-11-2006 08:26 PM

Thank you so much. I think you are one of the best hack creaters here because you update your product and you give the best support ever!! :) Maybe I can have you work on some custom hacks in the future. I just paid someone $800 to do some hacks for me and the guy did everything wrong and keeps getting frustrated that I ask it to be done different. For instance he made it so that when someone pays with paypal they get changed to gold status and get certain features like they can enlarge photos, etc. However if I move someone to gold usergroup it doesn't happen automatically. He did a lot of backgound coding and keeps asking where his bonus is that I said I would send if he did a great job. It's been about 2 months since he started and it's still not complete. Grr :) Oh well, thank you very much. If you need any favors from an english speaker :) hehe, just ask!!

hbalagh1 03-14-2006 10:32 PM

anyone know what to change to show the price per game since the new updates to v3arcade and vbplaza :)

MioTraGusa 03-22-2006 07:24 AM

I'm going to see that I can do, because don't know the vbplaza. Thanks by the idea., I tried to put this option in the next update

Quote:

Originally Posted by yayvb
Thank you so much.....

Thanks to you

dizzy100 04-06-2006 06:26 AM

excellent hack :)

Is there anyway to run v1.03 and v1.05 together ?

My idea was to do 5 random games in the arcade gameplay area (which i already did with putting the plugin in global_start) but would like the v1.05 on forum home instead of v1.03.

Can this be cloned to run alongside each other ?

MioTraGusa 04-06-2006 05:18 PM

As well as this fact the modification, you should elect a version or another, Although would be able to do it, if changed the name of the templates and the calls to the same of the pluggin in forumhome (duplicating the call).. but can leave you badly. I recommend you that choose one or another.. greetings

Traxdata 04-08-2006 11:39 AM

Very good ! In my opinion most useful hack/addon for v3 Arcade!

Mathiau 04-10-2006 02:47 PM

I got this error on VBB 3.5.3 Who can help me?

Invalid SQL:
SELECT gameid, title, miniimage, stdimage, description, highscore, highscorerid FROM arcade_games ORDER BY RAND() LIMIT 5;

MySQL Error : Table 'database.arcade_games' doesn't exist
Error Number : 1146
Date : Monday, April 10th 2006 @ 05:44:12 PM
Script : http://www.forum.com/index.php?
Referrer : http://www.forum.com/admincp/index.php?do=head
IP Address : xxxxxxxx
Username : Mathiau
Classname : vb_database

I did install this before : ibProArcade_v2[1].5.5+.zip which works perfectly.

MioTraGusa 04-10-2006 04:35 PM

Quote:

Originally Posted by Mathiau
I got this error on VBB 3.5.3 Who can help me?

MySQL Error : Table 'database.arcade_games' doesn't exist

I did install this before : ibProArcade_v2[1].5.5+.zip which works perfectly.

You have installed v3arcade 1.0.x? because it is one addon of v3arcade not for Ibproarcade.

ab420 04-10-2006 08:33 PM

Hello, first, thanks for the plugin, it's very cool! Anyways, on my site, I have a column on the right side done like THIS, I was wondering if their is any way to put the 5 random games over there, which is my footer. Any help would be greatly appreciated. Thanks in advance!

Mathiau 04-11-2006 05:55 AM

Quote:

Originally Posted by MioTraGusa
You have installed v3arcade 1.0.x? because it is one addon of v3arcade not for Ibproarcade.

Thanks for your fast reply ! I have only installed Ibproarcade - should I also include v3arcade? Aren't they both the same??

ryancooper 04-11-2006 10:59 AM

AWEOSME Can you make it for ibproarcade? Thanks!

MioTraGusa 04-11-2006 02:17 PM

Quote:

Originally Posted by ab420
Hello, first, thanks for the plugin, it's very cool! Anyways, on my site, I have a column on the right side done like THIS, I was wondering if their is any way to put the 5 random games over there, which is my footer. Any help would be greatly appreciated. Thanks in advance!

Yes... when i have a time moment later, I post the solution for you.

Quote:

Originally Posted by Mathiau
Thanks for your fast reply ! I have only installed Ibproarcade - should I also include v3arcade? Aren't they both the same??

Not, they are hacks or extensions totally different , you should elect, although one or another.

Quote:

Originally Posted by ryancooper
AWEOSME Can you make it for ibproarcade? Thanks!

If, I can do what you ask, although I will have to study the structure of the database that utilizes the ibproarcade. I am going to try to do it, thanks by your interest

Sorry again for my very bad english, I?m spanish and it is most dificulty for my.

ryancooper 04-11-2006 02:23 PM

Awesome - gracias

ab420 04-11-2006 08:36 PM

I love this place! So warm and fuzzy all the time! Thank you once again to vbulletin.org, and to MioTraGusa, and all the other people so willing to help! :banana:

Mathiau 04-14-2006 04:45 PM

Quote:

Originally Posted by MioTraGusa
Yes... when i have a time moment later, I post the solution for you.


Not, they are hacks or extensions totally different , you should elect, although one or another.


If, I can do what you ask, although I will have to study the structure of the database that utilizes the ibproarcade. I am going to try to do it, thanks by your interest

Sorry again for my very bad english, I?m spanish and it is most dificulty for my.

Yes, we would appreciate it very much if you can make one for IBproarcade:banana:

MioTraGusa 04-14-2006 10:37 PM

Relased 1st version for ibproarcade -->ibProArcade - Show 5 random games in forum home

test it please...

fosman 04-19-2006 09:32 AM

Why do mine only show the games that've played random ? I thought that the random would concern all games in the database :cross-eyed:

Am I doing something wrong here ?

Thx
fosman

MioTraGusa 04-20-2006 07:11 AM

Quote:

Originally Posted by fosman
Why do mine only show the games that've played random ? I thought that the random would concern all games in the database :cross-eyed:

Am I doing something wrong here ?

Not, it is correct, I should change the query to include the play that haven't been tested still

fosman 06-06-2006 01:13 PM

Quote:

Originally Posted by MioTraGusa
Not, it is correct, I should change the query to include the play that haven't been tested still

What's the status mate? :)

MioTraGusa 06-08-2006 05:24 AM

is the same one

fosman 06-19-2006 12:17 PM

I see on your sites forumhome page, that it's showing both random and latest added games. Would you please that with me? :)


All times are GMT. The time now is 04:52 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.02029 seconds
  • Memory Usage 1,872KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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