Limiting signatures

View previous topic View next topic Go down

Limiting signatures

Post by Ikerepc on Wed Jan 21, 2015 7:15 am

Today I will show you how you can limit signatures and add scrolling if signature is bigger.

Tutorial for PunBB

Go to:
AdminPanel -> Display -> Templates -> General -> viewtopic_body

Find this:
Code:
<div class="sig-content">
{postrow.displayed.SIGNATURE_NEW}
</div>

Replace that with:
Code:
<div class="sig-content">
<div style="height: 100px; overflow: auto;">
{postrow.displayed.SIGNATURE_NEW}
</div>
</div>

You can change height 100px to smaller or higher.



Tutorial for PhpBB2

Go to:
AdminPanel -> Display -> Templates -> General -> viewtopic_body

Find this:
Code:
<div class="signature_div">
 {postrow.displayed.SIGNATURE}
 </div>

Replace that with that with:
Code:
<div style="height: 100px; overflow: auto;"><div class="signature_div">
  {postrow.displayed.SIGNATURE}
  </div></div>

You can change height 100px to smaller or higher.


Tutorial for phpBB 3 & Invision

Find this:
Code:
<div class="signature_div" id="sig{postrow.displayed.U_POST_ID}">{postrow.displayed.SIGNATURE_NEW}</div>

Replace that with
Code:
<div class="signature_div" id="sig{postrow.displayed.U_POST_ID}"><div style="height: 100px; overflow: auto;">{postrow.displayed.SIGNATURE_NEW}</div></div>

You can change height 100px to smaller or higher.


Last edited by Ikerepc on Wed Jan 21, 2015 11:16 pm; edited 2 times in total
avatar
Ikerepc
Ikerepc (Forum owner)
Ikerepc (Forum owner)

Posts : 345
Pts : 480
Reputation : 19
Join date : 2014-12-10
Location : Croatia
Full

View user profile http://admins.forumotion.com

Back to top Go down

Re: Limiting signatures

Post by Ikerepc on Wed Jan 21, 2015 7:35 am

Added tutorials for phpBB 3 and phpBB 2 versions
avatar
Ikerepc
Ikerepc (Forum owner)
Ikerepc (Forum owner)

Posts : 345
Pts : 480
Reputation : 19
Join date : 2014-12-10
Location : Croatia
Full

View user profile http://admins.forumotion.com

Back to top Go down

Re: Limiting signatures

Post by Ikerepc on Wed Jan 21, 2015 11:17 pm

Invision added
avatar
Ikerepc
Ikerepc (Forum owner)
Ikerepc (Forum owner)

Posts : 345
Pts : 480
Reputation : 19
Join date : 2014-12-10
Location : Croatia
Full

View user profile http://admins.forumotion.com

Back to top Go down

Re: Limiting signatures

Post by The Flash on Sun Feb 22, 2015 2:01 am

Good tutorials! I will definitely implement these into my forum!
avatar
The Flash
ATF Member

Posts : 319
Pts : 187
Reputation : 10
Join date : 2015-02-12
Full

View user profile http://spamheaven.icyboards.net

Back to top Go down

Re: Limiting signatures

Post by brandon_g on Sun Feb 22, 2015 2:45 am

Well written tutorial. Smile

_________________
-Brandon

~Administrator
avatar
brandon_g
ATF Staff
ATF Staff

Posts : 628
Pts : 506
Reputation : 17
Join date : 2015-01-22
Location : USA
Full

View user profile http://broadcastingduo.forumotion.com

Back to top Go down

Re: Limiting signatures

Post by Sponsored content


Sponsored content


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