Swivelgames | PHPBB Support Forum wrote:
I was wondering if anyone could give me a basic idea on how to create a new script that will change the current users theme to a select theme when the script is executed.
I have no clue where to start, what files to look in, what queries to send out, more or less how to write to a MySQL DB.
Yes I am an extremely big n00b at working with SQL DB's, but thats why I am trying to learn now .
Please help me out if you can, and step me through this please
I have no clue where to start, what files to look in, what queries to send out, more or less how to write to a MySQL DB.
Yes I am an extremely big n00b at working with SQL DB's, but thats why I am trying to learn now .
Please help me out if you can, and step me through this please
Swivelgames | PHPBB Support Forum wrote:
Heres what I am trying to do...
I have two domains...
http://psp.domain.com
http://forum.domain.com
I have created a psp theme that works almost perfectly on the PSP, and I need it when people goto the psp.domain.com it will redirect them to forum.domain.com(already done) and change the theme to the psp theme for better navigation and what not.
I need an automatic script. I already know how to change it manually and restrict the board to one theme.
I have two domains...
http://psp.domain.com
http://forum.domain.com
I have created a psp theme that works almost perfectly on the PSP, and I need it when people goto the psp.domain.com it will redirect them to forum.domain.com(already done) and change the theme to the psp theme for better navigation and what not.
I need an automatic script. I already know how to change it manually and restrict the board to one theme.
Swivelgames | PHPBB Support Forum wrote:
I already know how to do that. What I need to do is...
The script is not outside of the board. psp.domain.com redirects to the script on forum.domain.com.
The file will not be outside the board, that was the last thing I had on my mind.
And there are plenty of different replies to that topic basicly telling me that I was a complete idiot and had no clue what the features were in phpbb. Swivelgames | PHPBB Support Forum wrote:
Heres what I need, a script that will edit the users profile and change there theme to the PSP theme automatically.
Lumpy Burgertushie wrote:
well, I don't know how that would be done , especially coming from out side the board via a link.
The script is not outside of the board. psp.domain.com redirects to the script on forum.domain.com.
The file will not be outside the board, that was the last thing I had on my mind.
Quote:
Just go to the admin panel and set your psp skin as the default style and select the option to over ride the users style, this way when they got to your forum it will automatically show the psp style
Quote:
you are aware that users can change their skin in their profiles, correct? And as an admin you can edit their profile yourself through the ACP? Do you need a script that will force ALL users to the same skin?
Good lord... I am hopeless getting help there. Anyone here able to help me out? Heres what I need...
A script that will edit the users profile and change there theme to the theme I want, and redirect to the index.php page, when the script is executed.