lastmodifiedatby

Use this forum to ask questions about how to do things in GuMax skin.
Post Reply
User avatar
IAnW
Rank 0
Rank 0
Posts: 4
Joined: March 25th, 2008, 12:52 pm

lastmodifiedatby

Post by IAnW »

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.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: lastmodifiedatby

Post by Paul »

Go to mediawiki.org and search for this, you should be able to find it if this "lastmodifiedatby" an valid data in wiki.
User avatar
IAnW
Rank 0
Rank 0
Posts: 4
Joined: March 25th, 2008, 12:52 pm

Re: lastmodifiedatby

Post by IAnW »

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?
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: lastmodifiedatby

Post by Paul »

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.
User avatar
IAnW
Rank 0
Rank 0
Posts: 4
Joined: March 25th, 2008, 12:52 pm

Re: lastmodifiedatby

Post by IAnW »

Thanks for your reply, I'll give it a try and let you know if I get it working.
User avatar
IAnW
Rank 0
Rank 0
Posts: 4
Joined: March 25th, 2008, 12:52 pm

Re: lastmodifiedatby

Post by IAnW »

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 />
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: lastmodifiedatby

Post by Paul »

Great! Thanks. I will add it to next version. :D
Post Reply