Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Biology Forums - elokuu 07, 2011, 01:59:52 IP

Otsikko: New Theme (Upshrink/Collapse Assistance)
Kirjoitti: Biology Forums - elokuu 07, 2011, 01:59:52 IP
I'm creating a new theme and I'm looking to incorporate the SMF upshrink/downshrink script to a DIV - although I do not know how it it works exactly :-[

Otsikko: Re: New Theme (Upshrink/Collapse Assistance)
Kirjoitti: Biology Forums - elokuu 08, 2011, 07:10:18 IP
Please help! :-\
Otsikko: Re: New Theme (Upshrink/Collapse Assistance)
Kirjoitti: MrGrumpy - elokuu 08, 2011, 07:24:32 IP
Attach your index.template.php and i'll look at it for you
Otsikko: Re: New Theme (Upshrink/Collapse Assistance)
Kirjoitti: Biology Forums - elokuu 08, 2011, 09:14:00 IP
Got it to work after hours of trial and error.

If anyone needs help, let me know
Otsikko: Re: New Theme (Upshrink/Collapse Assistance)
Kirjoitti: Tomcraft - elokuu 25, 2011, 11:17:52 IP
Can you please tell how you got it to work?

Regards, Torsten
Otsikko: Re: New Theme (Upshrink/Collapse Assistance)
Kirjoitti: Biology Forums - elokuu 26, 2011, 02:04:49 IP
I believe what I did was:

<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;">

<img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapsed.gif' : 'expanded.gif', '" alt="*" title="', $txt['upshrink_description'], '" />

</a>
Otsikko: Re: New Theme (Upshrink/Collapse Assistance)
Kirjoitti: Tomcraft - elokuu 26, 2011, 10:14:33 IP
Great, thx!

Regards, Torsten
Otsikko: Re: New Theme (Upshrink/Collapse Assistance)
Kirjoitti: Biology Forums - elokuu 27, 2011, 12:25:52 AP
Lainaus käyttäjältä: Tomcraft - elokuu 26, 2011, 10:14:33 IP
Great, thx!

Regards, Torsten

It worked for you?
Otsikko: Re: New Theme (Upshrink/Collapse Assistance)
Kirjoitti: Tomcraft - elokuu 27, 2011, 10:22:11 AP
Not exactly what I was looking for. You Code is for the Info and statistics section.

I'm looking for a way to upshrink a self coded section underneath the news section.

Regards, Torsten