View Full Version : Show Thread Enhancements - Userlevel
Coroner
11-15-2009, 10:00 PM
What does it do
Shows a UserLevel in a post of a each user.
The level will calculate from the users registration date and from his posts (see pictures). This Mod can be switched off in the vBulletin settings.
Install
Simply upload the picture (gif) in or into your Style(s) and install the product.
Credits & Info
To @Tyran that he get the original wBB3 Mod. In wBB3 the UserLevel was also avaible in the users profile. NOT in this version.
Hooks
This Mod use a template hook. Without it, it won't work!
$template_hook [postbit_userinfo_right_after_posts]
This Mod is avaible in:
English, German, Italian and Turkish.
Permission for Translation is given !
Images see here:
https://vborg.vbsupport.ru/showthread.php?t=225925
EDIT: PL1 fixed the template cache !
sematopdemir
11-16-2009, 05:35 PM
thanks
ARB4HOSTING.COM
11-16-2009, 05:44 PM
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3780
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3780
Coroner
11-16-2009, 05:52 PM
Sorry. Seems to be an older file. It's upgraded
Damien1990
11-16-2009, 06:11 PM
Nice, thank you. What is the maximum level the user level goes to?
abdobasha2004
11-16-2009, 07:36 PM
thanks
reserved
nomoreturn
11-16-2009, 11:25 PM
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3780
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3780
installed today nov16th and got same error
Coroner
11-17-2009, 02:58 AM
I cannot found any "fetch_template" inside the xml ?
AzzidReign
11-17-2009, 03:59 AM
My members love the vBexperience b/c it does something similar to this as far as level goes. vBe was just too bulky for my large forum so this will be good!
elwachiman
11-19-2009, 01:12 AM
instaled and working tanks
AndrewSimm
11-19-2009, 01:44 AM
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3780
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3780
Greight
11-20-2009, 05:50 AM
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3780
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3780
Same error here
fskfsk
11-20-2009, 06:14 AM
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3780
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3780
+1 same error here to.
Coroner
11-20-2009, 06:30 AM
Pls, open the product you've installed and search for: fetch
Let me know if you found it.
I've checked myself all four products and didn't found any entry with fetch_template.
fskfsk
11-20-2009, 06:35 AM
Pls, open the product you've installed and search for: fetch
Let me know if you found it.
I've checked myself all four products and didn't found any entry with fetch_template.
No Phrases Matched Your Query
it cant find the word "fetch" on the product
a picture of the error: https://vborg.vbsupport.ru/external/2009/11/1.png (http://www.siz.co.il/)
Coroner
11-20-2009, 08:02 AM
I'm a little bit confused.
I've test it with vB4 Beta 3 on postbit and postbit_legacy and didn't get any error message.
Do you really think that it's my mod ?
fskfsk
11-20-2009, 08:21 AM
I'm a little bit confused.
I've test it with vB4 Beta 3 on postbit and postbit_legacy and didn't get any error message.
Do you really think that it's my mod ?
ya its your mod.
ive been downloading it from this theard. im sure there a problem with the mod
can u please check it agin?
sebaldus
11-21-2009, 03:17 PM
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3780
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3780
Same problems with me...:(
Also error msg: vB_Template class in [path]\includes\functions.php on line 3780
Uinstalled until it works correctly.
Sebaldus.:(
Dr.osamA
11-22-2009, 05:52 AM
thanks
________
Teen Beautiful (http://www.++++tube.com/categories/1020/beautiful/videos/1)
halkum
11-22-2009, 06:15 AM
Working fine on my forum
FlameGun
11-22-2009, 12:28 PM
Works fine on me, I like it - I just wish you could edit the way the level is determined, the amount of experience needed per level, and possibly have some sort of level leader board which could show the top leveled member.
Great work!
JorgeX
11-22-2009, 01:52 PM
Test it in a fresh install, maybe a product incompatibility
cellarius
11-26-2009, 08:08 AM
Coroner, template postbit_userlevel shows as uncached.
To fix, in the cache_templates plugin change
$globaltemplates[] = 'postbit_userlevel';to
$cache[] = 'postbit_userlevel';Else, the mod works fine.
Vaupell
11-28-2009, 03:42 PM
get the same error as postet before.
I got identical error when trying to "ajust" the photobucket mod from 3.8
i just wanted it to work. but due to this error, i just gave it up :D
:/
tryed installing again today,, and now it worked.. ODD - same forum no changes..
Sayid
11-29-2009, 11:34 AM
Thanks man, I like this mod
tagged
Hoffi
12-13-2009, 08:20 AM
Did someone test this on RC2?
Coroner
12-13-2009, 04:00 PM
I did it - and it works fine (see image).
Toxic2
12-17-2009, 09:10 AM
Corner,
This Shows up on the right side instead of below the Members Avatar. What did i miss? Works great, just on the wrong Side. Installed in RC-4
Coroner
12-17-2009, 11:16 AM
can I have a screenshot of what you mean, please.
Toxic2
12-17-2009, 11:49 AM
I added the Attachment Above. As you can see it is on the right side. I prefer Below the Members Avatar as in your Screen Shot.
Nice Mod in any case. :)
Coroner
12-17-2009, 02:24 PM
Ok, that's correct. It will use the Template Hook and this is on the right side.
You can change it by changing the Template Hook:
In the Product search for:
$template_hook[postbit_userinfo_right_after_posts] .= $templater->render();
and change it into:
$template_hook[postbit_userinfo_left] .= $templater->render();
Remember:
I haven't test it in "postbit_legacy", but it works in "postbit".
Toxic2
12-17-2009, 05:27 PM
Worked Like a Charm ! Thank you Corner :)
Bouncer222
12-24-2009, 08:39 PM
Could you possibly please implement all or most of the features found here https://vborg.vbsupport.ru/showthread.php?t=199556&highlight=vbexperience
for your product please. I would definetly install it then!
I rather have experience + activity of member rather than their level. Does this already do this?
Boko577
12-24-2009, 09:31 PM
Ok, that's correct. It will use the Template Hook and this is on the right side.
You can change it by changing the Template Hook:
In the Product search for:
$template_hook[postbit_userinfo_right_after_posts] .= $templater->render();
and change it into:
$template_hook[postbit_userinfo_left] .= $templater->render();
Remember:
I haven't test it in "postbit_legacy", but it works in "postbit".
Could you explain how to do this? I'm catching up on how to do this kind of stuff, but this will be my first time with a template hook, and I have no idea what that is. :erm:
pandusetiawan
12-26-2009, 12:59 AM
after installing xml
when open post got this :
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3895
plizz help , how to hook
In the Product search for:
PHP Code:
$template_hook[postbit_userinfo_right_after_posts] .= $templater->render();
and change it into:
PHP Code:
$template_hook[postbit_userinfo_left] .= $templater->render();
Dr.osamA
12-26-2009, 02:10 AM
thanxx man
installed
plzz add arabic language ;)
________
Russian Recipes (http://www.cooking-chef.com/russian/)
pandusetiawan
12-29-2009, 05:50 AM
@Coroner.......umm...the bar seems doesn't work for me.....can you help me with this problem?Thx.
Coroner
12-29-2009, 01:13 PM
Have you uploaded the image as well ?
Bouncer222
12-29-2009, 04:49 PM
Coroner could you add to this or create a new mod, that has one bar that is green and calculates how active you are, basically shows a bar of a percent out of 100% to show how active you are in postbit_legacy and profile page?
I believe this is a simple addon to do, let me know please.
Thanks.
darsalles
12-29-2009, 09:31 PM
Is there someway to hide: Level, Experience and next level. And when someone click on some kind of spoiler it shows?
Only leave the bar always visible...
Olli2k
01-12-2010, 01:11 PM
I cannot found any "fetch_template" inside the xml ?
eval('$template_hook[postbit_userinfo_right_after_posts] .= "' . fetch_template('postbit_userlevel') . '";');
Is in every xml.
Complede User Level - Postbit Display start plugin code:
PHP-Code des Plug-ins
global $vbulletin;
if ($vbulletin->options['userlevel_on'])
{
if (THIS_SCRIPT == 'private')
{
$up = $vbulletin->db->query_first ("SELECT posts,joindate FROM " . TABLE_PREFIX . "user WHERE userid=" . $this->post['fromuserid']);
$this->post = array_merge ($this->post, $up);
}
$hl = false;
$joindate = 0;
if ($this->post['userid'])
{
$joindate = $this->post['joindate'];
}
if ($vbulletin->options['userlevel_help']) $hl = true;
$jointime = (TIMENOW - $joindate) / 86400;
$exp = ceil ($this->post['posts'] * $jointime);
if ($exp != 0)
{
$level = pow (log10 ($exp), 2);
}
else
{
$level = 0;
}
$showlevel = floor ($level) + 1;
$nextexp = ceil (pow (10, pow ($showlevel, 0.5)));
if ($showlevel == 1)
{
$prevexp = 0;
}
else
{
$prevexp = ceil (pow (10, pow ($showlevel - 1, 0.5)));
}
$width = ceil ((($exp - $prevexp) / ($nextexp - $prevexp)) * 100) . 'px';
$needexp = vb_number_format ($nextexp - $exp);
$exp = vb_number_format ($exp);
$nextexp = vb_number_format ($nextexp);
eval('$template_hook[postbit_userinfo_right_after_posts] .= "' . fetch_template('postbit_userlevel') . '";');
}
Files downloaded: today
Error messages:
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3895
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3895
Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3895
Coroner
01-12-2010, 01:50 PM
Nope !!
I have no idea why or where you can see "fetch_template" !?
The real vB4 Plugin is:
global $vbulletin;
if ($vbulletin->options['userlevel_on'])
{
if (THIS_SCRIPT == 'private')
{
$up = $vbulletin->db->query_first ("SELECT posts,joindate FROM " . TABLE_PREFIX . "user WHERE userid=" . $this->post['fromuserid']);
$this->post = array_merge ($this->post, $up);
}
$hl = false;
$joindate = 0;
if ($this->post['userid'])
{
$joindate = $this->post['joindate'];
}
if ($vbulletin->options['userlevel_help']) $hl = true;
$jointime = (TIMENOW - $joindate) / 86400;
$exp = ceil ($this->post['posts'] * $jointime);
if ($exp != 0)
{
$level = pow (log10 ($exp), 2);
}
else
{
$level = 0;
}
$showlevel = floor ($level) + 1;
$nextexp = ceil (pow (10, pow ($showlevel, 0.5)));
if ($showlevel == 1)
{
$prevexp = 0;
}
else
{
$prevexp = ceil (pow (10, pow ($showlevel - 1, 0.5)));
}
$width = ceil ((($exp - $prevexp) / ($nextexp - $prevexp)) * 100) . 'px';
$needexp = vb_number_format ($nextexp - $exp);
$exp = vb_number_format ($exp);
$nextexp = vb_number_format ($nextexp);
$templater = vB_Template::create('postbit_userlevel');
$templater->register('hl', $hl);
$templater->register('exp', $exp);
$templater->register('ewidth', $width);
$templater->register('showlevel', $showlevel);
$templater->register('needexp', $needexp);
$templater->register('nextexp', $nextexp);
$template_hook[postbit_userinfo_right_after_posts] .= $templater->render();
}
cellarius
01-14-2010, 05:20 AM
eval('$template_hook[postbit_userinfo_right_after_posts] .= "' . fetch_template('postbit_userlevel') . '";');
Is in every xml.
Files downloaded: today
You so obviously downloaded the 3.8 version. Probably from the wrong thread?
meissenation
01-18-2010, 06:16 PM
I bet you guys are clicking the link to see the images in the product description and then downloading the product from that link - which is the 3.8 version. ;) I just downloaded the vb4 zip and I see no mention of fetch in the product XML at all.
cellarius
01-18-2010, 10:24 PM
Coroner, would you consider fixing template caching (https://vborg.vbsupport.ru/showpost.php?p=1921089&postcount=23), please? I think many users won't find the fix I posted buried in the thread ;)
molieman
01-18-2010, 11:37 PM
Fantastic and I love it.
Thank You!!!!!
Coroner
01-19-2010, 03:16 AM
I'm sorry. Yes of course, we do it now.
cellarius
01-19-2010, 09:24 AM
Thank you :)
Drache
03-03-2010, 10:50 AM
very nice mod. is there a list page that shows the top 10 highest level users?
also how do I make it show next to the reputation on left side and not above it?
Thanks.
Toxic2
03-20-2010, 08:03 AM
Thanks for the Upgrade Corner
Professional2
03-28-2010, 05:45 AM
tagged...
Sancipa
03-28-2010, 08:41 AM
can we defined the experience, the number of post, and the other calculation?
mmorpgwelt
03-28-2010, 02:17 PM
Installed an loving it!:D
Sworm
03-28-2010, 07:05 PM
A question:
work in pl4 too? Thanks
balkanboy
03-29-2010, 02:28 AM
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: postbit_userlevel in [path]/includes/functions.php on line 3932
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: postbit_userlevel in [path]/includes/functions.php on line 3932
wayyyy above the forum like the guy posted above me.... disabled for the moment
rule0
04-01-2010, 05:40 PM
thanks, installed and working smooth :)
balkanboy
04-13-2010, 04:14 AM
Hooks
This Mod use a template hook. Without it, it won't work!
$template_hook [postbit_userinfo_right_after_posts]
sorry not sure what to do.....
never mind all working
Hall of Famer
04-13-2010, 05:22 AM
Well VBexperience does not work on VB4, so how will this one work then?
pjdaley
04-13-2010, 07:55 PM
Decent Mod.
Features Needed:
Make a page to show say top 10 members by level.
User defined variables for exp needed to level up, also allow user to chose weather the level is based off time spent on forum, post count, or membership time.
tab in profile
DxSEO
04-15-2010, 09:06 AM
tagged for future use
friendlymela
10-16-2015, 06:59 AM
Its working still?
Rasmus Gustavss
10-26-2015, 11:53 AM
working?
ArcadeSyndicate
10-26-2015, 01:57 PM
don't you guys have a testboard? ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.