The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Any Way To Show Signatures In The Mobile Version of Our Website?

View previous topic View next topic Go down

In progress Any Way To Show Signatures In The Mobile Version of Our Website?

Post by Rukiafan on February 24th 2016, 8:37 pm

We'd like to make user's signatures visible in the mobile version of our website but hide any images in the signature if there are any in it. Can this be done?

@Ange Tuteur You're summoned once again! Very Happy

Rukiafan
Forumember

Posts : 276
Reputation : 9
Language : English

Back to top Go down

In progress Re: Any Way To Show Signatures In The Mobile Version of Our Website?

Post by Ange Tuteur on February 25th 2016, 11:30 am

Go to Display > Templates > Mobile > viewtopic_body

Find :
Code:
            {postrow.displayed.EDITED_MESSAGE}
         </div>

Replace by :
Code:
            {postrow.displayed.EDITED_MESSAGE}
         </div>
            <!-- BEGIN switch_signature -->
            <div class="signature_div sig_mobile" id="sig{postrow.displayed.U_POST_ID}">{postrow.displayed.SIGNATURE_NEW}</div>
            <!-- END switch_signature -->

Save and publish.

You can use this CSS to modify the mobile signatures :
Code:
.sig_mobile img {

}

add
Code:
display:none;
to hide them, or set a limit to their dimensions like this :
Code:
.sig_mobile img {
  max-width:100px;
  max-height:100px;
}

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Any Way To Show Signatures In The Mobile Version of Our Website?

Post by Rukiafan on February 25th 2016, 7:53 pm

@Ange Tuteur It worked for the most part, but the image hiding and image resizing CSS isn't working...scratch

Rukiafan
Forumember

Posts : 276
Reputation : 9
Language : English

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum