Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,701
  • Joined

  • Last visited

  • Days Won

    88

Everything posted by Uridium

  1. Re: [MOD] ALL VERSIONS Interactive Radio station for your members Not sure why youd want a screen shot but heres one
  2. This mod will allow your users to play your game from inside Windows Media Player The ASX file stays on the users PC and when click on will open up your desired radio station and the main window will become your website.... call this file... radiotuner.asx   <ASX version="3.0" BANNERBAR="AUTO"> <ABSTRACT>Slave Traders</ABSTRACT> <TITLE>Slave Traders Radio</TITLE> <AUTHOR>http://www.slave-traders.net</AUTHOR> <COPYRIGHT>(c)2008 Illusions</COPYRIGHT> <LOGO href = "http://www.slave-traders..net/title.jpg" Style = "BANNER" /> <MOREINFO href="http://www.slave-traders..net" /> <REPEAT> <ENTRY> <ABSTRACT>Slave Radio</ABSTRACT> <TITLE>Slave Traders Radio</TITLE> <PARAM NAME="HTMLView" VALUE="http://www.slave-traders.net"/> <REF HREF="http://38.96.148.45:9334" /> <PARAM NAME="Location" VALUE="USA" /> <PARAM NAME="Genre" VALUE="Rock/pop" /> <PARAM NAME="Homepage" VALUE="http://www.slave-traders.net" /> <AUTHOR>http://www.slave-traders.net</AUTHOR> <COPYRIGHT>(c)2008 Illusions</COPYRIGHT> <MOREINFO HREF="http://www.slave-traders..net" /> </ENTRY> </REPEAT> </ASX>   And place a link in your mainmenu.php to point to the file.. in the above code change this part to that of your desired radio station <REF HREF="http://38.96.148.45:9334" /> And alter any URLS from slave-traders to that of your own gamesite.
  3. Re: [mccodes v2]New and improved inventory code sources for free! there should only be 4 VALUES on the inventory dbase you have 5 which is causing the count error inv_id inv_itemid inv_userid inv_qty taken from staff_items.php   function give_item_submit() { global $db,$ir,$c; if($ir['user_level'] > 3) { die("403"); } $db->query("INSERT INTO inventory VALUES('',{$_POST['item']},{$_POST['user']},{$_POST['qty']})",$c) or die(mysql_error()); print "You gave {$_POST['qty']} of item ID {$_POST['item']} to user ID {$_POST['user']}"; stafflog_add("Gave {$_POST['qty']} of item ID {$_POST['item']} to user ID {$_POST['user']}"); }
  4. Re: Delete Users Me personally iw ould have just changed the user_level to that of a bot so ya dont have to keep creating new ones lol
  5. Re: Battltent Mysql Sily question but do you have an old backup of your site if so theres usually an SQL for the game in the zip
  6. Re: [mccode] LET IT SNOW The Ace From what i can see you havent uploaded the Image folder to your ftp if your Using the Cpanel option rather than an FTP uploader create a folder called image and unzip the images to that folder it shuld work then :)
  7. Re: [mccode] A better Safer Forum for your members to enjoy I agree with the dbase not being able to pull up the MCC users list but then again id have to say i would rather use SMF as it is than be attacked whilst using the Current MCC forums mod......
  8. Re: [mccode v2] Index.php Update Nice one :) that looks better than the whole of the layout of my site lol +1 from me if i could +100 i would matey :)
  9. Re: [mccode] LET IT SNOW Can you make me a temp account on your game and pm me the details i'll have a look
  10. Just thought id post this here now so i can remind myself its here when ive finished the script.. Whats it do ? Taking the Script from the the Menu Creator that Myself and Tonka did i decided to see if it could be used for other things so i came up with an User Theme Changer... ADMIN PANEL FEATURES From the Staff Panel you can create your own CSS and store it in your Database you can alter any aspect of the game layout background images, table structures, fonts, menu bar width.. well it does everything that the header.php CSS section would do. Once your happy with your layout when its stored on the MYSQL dbase a new theme link is created on the header.php. You can also reset everyone to default themes and lock themes if you need to maintain them. could be used for other things so i came up with an User Theme Changer... USER PANEL The USer Panel will be a drop down link that will be visible from the mainmenu.php when a Theme has been selected its stored so you keep the theme until you decide to change it. Ive more or less finished the admin script so im about half way done..
  11. Re: [MOD] V2 Fight the good Fight   Because we are removing this part from the header.php and replacing it with the other script your users wont lose EXP as its this that was causing it.   if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; }   $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid");
  12. Couldnt think of anything else to call this mod But basically it stops the user from leaving a fight even when the page has been refreshed or when a new link is entered into the URL. They will be back at the attack screen until the fight is over. Open up header.php Find and remove this....   if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; }   and replace with   if($dosessh && ($_SESSION['attacking'] || $ir['user'])) { if($dosessh) header("Location: attack.php?ID=$dosessh"); exit; }   Members can no longer evade a fighting..
  13. Re: my game(i cnt find the forum for it) I would just call this PURE laziness there are enough free mods on here to get a site up and running and looking good. heres a few tips for you BLADE and dont take these as an insult. They are just to get you started. 1 = would be to get Xampp so you can work offliine 2 = Look at how different scripts are laid out and take note of similarities with each script most the free mods on here are just ammended mods of a different name just made to do different things. 3 = a working script on Here when ammended can have countless possabilities. 4 = Try implementing parts into one script from more than 2 scripts and see what the outcome is. 5 = Getting people to sign up to a game may get you more members. But what happens when you have 500 members and no-ones ever online this will put anyone else off from continuing to play on your game.. 6 = The biggest word i can use for you is experiment. dont be afraid to make a mess as along as you have a backup of what your doing you can always revert back and try again... This is how i started im still not good at it but ive managed to pull something from the scripts that wasnt available at one time...
  14. Re: Gang Market Question You could Use   if{$ldr['userid'] != {$gangdata['gangPRESIDENT']}) { echo("You need to be President to be able to add your Gang to the Market"); }   Not sure if its laid our correctly but the basis would be the same
  15. Re: owner panel pass and securin.(i need help) .
  16. Re: [mccode v2] Fishing Mod     what you could do is use the itemuse.php for each of the items you want to add and maybe add an SQL called collection so that each item you buy would be saved for when you buy the final part. on the fishing.php just add an IF statement for the amount of items needed to start your fishing if its less than that of your collection SQL then you cant fish
  17. Re: [mccode v1]Free Users Personal Page For some reason this on mine stoped working and users were unable to edit their profile page so i re-modded it a bit from the preferences.php so users could create/edit their profiles + view a demo before launching it.. Follow the SQL as from page 1 of this TOPIC then just use these edits for preferences.php.... Add the following Cases...   case 'personal': profile_start(); break; case 'editprofileform': edit_profile_form(); break; case 'editprofilesub': edit_profile_sub(); break;   FIND   function do_forum_change() { global $db,$ir,$c,$userid,$h; $_POST['forums_avatar']=str_replace(array("<", ">"), array("<", ">"), $_POST['forums_avatar']); $db->query("UPDATE users SET forums_avatar='{$_POST['forums_avatar']}', forums_signature='{$_POST['forums_signature']}' WHERE userid=$userid"); print "Forum Info changed!"; }   and underneath add   function profile_start() { global $db,$ir,$c,$h,$userid; print "<h3>Edit / Create your Profile Page</h3> <form action='preferences.php?action=editprofileform' method='post'> <h3>User ID Accepted</h3> <font color=yellow><h2><border=5>Hello {$ir['username']}</h2></font> <input type='hidden' name='user' value='$userid' /> <input type='submit' value='Edit Your Profile {$ir['username']}' /></form>"; } function edit_profile_form() { global $db,$ir,$c,$h,$userid,$username; $d=$db->query("SELECT ppage FROM users WHERE userid=$userid"); $prof=$db->fetch_row($d); print " <form action='preferences.php?action=editprofilesub' method='post'> <input type='hidden' name='userid' value='{$_POST['user']}' /> <h3>Welcome <font color=yellow> {$ir['username']} </font>To Your Profile</h3> <textarea class=textbox rows=20 cols=100 name='ppage'>{$prof['ppage']}</textarea> <input type='submit' value='[save your Profile {$ir['username']}]' /></form>"; } function edit_profile_sub() { global $db,$ir,$c,$h,$userid; $go=0; if(!isset($_POST['level'])) { $go=1; } $db->query("UPDATE users SET ppage='{$_POST['ppage']}' WHERE userid={$_POST['userid']}",$c); print" {$ir['username']} You have edited your Page Successfully <h1>DEMO</h1> {$r['ppage']}"; print" {$ir['ppage']}"; print" [url='preferences.php']Accept Changes[/url]"; }   now open up viewuser.php and at the bottom before the $h Add   print " <table style='margin: 0 auto 0 auto; border: solid #929292 0px; width: 550px;'><tr style='background-color: #500001;'><td><p style='margin: 0 0 0 0; padding: 2px; text-align: center; font-weight: bold; color: #ffffff;'>You are viewing {$r['username']}s Profile Signature</p></td></tr> <tr style='background-color: #ececec;'><td><p style='text-align: center; margin: 0 0 0 0;'>{$r['ppage']} </tr></table>"; } } function checkblank($in) { if(!$in) { return "N/A"; } return $in; } $r=mysql_fetch_array($q); if(!$r['ppage'])   There is no need to add the script for the personal.page.php as users will see their finished product view their own profiles page
  18. Re: [MOD] V2 Edit User Profile Signatures from staff / admin panel   Ive re-scripted the one from this Post http://criminalexistence.com/ceforums/i ... ic=21838.0 add that to your game first and you will be able to use the script above without any problems....
  19. [uPDATED] UPDATED script big thanks to TONKA for fixing the SQL errors :) Overwrite your original staff_editprofile.php with the one below..   <?php include "sglobals.php"; // Edit Profile for MCcodes V2 // Created 26th November 2008 // Illusions for CriminalExistance Forums switch($_GET['action']) { case 'editprofile' : edit_profile_begin(); break; case 'editprofileform': edit_profile_form(); break; case 'editprofilesub': edit_profile_sub(); break; default: print "Error: This script requires an action."; break; } function htmlspcl($in) { return str_replace("'", "'", htmlspecialchars($in)); } function edit_profile_begin() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } print "<h3>Choose User Profile to Edit</h3> You can edit any aspect of this user. <form action='staff_editprofile.php?action=editprofileform' method='post'> User: ".user_dropdown($c,'user')." <input type='submit' value='Edit User' /></form> OR enter a user ID to edit: <form action='staff_editprofile.php?action=editprofileform' method='post'> User: <input type='text' name='user' value='0' /> <input type='submit' value='Edit User Profile' /></form>"; } function edit_profile_form() { global $db,$ir,$c,$h,$userid,$username; if($ir['user_level'] != 2) { die("403"); } $d=$db->query("SELECT ppage FROM users WHERE userid={$_POST['user']}"); $prof=$db->fetch_row($d); print "<h3>Editing User Profile</h3> <form action='staff_editprofile.php?action=editprofilesub' method='post'> <input type='hidden' name='userid' value='{$_POST['user']}' /> You are editing <font color=yellow> $username </font> Profile <textarea class=textbox rows=20 cols=100 name='ppage'>{$prof['ppage']}</textarea> <input type='submit' value='Edit User Profile' /></form>"; } function edit_profile_sub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } $db->query("UPDATE users SET ppage='{$_POST['ppage']}' WHERE userid={$_POST['userid']}"); print "Profile edited..."; } $h->endpage(); ?>
  20. Re: [ADDON] V2 Refill A Specific User Aswell as Refill All Users   In order for this to work. Please keep up the good work JD your Edit is exactly the same as the one i posted ? your script may have been missing a ) but if you look at the edit on the NOW FIND you'll see it was already closed with out a )
  21. Re: [MOD] V2 Edit User Profile Signatures from staff / admin panel QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Query was UPDATE users SET signature='' WHERE userid= Yep im aware of this error but it does work just cant seem to find out why its posting the error message so if anyonen can fix this i would be greatful :)
  22. Re: [MOD] V2 Edit User Profile Signatures from staff / admin panel This doesnt work for the Signature but will work for this topic http://criminalexistence.com/ceforums/i ... ic=21838.0
  23. This is for the HTML version of the Edit user profiles that can be found on here... This will enable staff to EDIT any User profile they may find offence without having to do it via phpmyadmin.. Call this file staff_editprofile.php   <?php include "sglobals.php"; // Edit Profile for MCcodes V2 // Created 26th November 2008 // Illusions for CriminalExistance Forums switch($_GET['action']) { case 'editprofile' : edit_profile_begin(); break; case 'editprofileform': edit_profile_form(); break; case 'editprofilesub': edit_profile_sub(); break; default: print "Error: This script requires an action."; break; } function htmlspcl($in) { return str_replace("'", "'", htmlspecialchars($in)); } function edit_profile_begin() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } print "<h3>Choose User Profile to Edit</h3> You can edit any aspect of this user. <form action='staff_editprofile.php?action=editprofileform' method='post'> User: ".user_dropdown($c,'user')." <input type='submit' value='Edit User' /></form> OR enter a user ID to edit: <form action='staff_editprofile.php?action=editprofileform' method='post'> User: <input type='text' name='user' value='0' /> <input type='submit' value='Edit User Profile' /></form>"; } function edit_profile_form() { global $db,$ir,$c,$h,$userid,$username; if($ir['user_level'] != 2) { die("403"); } $d=$db->query("SELECT ppage FROM users WHERE userid={$_POST['user']}"); $prof=$db->fetch_row($d); print "<h3>Editing User Profile</h3> <form action='staff_editprofile.php?action=editprofilesub' method='post'> <input type='hidden' name='userid' value='{$_POST['user']}' /> You are editing <font color=yellow> $username </font> Profile <textarea class=textbox rows=20 cols=100 name='ppage'>{$prof['ppage']}</textarea> <input type='submit' value='Edit User Profile' /></form>"; } function edit_profile_sub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } $go=0; if(!isset($_POST['level'])) { $go=1; } } $db->query("UPDATE users SET ppage='{$_POST['ppage']}' WHERE userid={$_POST['userid']}"); print "Profile edited...."; $h->endpage(); ?>   Now open up smenu.php and add this line under the users section...   > [url='staff_editprofile.php?action=editprofile']Edit Profile[/url]   and your done
  24. May find this useful it extracts users from the BOT list when adding New Bots to a Challenge makes finding your bots easier... open up global_func.php and add   function userbot_dropdown($connection,$ddname="userbot",$selected=-1) { global $db; $ret="<select name='$ddname' type='dropdown'>"; $q=$db->query("SELECT * FROM users WHERE user_level=0 ORDER BY username ASC"); if($selected == -1) { $first=0; } else { $first=1; } while($r=$db->fetch_row($q)) { $ret.="\n<option value='{$r['userid']}'"; if ($selected == $r['userid'] || $first == 0) { $ret.=" selected='selected'";$first=1; } $ret.= ">{$r['username']}</option>"; } $ret.="\n</select>"; return $ret; }   now open up staff_battletent.php and just change   Bot: ".user_dropdown($c, 'userid')."   To   Bot: ".userbot_dropdown($c, 'userid')."   and your done...
  25. Small Addon for the staff_special.php This will enable you to refill ONE users energy, health, will, Brave open up staff_special.php Add these two cases to where you want them,   case 'refillone': fill_one(); break; case 'refillonesub': fill_one_send(); break;   now find..   print "<h3>User Level Adjust</h3> <form action='staff_special.php' method='get'> <input type='hidden' name='action' value='userlevel'> User: ".user_dropdown($c,'ID')." User Level: <input type='radio' name='level' value='1' /> Member <input type='radio' name='level' value='2' /> Admin <input type='radio' name='level' value='3' /> Secretary <input type='radio' name='level' value='4' /> IRC Op <input type='radio' name='level' value='5' /> Assistant <input type='submit' value='Adjust' /></form>"; }   and underneath add   function fill_one() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 2) { die("403"); } print "<h3>Refill A Specific user</h3> You can edit any aspect of this user. <form action='staff_special.php?action=refillonesub' method='post'> User: ".user_dropdown($c,'user')." <input type='submit' value='Refill User' /></form> OR enter a user ID to edit: <form action='staff_special.php?action=refillonesub' method='post'> User: <input type='text' name='user' value='0' /> <input type='submit' value='Refill User' /></form>"; } function fill_one_send() { global $ir,$c,$h,$userid; mysql_query("UPDATE users SET will=maxwill WHERE userid=($ir[userid])",$c); mysql_query("UPDATE users SET energy=maxenergy WHERE userid=($ir[userid])",$c); mysql_query("UPDATE users SET brave=maxbrave WHERE userid=($ir[userid])",$c); mysql_query("UPDATE users SET health=maxhealth WHERE userid=($ir[userid])",$c); print "Your user have been refilled! [url='staff.php']> Back[/url]"; }   Now open up smenu.php or admin.php and add this just under the refill all users link   > [url='staff_special.php?action=refillone']Refill A User[/url]   And your done
×
×
  • Create New...