vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Scrollable smilies (https://vborg.vbsupport.ru/showthread.php?t=52952)

FASherman 05-14-2003 05:29 PM

Scrollable smilies
 
1 Attachment(s)
I had just finished installing the post icon dropbox hack and read all of the requests for something similar for smilies. I don't like the "get more" function, because I have to turn off pop-up protection to make it work.

So how do you display 100+ smilies in a manageable way?

Here's the answer.

****This is personal preference - feel free to experiement *****
1. In ACP, set 'Clickable Smilies per Row' to 6
2. Set 'Clickable Smilies Total' to a ridiculously large number like 999
************************************************** *

Edit vbcode_smilies and replace the entire contents with:

Code:

<table align="center" border="0" cellpadding="0" cellspacing="0" style="table-layout: fixed; width: 242; height:300; overflow: scroll;">
  <tr>
    <td style="font-family: arial; font-size: 12px; border: 1px inset" align="middle" bgColor="#dae9ec">
    <font class="sf" face="verdana,arial,helvetica" size="1"><b>Smilies</b></font></td>
  </tr>
  <tr height="242">
    <td width="242" height="300">
    <div style="OVERFLOW: scroll; WIDTH: 242px; HEIGHT: 300px">

<table cellpadding="3" cellspacing="1" border="0" align="center" bgcolor="#13486D">

$smiliebits

</table>


    </td>
    </div>
  </tr>
$vbcode_smilies_getmore
</table>

Here's the obligatory screen shot

Rose 05-14-2003 05:30 PM

Pretty nifty trick! :D

mlevenson 05-14-2003 11:12 PM

hey I like it installed

filburt1 05-14-2003 11:16 PM

Yes, for once a decent use for an iframe :)

Kars10 05-15-2003 07:35 AM

Cool Trick!
But won?t work for me. The i-frame loads but no content?
Something wrong with your code? :confused:

Thanks
Kars

corsacrazy 05-15-2003 07:37 AM

i frames dont werk on all browsers :(

MindTrix 05-15-2003 06:45 PM

Super Super Super Sweeeeeeet

Dean C 05-16-2003 05:49 AM

Yea pretty nifty :)

- miSt

Tony G 05-16-2003 12:36 PM

Indeed. Nice work.

FASherman 05-17-2003 05:06 PM

Here's an update. Replace vbcode_smiles with:

Code:

<table border="0" align="center" bgcolor="{firstaltcolor}" style="table-layout: fixed; WIDTH: 250px;">   
  <tr>
    <td align="center" bgColor="{secondaltcolor}">
    <smallfont><b>Smilies</b></smallfont></td>
  </tr>
</table>

<div style="width: 250px; height:320px; overflow: auto;">
<table border="0" align="center" bgcolor="{firstaltcolor}" style="table-layout: fixed; WIDTH: 250px; HEIGHT: 310px; OVERFLOW: scroll">   
$smiliebits
</table>
</div>

That should fix the problem for those who had no content.


All times are GMT. The time now is 06:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01152 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete