![]() |
You guys are great! I'll see about getting something like this in place. :)
|
Cool! I see you're doing a roleplay thing huh? ;) I'm sort of on the same boat
|
Something to that effect...
This is the error I'm getting though... Fatal error: Call to unsupported or undefined function unixtojd() in /home/sites/site114/web/forums/showthread.php on line 235 I get the same thing with the original code posted and with the line that said looks better... |
There must be something with your PHP version
|
Coach - if you're running PHP3, then you won't be able to use unixtojd(). It may not even work if you're running PHP4 - you must have the Calendar extensions compiled into your PHP installation.
|
Try this then. Slightly adapted from Wayne's code:
Look for: $userpostcount=$userinfo[posts]; After this put: $days = (time()-$userinfo[joindate])/86400; $userexp = round(pow(((pow($userpostcount,3))*($days)),0.5)); $userlevel = round(pow($userexp,(1 / 3.5))); |
Thanks Ed.
That is what I came up with last night after playing with it for a while. Sorry about the function. I downloaded the indexed manual so I know which versions different functions are introduced in. |
Yep, it's working perfectly now!
By the way, I've been working on some other hack, and it involves saving two new Yes/No values on the user profile. How can this be done? (just adding the "valuename=$valuename" thing on the "$DB_site->query("UPDATE user SET") line resulted in a database error) |
I have tried using Ed's code and added it into my vB. everything works fine. but somehow when i registered a new member and started posting with that one, the $userlevel and $userexp only showed 0 ... even after 4 posts. Any ideas?
[extra] Ohhh, Is it because in the code for EXP , it takes into account of the number of days you have been registered? and since the new member only just registered, the exp rises slowly? If thats the case ! Great! amazing ! This 'kinda' prevents posters to keep posting nonsense just to get exp ...! [/extra] [Edited by ryany on 12-08-2000 at 02:12 AM] |
this seems to be what i need as well.. does it work with 1.1.5 ?
|
All times are GMT. The time now is 11:18 PM. |
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:
|