TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 09:23:16 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,106
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 90
  • Total: 90

nifty "collapse" feature on blocks that showed up recently

Started by iowamf, November 21, 2005, 09:09:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bloc

Thanks, snork.. the code is just a indication really, since I changed more for this new upshrink feature. Don't use the javascript link AT ALL. It assume the actual 'toggle' routine to be present, which you don't have yet. :)

use only..
<a href="-something-"><img style="margin: 4px;" align="right" src="'.$settings['images_url'].'/collapse.gif" border="0" alt="" ></a>';



Of course adding a link and your own image name there - if you want a image there(and a link).

Skhilled

When I saw the js error I thought that might be the problem. Which directory should the code be in? Tinyportal75 or in themes?

Skhilled

Hmm, I don't get it... Why have a link at all? Why not just the expand/collapse?

bloc

Because the javascript I use require a proper link. Doesn't work with just a onclick on the image. Also it needs to save this info for each member over all themes. SMF upshrink works on just current theme, and is tailored against one particular upshrink. So I wrote my own version for the blocks upshrink.

Skhilled

Ahhhh, so you must put a different link according to the type of block? BTW, why not just call them Blocs?ÂÃ,  LOL

Still can't get it to work cause of the links. Not actually sure which links to put in them.


bloc

:D Thats the one i started out with..but the saving of the value into the database was the challenging part.

kind of useless if a page refresh just sets all blocks open again...

Skhilled

That link gives me a page not currently available...

Quote from: Bloc on November 27, 2005, 01:08:21 AM
kind of useless if a page refresh just sets all blocks open again...

Yeah, kind defeats the purpose. :)