Switching themes... anyone know the variable

Forum
Last Post
Threads / Messages

mythic

Member
Member
Joined
Sep 9, 2011
Messages
6
Points
0
Mysidian Dollar
0
Okay, I have been working on getting the template switching mechanism back on track but I don't know what the value is for the mysql statement.

The problem lies within the mysql update code:

Code:
$query = "UPDATE {$prefix}settings SET value='$themeurl' WHERE name='themeurl'";

I know that the correct code for changing it is this:looks like this

Code:
$query = "UPDATE {$prefix}settings SET value='$themeurl' WHERE name='theme'";
(this code changes the mysql value to a blank field)

One can replace '$themurl' <--- the problem I am running into with whatever template name one wants to lock on. Or change it in mysql.

So if anyone can tell me what the variable is that needs to go there. PLEASE HELP FIX THIS.

Thank you all for reading this.

Edit: After a few moments, I realized that I made this sound like it is the only problem, which it may not be. It may very well be the only problem or one of a few that are preventing this from working. Perhaps the variable is never defined.
 
Last edited:

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top