You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 107 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - help with theme [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
mekon
Nuke Soldier
Nuke Soldier


Joined: Mar 29, 2004
Posts: 17


PostPosted: Fri Apr 02, 2004 4:33 am Reply with quoteBack to top

Hi i am using the blackdog theme on my site and a server status block, but when a map loads that the name is quite long, the page seems mess up. see screenie for what i mean.

Image

you can see for yourself just msn me to put a new map on
http://tvaclan.net

mekon@tvaclan.net (msn addy)

if anyone could maybe tell me how i can sort this out i would be most gratefull.

Thanks in advance..

mekon
Find all posts by mekonView user's profileSend private message
PuGZ
Sergeant
Sergeant


Joined: Mar 01, 2004
Posts: 136

Location: Victoria, Australia

PostPosted: Fri Apr 02, 2004 3:18 pm Reply with quoteBack to top

mekon wrote:
Hi i am using the blackdog theme on my site and a server status block, but when a map loads that the name is quite long, the page seems mess up. see screenie for what i mean.

Image

you can see for yourself just msn me to put a new map on
http://tvaclan.net

mekon@tvaclan.net (msn addy)

if anyone could maybe tell me how i can sort this out i would be most gratefull.

Thanks in advance..

mekon
Where can I get this server status block? I'll try modifying it for you.
Find all posts by PuGZView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
mekon
Nuke Soldier
Nuke Soldier


Joined: Mar 29, 2004
Posts: 17


PostPosted: Sat Apr 03, 2004 5:39 am Reply with quoteBack to top

ive uploaded it to my personal space save looking for it.

http://homepage.ntlworld.com/dn.lewis/gameserver-0.0.4.rar
Find all posts by mekonView user's profileSend private message
PuGZ
Sergeant
Sergeant


Joined: Mar 01, 2004
Posts: 136

Location: Victoria, Australia

PostPosted: Sat Apr 03, 2004 5:56 am Reply with quoteBack to top

In blocks/block-Gameserver.php on line 85 replace this:

Code:
    if($gameServer->maptitle=="") {
      $boxstuff.="<tr><td>"._MAP.":</td><td>". $gameServer->mapname ."</td></tr>";
    } else {
      $boxstuff.="<tr><td>"._MAP.":</td><td>". $gameServer->maptitle ."</td></tr>";
    }


with this:
Code:
    if(!strlen($gameServer->mapname>7) {
      $boxstuff.="<tr><td>"._MAP.":</td><td>". $gameServer->mapname ."</td></tr>";
    } else {
      $boxstuff.="<tr><td>"._MAP.":</td><td>". substr($gameServer->maptitle, 0, 7) ."</td></tr>";
    }


That'll simply cut down any mapname of more than 7 letters down to 7. If seven is too big, it should be easy enough to change Very Happy

I have no way of testing if that works, let me know how it goes, mmkay? Very Happy
Find all posts by PuGZView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
mekon
Nuke Soldier
Nuke Soldier


Joined: Mar 29, 2004
Posts: 17


PostPosted: Sat Apr 03, 2004 9:19 am Reply with quoteBack to top

tried that and got this error Sad

Code:
Parse error: parse error in /home/mekon/public_html/clan-/blocks/block-Gameserver.php on line 85
Find all posts by mekonView user's profileSend private message
Twister
Nuke Soldier
Nuke Soldier


Joined: Apr 03, 2004
Posts: 28


PostPosted: Sat Apr 03, 2004 10:46 am Reply with quoteBack to top

Your site works for me. :S
Find all posts by TwisterView user's profileSend private message
mekon
Nuke Soldier
Nuke Soldier


Joined: Mar 29, 2004
Posts: 17


PostPosted: Sat Apr 03, 2004 4:38 pm Reply with quoteBack to top

ive removed the edited mod for now thats why :p and the site was working still but the block wasnt i was just getting that error where the block should be.
Find all posts by mekonView user's profileSend private message
PuGZ
Sergeant
Sergeant


Joined: Mar 01, 2004
Posts: 136

Location: Victoria, Australia

PostPosted: Sat Apr 03, 2004 5:50 pm Reply with quoteBack to top

Ok, instead of
Code:
    if($gameServer->maptitle=="") {
      $boxstuff.="<tr><td>"._MAP.":</td><td>". $gameServer->mapname ."</td></tr>";
    } else {
      $boxstuff.="<tr><td>"._MAP.":</td><td>". $gameServer->maptitle ."</td></tr>";
    }


try using this:

Code:
    $gMapName = $gameServer->mapname;
    if(strlen($gMapName > 7) {
      $boxstuff.="<tr><td>"._MAP.":</td><td>".substr($gMapName,0,7)."</td></tr>";
    } else {
      $boxstuff.="<tr><td>"._MAP.":</td><td>".$gMapName."</td></tr>";
    }


Let me know how it goes Smile
Find all posts by PuGZView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
mekon
Nuke Soldier
Nuke Soldier


Joined: Mar 29, 2004
Posts: 17


PostPosted: Sun Apr 04, 2004 3:11 pm Reply with quoteBack to top

Code:
Parse error: parse error in /home/mekon/public_html/clan-/blocks/block-Gameserver.php on line 86


Sad
Find all posts by mekonView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 2.844 Seconds - 312 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::