LeagueCMS
competition management for DragonFly CMS

Removing ref from fixtures

The public support form for mComp, online gaming Competition Management Software
Reply to topicReply to topic Printer Friendly Page
Forum FAQSearchView unanswered posts

Removing ref from fixtures

Post Posted: Wed Oct 07, 2009 9:26 pm

hi there how can i removerthe ref from the fixtures page as it is putting the fixtures out

cyanide
Regular
Regular
 

Re: Removing ref from fixtures

Post Posted: Thu Oct 08, 2009 10:51 am

In file /modules/Competition/detail.php comment out line 367, i.e. change the line from this :-
PHP:

echo '<tr><td class="row1"><b>'._MRC_REFEREE.'</b></td><td class="row2">'.$refname.'</td></tr>';
to this:-
PHP:

// echo '<tr><td class="row1"><b>'._MRC_REFEREE.'</b></td><td class="row2">'.$refname.'</td></tr>';

mark
Site Admin
Site Admin
 

Removing ref from fixtures

Post Posted: Thu Oct 08, 2009 8:59 pm

hi mate have tried this but it is still there in the fixtures section www.gli.org.uk/Competi...een=1.html

cyanide
Regular
Regular
 

Removing ref from fixtures

Post Posted: Fri Oct 09, 2009 11:48 am

Ah, you mean the list of fixtures, I thought you meant the fixture detail page.

In that case the file to edit is /modules/Competition/index.php and you'll need to edit these lines :-

Line 494 change from this :-
PHP:

$cols
+= ($edata['etype']==5) ? 8 : 6 ;
to this :-
PHP:

$cols
+= ($edata['etype']==5) ? 7 : 5 ;

Line 563 change from this :-
PHP:

echo '<td class="cat"><span class="cattitle">'._MRC_REF.'</span></td>';
to this:-
PHP:

// echo '<td class="cat"><span class="cattitle">'._MRC_REF.'</span></td>';

Line 617 change from this :-
PHP:

echo '<td class="row1"><a href="'.getlink(str_replace('{id}',$ref,MCOMP_CMS_USER_LINK)).'">'.$ruser.'</a></td>';
to this :-
PHP:

// echo '<td class="row1"><a href="'.getlink(str_replace('{id}',$ref,MCOMP_CMS_USER_LINK)).'">'.$ruser.'</a></td>';

That should do the trick for now, however it has raised an issue I've not come across before. Some of the matches in that Ladder are challenges and some are not, and the extra column is only used if they're not challenges. I should really tidy that up, it doesn't make sense to have different numbers of columns in a table view for different rows in the table. A job for another day however Wink

mark
Site Admin
Site Admin
 

Removing ref from fixtures

Post Posted: Sun Oct 11, 2009 1:02 pm

thanks mate that worked a treat

cyanide
Regular
Regular
 
Page 1 of 1



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
You cannot attach files in this forum
You cannot download files in this forum