Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Register your account to receive email notifications when new services and mods are added.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: Avatar Page  (Read 1021 times)

strats

  • Active Member
  • **
  • Reputation Power: 13
  • strats has no influence.
  • Offline Offline
  • Posts: 109
    • View Profile
Avatar Page
« on: August 08, 2009, 03:01:33 PM »
This is my first mod I have done without any help, only Lithium checking over it.
This mod is more suited for people with a themed game.
E.G Mafia, Fighting.

What it does :

Users can go to the Avatar page and check through a list of avatars suited to the game.
If a player likes an avatar they can copy the link to it and then click the picture.
Once clicked it will bring you to the preference pic change page, paste the link and your done.

If you wish you can let users request pictures and put them up too.

What to do :

Make a folder named Images or if you have one called images you can make one inside that one of your choice.
Upload game avatar pics into it.
Make a file named Avatar.php

Code: [Select]
<?php
include "globals.php";
?>

<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="35%" id="AutoNumber1" height="236">
  <tr>
    <td width="50%" height="14" align="center"><u>Avatars</u></td>
  </tr>
  <tr>
  <tr>
    <td width="50%" height="14" align="center"><u> <a href="http://wrestling-wars.com/preferences.php?action=picchange" target="_blank"><img src="http://wrestling-wars.com/images/botpic/Jeff_Hardy.jpg" border="0" alt="yourgamename"></a></u></td>
  </tr>
  <tr>
 <tr>
    <td width="50%" height="14" align="center"><u><label for="urlcode4">Link</label>
                    <input type="text" class="txtCode" name="urlcode4" id="urlcode4" value="http://wrestling-wars.com/images/botpic/Jeff_Hardy.jpg" readonly="readonly" onclick="trackCodeClick(event,'image','0'); copyToClipboard(this);" oncontextmenu="linksMo.handleContextMenuOpen('4');">
                    <br class="clearL">
</u></td>
  </tr>
  <tr>
    </tr>
  <tr>
  <tr>
    <td width="50%" height="14" align="center"><u> <a href="http://wrestling-wars.com/preferences.php?action=picchange" target="_blank"><img src="http://wrestling-wars.com/images/botpic/JeffHardy2.jpg" border="0" alt="yourgamename"></a></u></td>
  </tr>
  <tr>
 <tr>
    <td width="50%" height="14" align="center"><u><label for="urlcode4">Link</label>
                    <input type="text" class="txtCode" name="urlcode4" id="urlcode4" value="http://wrestling-wars.com/images/botpic/JeffHardy2.jpg" readonly="readonly" onclick="trackCodeClick(event,'image','0'); copyToClipboard(this);" oncontextmenu="linksMo.handleContextMenuOpen('4');">
                    <br class="clearL">
</u></td>
  </tr>
  <tr>
    </tr>
  <tr>
    </tr>
  <tr>
  <tr>
    <td width="50%" height="14" align="center"><u> <a href="http://wrestling-wars.com/preferences.php?action=picchange" target="_blank"><img src="http://wrestling-wars.com/images/botpic/JeffHardy3.jpg" border="0" alt="yourgamename"></a></u></td>
  </tr>
  <tr>
 <tr>
    <td width="50%" height="14" align="center"><u><label for="urlcode4">Link</label>
                    <input type="text" class="txtCode" name="urlcode4" id="urlcode4" value="http://wrestling-wars.com/images/botpic/JeffHardy3.jpg" readonly="readonly" onclick="trackCodeClick(event,'image','0'); copyToClipboard(this);" oncontextmenu="linksMo.handleContextMenuOpen('4');">
                    <br class="clearL">
</u></td>
  </tr>
  <tr>
    </tr>
  <tr>
  <tr>
    <td width="50%" height="14" align="center"><u> <a href="http://wrestling-wars.com/preferences.php?action=picchange" target="_blank"><img src="http://wrestling-wars.com/images/botpic/MattHardy.jpg" border="0" alt="yourgamename"></a></u></td>
  </tr>
  <tr>
 <tr>
    <td width="50%" height="14" align="center"><u><label for="urlcode4">Link</label>
                    <input type="text" class="txtCode" name="urlcode4" id="urlcode4" value="http://wrestling-wars.com/images/botpic/MattHardy.jpg" readonly="readonly" onclick="trackCodeClick(event,'image','0'); copyToClipboard(this);" oncontextmenu="linksMo.handleContextMenuOpen('4');">
                    <br class="clearL">
</u></td>
  </tr>
  <tr>
    </tr>
  <tr>
  <tr>
    <td width="50%" height="14" align="center"><u> <a href="http://wrestling-wars.com/preferences.php?action=picchange" target="_blank"><img src="http://wrestling-wars.com/images/botpic/MattHardy2.jpg" border="0" alt="yourgamename"></a></u></td>
  </tr>
  <tr>
 <tr>
    <td width="50%" height="14" align="center"><u><label for="urlcode4">Link</label>
                    <input type="text" class="txtCode" name="urlcode4" id="urlcode4" value="http://wrestling-wars.com/images/botpic/MattHardy2.jpg" readonly="readonly" onclick="trackCodeClick(event,'image','0'); copyToClipboard(this);" oncontextmenu="linksMo.handleContextMenuOpen('4');">
                    <br class="clearL">
</u></td>
  </tr>
  <tr>
    </tr>
  <tr>
  <tr>
    <td width="50%" height="14" align="center"><u> <a href="http://wrestling-wars.com/preferences.php?action=picchange" target="_blank"><img src="http://wrestling-wars.com/images/botpic/MattHardy3.jpg" border="0" alt="yourgamename"></a></u></td>
  </tr>
  <tr>
 <tr>
    <td width="50%" height="14" align="center"><u><label for="urlcode4">Link</label>
                    <input type="text" class="txtCode" name="urlcode4" id="urlcode4" value="http://wrestling-wars.com/images/botpic/MattHardy3.jpg" readonly="readonly" onclick="trackCodeClick(event,'image','0'); copyToClipboard(this);" oncontextmenu="linksMo.handleContextMenuOpen('4');">
                    <br class="clearL">
</u></td>
&nbsp;</td>
  </tr>
</table>

</body>

</html>
Logged

strats

  • Active Member
  • **
  • Reputation Power: 13
  • strats has no influence.
  • Offline Offline
  • Posts: 109
    • View Profile
Re: Avatar Page
« Reply #1 on: August 08, 2009, 03:04:06 PM »
Make sure you change all the links to point to your game images!

To add more Links add this above
&nbsp;</td>
  </tr>
</table>
And under
</u></td>
And change the links again


Here is a printscreen

Logged

Twist3d Fat3

  • Basic Member
  • *
  • Reputation Power: 52
  • Twist3d Fat3 has no influence.
  • Offline Offline
  • Posts: 42
    • View Profile
Re: Avatar Page
« Reply #2 on: August 08, 2009, 11:52:01 PM »
Did actually make It?

It nice I wont be using It though
Logged

strats

  • Active Member
  • **
  • Reputation Power: 13
  • strats has no influence.
  • Offline Offline
  • Posts: 109
    • View Profile
Re: Avatar Page
« Reply #3 on: August 09, 2009, 02:12:16 AM »
Yup I made it.
I will be realising it on W-W very soon.
Will allow users to chose pictures to be uploaded of their fav wrestlers too
Logged

mentaljason

  • Basic Member
  • *
  • Reputation Power: 13
  • mentaljason has no influence.
  • Offline Offline
  • Posts: 28
  • MentalJason HURRAH
    • View Profile
    • WWW
Re: Avatar Page
« Reply #4 on: January 14, 2010, 08:36:31 AM »
Good mod, but use a more secure way of including files e.g. include_once DIRNAME(__FILE__) . '/globals.php'; ... slightly more stable.
Logged
Like Mccodes? Like things to be free? try My mods forum where all of the mods are free!

Danny696

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
Re: Avatar Page
« Reply #5 on: January 14, 2010, 12:44:10 PM »
LMAO, it doesnt secure it, and you failed, include_once DIRNAME(__FILE__) . '/globals.php'; will not work, it'll error. i think you mean
include_once(DIRNAME(__FILE__) .'/globals.php'); OR(V5.3 or more) include_once((__DIR__) .'/globals.php');
Logged
Project Choosen - 10%
Daniel - Hanson . Com
 


This forum is now closed and has moved to a new location! Click here to find out why.