Previous Thread
Next Thread
Print Thread
Hop To
Joined: Nov 2008
Posts: 39
S
Newbie
Newbie
S Offline
Joined: Nov 2008
Posts: 39
Most of our users love the topic preview, but some are looking for a way to disable it. I added a javascript function to disable it for iOS and that works well. Some desktop users would like a setting in User Profile settings. I can probably come up with something but don't want to reinvent the wheel - is there already a way to do it?

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Easy to do if you have a spare custom profile field.
Sd has a mod on this.

http://sirdude.com/ubb-threads-user-selectable-tooltip-preferences

This feature will eventually become stock and not take away from the number of custom profile fields.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Nov 2008
Posts: 39
S
Newbie
Newbie
S Offline
Joined: Nov 2008
Posts: 39
Thanks for the link, that's helpful. That method did work, although there were a couple of things I didn't like about it - the setting appears on the profile preferences rather than display prefs page, and it isn't a radio button. I ended up adding an additional field to the User_Profile table (USER_TOPIC_PREVIEW), and made the appropriate changes on editdisplay.tpl, editdisplay.inc.php, changedisplay.inc.php, and postlist.inc.php

Hopefully I didn't miss anything but it seems to work well.

Andrew

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Well you never said.
But the beauty is you got it to work the way you desire.
Just bear in mind.
it is a mod and not supported here.
So when ready to upgrade you probably will need to add it back in.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 686 guests, and 131 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)