Welcome Guest [Log In] [Register]
Welcome to Thunder Services. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Replace tournament text with buttons; Invisionfree and Zetaboards
Topic Started: June 4, 2009, 6:02 pm (331 Views)
Eric
Member Avatar
Administrator

The text at the bottom of the tournament view page has been unchangeable up until now.

For example, you can now replace [Join this Tournament] with:
Posted Image

First, open your ArcadeCP->Templates->Click 'Edit Single' on the "Tournament View Template".

Replace:
Quote:
 
{Play}


With:
Quote:
 
<div id='playt'>{Play}</div>


Now hit the submit button.

If you are on zetaboards, open up your Admin CP->Board Template.
Then add the code below to the Above the copyright box.

If you are on invisionfree, open up your Admin CP->Board Wrappers.
Then add the code below to the Footer box.

Quote:
 
<script type='text/javascript'>
playt=document.getElementById('playt');
playt.innerHTML = playt.innerHTML.replace('\(', '');
playt.innerHTML = playt.innerHTML.replace('\)', '');
pt = document.getElementById('playt').getElementsByTagName('a')[0];
pt.innerHTML=pt.innerHTML.replace("Join this Tournament", "<img src='Join the tournament button' />");
pt.innerHTML=pt.innerHTML.replace("Play", "<img src='Play button' />");
pt.innerHTML=pt.innerHTML.replace("Resign from this Tournament", "<img src='Resign from the tournament button' />");
</script>


Replace the red with the image locations of the buttons you have.

Now hit the submit button.
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Offline Profile Quote Post Goto Top
 
Sly
Member Avatar


Thanks so much, GF...

YOU ROCK!

:)

EDIT: you missed a single quote on the PLAY img src.
Posted Image
Offline Profile Quote Post Goto Top
 
Eric
Member Avatar
Administrator

Whoops, updated. :)
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Offline Profile Quote Post Goto Top
 
Sly
Member Avatar


'Not an Object' error in IE8. Don't know about 7, since I never checked before upgrading.
Posted Image
Offline Profile Quote Post Goto Top
 
Eric
Member Avatar
Administrator

Hmm... did you replace {play} with <div id='playt'>{Play}</div>?
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Offline Profile Quote Post Goto Top
 
Sly
Member Avatar


Yup, sure did.

It works great in FF, but not IE(8). Not an uncommon occurrence, for sure. IE8 even has "compatibility mode" for deprecated sites, and it still created the same error.
Edited by Sly, July 15, 2009, 3:24 am.
Posted Image
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · General · Next Topic »
Add Reply