3.1.x SnippetsCollapse in 3.1.x

Snippets
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5060
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Collapse in 3.1.x

Post by martin »

CorradoG60.com wrote:
EDIT: I also checked the source of this site, and it doesn't have the coding the same as shown in the first post of this topic, it passes validation, so the first post instructions must be wrong?
Now go check my site wink im using the code in first post and it passes on mine :whistl:

Blades-place - Index page or direct link [Valid] Markup Validation of http://www.blades-place.dyndns.info/index.php - W3C Markup Validator

the test site wont pass and the collapse on this site is done by an ext that if i remember right conflicts.
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5060
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Collapse in 3.1.x

Post by martin »

Made a small change yourdomain.com - Index page now valid.
User avatar

dsaf
Users
Users
Status: Offline
User theme: Dark
Posts: 33
Joined: Jan 17th, '15, 16:51
    Windows 7 Chrome

Re: Collapse in 3.1.x

Post by dsaf »

Is there a way to change or set the z-index perhaps to stop the collapse icons appearing in the notification panel on smaller screens?

Image
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5060
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Collapse in 3.1.x

Post by martin »

Css file
Find This may be a partial find and not the whole line

Code: Select all

.trigger {
    background: url("./images/collapse-icon.png") no-repeat;
    width: 32px;
    height: 17px;
    cursor: pointer;
    float: right;
    position: relative;
    z-index: 9998;
    margin-top: -21px;
}

.active {background-position: left top;}
.inactive {background-position: left bottom;}
Replace with Replace the preceding lines with the following

Code: Select all

.trigger {
    background: url("./images/collapse-icon.png") no-repeat;
    width: 32px;
    height: 17px;
    cursor: pointer;
    float: right;
    position: relative;
    z-index: 2;
    margin-top: -21px;
}

.active {background-position: left top;}
.inactive {background-position: left bottom;}
the above will stop the collapse going over other images i have not tested on a smaller screen yet so pls post a result.
User avatar

dsaf
Users
Users
Status: Offline
User theme: Dark
Posts: 33
Joined: Jan 17th, '15, 16:51
    Windows 7 Chrome

Re: Collapse in 3.1.x

Post by dsaf »

Martin,

Thats what I tried first, hasnt worked.. still shows after purge?
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5060
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Collapse in 3.1.x

Post by martin »

Looking at your site now on iphone and cant see a collapse icon
User avatar

dsaf
Users
Users
Status: Offline
User theme: Dark
Posts: 33
Joined: Jan 17th, '15, 16:51
    Windows 7 Chrome

Re: Collapse in 3.1.x

Post by dsaf »

Um.. Its there on android? Its a white -. I dont have a iPhone to test?

Image
User avatar

dsaf
Users
Users
Status: Offline
User theme: Dark
Posts: 33
Joined: Jan 17th, '15, 16:51
    Windows 7 Chrome

Re: Collapse in 3.1.x

Post by dsaf »

Ah i see what the issue is martin, you have to be logged in as when logged out your viewing forumlist_body2.html which hasnt got collapse written into it.
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5060
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Collapse in 3.1.x

Post by martin »

There is now a collapse ext out on phpbb.com.
User avatar

ninowebs
Users
Users
Status: Offline
User theme: Dark
Posts: 29
Joined: Jun 4th, '15, 21:44
    Windows 7 Chrome

Re: Collapse in 3.1.x

Post by ninowebs »

I can apply this change , for the closing blocks of portal board3 ?

tnk
User avatar

Emperor1
Users
Users
Status: Offline
User theme: Dark
Posts: 9
Joined: Dec 9th, '15, 13:11
    Ubuntu Chrome

Re: Collapse in 3.1.x

Post by Emperor1 »

Is there a ready extension?
User avatar

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6365
Joined: Jan 13th, '14, 20:45
    Windows 10 Firefox

Re: Collapse in 3.1.x

Post by dmzx »

Emperor1 wrote: Aug 22nd, '16, 09:05 Is there a ready extension?
What are you looking for the Collapse extension?
User avatar

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 499
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Collapse in 3.1.x

Post by clight77 »

Just marking this for sidebar use
User avatar

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 499
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Collapse in 3.1.x

Post by clight77 »

Will this work in phpbb 3.2?