Text
Arcade Tournament Portal

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfreeforum.org Forum Index -> Portal Hacks
View previous topic :: View next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertsing.





Add Karma

Posted:     Post subject:

Back to top
symon
Site Admin
Site Admin

Location: 

Joined: 13 Mar 2006
Posts: 866


Location: Hampshire Add Karma

PostPosted: Sat Aug 18, 2007 9:57 am    Post subject: Arcade Tournament Portal Reply with quote

This guide will enable you to have a Arcade Tournament Portal for Your forums Tournament on the Arcade.


An example of a finished product can be see on the index page of HOWTODOIT on the top left.


Please remember to use the Editor account before making any template changes

Secondly you must have all ready a template you can edit.

If you have not done this please read HOWTODOIT

Ok all that done you now goto Your admin panel --- 3. Styles --- Portal Settings

You will now see a screen that looks like this



If you do not already see a portal named ARCADETOURNAMENT then (if you do then IGNORE The Steps 1-5)

1.Click on the Blank box icon that looks like this

Now you see a screen like this





2.Add ARCADETOURNAMENT to the name

3.And then what you want in the Title.

4. Click Create New Portal

5. Now goto admin panel --- 3. Styles --- Edit Templates/Logos -- the template you wish to edit (EG myff_howtodoit1)--- Submit

Now look at the bottom in the area marked Choose Portal template File to Edit use the drop down bar and find[/b]

cms_arcadetournament.tpl

Now copy this code into that file

Code:
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center">
<!--BEGIN switch_arcadetournament_title -->     
   <tr>
        <th colspan="3"  class="thTop" nowrap="nowrap">{ARCADETOURNAMENT_TITLE} : {ARCADETOURNAMENT_TOURNAMENT}</th>
     </tr>
<!--END switch_arcadetournament_title -->          
<!-- IF S_ARCADETOURNAMENT_DISPLAY == "games" -->
  <tr>
   <th class="thTop">Name</td>
   <th class="thTop">Game</td>   
   <th class="thTop">Score</a></td>
  </tr>

  <!-- BEGIN arcadetournament -->
  <tr>
   <td class="row2"><span class="topictitle">{arcadetournament.NAME}</span></td>
   <td class="row2"><span class="topictitle">{arcadetournament.GAME}</span></td>   
   <!--<td class="row2"><span class="topictitle">{arcadetournament.FORUM}</span></td>-->
   <td class="row2"><span class="topictitle">{arcadetournament.SCORE}</span></td>

  </tr>
  <!-- END arcadetournament -->
<!-- ELSE -->
 <tr>
   <th class="thTop">Name</td>
   <th class="thTop">Wins</td>   
<!-- IF S_ARCADETOURNAMENT_SHOWGAMES == 1 -->
<th class="thTop">Games</td>   
<!-- ENDIF -->
   
  </tr>
  <!-- BEGIN arcadetournament -->
  <tr>
   
   <td class="row2"><span class="topictitle">{arcadetournament.NAME}</span></td>
   
   <!--<td class="row2"><span class="topictitle">a{arcadetournament.FORUM}</span></td>-->
   <td class="row2"><span class="topictitle">{arcadetournament.WINNER}</span></td>
<!-- IF S_ARCADETOURNAMENT_SHOWGAMES == 1 -->
<td class="row2"><span class="topictitle">(
<!-- BEGIN games -->
{arcadetournament.games.GAME}{arcadetournament.games.SEP}
<!-- END games -->

)</span></td>
<!-- ENDIF -->
  </tr>
  <!-- END arcadetournament -->
<!-- ENDIF -->
</table>



6. Ok all that done you now goto Your admin panel --- 3. Styles --- Portal Settings

Click on ARCADETOURNAMENT

You will now see this screen.




You now need to set this to how you like.

Title = The name of the portal

Published = Yes Anyone will see , No = only admins will see
Show Title No Yes Select whether to show the title of this component
Games/Players Games = show game names -- Player = show players name.
Show Games = When showing top players list the games they have won..
Tournament name = The name of the tournament you wish to show this must be exact.
Count = How many players to show

Examples of the different methods are shown at the end of the guide.

Now Where To Add It

Most likely you would add this to cms_index_body.tpl


Goto admin panel --- 3. Styles --- Edit Templates/Logos -- the template you wish to edit (EG myff_howtodoit1)--- Submit

Now look at the bottom in the area marked Choose Portal template File to Edit use the drop down bar and find

cms_index.tpl


And place this code where you want it to appear.

Code:

{MYFF.ARCADETOURNAMENT}


So it may look like this




Code:
<tr>
        <td colspan="1" width="150" height="25" class="topictitle" nowrap="nowrap">{MYFF.ARCADETOURNAMENT}</td>
     </tr>

   <tr>
        <td colspan="1" width="150" height="25" class="topictitle" nowrap="nowrap">{MYFF.ANNOUNCE show_results="topics"}</td>
     </tr>


You can even set it up to appear on a special web page like below.

http://howtodoit.myfreeforum.org/touranment.html


The following guide is for those that wish to add more than one portal.

This would be ideal if you are running more than one tournament.

1. Ok all that done you now goto Your admin panel --- 3. Styles --- Portal Settings

Click on ARCADETOURNAMENT

Ok now change the name from ARCADETOURNAMENT to ARCADETOURNAMENT1

And then click on Create New Portal

Now change the settings to your new tournament following the steps above eg change tournament name form the orginal to your new tournament.

Repeat the steps above for how many new portals you want.

To place them on your site use the following code

Code:
{ARCADETOURNAMENT1} {ARCADETOURNAMENT2}
each new portal change the number by 1 and then change the code by 1

To place in a webpage is very simple

1. Goto admin panel -- 6. Web Pages -- Edit Web Pages



Now click on Web Page in the top left hand corner

Enter the details if you are not sure what to put then please read

http://howtodoit.myfreeforum.org/...component=content&topicid=651

Now click on source

And enter

Code:
{MYFF.ARCADETOURNAMENT}


Save Page



Screenshots of different settings.

Games/Players = Games , Show Games = No



Games/Players = Games , Show Games = Yes



Games/Players = Players, Show Games = No



Games/Players = Players, Show Games = Yes



And that Is HOWTODOIT



_________________
Join me on FaceBook = symon field
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfreeforum.org Forum Index -> Portal Hacks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Card File  Gallery  Forum Archive
HOWTODOIT was designed and built by Symon Field
Creator Of ☆ FarnboroughInvinciblesAgonyAuntFairiesAsylum Alliance FunnyWorldHOWTODOIT PHPbb3
HOWTODOIT© Symon Field 2006,2007,2008

Powered by phpBB Group © 2001,2005.
 

Create your own free forum | Buy a domain to use with your forum