PDA

View Full Version : Clan Server Spy Module


yinyang
06-03-2004, 03:12 AM
Hi guys. i'm trying to put some coding into a module, but the coding isn't vB. it's PHP something for PHPNUKE. now, i have no clue how to do this. is there anyone out there that could please translate this for me? i'd greatly appreciate it.

it's attached and not that long, only 3K. all it does is queries the serverspy.net database and pulls the info into the module. i know what it is supposed to do, but no clue how to do it.

thanks for taking this quick read.!

best,
yinyang

Brian
06-04-2004, 12:24 PM
Server Details


Server Rules


Players (player-kills-connected/ping)

That's all I'm getting when I put the file on my localhost... Is there something I'm missing?

This might help you create the module yourself...

First, create a new template with this content:


<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><strong>$vba_options[portal_blockbullet] <!-- Module Title Here --></strong></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%">

$gscontent

</td>
</tr>
</table>
<br />


Then in the file, you would basically want to replace the places you see 'print' with this:

$gscontent .=

Then at the bottom of the file, you'd want to add this code:

eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('adv_portal_templatenamehere') . '";');

Upload the file to your forum/modules folder, add the module through your Admin CP, and that should do the trick. :)

Our Sponsors
 

yinyang
06-04-2004, 08:21 PM
thank you so much! for your help. sorry i didn't get back sooner, but had to finish up my job today. so i did everything you said and it still squishes this damn thing.

below is an email response from serverspy. this is where'd i'd pull the info. apparently they want me to delete a line on each page. since this isn't regular html and i'm assuming i have to delete it (is it even possible) in the templates somewhere or the actual php file, do you know what they're talking about?

and if so, any clue how to do it?

thanks again!!


---------


Dear YinYang

Thank you for your email. This is a little html glitch and can be solved by you deleted the first line of html on that page i.e.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

you may also need to delete the second line (the one that just says html) but the first line should do it. Let us know if this does not solve your problem.

Thank you for being an Exclusive Subscriber!


"YinYang" <fraggy@6r4mp5.com> wrote:

> thanks for your quick responses. i've integrated the server monitor choice
> #3 i believe. please see www.6r4mp5.com . my question is, simplified, now
> that i know i can do this, how do i get the first choice? the first skin
> mod?
>
> every time i load that into the site, it squashes everything into one. so
> instead of a vertical column, it's just all squished together into a 1/2" x
> 1" rectangle. weird?
>
> any ideas?
>
> -yinyang

Brian
06-04-2004, 08:28 PM
Strange... Not quite sure how that would affect the module, but including stuff from other servers like that isn't exactly my area of expertise either.
If you go to your 'Style Manager' and select 'All Style Options', that's the page where you'll find that... Right below where you had to edit the image paths when installing the CMPS. ;)