Use this forum to ask questions about how to do things in GuMax skin.
IAnW
Rank 0
Posts: 4 Joined: March 25th, 2008, 12:52 pm
Post
by IAnW » March 25th, 2008, 1:01 pm
Hello Everyone,
I am currently using SGuMax 3.2 and it's a great skin. It's running on MediaWiki: 1.11.1, PHP: 5.2.5, MySQL: 5.0.41
The only modification I have not been able to make is changing the footer from:
Code: Select all
<?php if($this->data['lastmod']) { ?><span id="f-lastmod"><?php $this->html('lastmod') ?></span><?php } ?>
to....
Code: Select all
<?php if($this->data['lastmodifiedatby']) { ?><span id="f-lastmod"><?php $this->html('lastmodifiedatby') ?></span><?php } ?>
I have enabled the
$wgMaxCredits in
DefaultSettings.php but this has no effect.
Has anyone been able to make this change to the skin?
Many thanks in advance,
Ian.
Paul
Development Team Leader
Posts: 1132 Joined: October 20th, 2007, 2:23 pm
Post
by Paul » March 26th, 2008, 9:53 pm
Go to mediawiki.org and search for this, you should be able to find it if this "lastmodifiedatby" an valid data in wiki.
IAnW
Rank 0
Posts: 4 Joined: March 25th, 2008, 12:52 pm
Post
by IAnW » March 27th, 2008, 6:14 am
I have followed the instructions at:
http://www.mediawiki.org/wiki/Help:FAQ# ... _footer.3F
and changed
$wgMaxCredits to -1
When I change the skin to MonoBook, after modifying the footer components, I get full details as intended.
However, when I change the skin to SGuMax the line disappears.
I have searched in the MonoBook files for
lastmod and
$wgMaxCredits and there are two functions. Do these need to be incorporated into your skin?
Does anyone have
lastmodifiedatby working in the SGuMax skin?
Paul
Development Team Leader
Posts: 1132 Joined: October 20th, 2007, 2:23 pm
Post
by Paul » March 31st, 2008, 11:12 pm
Yes, if you find that function, please replace GuMax with that with that function, since GuMax may use old way in order to make it work with both old version and new version of MediaWiki.
IAnW
Rank 0
Posts: 4 Joined: March 25th, 2008, 12:52 pm
Post
by IAnW » April 1st, 2008, 5:37 am
Thanks for your reply, I'll give it a try and let you know if I get it working.
IAnW
Rank 0
Posts: 4 Joined: March 25th, 2008, 12:52 pm
Post
by IAnW » April 1st, 2008, 9:26 am
I have made the following changes to the
SGuMax.php file and it's now working perfectly.
Code: Select all
<!-- ///// gumax-footer ///// -->
<div id="gumax-footer">
<!-- gumax-f-message -->
<div id="gumax-f-message">
<?php if($this->data['viewcount']) { ?><span id="f-viewcount"><?php $this->html('viewcount') ?> </span>
<?php } ?>
</div>
<!-- end of gumax-f-message -->
<!-- gumax-f-list -->
<div id="gumax-f-list">
<ul>
<?php if( isset( $this->data['credits'] ) && $this->data['credits'] ) {
?> <li id="credits"><?php $this->html('credits') ?></li><br />
<?php } ?>
<?php
$footerlinks = array(
'numberofwatchingusers',
'privacy', 'about', 'disclaimer', 'tagline',
);
foreach( $footerlinks as $aLink ) {
if( isset( $this->data[$aLink] ) && $this->data[$aLink] ) {
?> <li id="<?php echo$aLink?>"><?php $this->html($aLink) ?></li>
<?php }
}
?>
<li id="f-poweredby"><a href="http://mediawiki.org">Powered by MediaWiki</a></li>
<li id="f-designby"><a href="http://www.paulgu.com">Design by Paul Gu</a></li>
</ul>
</div>
<!-- end of gumax-f-list -->
<?php $this->html('bottomscripts'); /* JS call to runBodyOnloadHook */ ?>
</div>
<!-- ///// end of gumax-footer ///// -->
The
lastmodifiedatby has not been used. This is included through
credits ....
Code: Select all
<?php if( isset( $this->data['credits'] ) && $this->data['credits'] ) {
?> <li id="credits"><?php $this->html('credits') ?></li><br />
Paul
Development Team Leader
Posts: 1132 Joined: October 20th, 2007, 2:23 pm
Post
by Paul » April 1st, 2008, 10:01 pm
Great! Thanks. I will add it to next version.