Go Back   Electric Mole Forums > Community Center > Tutorials
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 2007.12.30, 06:39 PM   #1
zarya
Senior Member
 
zarya's Avatar
 
Join Date: Dec 2006
Location: Montréal
Posts: 489
zarya is an asset to this community
Default 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.
zarya is offline   Reply With Quote
Old 2007.12.30, 09:32 PM   #2
Glathannus
True Final Boss
 
Glathannus's Avatar
 
Join Date: Feb 2006
Location: United States
Posts: 2,423
Glathannus knows what you did last summerGlathannus knows what you did last summerGlathannus knows what you did last summer
Default

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.
__________________
You know Tokyo Jihen is a supergroup, when you can't blame most of the members for wanting to pursue other projects.
Glathannus is offline   Reply With Quote
Old 2008.01.03, 09:25 PM   #3
Jonny
Senior Member
 
Jonny's Avatar
 
Join Date: Apr 2005
Location: 小平事変
Posts: 1,538
Jonny puts considerable thought into their posts
Default

What does it mean?

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

:-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 is offline   Reply With Quote
Old 2008.01.03, 10:37 PM   #4
Jonny
Senior Member
 
Jonny's Avatar
 
Join Date: Apr 2005
Location: 小平事変
Posts: 1,538
Jonny puts considerable thought into their posts
Default

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
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:
if ($_REQUEST['do'] == 'newthread')

And add
$vbulletin->GPC['disablesmilies'] = ($vbulletin->userinfo['field5'] == 'Yes' 0); 
just below the opening brace.

The same goes for newreply.php. Find the lines saying:
if ($_REQUEST['do'] == 'newreply')

And add
$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.
Jonny is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:53 AM.