I want to be able to see the username and avatar but have an expand/collapse switch for the rest of the details (postcount,location,thanks etc) per user.
|
I see. So first try my Example on #31. If this works, you will have learned all you need to do what you want.
|
I did try that but it only works for the particular post in a thread,not by the user, which is what I'm looking for.
|
Of course :). But now you should need only little skill to change the necessary:
{vb:raw post.postcount} -> {vb:raw user.userid} (or similar) and search for / add the div you want to collapse. |
Quote:
stay tuned. --------------- Added [DATE]1277275585[/DATE] at [TIME]1277275585[/TIME] --------------- ugh, can't seem to get it. :( |
Can you Post your TMS-xml? I will see how I can help you.
|
what is TMS-xms?
|
So I take it as this won't work on vb 3.8?
|
Quote:
Then you export all these instructions as xml, so I can continue your work without any delay / manual work. It will be the best you ever learned, since you
|
To avoid confusion: You export as xml.
--------------- Added 25 Jun 2010 at 22:09 --------------- Quote:
|
Quote:
Another Question: Is there a simple way to make a div collapsed by default? |
Quote:
|
Oups... Sorry... I should have asked "Did anyone found a non-dirty quick solution?" (but anyway the answer will be "no", since it would be written in the article...)
|
Quote:
|
O.K. here an example with an own script: When registering, "Additional Infos" will be collapsed:
Replace in Template register Code:
<h3 class="blocksubhead">{vb:rawphrase additional_information}</h3> Code:
<script type="text/javascript"> Code:
{vb:raw customfields_other} Code:
{vb:raw customfields_other} Regards, Bruno |
how do i combine it within a table?
like, i dont want to use div, to insert the classes and everything to the <table class=.. |
Wrap a div around your table.
|
Hi all,
just a quick question I would like to make my postbit fields collapsable, I have follow the steps provided at page 1 and well it works but only with first post how should I proceed to make it work with all post ? TIA |
You would have to add something unique to the collapsing id (cel_dummy in the example). You coud try the postid (cel_dummy_{vb:raw post.postid}).
|
how do i add id for blocks in vbCMS 4.1.4?, they dont have any id..
|
Then you need to find a way to add one. Likely in the template used by whatever you want to collapse.
|
hmm im totatlly confused now.....
did try to collapse the wgo in forumhome template but failed big time... dunno what i did wrong... |
I don't know either.
|
Hi,
I was wondering if someone could explain how the collapsible box works when clicked to the box background it expands? Something like in slickdeals.net, when someone clicks the background, it expands. thanks |
vB's collapse method does not allow for this, so this is not for this tutorial, really. You should open your own thread in an appropriate forum. Anyway, you'd have to fire the javascript on the click event of the background, not a link, generally speaking. But a tutorial on how to do that is really too much for this topic.
|
thanks. I was wondering if there is a tutorial that shows how to store variables to DB during the post new thread session. And also how to retrieve those data from DB and render to a template.
|
Quote:
|
Thanks for the guide. I thought I'll share something:
I had to find a way to collapse more than one element at the same time. Tried using the same ID for every element as you suggest but without luck - only the first one collapses. At the end I've added an empty collapse-triggering <A> tags for every additional element I need collapsed and chained their click events like this: <a class="collapse" id="collapse_elem1" href="{vb:raw relpath}#top" onClick="document.getElementById('collapse_elem2') .click();"><img ...... /></a> <a class="collapse" id="collapse_elem2" href="{vb:raw relpath}#top" onClick="document.getElementById('collapse_elem3') .click();"></a> <a class="collapse" id="collapse_elem3" href="{vb:raw relpath}#top"></a> Only the first <A> tag has the changing button image, the others are empty. This way I was able to collapse the elements with IDs "elem1", "elem2" and "elem3" simultaneously. Its not very elegant but does the trick ;) |
Nice workaround :) thanks for sharing!
|
I tried to use this in a bbcode but its not converting {vb:raw relpath} to the correct path. it just leave it as %7bvb:raw relpath %7d any ideas on how to make it work in a bbcode?
|
You need to enter the correct path manually. The variable is a template variable and is not in scope for bbcode.
|
Quote:
Do you think it would work if I was to use your php in BBcode mod |
Yes, I think this should be possible with that mod.
|
Thank you so much for taking the time to write this. I was working on figuring this out when I decided to search vbulletin.org to see if I could gain any insight.
Thanks again! I'm a big fan of your apps too! |
Is there a way to remember the choices? Each time I collapse a box and refresh the page, the box reverts to the original style.
Thanks |
All times are GMT. The time now is 10: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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|