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! :)

wieder 10-09-2005 03:53 PM

I took the basic idea and crunched it down as far as I possibly could to allow readers to get an extremely small layout if they tell it to collapse everything.

Example usage: http://forums.metalparachutes.com/showthread.php?t=9

Mr Chad 10-09-2005 04:07 PM

Quote:

Originally Posted by wieder
I took the basic idea and crunched it down as far as I possibly could to allow readers to get an extremely small layout if they tell it to collapse everything.

Example usage: http://forums.metalparachutes.com/showthread.php?t=9

nice, i like that.

wieder 10-09-2005 04:50 PM

Quote:

Originally Posted by chatbum
nice, i like that.

Thanks. I'll try to set some time aside soonish to clean up the code in postable form (I was just experimenting like crazy so it's rather sloppy right now, heh).

And naturally the page isn't being promoted yet for public use, thus the lack of activity (and random broken things as I experiment since I'm not bothering with a test style while the forum isn't ready for use). Trying to get as many kinks worked out and all the custom changes I want in before trying to build up the community. I'm loving the crap out of vB 3.5 though. Very worth the $$$.

Vizionz 11-28-2005 03:48 PM

will this work with the latest version

Cyricx 11-28-2005 04:07 PM

I have it installed on my board and running on 3.5.1 just fine. You'll have to redo the code edit after upgrading obviously.

I haven't had a chance to test Oblivions code though but hope to do that very soon. Then I'll send out an email with an upgrade.

Vizionz 11-28-2005 05:03 PM

yeah its all from scratch so i had to do a fresh install anyway :) just wanted to make sure it works

AllenSam 12-04-2005 06:07 AM

Does it have them expanded by default? If not, how can I make it that way?

chimaira 12-19-2005 10:36 PM

Looks and works well.. but is there a way where i can change the font/text size of the info in the box?

Xplorer4x4 12-20-2005 12:53 AM

Quote:

Originally Posted by chimaira
Looks and works well.. but is there a way where i can change the font/text size of the info in the box?

PHP Code:

<div class="smallfont"

I added that right above
PHP Code:

<if condition="$post['joindate']">$vbphrase[join_date]: $post[joindate

to make it look like the default text.

I was also thinking maybe the javascript could be put in it's own .js file or a duplicate .JS file of global.js elimnating a code mod.

chimaira 12-20-2005 02:52 PM

Thanks for info Xplorer

Steve St.Lauren 12-20-2005 04:22 PM

Quote:

Originally Posted by AllenSam
Does it have them expanded by default? If not, how can I make it that way?

Yes they are expanded by default.

silurius 12-20-2005 06:54 PM

What would be the best way to use this in the non-legacy version?

zendiver 12-28-2005 05:10 PM

For those that are looking to have them collapsed as default:

FIND
PHP Code:

<tbody id="collapseobj_postbit_legacy_userinfo$post[postcount]style="$vbcollapse[collapseobj_postbit_legacy_userinfo]><tr><td class="alt2"> 

REPLACE WITH:
PHP Code:

<tbody id="collapseobj_postbit_legacy_userinfo$post[postcount]style="$vbcollapse[collapseobj_postbit_legacy_userinfo]; display:none"><tr><td class="alt2"


GuaRRand 01-03-2006 04:35 PM

It doesnt actually work for me.

It doesnt fold in..
If i click on the minimize button, it goes to the first post of the topic...nothing else.

I have some other addons in my postbit_legacy...does that have anything to do with it?
(the box goes nicely around everything, so it seems to grab all addons)

Cyricx 01-05-2006 05:45 PM

Did you do the file edit as well?

Double check that, and worst case, do a ctrl-f5 (hard refresh).

Sounds like it's not loading the javascript.

GuaRRand 01-06-2006 03:16 AM

Well..i redid the whole thing, and now it works :D

Must have overlooked something the 1st time.

Thn

fuldon 01-08-2006 07:12 PM

Nice hack!

Gizmo5h1t3 02-25-2006 01:18 PM

still using this, got all my postbit info collapsed now.
this is a great hack!!

GuaRRand 03-16-2006 08:36 PM

Got it working for 99%.
Only thing which doesnt go ok yet is that, when i have the default to folded (so no additional info) and i post something, it shows the postbit as collapsed after the post has been submitted.

When i then reload the page, its folded again, as should be.
(see attached image).

So it seems that the post is faster then the folding or something.
It seems that the plugin/code cant fold fast enough before the page is fully loaded or something.

GuaRRand 03-22-2006 06:49 AM

Anyone? :(

Surviver 06-19-2006 05:22 PM

Thank you for this Hack :)

I have a question to this Hack: How can I use it in PM's too ?

I've edited the template, but then you cannot Collaps it.

Thank you ver ymuch !

mfg Surviver

fishhub 11-19-2006 05:05 AM

This is a very good function.

I would like to alter some font size such as the Additional Info. How do I make the Additional Info frame with smaller font size?

TIA

:)

fishhub 11-30-2006 06:28 PM

Quote:

Originally Posted by Oblivion Knight (Post 760670)
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! :)


Ive tried this but still cant work.

Any kind soul to assist?

TIA

Mysticales 12-09-2006 08:45 AM

Hey I am having the same issue he is.. the one where is you use "Quick Reply" after it posts the postbit will show all the additional info regardless if you had it hidden. My guess is this line:
<if condition="THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost'">

Which when you use quick reply, I think its called showthread_quickreply which has nothing linked to it. Thoughts?

fishhub 12-09-2006 05:29 PM

I am still hoping some kind soul can assist this for us.

TIA

Neutral Singh 12-10-2006 12:14 PM

I have this plugin installed --> First post on every page of thread.

How can show this collapsable postibt in there? :tired:

fishhub 12-11-2006 02:30 PM

Quote:

Originally Posted by Mysticales (Post 1135065)
Hey I am having the same issue he is.. the one where is you use "Quick Reply" after it posts the postbit will show all the additional info regardless if you had it hidden. My guess is this line:
<if condition="THIS_SCRIPT=='showthread' OR THIS_SCRIPT=='showpost'">

Which when you use quick reply, I think its called showthread_quickreply which has nothing linked to it. Thoughts?


Thanks , but Does this work?

Cyricx 02-07-2007 08:12 PM

Boo!

I'm going to start reviewing this hack as I prepare to install it on a few 3.6 sites I am managing.

I'll look into how to add it in Private messages as well. :)

Cyricx 02-07-2007 08:41 PM

Good news, with some of the code from Oblivion's post above, I was able to get this working in Private messages :)

Workin on applying it to signatures and mods for both the vertical and horizontal postbit before I release it :)

Should be released tomorrow :)

fishhub 02-08-2007 03:24 PM

Quote:

Originally Posted by Cyricx (Post 1177085)
Good news, with some of the code from Oblivion's post above, I was able to get this working in Private messages :)

Workin on applying it to signatures and mods for both the vertical and horizontal postbit before I release it :)

Should be released tomorrow :)

great! been awaiting for new release on 3.5.4...:D


All times are GMT. The time now is 02:57 AM.

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.01369 seconds
  • Memory Usage 1,828KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (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
  • (40)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