Jump to content
MakeWebGames

spikereloaded

Members
  • Posts

    145
  • Joined

  • Last visited

Everything posted by spikereloaded

  1. anyone have any ideas???
  2. dont worry, decided to place the links back in the main menu as they looked better there...and the code worked there aswell. thanks for the help anyway!
  3. the codes im using are 2.0.2. I cant include globals.php in the header as this returns an error. Plus i cant seem to find the code within globals that defines $hc and $jc?! any ideas what the code starts with in globals? thanks very much
  4. if i delete that line illusion i go back to seeing nothing?! any ideas why thats happening? cheers
  5. So I've had a look and tried a few things but still a little confused as now I'm getting a value appear now....but it's just the letter S.   <?php ///code for menu bar function menubar(){ global $db,$userid,$set,$ir,$hc,$c; $set="SELECT * hospital_count, jail_count FROM users"; $hc=$set['hospital_count']; $jc=$set['jail_count']; print "<table width='932px' border='0' bgcolor='#FFFFFF' cellpadding='0' cellspacing='0' >* <tr><td '> <a href='forums.php'><img src='forumsbutton.jpg' align='left'></a> <a href='inventory.php'><img src='inventorybutton.jpg' align='left'></a> <a href='newspaper6.php?action=add'><img src='newspaperbutton.jpg' align='left'></a> <a href='viewuser.php?u=$userid'><img src='profilebutton.jpg' align='left'></a> <a href='preferences.php'><img src='settingsbutton.jpg' align='left'></a> <a href='search.php'><img src='searchbutton.jpg' align='left'></a> </td></tr> <tr><td><center><img src='hospitalbuttonsmall.jpg'>($hc)<img src='jailbuttonsmall.jpg'> ($jc)</center></table>"; } ?><?php print menubar() ?> What am I doing wrong with my query??
  6. I'm using v2. Will have a. Look at your suggestions and let you know what happens. Thanks for the info!
  7. ive found the part in the menu page $hc=$set['hospital_count'];   But i'm not 100% what to do with it now?! sorry to be a pain!
  8. great thanks Dominion that worked great, I'm also trying to display the current hospital count in the header and experienceing the same problem. I'm using $hc but it's not displaying any value?!
  9. when clicking the profile link, it takes the user to http://murdercountry.com/viewuser.php?u= so it's obviously failing to call in the user id, but i'm not too sure how to call it in as every method i've tried just creates errors or doesnt work?!
  10. thanks lucky but that didnt work either, i think i'm not defining something correctly but not sure what or where it should be. heres the code for the menu bar I've made function menubar(){ global $ir; print "<table width='932px' border='0' cellpadding='0' cellspacing='0' class='table3'> <tr><td bgcolor='#FFFFFF'> <a href='forums.php'><img src='forumsbutton.jpg' align='left'></a> <a href='inventory.php'><img src='inventorybutton.jpg' align='left'></a> <a href='newspaper6.php?action=add'><img src='newspaperbutton.jpg' align='left'></a> <a href='viewuser.php?u={$ir['userid']}'><img src='profilebutton.jpg' align='left'></a> <a href='preferences.php'><img src='settingsbutton.jpg' align='left'></a> <a href='search.php'><img src='searchbutton.jpg' align='left'></a> </td></tr></table>"; }   If theres a lot wrong there, take it easy....im new! thanks guys!
  11. Hey guys I'm adding a link to users profile in the header.php, but for some reason it isn't getting the userid, it just takes you to a profile page that says incorrect use of file. Heres the code that I've got and i don't think the problems in here, so im guessin its somewhere else on the page, e.g. not calling in the info from the db, but unsure where to put the query?! <a href='viewuser.php?u={$ir['userid']}'><img src='profilebutton.jpg' align='left'></a>
  12. hey, this is the code to post in the forums....as far as i can tell there arent any major problems, but then again i dont have much knowledge yet. would the problem be somehwere in this part of code or more likely in a different page, e.g. header.php?   $db->query("INSERT INTO forum_posts VALUES('', {$_GET['reply']}, {$forum['ff_id']}, $userid, '$u', unix_timestamp(), '{$_POST['fp_subject']}', '{$_POST['fp_text']}', 0, '', 0, 0)") or die(mysql_error()); $db->query("UPDATE forum_topics SET ft_last_id=$userid, ft_last_name='$u', ft_last_time=unix_timestamp(), ft_posts=ft_posts+1 WHERE ft_id={$_GET['reply']}"); $db->query("UPDATE forum_forums SET ff_lp_time=unix_timestamp(), ff_posts=ff_posts+1, ff_lp_poster_id=$userid, ff_lp_poster_name='$u', ff_lp_t_id={$_GET['reply']}, ff_lp_t_name='{$topic['ft_name']}' WHERE ff_id={$forum['ff_id']}"); $db->query("UPDATE users SET posts=posts+1 WHERE userid=$userid"); print "<b>Reply Posted!</b><hr /><br />"; $_GET['lastpost']=1; $_GET['viewtopic']=$_GET['reply']; viewtopic();
  13. i haven't. I'm relatively new to php so will take a look and double check. thanks for the suggestion!
  14. the ones i've seen on here are generally around $5-$10 so something around that.
  15. hey guys I've recently noticed that when a user posts in our forums, it sometimes posts twice, one with their actual text then a second blank post. This is also the case when i try to lock a topic, it locks, then seems to unlock itself at the same time. We've also noticed that in the stafflogs, whenever a staff member does something that gets recorded, it is recorded twice for some reason. Have no clue why this is happening as i can't recall changing anything that would effect it?! Any ideas?? cheers for any help you can give!
  16. Hey guys. I've had a look through the free and paid forums but have only found posts about merit systems from a few years ago. Anyone currently making one or can make one for me? willing to pay for it. Needs to be easily editable. eg through staff panel cheers:cool:
  17. is this still available?? im interested in buying!
  18. was this ever completed with the staff option?? im interested!
  19. where do you think i've been learning code you muppet! put both of us on there!
×
×
  • Create New...