Detach Smileys 1.5 - SP1 This mod is used to bring a popup window for smilies so you can cut down on post page load time. This mod uses Add Smilies 2.3 to supply smiles for the popup. The mod has admin options including: popup height/width/whether or not there is a popup. In order to use this mod you need Add Smilies 2.3 installed! Thanks to Demon Slayer for the Description and Kickboy12 for testing :) Omario http://www.clickopedia.com Sources/Post.pl ~; ~; if ($detach ne 1){ $i=0; while($SmilieURL[$i]) { $yymain .= qq~document.write("$SmilieDescription[$i]$SmilieLinebreak[$i] ");~; $i++; } } $yymain .= qq~ } else { document.write("$txt{'215'}"); } //--> ~; if ($detach == 1){ $yymain .= qq~ More smilies ~; } $yymain .= qq~ Sources/AdminEdit.pl $color{'fadertext'} = $FORM{'fadertext'} || '#D4AD00'; $color{'hdetach'} = $FORM{'hdetach'} || '400'; $color{'wdetach'} = $FORM{'wdetach'} || '200'; \$color{'fadertext'} = "$color{'fadertext'}"; # Color of text in the NewsFader (news color) \$color{'hdetach'} = "$color{'hdetach'}"; \$color{'wdetach'} = "$color{'wdetach'}"; $txt{'389'} Height of Detachable Smilies Window Width of Detachable Smilies Window my @onoff = qw/ allowpics showyabbcbutt showbdescrip maintenance guestaccess insert_original enable_ubbc enable_news enable_guestposting enable_notification showlatestmember showrecentbar showmarkread showmodify showuserpic showusertext showgenderimage shownewsfader MenuType curposlinks profilebutton autolinkurls emailpassword RegAgree emailwelcome allow_hide_email usetempfile faketruncation emailnewpass/; push(@onoff, "detach"); my($snfchecked, $fls1, $fls2, $fls3, $utfchecked, $truncchecked, $mts1, $mts2, $mts3, $tsl6, $tsl5, $tsl4, $tsl3, $tsl2, $tsl1); my($dchecked); if ($maintenance) { $mainchecked = ' checked'; } if ($detach) { $dchecked = ' checked'; } $timeout = $FORM{'timeout'} || 5; $detach = $FORM{'detach'} || 1; $txt{'379'} Enable Detachable Smilies? ########## Feature Settings ########## \$detach = $detach; Sources/Smilies.pl $smiliever= "1.0"; sub SmiliePut { $headers .= "Content-type: text/html\n"; if( $yySetCookies ) { $headers .= $yySetCookies; } $headers .= "\n"; print $headers; print qq~ More Smilies! Click on the smilie you wish to insert into your message:

~; $i=0; while($SmilieURL[$i]) { print qq~$SmilieDescription[$i]$SmilieLinebreak[$i] ~; $i++; } print qq~ ~; exit; }
YaBB.pl elsif ($action eq 'smilies') { require "$sourcedir/Smilies.pl"; &SmiliePanel; } elsif ($action eq 'smilieput') { require "$sourcedir/Smilies.pl"; &SmiliePut; }