![]() |
Hey is their anyway to make it where you can use Konmans, and be able to change it??????
|
Few questions.
I can take a gander at the fact that having the stats update on each post would put a rather heavy burden on the server. However, is there some sort of check I could implement that would monitor when a user levels up, then runs an automatic update? Also, I'm still a little lost as far as what exactly the PP and AP do. How do I calculate these into actual battles? What do they affect, and how are they supposed to be distributed? I'm not looking for a very straight-forward answer for the calculation part, just an idea as to how I oughta work with 'em. :) Oh, and thanks again for the AIM help, zajako. BTW, I downloaded (once again) the .zip file from both your posts (although the file is probably the same) and neither had the updates you were telling me about. Still no ADDs! |
Hey! I just installed the updated version: ush
anyway, i can't seem to update my elements XD every time i go into profile to update it doesn't work and i was wondering.. what's the difference between these two? Open member.php Find $DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='".intval($customtitle)."',usertitle='".ad dslashes($customtext)."',email ='".addslashes(htmlspecialchars($email))."',parent email='".addslashes(htmlspecia lchars($parentemail))."',coppauser='$coppauser',ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); replace with $DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='".intval($customtitle)."',usertitle='".ad dslashes($customtext)."',email ='".addslashes(htmlspecialchars($email))."',parent email='".addslashes(htmlspecia lchars($parentemail))."',coppauser='$coppauser',ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); i might be blind though XP |
mei, you are right it is the same thing in both lines: replace it with this instead :)
Code:
$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='".addslashes($signature)."',customtitle='".intval($customtitle)."',usertitle='".addslashes($customtext)."',email='".addslashes(htmlspecialchars($email))."',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser='$coppauser',homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',element='".addslashes(htmlspecialchars($element))."',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); Also, I added something small, but it makes the hack look better to users: Instead of "None" being selected for the Element everytime a user goes to update their profile, I added some simple javascript to determine which Element the user currently has in their profile :) first off add this into the head tag of the modifyprofile template: Code:
<script language="Javascript" type="text/javascript"> Code:
<select name="element"> Code:
<select name="element"> |
Im stuck >.<
Everytime I try to run this query, I keep getting this error: You have an error in your SQL syntax near 'maxhp` INT(6) DEFAULT '0' NOT NULL, `ma` INT(6) DEFAULT '0' NOT NULL, `maxma` IN' at line 1 |
i have knomans level hack installed. i dont knwo whats new with this one but can someone tell me if the leveling up and stuff is automatic yet? i dont want to edit everything 1 by 1. i jsut want to install it and leave it alone
|
im working on making things more automatic. but i have been really busy. if you hare having errors with the sql scripts redownload the hack from the first post rather than the db file.
|
i got error messgae :(
Code:
Error Done fix = Code:
ALTER TABLE user ADD hp INT(6) NOT NULL default '0', ADD maxhp INT(6) NOT NULL default '0', ADD ma INT(6) NOT NULL default '0', ADD maxma INT(6) NOT NULL default '0', ADD pp INT(6) NOT NULL default '0', ADD maxpp INT(6) NOT NULL default '0', ADD ap INT(6) NOT NULL default '0', ADD element INT(3) NOT NULL default '0'; |
wierd.. why must i change below? still same as code :confused:
Quote:
|
agg i have now fixed that file around 8 times.....Some how the old ones keep coming back
the mysql error your getting is because you are supposed to chane it so forum says your dbname. i will fix the download again.. and you replace with : $DB_site->query("UPDATE user SET element='$element', birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='".intval($customtitle)."',usertitle='".ad dslashes($customtext)."',email ='".addslashes(htmlspecialchars($email))."',parent email='".addslashes(htmlspecia lchars($parentemail))."',coppauser='$coppauser',ho mepage='".addslashes(htmlspeci alchars($homepage))."',icq='".addslashes(htmlspeci alchars($icq))."',aim='".addsl ashes(htmlspecialchars($aim))."',yahoo='".addslash es(htmlspecialchars($yahoo))." ',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'"); |
All times are GMT. The time now is 03:28 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|