REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Expander collapsed by default?
#1
Hello guys.....

I was wondering if you could help me with a small matter.
(And I hope I have posted this in the correct section)

On my board I have given select members and groups permission to post HTML.
I would like to have a "Previews Box" that uses the expander.
However, I want it to be collapsed by default so that the content is hidden.
Is that possible?

Thanks heaps for your help!

Owen

PHP Code:
<table width="100%" cellpadding="6" cellspacing="1" border="0" class="tborder">
<
tbody>
            <
tr>
                <
td class="thead" colspan="2">
<
div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['newbox_e']}.gif" id="newbox_img" class="expander" alt="[-]" title="[-]" /></div>
              <
strong>Previews</strong>
                </
td>
            </
tr>
        </
tbody>
        <
tbody style="{$collapsed['newbox_e']}id="newbox_e">  
            <
tr>
                <
td class="trow1">Test Content
                
</td>
            </
tr>
        </
tbody>
    </
table>
<
br /> 
Reply
#2
You will have to define
PHP Code:
$collapsedimg['newbox_e'] = "_collapsed"
in a php file somewhere.
Where do you want to display that box ? On what page ?
Reply
#3
LeX- mate.....

I want to use that box in my posts across the board.
Sometimes I want to include some preview pics and have them hidden by default.
I want the member to be able to click on the + and it opens up and shows the content.

I think there are some "Spoiler" codes available.
Would that be a simpler route to go down?

Owen
Reply
#4
(May 09, 2009, 09:28 AM)Stooj Wrote: LeX- mate.....

I want to use that box in my posts across the board.
Sometimes I want to include some preview pics and have them hidden by default.
I want the member to be able to click on the + and it opens up and shows the content.

I think there are some "Spoiler" codes available.
Would that be a simpler route to go down?

Owen

Ah; its for in a post?
I thought it was like a box above the threads =P
Yeah getting a spoiler mycode mod would be easier Wink
Reply
#5
Thanks LeX- for the suggestion.

Can you recommend a spoiler code?

Owen
Reply
#6
Hello! I really liked your story. Thank you!
myloweslife
Reply
#7
Thank you for sharing this kind of post here. Really useful posts. I could collect more information from your post. Thank you
Reply
#8
I'm happy to join your community. Thank you guys for useful information!
192.168.1.1
Reply
#9
LeX- ,your code is userful
192.168.1.1
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [help] default mybb hooks location xCalifier 2 643 Oct 21, 2017, 01:12 AM
Last Post: Defult
Question Any way to make new users default to multiple groups? Jayfore 1 933 Oct 11, 2017, 06:06 PM
Last Post: DrBaja
  Problem with all themes (Less default theme) 7Liberty 0 875 Apr 28, 2013, 06:00 PM
Last Post: 7Liberty
  How to get rid of the default forum icons? Fishy 2 1,442 Nov 08, 2012, 04:03 AM
Last Post: Sparxgrafix.com
Question Rating Stars still default :( Oliver Evans 0 967 Oct 03, 2010, 06:58 PM
Last Post: Oliver Evans

Forum Jump:


Users browsing this thread: 1 Guest(s)