Quote:
And a big thanks for this tutorial!! Bruno --------------- Added 18 Mar 2010 at 21:50 --------------- Perhaps this little example is a good starting point, also to see how IDs and remembering the state in the cookie works: Open postbit_legacy and add the red code: Code:
<div class="postdetails collapse">
--------------- Added 19 Mar 2010 at 00:13 --------------- If you want to work via Plugin, you have to
Code:
$exampleVar = '<div class="postdetails collapse"><a class="collapse" id="collapse_collapsereplies" href="' . $relpath . '#top"><img src="' . 'images/buttons' . '/collapse' . '' . '_40b.png" alt="' . $vbphrase['collapse_this_category'] . '" /></a><div class="userinfo" id="collapsereplies">'; Code:
//B Replies collapsable Code:
if ($BReplyFound) { One thing I don't know but isn't important yet: When using a text instead of the icon only. How can I change the text so it says whether the box is collapsed or not? Code:
<a class="collapse" id="collapse_collapsereplies" href="' . $relpath . '#top">Hide/Show Discussion<img src="images/buttons/collapse_40b.png" alt="Discussion on/off" /></a><div class="userinfo" id="collapsereplies">'; --------------- Added 19 Mar 2010 at 00:58 --------------- Question: One I could use right now: Is there a way to collapse all User Infos at once, so there isn't even a white space? |
Quote:
Forumhome template, find: HTML Code:
<!-- what's going on box --> HTML Code:
<!-- what's going on box --> HTML Code:
{vb:raw template_hook.forumhome_wgo_pos5} HTML Code:
{vb:raw template_hook.forumhome_wgo_pos5} |
1 Attachment(s)
Modified also this, works fine :). Thanks!
But what I want, is to collapse multiple containers at once, e.g. the userinfo (see attachment 1 -> 2 How could this be done? (I want to get attachment 3 at a final stage, but first 2 to understand the basics. 3 needs more changes) Thanks! Bruno |
Oh... I see what you want, but I guess that you really want is more fun!!! :)
I said that because I think that sometimes, in terms of efficiency simple ways are better. So maybe at this point I would start considering to use the postbit look instead of the legacy_postbit, or a hack that gives your users a chance to switch between them. After all, the main purpose of postbit is precisely to give more horizontal space to that area, and there it is. |
Thanks for your thoughts, but the reason is, to really hide user informations.
I'm trying different things to make a wiki obsolete. Or better said: To have wiki articles inside the forum, in the same data tables. It was easy to create a wiki user (everyone can edit it and see his history, including who changed what) and make discussions disappear (Thanks to this thread: Collapse the postings after the first). Next step: Forget about the user, as common in wikis. Implementation: Isn't it possible with vBs own scripts: Read value from Cookie and set/unset .postbitlegacy .userinfo {display="none";}? |
Brilliant, does exactly as described, perfect, thank you.
|
Been playing around with this and am stuck. What i want to do is have the userinfo in postbit_legacy collapsible by userid rather than which post in a thread (like described in this post). So I could hide a certain user's info and it would stick throughout the forum regardless of where they post.
That make sense? |
I realized something similar for "collapse all user info and other details", could surely be changed to "collapse info of users by id".
Look at ProjectBay.net > Thread and press the http://projectbay.net/images/details.png-Button on the right (FireFox: Alt-Shif-i). Interesting for you? Bruno |
Not quite.Thank you though.
|
So what you want is something similar to the "Invisible User", which seems, as it has been sent to "ignore user" from every one?
|
All times are GMT. The time now is 10:59 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|