vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Is This Even Possible? (https://vborg.vbsupport.ru/showthread.php?t=4489)

11-10-2000 08:38 PM

You guys are great! I'll see about getting something like this in place. :)

11-10-2000 09:09 PM

Cool! I see you're doing a roleplay thing huh? ;) I'm sort of on the same boat

11-10-2000 10:07 PM

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...

11-11-2000 07:13 AM

There must be something with your PHP version

11-11-2000 01:32 PM

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.

11-11-2000 03:26 PM

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)));

11-11-2000 08:57 PM

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.

11-13-2000 10:02 PM

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)

12-08-2000 04:48 AM

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]

02-04-2001 12:37 PM

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
  • Page Generation 0.01020 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete