
boionfire81
Members-
Posts
532 -
Joined
-
Last visited
-
Days Won
6
Content Type
Profiles
Forums
Events
Everything posted by boionfire81
-
PAID REQUEST - TC cloned member dropdown function
boionfire81 replied to boionfire81's topic in Requests & In Production
Ok, going to be working on this today. [uSER=53425]Magictallguy[/uSER] :) Where do I obtain the jquery-ui.css and a jquery.js? Or is that the same as what is included in the mcc jquery1.7.1.min.js? -
Phpbb 3 Registration Integration?
boionfire81 replied to avguste's topic in Requests & In Production
That is basically saying put: define(‘IN_PHPBB’, true); /* set scope for variables required later */ global $phpbb_root_path; global $phpEx; global $db; global $config; global $user; global $auth; global $cache; global $template; # your php extension $phpEx = substr(strrchr(__FILE__, ‘.’), 1); $phpbb_root_path = ; /* includes all the libraries etc. required */ require($phpbb_root_path .”common.php”); $user->session_begin(); $auth->acl($user->data); /* the file with the actual goodies */ require($phpbb_root_path .”includes/functions_user.php”); /* All the user data (I think you can set other database fields aswell, these seem to be required )*/ $user_row = array( ‘username’ => “Username”, ‘user_password’ => md5(“Password”), ‘user_email’ => “Email”, ‘group_id’ => $default_group_id, ‘user_timezone’ => ‘1.00’, ‘user_dst’ => 0, ‘user_lang’ => ‘en’, ‘user_type’ => ‘0’, ‘user_actkey’ => ”, ‘user_dateformat’ => ‘d M Y H:i’, ‘user_style’ => $not_sure_what_this_is, ‘user_regdate’ => time(), ); /* Now Register user */ $phpbb_user_id = user_add($user_row); Problem is $db is already defined in mcc. -
1,2,3,4,5,6,7,8,9,10
-
I will try that. But I don't want to block the itemtype I only want the item type gun (15) to allow ammo purchases.
-
No, lol. I'm just wanting my game to seem more "live" tracking their "location" as they travel around the city type thing.
-
Didn't work.
-
I'm working here on 1 item. A rifle, itemid 297 itmtype 15 $q=$db->query("SELECT `inv_userid`, `inv_itemid`, `itmtype` FROM `inventory` AS iv INNER JOIN `items` AS i ON iv.inv_itemid=i.itmid WHERE iv.inv_userid={$ir['userid']} AND i.itmid={$_GET['ID']}"); $r=$db->fetch_row($q); if($r['itmtype'] !== 15) { echo "This item is not a Gun!<br /> <a href='inventory.php' class='button'>Exit</a>"; $h->endpage(); exit; } But it keeps giving me that ^ portion of the script. Also tried if($db->num_rows($q)==0)
-
mccode-v1 [mccode] delete gang after respect hit 0
boionfire81 replied to iseeyou94056's topic in Free Modifications
True, but I haven't found any other site with mcc mods -
I'm thinking of making it a donator feature for friends/blacklist. Otherwise, it is probably just plain stalking lol.
-
mccode-v1 [mccode] delete gang after respect hit 0
boionfire81 replied to iseeyou94056's topic in Free Modifications
Dude you know how old mccodes is? lol. Plus it showed up in mccodes.com mod search ;) -
Nothing is showing up in the Time column. My code: attackwon.php; $hosptime = rand(1200, 2400) + floor($ir['level'] / 8); $standardhosptime = $hosptime / 60; $db->query( "UPDATE `users` SET `hp` = 1, `money` = `money` - $stole, `hospital` = $standardhosptime, hostime=unix_timestamp() + $hosptime, `hospreason` = '{$hospreason}', `hosp_bill` = `hosp_bill` + $hosptime * 10 WHERE `userid` = {$r['userid']}"); hospital.php $q = $db->query( 'SELECT `userid`, `username`, `hospital`, `level`, `hospreason`, `gangPREF`, hostime FROM `users` AS `u` LEFT JOIN `gangs` AS `g` ON `u`.`gang` = `g`.`gangID` WHERE `u`.`hospital` > 0 ORDER BY `u`.`hospital` DESC'); while ($r = $db->fetch_row($q)) { $time=time(); echo " <tr> <td>{$r['gangPREF']} <a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> [{$r['userid']}]</td> <td>{$r['level']}</td> <td><div id='notifier'></div> <script type='text/javascript'> (function () { function display( notifier, str ) { document.getElementById(notifier).innerHTML = str; } function toMinuteAndSecond( x ) { return Math.floor(x/60) + ':' + (x%60<10?'0':'')+x%60; } function setTimer( remain, actions ) { var action; (function countdown() { display('{$r['userid']}', toMinuteAndSecond(remain)); if (action = actions[remain]) { action(); } if (remain > 0) { remain -= 1; setTimeout(arguments.callee, 1000); } })(); // End countdown } setTimer({$r['hostime']}-$time, { 0: function () { display('notifier', 'Releasing'); } }); })(); </script></td> <td>{$r['hospreason']}</td> </tr>
-
Just curious did anyone get this to display on user profiles?
-
PAID REQUEST - TC cloned member dropdown function
boionfire81 replied to boionfire81's topic in Requests & In Production
somewhere between $50-$100. -
Yeah, now that I have the jquery inventory I think I can duplicate the tooltips elsewhere. Thanks guys!
-
Paid Mod - JQ inventory - Need help - Not loading
boionfire81 posted a topic in Modification Support
1,2,3,4,5,6,7,8,9,10 -
No, what I'm saying is if they refresh the page afterwards (in an attempt to insert more items) THEN that error comes up. But if they only had 1 in their inventory they item no longer exists.
-
Dude, I know that >.<
-
ok, another question with _GETs. How should this work as it's letters and characters if($_GET['type'] == "equip_primary") $_GET['action'] = isset($_GET['action']) && ctype_alnum($_GET['action']) ? $_GET['action'] : null; won't work. It's actually in equip_weapon.php line 54.
-
So if someone donates an item, then simply refreshes the page. This shows up [h=1]Critical Error[/h] A critical error has occurred, and page execution has stopped. Below are the details: 1064: 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 Action taken: Attempted to execute query: SELECT * FROM items WHERE itmid= The issue is after the donation the item is no longer there. How can I block that error?
-
Do you still have this?
-
yeah kinda Basically, Item Name: itmname Item Type: itmtype (If weapon: Damage: weapon) (if armour: Defense: armor) (If item owned Owned: qty)
-
With everything on my plate at the moment, I don't have time for this at the moment. I would like to turn the iteminfo.php into a tooltip on hover for item images. Anybody up for the challenge?