vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   User Info Collapsable Postbit in Legacy (https://vborg.vbsupport.ru/showthread.php?t=94092)

Cyricx 08-10-2005 10:00 PM

User Info Collapsable Postbit in Legacy
 
This hack was originally released by Steve St.Lauren for vb3.0.x in this thread -


https://vborg.vbsupport.ru/showthread.php?t=68043

This is a port of that hack and ALL credit goes to Steve for this modification. I did nothing more then make one of the edits a plugin and add a phrase.

Please click da instally thinga magigy ;)

O and you won't have to clear any cookies for this to work, or for it to remember your settings.

Things To Do:
1. Edit /clientscript/vbulletin_global.js (1 modification)
2. Import new product xml
3. Edit postbit_legacy template
4. Edit postbit template


Changes:
  • Version 1.1.0
    • Fixes bug with code not working in private messages
    • Adds instructions for modifying the postbit (horizontal) template as well.

Vizionz 08-11-2005 11:15 PM

this is pretty cool :) now how can you add extra fileds to it though? like say i want to ad alot of the profile fields to it /

Gizmo5h1t3 08-12-2005 12:47 AM

u beat me to it, was gonna ask exactly the same thing...lmao

Cyricx 08-12-2005 01:04 PM

Any extra profile fields or entries you do into the signature that is under location and before the msn icons will be inside this :)

Just put the code in between the two edits :)

To summarize, the first postbit_legacy edit is the start of the box. The last edit is the end of the box. Everything between there is in the collapse.

Steve St.Lauren 08-13-2005 05:41 AM

Thanks for porting this over Chris. When I convert to 3.5 in a few months (assuming it's stable) I'll be clicking install ;) .

theArchitect 08-14-2005 01:02 AM

Am I doing something wrong, or should this not be global.

i.e. when I collapse the postbit in one thread and then go to another thread the postbit is no longer collapsed.

Cyricx 08-15-2005 11:49 AM

Did you upload the xml into the product manager?

Without the hook in there, it won't save your setting to your cookies.

Gizmo5h1t3 08-15-2005 02:14 PM

works a treat...nice hack

Rover416 08-15-2005 04:54 PM

<font color="Lime">*Clicks install</font>

Oblivion Knight 08-21-2005 03:51 PM

Quote:

As of yet, I have not been able to get this mod working in PMs so the postbit_legacy edit has an if condition to only display it in showthread or showpost. I'll continue trying to find out how to get it to work in PMs or if anyone else has any ideas, always appreciated :)
The fix is actually quite simple..
PMs don't use the $post[postcount] figure, so just create a false one. I used 99..

My button code:
Code:

<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapseuserinfo('postbit_legacy_userinfo<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>')"><img id="collapseimg_postbit_legacy_userinfo<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_postbit_legacy_userinfo].gif" alt="" border="0" /></a>
My tbody code:
Code:

<tbody id="collapseobj_postbit_legacy_userinfo<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>" style="$vbcollapse[collapseobj_postbit_legacy_userinfo]">
It seems to work fine for me anyway! :)


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.00978 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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