
boionfire81
Members-
Posts
532 -
Joined
-
Last visited
-
Days Won
6
Content Type
Profiles
Forums
Events
Everything posted by boionfire81
-
Anyone know how to implement the mailbox (subject, from, time) & first 20 characters of new events into widgets? I'm wanting to put them in my sidebar.
-
Anyone have any clue how to do this?? I've been playing around with them for a few days and still no luck.
-
yeah...kinda deleted it, lol. will try to find it in the originals
-
Anyone know where to get the referral link for v2?
-
Yeah, your title/descriptions are, but only if worded in order of appearance in both head & body. Else, they carry the same weight as a h1 tag. Or rather bold tag, as Google weights by heat map basically. A few images for your consideration. Google heat map A standard heat map Heat maps use very similar approaches. Where Googles appear hotter is based on order of appearance in the algorithm. Where the second is hotter is based off of h1, b, and colors. Yes title & description can carry some weight. But no more than a simple h1/b tag. And half the time your description tag, won't even be displayed, unless formatted & anchored properly. Just saying. Prioritize your time. :)
-
mccode-v1 Travel to User Location button on profiles
boionfire81 replied to Cyanide's topic in Free Modifications
Ok, you already know me A non-critical error has occurred. Page execution will continue. Below are the details: PHP Notice: Undefined index: location (8) in first db query location is there. Not sure what to do now -.- Also, had to flip it so it's if($ir['location'] != $r['location']) { echo ""; } else { echo " <a href='travelto.php?to={$r['location']}' class='button'>Visit</a>"; } Couldn't decide where to put it. Put it between send cash / attack. Now that functions are slowing down, I get to get with the jokes. lol -
Oh wow, look at that math lol! I came up with else if($ir['guardon'] = 1) { $amt=rand(20,200); echo "Some say protection is for sissys. Well this sissy just took some of your health. So let that be a lesson, keeping protection is a good thing!"; $db->query("UPDATE `users` SET `hp` = `hp` - (`maxhp`/$amt) WHERE `userid` = $userid"); $h->endpage(); exit; }
-
mccode-v1 Travel to User Location button on profiles
boionfire81 replied to Cyanide's topic in Free Modifications
Is it possible to put and if for it to only display if they are in a different city? -
Where did you see that at, as the search function didn't catch it. Also, php warning define (-.-) else if($_POST['name'] AND $_POST['description'] AND $_POST['status'])
-
Full code (as it's free mod posted on here) <?php include "globals.php"; print "<font face='Arial' size='4'>Factions</font><hr width='90%'>"; switch ($_GET['step']) { case 'create': create_faction(); break; case 'profile': faction_profile(); break; case 'users': faction_members(); break; case 'search': search_factions(); break; case 'apply': faction_apply(); break; default: factions_index(); break; } function factions_index() { global $ir,$db,$c,$userid,$h; $sql = sprintf("SELECT * FROM `factions` fa LEFT JOIN `users` u ON (u.userid = fa.faLEADER) ORDER BY faID DESC"); $q = $db->query($sql); print "This is a list of all factions by ID <table width='90%' cellspacing='1'><tr bgcolor='#AAAAAA'><th width='25%'>Name</th><th width='13%'>Members</th><th width='12%'>Reputation</th><th width='50%'>Image</th></tr>"; while($r = $db->fetch_row($q)) { print "<tr><td><a href='factions.php?step=profile&ID={$r['faID']}'><h3>{$r['faNAME']}</h3></a></td><td>"; $membs = sprintf("SELECT * FROM `users` WHERE faction = %u", $db->escape($r['faID'])); $mems = $db->query($membs); print $db->num_rows($mems)."</td> <td>{$r['faREPUTATION']}</td> <td><img src='{$r['faIMAGE']}'></td></tr>"; } print "</table> <hr width='90%'><a href='explore.php'>Back</a><hr width='90%'>"; } function create_faction() { global $ir,$db,$c,$userid,$h; $sql = sprintf("SELECT * FROM `factions` WHERE faID > 0"); $q = $db->query($sql); $fcs = $db->num_rows($q); $r['faCOST'] = ($fcs*10000); if($ir['money'] < $r['faCOST']) { print " You don't have enough money. It costs ".money_formatter($r['faCOST'])." to create a new Faction. <hr width='90%'><a href='explore.php'>Back</a><hr width='90%'>"; } else if($ir['faction'] > 0) { print " You are already part of a Faction. Leave before creating a new one. <hr width='90%'><a href='explore.php'>Back</a><hr width='90%'>"; } else if($_POST['name'] AND $_POST['description'] AND $_POST['status']) { $ins = sprintf("INSERT INTO `factions` (`faID`, `faNAME`, `faDESC`, `faSTATUS`, `faLEADER`, `faCOLEADER`, `faCAPACITY`, `faREPUTATION`) VALUES ('NULL','%s', '%s', '%s', '%d', '%d', '%d', '%d')", $db->escape($_POST['name']), $db->escape($_POST['description']), $db->escape($_POST['status']), $userid, $userid, 10, 100); $db->query($ins); $r['insID'] = mysql_insert_id($c); $fac = sprintf("UPDATE `users` SET faction = %d, money=money-%d WHERE (userid = %u)", $r['insID'], $r['faCOST'], $userid); $db->query($fac); print " The {$_POST['name']} faction was successfully created. <hr width='90%'><a href='factions.php?step=manage'>Back</a><hr width='90%'>"; } else { print " <form action='factions.php?step=create' method='post'> A new faction will cost $10,000 times the amount of factions in existence. The current price is <b>".money_formatter($r['faCOST'])."</b>. Name your Faction <input type='text' name='name' /> Choose a Status <select type='dropdown' name='status'> <option value='Peaceful'>Peaceful</option> <option value='Aggressive'>Aggressive</option> </select> Description <textarea name='description' cols='40' rows='7'></textarea> <input type='submit' value='Create' /></form> <hr width='90%'><a href='factions.php'>Back</a><hr width='90%'>"; } } function faction_profile() { global $ir,$db,$c,$userid,$h; $sql = sprintf("SELECT * FROM `factions` fa LEFT JOIN `users` u ON (u.userid = fa.faLEADER) WHERE (fa.faID = %u)", $db->escape($_GET['ID'])); $q = $db->query($sql); $r = $db->fetch_row($q); print " <table width='400' bgcolor='#DFDFDF'><tr><td align='center'><b><font size='5'>{$r['faNAME']}</font></b></td></tr></table> <img src='{$r['faIMAGE']}'> <table width='400' bgcolor='#DFDFDF'><tr><td valign='middle' align='center'><font size='5'><b>{$r['faREPUTATION']}</b></font></td></tr></table> <table width='400' bgcolor='#DFDFDF'><tr><td width='200' valign='middle'> <b>Leader: </b><a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> "; $col = sprintf("SELECT * FROM `users` WHERE (userid = %u)", $db->escape($r['faCOLEADER'])); $q2 = $db->query($col); $co = $db->fetch_row($q2); print "<b>Co-Leader: </b><a href='viewuser.php?u={$r['userid']}'>{$co['username']}</a> "; $membs = sprintf("SELECT * FROM `users` WHERE faction = %u", $db->escape($r['faID'])); $mems = $db->query($membs); print "<b>Members: </b>".$db->num_rows($mems)." <b>Reputation: </b>{$r['faREPUTATION']} <b>Current chain: </b>{$r['faCHAIN']} attacks <b>Best chain: </b>{$r['faBCHAIN']} attacks <b>Status: </b>"; if ($r['faSTATUS'] == 'Peaceful') { print "<font color='green'><b>Peaceful</b></font>"; } else { print "<font color='red'><b>Aggressive</b></font>"; } print " </td> <td valign='top' align='right' width='200'><a href='factions.php?step=users&ID={$r['userid']}'>User list</a> <a href='factions.php?step=apply&ID={$r['faID']}'>Apply</a> </td></tr></table> <table width='400' bgcolor='#DFDFDF'><tr> <td width='50%' height='100%'> <table width='100%' height='100%'><tr> <td align='center'> {$r['faDESC']} </td> </tr></table></td></tr></table> <hr width='90%'><a href='factions.php'>Back</a><hr width='90%'>"; } function faction_members() { global $ir,$db,$c,$userid,$h; $sql = sprintf("SELECT * FROM `factions` fa LEFT JOIN `users` u ON (u.faction = fa.faID) WHERE (fa.faID = %u)", $db->escape($_GET['ID'])); $q = $db->query($sql); print "<table width='90%' cellspacing='1'><tr bgcolor='#AAAAAA'><th width='25%'>Num</th><th width='25%'>Name</th><th width='25%'>Level</th><th width='25%'>Days in Faction</th></tr>"; while ($r = $db->fetch_row($q)) { $cn++; print "<tr><td>$cn.</td><td><a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a></td><td>{$r['level']}</td><td>{$r['faction_days']}</td></tr>"; } print "</table> <a href='factions.php?step=profile&ID={$_GET['faID']}'>Back</a>"; } function search_factions() { global $ir,$db,$c,$userid,$h; if (!$_POST['name']) { print "<form action='factions.php?step=search' method='post'> <b>Search by Keyword</b> Insert the keyword that you'd like to search for Factions: <input type='text' name='name'> <input type='submit' value='Search'></form> <hr width='90%'><a href='factions.php'>Back</a><hr width='90%'>"; } else { $sql = sprintf("SELECT * FROM `factions` fa LEFT JOIN `users` u ON (u.userid = fa.faLEADER) WHERE (`faNAME` LIKE '%%%s%%')", $db->escape($_POST['name'])); $q = $db->query($sql); print "<b>Search by Keyword</b> Keyword: {$_POST['name']} <table width='90%' cellspacing='1'><tr bgcolor='#AAAAAA'><th width='25%'>Name</th><th width='13%'>Members</th><th width='12%'>Reputation</th><th width='50%'>Image</th></tr>"; while($r = $db->fetch_row($q)) { print "<tr><td><a href='factions.php?step=profile&ID={$r['faID']}'><h3>{$r['faNAME']}</h3></a></td><td>"; $membs = sprintf("SELECT * FROM `users` WHERE faction = %u", $db->escape($r['faID'])); $mems = $db->query($membs); print $db->num_rows($mems)."</td> <td>{$r['faREPUTATION']}</td> <td><img src='{$r['faIMAGE']}'></td></tr>"; } print "</table> <hr width='90%'><a href='factions.php?step=search'>Back</a><hr width='90%'>"; } } function faction_apply() { global $ir,$db,$c,$userid,$h; if ($ir['faction']) { print " You are already in a faction at this time. <hr width='90%'><a href='factions.php'>Back</a><hr width='90%'>"; } else if (!$_GET['act']) { print " Please type an application to this faction below: <form action='factions.php?step=apply&act=submit&ID={$_GET['ID']}' method='post'> <textarea type='text' name='app' cols='50' rows='8'>Type your application here</textarea> <input type='submit' value='Submit'></form> <hr width='90%'><a href='factions.php?step=profile&ID={$_GET['faID']}'>Back</a><hr width='90%'>"; } else if ($_GET['act'] == 'submit') { if ($_POST['app']) { $ins = sprintf("INSERT INTO `faction_apps` (`fpID`, `fpUSER`, `fpFACTION`, `fpAPP`, `fpTIME`) VALUES ('NULL','%d', '%d', '%s', '%d')", $db->escape($ir['userid']), $db->escape($_GET['ID']), $db->escape($_POST['app']), time()); $db->query($ins); print " Your application was submitted! <hr width='90%'><a href='factions.php?step=profile&ID={$_GET['faID']}'>Back</a><hr width='90%'>"; } else { print " You did not type an application to send! <hr width='90%'><a href='factions.php?step=apply&ID={$_GET['faID']}'>Back</a><hr width='90%'>"; } } } $h->endpage(); ?> Php code check just says: Warning: There is 1 function in your code that has been deprecated in the current version of PHP : mysql_insert_id()
-
Tried that and it logs me out?
-
Cool thanks man! Think there is a way to put a random hp reduction in there too? Like from 1-10%? No hosp time though.
-
Any help converting this portion? 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(); global $c; $is=$db->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']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea();
-
Yeah this and the Ajax Gang Chat seem to be a no go. No support for either. Luckily [uSER=70347]NonStopCoding[/uSER] supported his and updated it :)
-
Entirely different mod, but maybe since the best coders on the forum have been here, lol. What should this be? $membs = sprintf("SELECT * FROM `users` WHERE faction = %u", $db->escape($r['faID'])); $mems = $db->query($membs); print mysql_num_rows($mems). mysql_num_rows does not compute lol
-
I'm working with the factions mod. fixed most errors. Now I'm on to the search function which is the last. Here's the code global $ir,$db,$c,$userid,$h; if (!$_POST['name']) { print "<form action='factions.php?step=search' method='post'> <b>Search by Keyword</b> Insert the keyword that you'd like to search for Factions: <input type='text' name='name'> <input type='submit' value='Search'></form> <hr width='90%'><a href='factions.php'>Back</a><hr width='90%'>"; } Parse error: syntax error, unexpected 'name' (T_STRING), expecting ']'
-
Dude, I didn't write it. but good catch. I didn't even see that.
-
if(array_key_exists('choose', $_GET) { come up error Parse error: syntax error, unexpected '{'
-
well I've bought all the mods I wanted already so lol
-
mccode-v2 New and improved inventory code sources for free!
boionfire81 replied to MDK666's topic in Free Modifications
This might be just be because my server has been funky lately. But wow. 1 hour in an still can't even view the inventory.php page yet >.< //starts here if($i['inv_lent'] == 0) { print" [<a href='itemsend.php?ID={$i[']Send</a>] [<a href='itemsell.php?ID={$i[']Sell</a>] [<a href='imadd.php?ID={$i[']Add To Market</a>] [<a //href='quantify.php?id={$i[']Merge Items</a>] [<a href='itemuse.php?ID={$i[']Use</a>] [<a href='donateitem.php?ID={$i[']Donate To Gang</a>]"; } if($ir['gang']>0 && $gangdata['gangARMORY']==1 && $i['inv_lent']==0) { print " [<a href='donateitem.php?ID={$i[']Donate To Gang</a>]"; } if($ir['gang']>0 && $gangdata['gangARMORY']==1 && $i['inv_lent']>0) { print " [<a href='giveback.php?ID={$i[']Give Back</a>]"; } if($i['itmtype'] == 'Food' || $i['itmtype'] == 'Medical' || $i['itmtype'] == 'Donator Pack') //completely removed to here if($i['effect1_on'] || $i['effect2_on'] || $i['effect3_on']) { print " [<a href='itemuse.php?ID={$i[']Use</a>]"; } if($i['weapon']) { print " [<a href='equip_weapon.php?ID={$i[']Equip as Weapon</a>]"; } if($i['armor']) { print " [<a href='equip_armor.php?ID={$i[']Equip as Armor</a>]"; } if($i['helmet']) { print " [<a href='equip_helmet.php?ID={$i[']Equip as Helmet</a>]"; } if($i['boots']) { print " [<a href='equip_boots.php?ID={$i[']Equip as Boots</a>]"; } if($i['amulet']) { print " [<a href='equip_amulet.php?ID={$i[']Equip as Amulet</a>]"; } if($i['braclet']) { print " [<a href='equip_braclet.php?ID={$i[']Equip as Braclet</a>]"; } if($i['ring']) { print " [<a href='equip_ring.php?ID={$i[']Equip as Ring</a>]"; } if($i['special']) { print " [<a href='equip_special.php?ID={$i[']Equip as Special Item</a>]"; } print "</td></tr>"; } print "</table>"; print "[size="1"][b]NB:[/b] Items with a small red [/size]<font color='red'>*</font>[size="1"] next to their name can be used as weapons in combat. Items with a small green [/size]<font color='green'>*</font>[size="1"] next to their name can be used as armor in combat. Items with a small blue [/size]<font color='blue'>*</font>[size="1"] next to their name can be used as a helmet in combat. Items with a small pink [/size]<font color='pink'>*</font>[size="1"] next to their name can be used as boots in combat. Items with a small brown [/size]<font color='brown'>*</font>[size="1"] next to their name can be used as amulets in combat. Items with a small lime [/size]<font color='lime'>*</font>[size="1"] next to their name can be used as braclets in combat. Items with a small yellow [/size]<font color='yellow'>*</font>[size="1"] next to their name can be used as rings in combat. Items with a small dark orange [/size]<font color='darkorange'>*</font>[size="1"] next to their name can be used as special items in combat.[/size]"; } The // represent the area I removed due to the fact my gang armoury is still default. But even after that I'm still getting errors left and right for syntax. -
[uSER=70347]NonStopCoding[/uSER] just sent me an updated version. Will check it and get back with you if needed. Thanks.
-
Just tag me. I get email updates to login and check my stuff. But no tag = no email.
-
That is done via facebook graph and twitter cards. Social Media is actually a different type of optimization. And yes I actually do agree with the counter intuitive measure, lol. But not by the definition provided above. Using google's keyword planner you can search for keywords and analyze the most common search phrases. Beginning with using the misspelled words first is actually a very good start. Google can analyze your website traffic to a point. So, by including misspelled phrases with fewer competitors will boost your traffic for a beginner.
-
P.S. when you have a decent amount of time, setup a game wiki that is optimized. The help those can give your site would amaze you.
-
Meta tags are ok, but basically an outdated practice. I'd start by analyzing your code to text ratio. Set up a robots.txt file (even if only to say allow all). Create an xml sitemap. Watch your link flow within the site. If a page is not accessible without being logged in make sure to mark with nofollow, noindex within your code. And make sure ALL images have alt texts and links have title texts. The reason meta tags are almost a complete waste is because Google will mark your keyword usage over a "this is what I want to be listed for" tag. Your most predominant keywords are marked by the first few words on the page, the last few words on the page, the url addresses, the h1, h2 tags etc, bold tags, internal anchors, alt tags. Typically in that order. Careful not to use a single keyword or key phrase to much. 3% of the text being your keyword is typically a good outcome.