vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Custom User Smileys (https://vborg.vbsupport.ru/showthread.php?t=115993)

rex_b 05-19-2006 08:45 PM

nice hack, thanks

hotwheels 05-20-2006 06:30 PM

very nice job.........works perfectly.

Like suggested earlier, if you have alot of smilies, put $usmiliebits above $smiliebits that way it will be the first list your user's see......

Jafo232 05-21-2006 09:09 PM

Quote:

Originally Posted by Nachtfalke
Seems to be something wrong. I have translated the phrases into german, but still the english phrase "Custom milies" show up in the smilie popup.

Fixed this in the latest version (1.02). You should download the patch file for 1.02 and follow the directions in the file.

Jafo232 05-22-2006 02:38 PM

Minor Update:

Adjusted template edit in readme to put the $usmiliebits above OR below $smiliebits.

Jafo232 05-25-2006 10:11 PM

Another edit: Removed this out of BETA. Has been extensively tested on three forums that I administer.

Happy smiling!

Silver_Seagull 05-26-2006 05:53 PM

I have a question about the file permissions and security.

Would CHMOD 766 [Owner: r/w/e, Group: r/w, Public: r/w] be good enough to use? I don't want an exploit-area open on the server [execute a malicious script, for example]

akanevsky 05-26-2006 06:40 PM

Useful mod, will probably install, but few suggestions:
1. Would you please format your code to make it more readable?
2. First bit should have a value of 1, not 2.

Cybertims 05-27-2006 08:09 AM

Why does it show your uploaded smilie in two columns in the smilie popup, and only the left one is clickable?

Each smilie I upload is shown twice in the popup window...anyone else getting this?

Cheers.

sinaluna 05-27-2006 07:19 PM

I get this also, though both of mine are clickable. The official screen shots show it as well.

sinaluna 05-28-2006 11:36 PM

OK, I think I have it figured. In the User Smilies Popup Hook replace the code with this:


Quote:

$pics = unserialize($vbulletin->userinfo['usmilies']);
if (!empty($pics)) {

$usmiliebits = "<tr valign=\"top\"><td class=\"tcat\" colspan=4>$vbphrase[usmilies_custom_smilies]</td></tr>";

$num = 0;
foreach ($pics as $key => $value) {

$num++;

if (($num % 2) == 1) {
$usmiliebits .= "<tr valign=\"top\">";
}

$usmiliebits .= "<td class=\"alt1\"><img src=\"" . $vbulletin->options[bburl] . "/user_pics/$value\" id=\"" . $vbulletin->options[bburl] . "/user_pics/$value\" alt=\"\" title=\"$key\" /></td><td class=\"alt1\">$key</td>";

if (($num % 2) == 0) {
$usmiliebits .= "</tr>";
}

}
if (($num % 2) == 1) {
$usmiliebits .= "<td class=\"alt1\">&nbsp;</td><td class=\"alt1\">&nbsp;</td></tr>";
}

}


All times are GMT. The time now is 04:58 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.01113 seconds
  • Memory Usage 1,736KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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