Updating the UAC DGL FORUM BLOCK

WE ARE THE LAW!!!!!!!!!
User avatar
SlipperyDuck
Posts: 11493
Joined: Sat Jun 22, 1974 12:00 am

Updating the UAC DGL FORUM BLOCK

Post by SlipperyDuck »

First you need to login to the Admin Control panel.

http://www.grrr.co.za/admincp/index.php

Next, scroll down to:
Forums & Moderators

Next, expand the submeny and choose:
Forum Blocks Manager
(will open http://www.grrr.co.za/admincp/block.php )

^ use the shorcut if you like, but it won't have the side menu if you do.

Look for the First block [0], which should be labelled:
[TABLE="class: tborder, width: 90%, align: center"]
[TR]
[TD="class: thead, align: left"]Block[/TD]
[TD="class: thead, align: left"]Description[/TD]
[TD="class: thead"]Display Order[/TD]
[TD="class: thead"]Controls[/TD]
[/TR]
[TR]
[TD="class: alt1, align: left"]LEAGUE UAC[/TD]
[TD="class: alt1, align: left"]Do Gaming League UAC Match ID[/TD]
[TD="class: alt1"][/TD]
[TD="class: alt1"] [Edit] [Delete][/TD]
[/TR]
[/TABLE]

We clock on the EDIT link to go edit the TEXT in the HTML Block that makes up this BOX.
The box SHOULD contain the following:
<style type="text/css">
#d_clip_button {
width:120px; text-align:center; border:2px solid ; border-color:#AB3B00; background-color:#222; color:#fff; margin:2px; padding:2px; cursor:default; font-size:9pt; border-radius: 6px;
}
#d_clip_button.hover { background-color:#ff9000; }
#d_clip_button.active { background-color:#ffc790; }
</style>
[align=center]
<script type="text/javascript" src="/flash/zeroclip/ZeroClipboard.js"></script>
<div style="background-color:2F2F2F; color:#fcfcfc; font: bold 11px Tahoma, Calibri, Verdana, Geneva, sans-serif;">
DGL UAC MATCH ID:</div>
<div style="background-color:2F2F2F; color:#f3cd4a; font: bold 11px Tahoma, Calibri, Verdana, Geneva, sans-serif;">
dgl13734 </div>
<input type="hidden" id="clip_text" size="14" value="dgl13734"/>
<div id="d_clip_button">Copy To Clipboard</div>

<script language="JavaScript">
var clip = new ZeroClipboard.Client();

clip.setText( '' ); // will be set later on mouseDown
clip.setHandCursor( true );
clip.setCSSEffects( true );

clip.addEventListener( 'load', function(client) {
// alert( "movie is loaded" );
} );

clip.addEventListener( 'complete', function(client, text) {
alert("Copied text to clipboard: " + text );
} );

clip.addEventListener( 'mouseOver', function(client) {
// alert("mouse over");
} );

clip.addEventListener( 'mouseOut', function(client) {
// alert("mouse out");
} );

clip.addEventListener( 'mouseDown', function(client) {
// set text to copy here
clip.setText( document.getElementById('clip_text').value );

// alert("mouse down");
} );

clip.addEventListener( 'mouseUp', function(client) {
// alert("mouse up");
} );

clip.glue( 'd_clip_button' );
</script>


DONT PANIC

We are not going to edit very much - in fact just these two lines:

dgl13734 </div>


^ That is the TEXT that will be displayed on the screen

<input type="hidden" id="clip_text" size="14" value="dgl13734"/>


^ the value="dgl13734" is the value that gets copied to the clipboard when we click copy.

simply scroll down to and change ( dgl13734 </div> ) --> ( dgl999999 </div> ) if the match id is 9999999 on the DGL website page url eg:
http://www.dogamingleague.co.za/match.php?id=13734

^ in the above examplewe can see the id=13734 so our match id for UAC is dgl13734 (*note the prepend of dgl)

We make the Same change to the ( value="dgl13734" ) --> ( value="dgl999999" )

Once you've made those minor adjustments, click on [SAVE]

Easy as that, now our users can just click [COPY TO CLIPBOARD] button and the a message will pop-up that the dgl999999 has been copied to the clipboard, easy peezy
[table][tr]
[td] Image [/td]
[td] [/td]
[/tr][/table]
I've only been wrong once, and that's when I thought I was wrong.
Image
-
User avatar
Paul
Posts: 5795
Joined: Thu Oct 05, 2006 4:54 pm
Location: In your base, pwning your noobs

Post by Paul »

Sweet Lee, you are a Legend amoung men!

I changed it to display "None for now" as the play offs are done.
Image

Return to “Admin”

×