View Full Version : Profile Enhancements - Collapsable user info
mad@Max
08-17-2008, 10:00 PM
This mod is cast here by it DI - BBCode [spoiler] (https://vborg.vbsupport.ru/showthread.php?t=178573).
Installation is simple:
Upload all files from a folder upload in a root of a forum and to import a product.
History:
1.0 - public release
1.1 - added option choose collapse userinfo or not
1.1.1 - working in PM too, bug fix
1.1.2 - fixed path to jQuery,fixed little bit errors
1.2 - fixed work with individual field of the user
1.3 - finally fixed to work with individual fields of the users :)
1.4
fixed ajax issue
loading jQuery happens only after first click
1.4.1 - fixed some bugs, removed get-min.js (written own loader)
Troubleshooting
If to happen so, that together with the information of the user has collapse also its avatars (:)) then open a template postbit_legacy, find $template_hook [postbit_userinfo_left] and move it below a condition <if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
DEMO (http://mixplay.ru/showthread.php?t=41)
PS sorry for English:D
mad@Max
08-18-2008, 12:20 PM
In new version fixed working mod without additional field, and add collapse in PM:)
Peterpan002
08-18-2008, 12:50 PM
Will this work with postbit as well as legacy? Any other changes other than editing the postbit template rather than postbit_legacy template.
Peterpan002
08-19-2008, 08:54 AM
I followed instructions for postbit legacy but the user info does not open a drop box and just the IM icons show?
Peterpan002
08-19-2008, 09:51 AM
I moved the $template_hook[postbit_userinfo_right] position to below the IM icon display codes and that solves one problem. However the user info bock does not open and so now now additional information can be seen.
Is this mod supported?
mad@Max
08-19-2008, 08:12 PM
Yes, supported:)
Mod is replace 2 variables: $template_hook[postbit_userinfo_left] (as starting tag collapse) and $template_hook[postbit_userinfo_right] (as ending tag collapse). So if you have not default style, put first variable under condition about avatar and second variable under $post[icqicon] $post[aimicon] and etc.
Soon i'm rebuild mod for postbit (not legacy) mode.
Magnumutz
08-20-2008, 08:49 AM
This looks promising... will install later :)
Peterpan002
08-20-2008, 09:02 AM
Yes, supported:)
Mod is replace 2 variables: $template_hook[postbit_userinfo_left] (as starting tag collapse) and $template_hook[postbit_userinfo_right] (as ending tag collapse). So if you have not default style, put first variable under condition about avatar and second variable under $post[icqicon] $post[aimicon] and etc.
Soon i'm rebuild mod for postbit (not legacy) mode.
Yes I understand that and as previously posted have moved the 2 variables within the template. This has resulted in the information being contained within the box, but the box drop open is not working.
mad@Max
08-21-2008, 12:50 PM
In version 1.1.2 added collapse for postbit mode.
Peterpan002, its not can be:) Say address your board in my pm, i will see.
Peterpan002
08-21-2008, 03:29 PM
I have installed on test site on my pc so no access possible. I have redone but same problem
Peterpan002
08-21-2008, 04:04 PM
Upload all files from a folder upload in a root of a forum Did you mean this or upload the cui folder to clientscripts folder
Peterpan002
08-21-2008, 04:17 PM
I sorted it thanks :)
glorify
10-19-2008, 10:57 PM
No worky for me man.
mad@Max
10-20-2008, 12:32 AM
What happens?
glorify
10-20-2008, 02:01 AM
The file structure in the zip is wrong. You have to lose that cui folder that holds the jquery file.
Fixed it, and changed up the css file to my liking.
It's great after it's working, but I don't know after all that if I like it with my board. I guess it's my taste.
glorify
10-20-2008, 02:17 PM
I did want to post screens of how it came out. Once again, great mod if you want to use something like this. Tested in IE and Firefox.
Here is a temporary demo (http://www.glorifythepast.com/forums/showthread.php?t=3434), but like I said, I don't know if I'm keeping it.
mad@Max
10-20-2008, 04:23 PM
Mmm, what do you mean?
glorify
10-20-2008, 07:35 PM
One minor bug thru testing. If you use any AJAX editing or quick reply, you can't make your own info expand until you refresh the page.
wwolf27
10-20-2008, 08:34 PM
great...exactly what I have been looking for..THANKS SO MUCH!!!
mad@Max
10-20-2008, 11:18 PM
glorify This is not a bug, spoiler mod worked like my mod.
wwolf27 welcome ;)
glorify
10-21-2008, 11:21 PM
Sorry, it's a bug. Maybe not from your end, but the ajax definitely interferes with the functionality of either the post that was edited or quick replied. Works after a refresh. Not banging ya, just letting you know what happens.
The Ajax also interferes with this (https://vborg.vbsupport.ru/showthread.php?t=184136) mod, and it is a known issue.
mad@Max
10-21-2008, 11:24 PM
Yes, i mean it's not mine bug:)
glorify
10-21-2008, 11:28 PM
LOL. Yeah, I will say I am liking this the more I use it tho :)
lazydesis
01-07-2009, 02:21 AM
can this be made in such a way that the info of users other than the thread starter are collapsed?
The first post on the thread shud not have the info collapsed .. can this be done?
thanks for the mod. like it
ArchangelX
04-26-2009, 02:19 AM
Hi, I just installed this.
I don't understand this step:
5. Into options of mod in field write the name of just created option (for example field5).
Where do I place this at? Thanks.
ArchangelX
04-27-2009, 12:05 PM
Okay, figured out that step 5, but it doesn't do anything when it's enabled...anyone else have that problem?
dancue
05-24-2009, 10:21 PM
anyone get this to work with 3.8?
mad@Max
08-11-2009, 12:39 AM
Hack updated to v1.4. Look in history.
Adam H
12-11-2009, 12:39 AM
Ive found a bug , on my forum this mod didnt work. I looked in the source and the script tags we not closed as they should be.
In the : collapse_info template the code is currently
<if condition="!$vbulletin->products['spoiler']['active']"><script type="text/javascript" src="clientscript/jquery_load.js" /></if>
<if condition="!$vbulletin->products['lsearch']['active']">
<script type="text/javascript" src="$vboptions[bburl]/clientscript/yui/get/get-min.js" /></if>
<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/cui.css" />
It needs to be changed to this :
<if condition="!$vbulletin->products['spoiler']['active']"><script type="text/javascript" src="clientscript/jquery_load.js" ></script></if>
<if condition="!$vbulletin->products['lsearch']['active']">
<script type="text/javascript" src="$vboptions[bburl]/clientscript/yui/get/get-min.js" ></script></if>
<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/cui.css" ></script>
And then it works perfectly
mad@Max
12-12-2009, 12:58 PM
Yes, you right. There is a bug. But code should be like that:
<if condition="!$vbulletin->products['spoiler']['active']"><script type="text/javascript" src="clientscript/jquery_load.js" ></script></if>
<if condition="!$vbulletin->products['lsearch']['active']">
<script type="text/javascript" src="$vboptions[bburl]/clientscript/yui/get/get-min.js" ></script></if>
<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/cui.css" >
mad@Max
12-12-2009, 02:15 PM
Released version 1.4.1 with couple changes.
TitanJeff
12-31-2009, 02:34 PM
I like this but it doesn't work so far for me. Here are the details.
After uploading and installation, I see the user info collapsed as it should be. When I click on it, it switches over to "Getting user info" (or something like that) but nothing ever happens.
Any idea?
I like this because it saves a lot of wasted space on my site. Thanks.
TitanJeff
02-04-2010, 11:03 AM
Anyone? ;)
TitanJeff
07-25-2010, 12:00 AM
Got it to work after upgrading to 3.8.6. Anyone know how to alter the colors/design?
TitanJeff
07-25-2010, 12:35 AM
Any way to change the color scheme or remove the border?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.