MMORPG Core - Resources for MMORPG Server

Go Back   MMORPG Core - Resources for MMORPG Server > MUCore - MU Online CMS Website Package > MUCore Modifications > MUCore Modules > Free Modules

Reply
 
LinkBack Thread Tools Display Modes
Old 11-21-2009, 01:02 PM   #1
Member
 
Join Date: Oct 2009
Posts: 50
Rep Power: 1
Darkmax is on a distinguished road
Send a message via MSN to Darkmax
Post [Free] Married Users Module (scfmt files)

Hello,

I've done a module for MuCore that will display the married users of your Mu server. Its for servers using SCFMT's files.

Lets start:

1. Create a PHP file named "married.php" on the folder called "pages_modules", copy the next code into this PHP file:

PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.red {
    color: #800000;
}
.grey {
    color: #000000;
}
.gold {
    color: #BEC402;
}
.blue {
    color: #0080FF;
}
.green {
    color: #00FF40;
}
.themain {
background: #901b1b;
-moz-border-radius: 8px 8px 8px 8px;
}

.topp1 {
background: #b02c2c;
color: #ffcfcf;
font-weight: bold;
-moz-border-radius: 8px 0 0 0;
}

.topp2 {
background: #b02c2c;
color: #ffcfcf;
font-weight: bold;
}

.topp3 {
background: #b02c2c;
color: #ffcfcf;
font-weight: bold;
-moz-border-radius: 0 8px 0 0;
}
.trhover {
background: #FFFFFF;
}

.trhover:hover{background: #ffeab0;}
.trhover:active{background: #ffeab0;}

-->
</style>
</head>

<body>

<table width="70%" align="center" cellspacing="0" cellpadding="0">

<tr align="center">
<td><span style="font-size: 30px;color: #901b1b;font-weight: bold;">Married Users</span></td>
</tr>

<tr>
</tr>

</table>

<BR>

  <div align="center">
  <table width="50%" class="themain" align="center" cellspacing="0" cellpadding="2"><tr><td>
    <table width="100%" border="0" cellspacing="1" cellpadding="3">
      <tr>
        <td align="center" class="topp1">Wife</td>
        <td align="center" class="topp3">Husband</td>
      </tr>

  <?
$query
=mssql_query("select TOP 50 * from MuOnline.dbo.Character Where (SCFMarried = '1') and (class like '34') or (SCFMarried = '1') and (class like '33') or (SCFMarried = '1') and (class like '32') or (SCFMarried = '1') and (class like '80') or (SCFMarried = '1') and (class like '81') or (SCFMarried = '1') and (class like '82') order by Name ASC");
while(
$row=mssql_fetch_assoc($query)){
$namez=$row['Name'];
$marriedwith=$row['SCFMarryHusbandWife'];


?>
      <tr>
        <td class="trhover" align="center"><?=$namez;?></a></td>
        <td class="trhover" align="center"><?=$marriedwith;?></td>
      </tr>
 
  <?

}
?>





      </table>
      
      </td></tr></table><BR>
      <small><a href="http://gamezeventos.com">Module by GamezEventosMU</a></small>
</div>
<br><br>

</body>
</html>

2. Go to your AdminCP > MUCore CMS > Add Page:
>> [Built-in Page]

> Page Title: Married
> Page ID: married
> Page Active: YES
> SQL Connection: NO
> Page Authentication: NO
> Page Hide: NO

Click on "Add Page"

3. Go to your AdminCP > MUCore CMS > Add Module:
>> [PHP File Module]

> Module Title: Married Users
> Module Active: YES
> Module PHP File: married.php

Click "Add Module"

4. Go to your AdminCP > MUCore CMS > Edit Pages: edit the page called "Married"

Scroll down to "Active Modules" and move the "Married Users" module to the "Center Column"

Click "Save"


You're done !

you can view your new page at:
www.yourserverwebsite.com/index.php?page_id=married


Credits:
GamezEventosMU << Module Creation ( me )
MuCore << Great CMS :p

Live Demo:
http://www.gamezeventosmu.com/index.php?page_id=married

Last edited by Darkmax; 11-22-2009 at 01:33 AM.
Darkmax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-21-2009, 02:27 PM   #2
Administrator
 
PHPCore's Avatar
 
Join Date: Oct 2009
Location: UK
Age: 25
Posts: 205
Rep Power: 10
PHPCore has disabled reputation
Send a message via MSN to PHPCore
Default

Very nice :D
PHPCore is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-22-2009, 01:35 AM   #3
Member
 
Join Date: Oct 2009
Posts: 50
Rep Power: 1
Darkmax is on a distinguished road
Send a message via MSN to Darkmax
Default

Query Updated !

The old query had a problem and was displaying the husbands on the "wifes" row and repeated users. It is now fixed.
Darkmax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-09-2009, 02:37 AM   #4
Junior Member
 
Join Date: Nov 2009
Location: Mexico
Posts: 12
Rep Power: 0
Evil is on a distinguished road
Send a message via ICQ to Evil Send a message via MSN to Evil Send a message via Yahoo to Evil Send a message via Skype™ to Evil
Default

thank you mate, im using it ;)

i hope you post more modules for SCFMT files.

(=
Evil is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-26-2009, 11:46 PM   #5
Member
 
Join Date: Oct 2009
Posts: 50
Rep Power: 1
Darkmax is on a distinguished road
Send a message via MSN to Darkmax
Default

Quote:
Originally Posted by Evil View Post
thank you mate, im using it ;)

i hope you post more modules for SCFMT files.

(=

Oh yea, I will post more for sure.

some of them:

Server statistics:
Statistics - GamezEventosMU Season 5

Top Online:
Top Online - GamezEventosMU Season 5

Top Votes (works with vote & reward system + [webshop] )
Top Votes - GamezEventosMU Season 5

Ill post them when i have some time.
Darkmax is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-04-2010, 03:12 AM   #6
Junior Member
 
Join Date: Nov 2009
Location: Mexico
Posts: 12
Rep Power: 0
Evil is on a distinguished road
Send a message via ICQ to Evil Send a message via MSN to Evil Send a message via Yahoo to Evil Send a message via Skype™ to Evil
Default

thank you again.

Quote:
Originally Posted by Darkmax View Post
Oh yea, I will post more for sure.

some of them:

Server statistics:
Statistics - GamezEventosMU Season 5

Top Online:
Top Online - GamezEventosMU Season 5

Top Votes (works with vote & reward system + [webshop] )
Top Votes - GamezEventosMU Season 5

Ill post them when i have some time.
Evil is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


LinkBacks (?)
LinkBack to this Thread: http://mmorpgcore.com/f67/%5Bfree%5D-married-users-module-scfmt-files-684/
Posted By For Type Date
Terms of Service - MuNightmare Season 5 Low Exp This thread Refback 11-21-2009 02:43 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mucore 1.0 free version ?? Taurus Ideas and Requests 4 08-24-2010 01:38 PM
jsDatePick - A Simple Free Javascript Date Picker JavaScriptBank Tutorials 0 07-28-2010 02:35 AM
Server Files bluedrag01 Releases 0 02-14-2010 08:12 AM
BMD Files Information DemoVista Skins 0 12-29-2009 03:19 AM


All times are GMT. The time now is 01:51 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright ©2009, MMORPG Core