TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 423
  • Total: 423

Arcade Block for TP.97 with SMF 1.1.2

Started by Aunt Clair, March 12, 2007, 07:16:05 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

URPG

Weee! it worked, at least for default theme (where i changed the index template file)...

Thanks a lot! Now i got to get those blocks running and some games installed :)

URPG

Argh!

Installed some games, all running, but:

I got the <arcade> Link twice now (and can only see it one in index template php) where might the second one come from???

Is there a way to minimize the sidebars when someone clicks that menu link?

tick

The code for the button is in the file twice.  Just remove the actual button code on one of them. 

To remove the sidebars when in the arcade open you arcade.php in you sources folder


add// Turn off side tp side bars true=on false=off
        $context['TPortal']['leftbar'] = false;
        $context['TPortal']['rightbar'] = false;


Right after
function Arcade()
{
global $scripturl, $txt, $context, $sourcedir, $ID_MEMBER, $modSettings;



BACK UP ALL FILES YOU ARE EDITING FIRST.


Credits for this go to Ichbin

URPG

Fine :)

I selected a full page of games, sidebars do minimze and come back :)

I can simply add it to other themes by adding the button to index template php or do i have to copy all the arcade files over?

IchBin

hmmm.... now we are giving arcade support? lol

Not knowing how the arcade works, I can't say for sure how it will work. I think instead of asking all these questions you should make a backup and try first. :)

URPG

Yeah, i did backup all files and renamed them to .old :)

I may be a trial-and-error coder but it am not that unexperienced ;)

Well, i still got no answer on the arcade site on how to solve the error with installation... and here we figured it out in minutes :)

rider

Quote from: URPG on June 03, 2007, 06:45:18 PM
Yeah, i did backup all files and renamed them to .old :)

I may be a trial-and-error coder but it am not that unexperienced ;)

Well, i still got no answer on the arcade site on how to solve the error with installation... and here we figured it out in minutes :)
Didn't I just answer your ? at the arcade site.

tick

I only gave this answer about tuning off the blocks because I use it this way.  I have tested and still use it this way

URPG

#28
Yes, you did rider, but i was writing here, not reading there. It's working well for alienation, amber, manuscript, smf default.

I got into trouble with mercury... can i get mercury TP skin support here? *smile*

I took the "search" button image, used photoshop to give it anohter icon, write arcade onto it, saved it into /mercury/images/english and ...../buttons folders (everywhere search.gif was present)

The i "cloned" the "// How about the [search] button?" lines and added:

      // How about the [arcade] button?
                echo '
                                <a href="', $scripturl, '?action=arcade">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/arcade.gif" alt="ARCADE" style="margin: 2px 0;" border="0" />ARCADE</a>', $context['menu_separator'];


For some reason what was working well with all other skins got amiss, i get an error message when i use the new index template file :(

Crip

you can make a button here with Boc's button maker.......
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



This website is proudly hosted on Crocweb Cloud Website Hosting.