SimplePortal

Customization => Custom Coding => Topic started by: AussieBill on July 27, 2011, 08:09:44 PM

Title: [ShoutBox] Increase size of smiley popup
Post by: AussieBill on July 27, 2011, 08:09:44 PM
For SP 2.3.3 and SMF 1.1 -> 2.0

Increase the size of the smiley popup window for the Shoutbox.

The popup can be a bit cramped if you have a lot of smilies, so we will change the window size from the default 480x220 pixels to 640x480 pixels.

Open ./Themes/default/scripts/portal.js

!!IMPORTANT!! The line we are going to edit appears in 2 places for different versions of SMF.

For SMF 1.1.x to SMF 2RC1.2
Find:
Code: [Select]
// This function is for SMF 1.1.x as well as SMF 2RC1.2 and below.Find (within that function):
Code: [Select]
this.oSmileyPopupWindow = window.open('', 'add_smileys', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes');Replace With:
Code: [Select]
this.oSmileyPopupWindow = window.open('', 'add_smileys', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=640,height=480,resizable=yes');

For SMF 2 RC2 and above
Find:
Code: [Select]
// This function is for SMF 2 RC2 and above.Find (within that function):
Code: [Select]
this.oSmileyPopupWindow = window.open('', 'add_smileys', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes');Replace With:
Code: [Select]
this.oSmileyPopupWindow = window.open('', 'add_smileys', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=640,height=480,resizable=yes');
Change 'width=640,height=480' to whatever suits.
SimplePortal 2.3.8 © 2008-2024, SimplePortal