Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Multisite »

[SOLVED] different settings files in database?


  #1  
Old Jun 25, 2014, 06:00 AM
ericnl
 
21 posts · Feb 2014
hello,

I'm not sure if I'm in the right part of the forum, but it seems the most appropriate.

since Atahualpa does not have a mobile setting, I decided to use a plugin that redirects mobile users to a different theme within my wordpress setup. for this theme I duplicated the Atahualpa theme that I had just configured, called it Atamobile, and started editing the new theme to make it more functional on mobile devices. but when switching back to the 'normal' Ata theme, I saw that it had taken all my new edits to the old theme as well!!!!

I'm guessing that the theme options are somewhere stored in the database instead of the theme folders, so this is my question: how can I set up a different theme options file for my mobile theme?
is there a file I can edit so it would use another database entry for each setup of the theme?

thanks,
Eric.
  #2  
Old Jun 25, 2014, 06:40 AM
juggledad's Avatar
juggledad
 
23,560 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Atahualpa uses one row in the wp-options table to store all it's settings, the 'bfa_ata4' row.
If you want to change this, there are 34 places in the code you will need to change
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jun 25, 2014, 06:42 AM
ericnl
 
21 posts · Feb 2014
34 places is ok. I will only change those in the mobile version.
are they spread out in 34 different files, or in less files on multiple lines?

thanks
  #4  
Old Jun 25, 2014, 06:59 AM
ericnl
 
21 posts · Feb 2014
I'm trying to locate them all through Cyberduck, I'll let you know if I can't find all 34 of them...
  #5  
Old Jun 25, 2014, 07:17 AM
ericnl
 
21 posts · Feb 2014
ok, I found 34, replaced them with 'bfa_ata4m'.
I guess that I need to click "Save Changes" on most or all of the Atahualpa Options Tabs, which I'll do now, if everything works like I hope it will I'll let you know so you can set this thread to SOLVED.

bfa_ata4 locations that I found:

01 in upload.php
10 in functions.php
01 in download.php
09 in functions > bfa_theme_options.php
07 in functions > bfa_get_options.php
01 in functions > bfa_css_admin_head.php
03 in functions > bfa_ata_add_admin.php
03 in options > ata_admin.js
______________________________
34 in total
  #6  
Old Jun 25, 2014, 08:16 AM
ericnl
 
21 posts · Feb 2014
right, so that wasn't as easy as I hoped it would be. :/
I ended up just copy/pasting all the settings by hand, constantly switching from the normal to the mobile theme and back again, but in the end it was worth it because it works!!!
(I could have tried duplicating and renaming the database file before I edited the theme options to reflect the new database line)

in case anybody else wants to do this: the plugin I used is called 'Any Mobile Theme Switcher'.

but remember: if you're going to do this, you are going to have to update the 34 mentions of the database every single time you update the Atahualpa theme...

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Database Restore - Atahualpa Settings gone (total panic...) Fux Atahualpa 3 Wordpress theme 15 Nov 2, 2012 09:28 AM
How Do I Restore Just the Settings From Database crogers32 Header configuration & styling 11 Aug 4, 2011 10:22 AM
Database restored = all settings gone Garwen New Versions, & Updating 13 Jun 16, 2011 12:36 PM


All times are GMT -6. The time now is 07:27 PM.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.