TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 488
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 90
  • Total: 90

Having trouble setting default profile settings...

Started by lextalionis, October 23, 2009, 08:20:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lextalionis

Right now all new members, moderators, even admins. have to manually check the quick reply in their profile.  I want to turn this on for all accounts by default.

Link to my site: http://www.motleypixel.com
SMF version: SMF ver. 1.1.9
TP version: TP ver. 1.0 beta 4
Theme name and version: Black Rain
Browser Name and Version: IE 7.0.5730.10
Mods installed: TPReviews, iFrame, YouTube, Ads Management (all current for SMF 1.1.9)
Related Error messages:  Can't turn on quick-reply for all accounts by default.

Going to Themes and Layout Settings, Overall forum default is Black Rain and the when I drop-down the Reset everyone to: and select Black Rain and click Save it doesn't enable this on all accounts.

Any ideas?

Thanks,
Roy

G6Cad


lextalionis

Okay thanks I'll ask them, but it's been answered and I followed procedure and it's not working.  It's either something quirky with the theme and/or TP and/or user error.

Thanks,
Roy

mc

First question, does Black Rain have a quick reply option?
(I'm guessing it does, but best to check the obvious first!)

I'm guessing that Quick Reply was not originally set to show by default for the theme, which means that all the users would of been set for it not to show, and that setting set in {dbpefix}themes (it stores settings that are specific to users, and themes, along with the default theme options)
Only way I can think to change that, would be to alter all the settings within {dbprefix}themes for individual users on that theme, so it is set to show.

lextalionis

Yes it has the setting in the user's profile, look and layout preferences.

So I need to build a mysql query to insert/update the right default theme option for quick reply?  Not really a problem if I knew what to change.

Thanks for the help.
Roy

mc

Can you access your db via phpmyadmin (or similar)?

If you look at the themes table, you'll see it has 4 fields - ID_MEMBER, ID_THEME, variable, and value.

Anything with ID_MEMBER set as 0, is the default settings (this is where default theme options are stored).
Then anything with an ID_MEMBER value of anything other than 0, is specific to that user id, and overides the default values.

You'd need to find out what number your ID_THEME is for Black Rain (either via the theme changing links, or by filtering the 'variable' field to only show 'name' and finding what the ID_THEME is for Black Rain).
Then find what 'variable' name is used to store whether Quick Reply should be shown or not.

Once you've got that info, the required SQL update statement shouldn't be too hard to build.
You can either update all existing records to set it to show, or remove all existing records, so it then displays it as default (provided you've already altered the default so that it shows).

Other option, is you edit the theme, so that the quick reply always shows (ie. remove the settings check)

lextalionis

Yes I have phpmyadmin access and am familiar with it, but isn't your last statement "Other option, is you edit the theme, so that the quick reply always shows (ie. remove the settings check)" a more permanent option?

Thanks,
Roy

mc

Editting the theme, is always a more permanent option.
It all depends on if you need the ability for users to select whether quick reply is shown or not...

lextalionis

Okay thank you for the help...I feel quick reply for default w/o option to turn if off is better than not having it on as some may never know to enable it.

Thanks,
Roy

IchBin

You can reset those options in each theme under the theme settings for SMF. THere's no need to run a SQL query to change that. Unless I read you guys wrong.. Got a bit confused. :(

This website is proudly hosted on Crocweb Cloud Website Hosting.