Electric Mole Forums

Electric Mole Forums (https://forums.electricmole.net/index.php)
-   Tutorials (https://forums.electricmole.net/forumdisplay.php?f=9)
-   -   No smilies option (https://forums.electricmole.net/showthread.php?t=558)

zarya 2007.12.30 06:39 PM

No smilies option
 
Is there a way to put your settings so that the small box "Disable smilies in text" is checked by default?
I can't seem to find it.

Glathannus 2007.12.30 09:32 PM

I just did some testing around, and it seems we users can't have our own separate defaults on what we want to present to others with our posts. If we don't have more of these configurable defaults already, then it's something for me to suggest to the vBulletin developers - meanwhile we still get 'free' updates until the middle of March next year, whether or not the idea is put to use.

Jonny 2008.01.03 09:25 PM

What does it mean?

It's possible to just write a smily like this.

:-P
:P
:P


*Ok it seems that every post has its own setting to this. It should be pretty easy to make such an adjustment, since there are are custom profile field possibility in vbulletin. Then a hack when posting new threads to check that value.

Jonny 2008.01.03 10:37 PM

Ok I tried it and it works...

In the "User profile fields" area of admin panel, I added something that looks like this:
"Always "Disable smilies in text" Single-Selection Radio Buttons Editable, Hidden field5 "

In the "Options" box, I entered
Quote:

No
Yes
Then the user can select this setting in the profile fields. It will be null (No) by default.

Then in both newthread.php file, find the lines that says:
PHP Code:

if ($_REQUEST['do'] == 'newthread')


And add
PHP Code:

$vbulletin->GPC['disablesmilies'] = ($vbulletin->userinfo['field5'] == 'Yes' 0); 

just below the opening brace.

The same goes for newreply.php. Find the lines saying:
PHP Code:

if ($_REQUEST['do'] == 'newreply')


And add
PHP Code:

$vbulletin->GPC['disablesmilies'] = ($vbulletin->userinfo['field5'] == 'Yes' 0); 

just after the opening brace again.

Note that the "field5" should be the same as is given in the Admin panel for this profile field. The number can be different, so double check that.


All times are GMT -8. The time now is 03:45 PM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.