News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF Arcade

Started by niko, October 01, 2004, 02:45:55 PM

Previous topic - Next topic

FunPika4

Quote from: MGadAllah on September 05, 2007, 03:35:53 PM
I've got this

SMF Arcade 2.0.0 Installer
Creating tables
Success with no errors!
Inserting default permissions
Success with no errors!
Inserting default settings
Success with no errors!
Finishing
Success with no errors!
Package was installed. If you have SMFArcade 1.x installed you can import games and scores now


error:

SMF Arcade 2.0.0
Importing games and scores
Table 'prodes_smf1.smf_games' doesn't exist

Please advise
Did you have an installation of SMF Arcade 1.x on your forum?

Mohamed GadAllah

I am only having this one
Powered by: SMF Arcade 2.0.9 © Niko Pahajoki 2004-2007
Powered by PHP       Powered by SMF 1.1.3

FunPika4

Quote from: MGadAllah on September 05, 2007, 03:49:02 PM
I am only having this one
Powered by: SMF Arcade 2.0.9 © Niko Pahajoki 2004-2007
Powered by PHP       Powered by SMF 1.1.3
Then there is nothing wrong. :)

masss

Quote from: fwitt on August 31, 2007, 02:40:32 PM
within this echo statement


// Play screen
function template_arcade_game_play()
{
   global $scripturl, $txt, $context, $settings;

   echo '



I always get Template pars error. Can you show an example?

Quote
There was a problem loading the /Themes/default/Arcade.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP,

masss

Quote<div style="border: #B1C1D6 1px solid; padding: 10px;  background-color: #F0F5FA;"><div style="margin-left: auto;
margin-right: auto;
width: 486px; ">TESTING</div></div>

          <div class="tborder">
                  <table class="bordercolor" border="0" cellpadding="4" cellspacing="1" width="100%">
                     <tr class="catbg">
                        <td>', $context['arcade']['game']['name'], '</td>
                     </tr>
                     <tr class="windowbg">
                        <td>
                           <div style="text-align: center;">
                              ', $context['arcade']['game']['html'], '
                              ', !$context['arcade']['can_submit'] ? '<br /><b>' . $txt['arcade_cannot_save'] . '</b>' : '', '
                           </div>
                        </td>
                     </tr>
                  </table>
               </div>
          <div style="border: #B1C1D6 1px solid; padding: 10px;  background-color: #F0F5FA;"><div style="margin-left: auto;
margin-right: auto;
width: 486px;  ">TESTING</div></div>

          ';

This added code is ok but if i replace "TESTING" with my ad code it's not working. How can i add php script??

Code below is not working

Quote... <div style="margin-left: auto;
margin-right: auto;
width: 486px;  "><?php include(MYADS.html); ?></div></div>
          ';
[/quote]

Can somebody help me because i'm not very familiar with php?

cferd

You'd want something like:
Quote... <div style="margin-left: auto;
margin-right: auto;
width: 486px;  ">';
include('MYADS.html');
echo '</div></div>
          ';

masss

It's not working  :(


Arcade code

Quoteecho '
               <div style="border: #B1C1D6 1px solid; padding: 10px;  background-color: #F0F5FA;"><div style="margin-left: auto;
margin-right: auto;
width: 486px; ">';
include('http://www.cveka.com/centraliprom_mali_oglas.php');
echo '</div></div>

          <div class="tborder">
                  <table class="bordercolor" border="0" cellpadding="4" cellspacing="1" width="100%">
                     <tr class="catbg">
                        <td>', $context['arcade']['game']['name'], '</td>
                     </tr>
                     <tr class="windowbg">
                        <td>
                           <div style="text-align: center;">
                              ', $context['arcade']['game']['html'], '
                              ', !$context['arcade']['can_submit'] ? '<br /><b>' . $txt['arcade_cannot_save'] . '</b>' : '', '
                           </div>
                        </td>
                     </tr>
                  </table>
               </div>
          <div style="border: #B1C1D6 1px solid; padding: 10px;  background-color: #F0F5FA;"><div style="margin-left: auto;
margin-right: auto;
width: 486px;  ">';
include('http://www.cveka.com/centraliprom_mali_oglas.php');
echo '</div></div>
          ';

Ads link is ok: http://www.cveka.com/centraliprom_mali_oglas.php but the ads are not shown http://www.cveka.com/arcade.html;sa=play;game=59 Where is the problem? ::)

masss

nobody knows how to solve this problem? :(

cferd

It appears to be working on your site.

I also copy/pasted your code to my test site and it works there too.

masss

#2809
It's not working (are you sure it's workin on you site?)..


cferd

Quote from: masss on September 06, 2007, 02:45:46 PM
It's not working (are you sure it's workin on you site?)..
Absolutely.

You may want to try to logout and view your site as a guest like I did.

If that doesn't work, clear the browser's cache and/or try another browser.

mrgekkie

Hmm i can't install this mod :/


Importing games and scores

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /customers/wappez.nl/wappez.nl/httpd.www/www2/forum/Sources/ArcadeInstall.php on line 422
Table 'wappez_nl.smf_games_high' doesn't exist

Plz help me !!!

masss

#2812
I removed "http://www.cveka.com/" and now it's working.

Quotemargin-right: auto;
width: 486px;  ">';
include('centraliprom_mali_oglas.php');
echo '</div></div>

cferd, thank you for all your support :)

Sulgicur

Hi, I'm getting an error in index.php when I try to install this using package manager.

Can you tell me what I need to do to the index.php in order to fix it?

Thank you

Sulgicur

Sorry, that'd be index.template.php

cferd

Error in that file usually comes from code for the "search" button not being found, while looking to insert code for the "arcade" button.

It's probably safe to install anyway. You do have to insert the "arcade" button code manually though.

Sulgicur

I've installed it and everything seems to be ok. I may (will) need a little advice on how to insert the button. Is it supposed to appear on the navigation bar?

cferd

Yes.

Here's the code. Look near the bottom of index.template.php. Each button uses this code. Put this in there to create the "arcade" button.
    echo ($current_action == 'arcade' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'arcade' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=arcade">' , $txt['arcade'] , '</a>
</td>' , $current_action == 'arcade' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Sulgicur

I had a look in the install-rc.xml for that, put it in and it smashed the forum. I put it after the search button.

I think I may have left in a few errant brackets though. I'll try that...

Sulgicur

That's worked, but I need a space between it and the link that appears to the left of it as the 'members' and 'arcade' buttons have no distance between them. Will a nbsp ; suffice?

Advertisement: