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>";
}

}

Cybertims 05-29-2006 08:24 AM

Quote:

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


That sorted it......well done !!

Cheers.

Jafo232 05-30-2006 03:08 PM

Quote:

Originally Posted by Silver_Seagull
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]

If it works for you, sure, no problem. My server requires it to be 777 due to an ownership setting.

squishi 06-01-2006 06:27 PM

Finally I found this thread again.

Installing this mod didn't work out for me, and after uninstalling I now have the following problem in the user group permissions:

There is an extra row without description that only allows to choose yes/no. The user permissions can no longer be saved. When I try to do this I get

Code:

Database error in vBulletin 3.5.4:

Invalid SQL:
UPDATE vb_usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        `title` = 'Administrators',
        `description` = '',
        `usertitle` = 'Administrator',
        `opentag` = '',
        `closetag` = '',
        `passwordexpires` = '180',
        `passwordhistory` = '360',
        `forumpermissions` = '1048575',
        `attachlimit` = '0',
        `pmquota` = '50',
        `pmpermissions` = '3',
        `pmsendmax` = '5',
        `calendarpermissions` = '63',
        `wolpermissions` = '31',
        `adminpermissions` = '3',
        `genericpermissions` = '205520831',
        `genericoptions` = '31',
        `profilepicmaxwidth` = '900',
        `profilepicmaxheight` = '900',
        `profilepicmaxsize` = '265535',
        `avatarmaxwidth` = '150',
        `avatarmaxheight` = '150',
        `avatarmaxsize` = '50000',
        `usmilie_permissions` = '0',
        `allowhtmlpermissions` = '0',
        `toplistpermissions` = '31'
WHERE usergroupid=6;

MySQL Error  : Unknown column 'usmilie_permissions' in 'field list'
Error Number : 1054
Date        : Thursday, June 1st 2006 @ 12:25:23 PM
Script      : http://mydomain/forum/cpadmin/usergroup.php

Please help me to properly uninstall this mod. :surprised:

Jafo232 06-01-2006 07:10 PM

You need to remove the bitfield_user_smiley.xml file from the /includes/xml directory as you would with most mods that modify user groups. :)

squishi 06-02-2006 11:11 AM

Oh? Now that was solved easily. Thank you very much Jafo! :up:

Jafo232 06-14-2006 03:29 PM

Quote:

Originally Posted by squishi
Oh? Now that was solved easily. Thank you very much Jafo! :up:

I live to serve. :bunny:

basskiller 06-21-2006 05:31 PM

Install the product file. where?
thanks

Jafo232 06-21-2006 05:33 PM

Quote:

Originally Posted by basskiller
Install the product file. where?
thanks

Sigh....

Admin CP -> Plugin System -> Manage Products -> Add/Import Product

basskiller 06-21-2006 06:05 PM

Quote:

Originally Posted by Jafo232
Sigh....

Admin CP -> Plugin System -> Manage Products -> Add/Import Product

sorry to have disturbed you. I wonder if your teachers used this same attitude with you when you didn't fully understand something... Yes I found this, but nothing is showing up in the usergroups to click yes or modify to allow any specific usergroup access to this hack.


I do think this is a pretty cool hack. But the snide sarcasism is really not needed. Most of these hacks are put into simplified laymens terms to where it's not assumed that we know everything that you do or where. again.. sorry to bug you with what seems to be such trivial matters.
Yea.. I know just uninstall right?

Like the other guy VaaKo, when all that had to be said if others like a particular smilie that someone else posted. They could just download it and then upload to their group. Problem solved

Jafo232 06-21-2006 06:21 PM

Quote:

Originally Posted by basskiller
sorry to have disturbed you. I wonder if your teachers used this same attitude with you when you didn't fully understand something... Yes I found this, but nothing is showing up in the usergroups to click yes or modify to allow any specific usergroup access to this hack.


I do think this is a pretty cool hack. But the snide sarcasism is really not needed. Most of these hacks are put into simplified laymens terms to where it's not assumed that we know everything that you do or where. again.. sorry to bug you with what seems to be such trivial matters.
Yea.. I know just uninstall right?

Like the other guy VaaKo, when all that had to be said if others like a particular smilie that someone else posted. They could just download it and then upload to their group. Problem solved


First of all, why would you install any modification if you do not even understand what or where the plugin/product system is? That is just baffling.

Second, did you UPLOAD the files as per the readme?

Quote:

Upload all the files and folders in the upload folder.
Or must I spell this out too? OK:

Unzip the zip file I gave you with a program called winzip. This program can be found at: http://www.winzip.com/. Just use your mouse with your favorite hand and click the underlined characters to the left.

(If you are unfamiliar on how to use a mouse, TYPE this in your browse address bar: http://www.lawrencegoetz.com/programs/mousepractice/ )

From there, click the download link and follow their directions to download and install winzip.

Once you find the folder where you unzipped the zip file, go to the upload folder, in otherwords OPEN THE upload folder. ALL OF THESE contents you must upload to the same folder where your Vbulletins index.php file is. That INCLUDES the folders, AND the files. This does NOT include the folder upload. You upload FROM the upload folder.

Magically, when you go to edit usergroups, it will rebuild the bitfields! Yay :banana: !!!

Now if you need any further assistance, please, contact me, I enjoy explaining the trivial.

TTFN, I must get back to this pile of code I write for free to further benefit the Vbulletin community who in general are at least thankful for it.....

basskiller 06-22-2006 01:44 PM

your an ass and your last post just proves it ...... winzip and mouse..Lmao what are you about 13? BTW with all those bullcrap instructions, Why not offer your expertise on FTP uploads like most use???

and this isn't my first hack, it's just your lame ass instructions. While most coders might understand exactly where your coming from, others may not.. hence the breakdown I'm experiancing with your instructions.

I've seen hacks where the folders to be uploaded go into the root folder, some in other specific folders..Your just sez to upload it?? Ok...

do I know how the workings of every hack.. hell no that's why were's here. If I could write these I would need arrogant ass like yourself, you and you alone.

Your instructions are not that clear. atleast not as clear any all the other excellent coders on this site.

They spell instructions out to us knowing full well that we are not as well versed as they.


BTW I am thankful to all the coders that actually do help and not attempt to degrade people because they know how to do something others don't.
That shows me how excellent these guys are and how small you are.
It's quite sad to see such an intelligent mind have such a lame ass attitude.

But thanks for the hack. for that I'm very grateful for it, for the help.. no so

Jafo232 06-22-2006 01:48 PM

Quote:

Originally Posted by basskiller
your an ass and your last post just proves it ...... winzip and mouse..Lmao what are you about 13? BTW with all those bullcrap instructions, Why not offer your expertise on FTP uploads like most use???

and this isn't my first hack, it's just your lame ass instructions. While most coders might understand exactly where your coming from, others may not.. hence the breakdown I'm experiancing with your instructions.

I've seen hacks where the folders to be uploaded go into the root folder, some in other specific folders..Your just sez to upload it?? Ok...

do I know how the workings of every hack.. hell no that's why were's here. If I could write these I would need arrogant ass like yourself, you and you alone.


Your instructions are not that clear. atleast not as clear any all the other excellent coders on this site.

They spell instructions out to us knowing full well that we are not as well versed as they.


BTW I am thankful to all the coders that actually do help and not attempt to degrade people because they know how to do something others don't.
That shows me how excellent these guys are and how small you are.
It's quite sad to see such an intelligent mind have such a lame ass attitude.

But thanks for the hack. for that I'm very grateful, for the help.. no so

The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men.

Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of the darkness. For he is truly his brother's keeper and the finder of lost children.

And I will strike down upon thee with great vengeance and furious anger those who attempt to poison and destroy my brothers. And you will know I am the Lord when I lay my vengeance upon you.

basskiller 06-22-2006 01:52 PM

Pulp fiction.. pretty good movie do you have a clue to what it means?
Ezekiel 25:17

hgb 06-22-2006 06:21 PM

thx for product

install flawless

Silver_Seagull 06-23-2006 05:26 PM

Hey there, I tried uninstalling this product after a problem with user's pictures being referred to the old domain adter a DNS change. However the product is gone from the list, but apparently the DB changes remain- and I can't seem to reinstall or 'upgrade' the product due to them.
Code:

Database error in vBulletin 3.5.4:

Invalid SQL:
ALTER TABLE usergroup ADD usmilie_permissions INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL;

MySQL Error  : Duplicate column name 'usmilie_permissions'
Error Number : 1060
Date        : Friday, June 23rd 2006 @ 11:24:18 AM
Script      : http://forums.mysite.com/admincp/plugin.php
Referrer    : http://forums.mysite.com/admincp/plugin.php?do=productadd
IP Address  : xxx.xxx.xxx.xxx
Username    : Silver_Seagull
Classname    : vb_database

Is there a manual uninstall method I can use? [aside from the FTP stuff- I've taken out the .php and bitfield XML files as well as the pics folder]

Thanks.

Jafo232 06-24-2006 02:35 AM

You will have to manually delete the usmilie_permissions column from your usergroup table.

sinaluna 07-26-2006 01:40 AM

Is there any way to base the Settings on User Group?

Thanks!

Jafo232 07-26-2006 01:50 AM

Of course, it is built in. You can select what usergroups can have custom smilies.

sinaluna 07-30-2006 01:58 AM

Sorry, I didn't explain myself well.

I would like different usergroups to have different settings. For example, Mods might be able to upload 20 smilies while Registered users could only upload 10.

sinaluna 08-11-2006 05:44 AM

Hey Jafo,

There is a problem in the product XML file. The usmilies_invalid_smiley_name and usmilies_smiley_limit phrases are not getting created. There are extra characters in the CDATA lines, causing their data being stuffed into the usmilies_deleted phrase.

Ill try to figure out a way to patch existing installs, so we dont have to uninstall and re-install a fixed XML file. If I figure it out, Ill post here.

precharge 08-13-2006 01:17 AM

Can I suggest a few things?

Make it so rather than liking directly to the image on a post, link to a script that checks if the smilie is active, and checks it on load, so that if someone deletes a smilie, you don't have broken images.

Good idea on the script ;)

AcidX 08-15-2006 05:39 PM

Hi there, can anyone assist me?

After Installing the product I'm trying to set the usergroup permissions, but after Saving I keep getting this error:

"Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 639"

Ofcourse, the custom user smilies settings are not saved.
What seems to be the problem? Has anyone got an idea?

I'm using vBulletin 3.5.0. Does it have to do something with the version?

CP, 08-19-2006 11:09 AM

Hi there is an issue here, if people do not name their custom smileys it still uploads, but the user cannot see it nor use it and i cannot delete it once its up.

Can you in anyway make the custom smiley name mandatory? So the smiley will not upload without the user naming it?

Thanks!

AcidX 08-20-2006 05:36 PM

Quote:

Originally Posted by AcidX
Hi there, can anyone assist me?

After Installing the product I'm trying to set the usergroup permissions, but after Saving I keep getting this error:

"Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 639"

Ofcourse, the custom user smilies settings are not saved.
What seems to be the problem? Has anyone got an idea?

I'm using vBulletin 3.5.0. Does it have to do something with the version?

Help anyone?

gameslover 08-20-2006 11:02 PM

Quote:

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

Hello,

I applied your fix but it seems only working with the advanced editor, not with the standard... actually, in the pop-up the custom smileys are shown very well but when you click on them, nothing appears in the text box... however if you use advanced mode, when you click on the smileys, they are correctly inserted in the text editor...

Is there a way to fix that ?

Thanks you very much :)

precharge 08-27-2006 01:53 AM

I had to uninstall the script over all the bugs but ever since I did, I can't alter the user groups at all, keep getting

MySQL Error : Unknown column 'usmilie_permissions' in 'field list'
Error Number : 1054

tandy 08-29-2006 02:49 PM

I installed following the readme file, nothing seem to work.
I uninstalled and there came my problems.

Usergroup database errors, vbpager database errors, even the activation window in admincp still there without text, just the 2 buttons, yes or no.

What do we have to do to make a clean uninstall of that thing and why do you put that on your uninstall code.
query_write("DROP TABLE IF EXISTS " . TABLE_PREFIX . "pagerreceipt");

CP, 08-30-2006 12:04 PM

Quote:

Originally Posted by CP,
Hi there is an issue here, if people do not name their custom smileys it still uploads, but the user cannot see it nor use it and i cannot delete it once its up.

Can you in anyway make the custom smiley name mandatory? So the smiley will not upload without the user naming it?

Thanks!

anybody?????

RVM 06-11-2007 07:00 PM

I have installed everything but its not showing the user smilie permission option in usergroups. :confused:

RVM 06-11-2007 09:58 PM

I can see that it installed, and I was able to go into the options and edit the size and amount of smilies. Why is it not showing up in usergroups? :confused:


All times are GMT. The time now is 06:09 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.01267 seconds
  • Memory Usage 1,843KB
  • 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
  • (13)bbcode_quote_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
  • (40)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