Jump to content
MakeWebGames

Halo

Members
  • Posts

    395
  • Joined

  • Last visited

    Never

Everything posted by Halo

  1. Halo

    Double

    Re: Double 128 *Got a 7b on my maths test so i'll ace this!*
  2. Re: 3 Word Game the head of....
  3. Re: [v1]Free Users Personal Page[v1] Thats funny, did you try and change the mod in any way??? Or are you using v2
  4. Re: Tutorial: v2 - v1 Conversion Post of the time you need to change $db-> to mysql_ so just change:   $db-> to mysql_   and do the rest :)
  5. Re: Anyone watch movies online now a days? I watched movies online since last year but stopped a few months ago :-P
  6. Halo

    One Big Code!

    Re: One Big Code! echo 'Why?';
  7. Re: Which login is better??? Oh and btw i like the first better
  8. Re: Which login is better??? Why didn't you just add a poll???
  9. Re: [v1]Free Users Personal Page[v1] Have you run the SQL data?
  10. Re: Simple Job Specials [V2] Nice work Richard, great mod :)
  11. Re: Itempedia FREE V2 Mod... Nice mod, good addon for V2
  12. Re: [V2] Property gamble What dose this mod do??
  13. Re: Hit-List [$10] Isnt this the same as Hitman Agency?????
  14. Re: Contest [$25.00 USD] Looks good, nice work! :-D
  15. Re: Count Backwards :D 4949
  16. Re: 3 Word Game HE'S WEARING A...
  17. Re: Counting (nr game) 1897
  18. Re: my crons dont work Edit mysql.php to your SQL details, some files say ../.../../../global_func.php edit that to: global_func.php and upload global_func.php to your crons directory Maybe you editied the directory names, just change them on the crontab
  19. Re: Display Gangs Name??? Add this to were the queries are:   $wq=$db->query("SELECT * FROM gangwars where warDECLARER={$ir['gang']} or warDECLARED={$ir['gang']}"); $gq=$db->query("SELECT * FROM gangs WHERE gangID={$_GET['ID']}"); $gangdata=$db->fetch_row($gq); $gq=$db->query("SELECT g.*,oc.* FROM gangs g LEFT JOIN orgcrimes oc ON g.gangCRIME=oc.ocID WHERE g.gangID={$ir['gang']}"); $gangdata=$db->fetch_row($gq);   Then add somewhere in Index.php:   if($ir['gang']) { print " <u>Gang Info</u> Your Gang: [url='gangs.php?action=view&ID={$ir[']<font color=green>{$ir['gangNAME']} ({$ir['gangID']})</font>[/url] Your Gang Wars: <font color=red>".$db->num_rows($wq)." Wars</font> Your Gang Respect: {$ir['gangRESPECT']} "; } else { print "<u>Gang Info</u> Your not in a gang "; }   Just thought of it, might not work but its worth a shot
  20. Re: Count Backwards :D 4950
  21. Re: Counting (nr game) 1894
  22. Re: 3 Word Game at the hobo
  23. Re: [v1]Free Users Personal Page[v1] Yeah when you view their user profile it displays a link to their Personal Page
  24. This is a nice and simple mod that allows users to have their own personal page.... It uses HTML so users don't have to use boring text only.... Just thought i would share it, you don't need to add it because I'm sure there will be some security error or something, Nyna will find it :-P 1.) Run Query ALTER TABLE `users` ADD `ppage` TEXT NOT NULL; 2.) Create a page called personalpage.php with: <?php /*----------------------------------------------------- -- Copyright (c) Chief Mendez 2008 -- Do not resell -- Re-distribute as FREEWARE -- personalpage.php -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=mysql_query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}",$c); if(mysql_num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; $h->endpage(); } else { $r=mysql_fetch_array($q); print"<center><h3>{$r['username']}'s Personal Page</h3> "; if(!$r['ppage']) { die ("This user hasnt edited their page yet"); } else { print"{$r['ppage']}</center>"; } } } $h->endpage(); ?> 3.) Then open preferences.php and find: case 'picchange2': do_pic_change(); break; case 'picchange': pic_change(); break; add after: case 'personal2': do_personal_change(); break; case 'personal': personal_change(); break; Then find: [url='preferences.php?action=picchange']Display Pic Change[/url] "; replace with: [url='preferences.php?action=picchange']Display Pic Change[/url] [url='preferences.php?action=personal']Edit Personal Page[/url] "; then find: $h->endpage(); ?> add before: function personal_change() { global $ir,$c,$userid,$h; print "<h3>Personal Change</h3> <form action='preferences.php?action=personal2' method='post'> Personal Page (HTML Allowed): <textarea class=textbox rows=40 cols=100 name='ppage'>{$ir['ppage']}</textarea> <input class=textbox type='submit' value='Change Page ' /></form>"; } function do_personal_change() { global $db,$ir,$c,$userid,$h; mysql_query("UPDATE users SET ppage='{$_POST['ppage']}' WHERE userid=$userid"); print "Personal page changed!"; } Finally open viewuser.php and find: [[url='attack.php?ID={$r[']Attack[/url]]"; replace with: [[url='attack.php?ID={$r[']Attack[/url]] [[url='personalpage.php?u={$r[']View Personal Page[/url]]"; And your done, check edits if it isn't working! SCREENIE
  25. Halo

    One Big Code!

    Re: One Big Code! $criminalexistence=mysql_query("SELECT * FROM swearword WHERE id='{$_POST['swear']}'");
×
×
  • Create New...