Support » Plugin: WPPizza - A Restaurant Plugin » change back end WP Pizza name?

Viewing 15 replies - 16 through 30 (of 36 total)
  • Thread Starter nostahl

    (@nostahl)

    hmm 😛 what can I hack around in the db to get things back? this is a great learning experience before the shop goes live lol

    Plugin Author ollybach

    (@ollybach)

    > this is a great learning experience..

    as in MAKE BACKUPS ? :p

    anyway, have you set the coding back to what it was in the first place ?

    Plugin Author ollybach

    (@ollybach)

    in fact, my second suggestion – hardcoding the widget line – doesn’t really make any difference and is in fact a rather irrelevant idea on second thoughts.

    i actually just changed that “define” line on one of my local installs ad its just fine.

    have you look under “access rights” to ensure the relevant user has – well – access to the pages ?

    Thread Starter nostahl

    (@nostahl)

    I did reset everything back to what it was before.

    it is only showing me all menu items and add new but none of the other plugin admin pages..

    how can I check the access rights from phpmyadmin for administrator user.

    Plugin Author ollybach

    (@ollybach)

    admittedly , i have not tested that access rights thing thoroughly in multisite installs

    all in all (athough without any guarantees at this stage) changing just

    define(‘WPPIZZA_NAME’, ‘WPPizza’);

    as mentioned above should work fine. If you are loosing access to pages ,its probably got something to do with the access rights

    furthermore, i do not think that your DB was messed up by what we did above (with or without the ‘WP_Widget’ change )

    i just think your access rights are wrong, which you should be able to rectify by ticking some boxes

    (again, no guarantees at the moment as it has not been tested or fully verified)

    Thread Starter nostahl

    (@nostahl)

    how do I get to the access rights page, I tried logging in as administrator and only pages it gives me is all menu items or add new item, all the rest are not there- also if I try to manually type in the url it gives me permissions denied etc

    so there’s gotta be something saved in the db thats not letting me do this some how?

    Plugin Author ollybach

    (@ollybach)

    all access rights are linked to and used like native user roles and capabilities (i.e the way wordpress handles user roles….)
    there’s no extra entry in the db option table you could edit/change/delete

    — none of the below ideas have been tested and might screw up things entirely !!!!—–

    a) get yourself one of the user role management plugins and see if you can sort out the roles/capabilities that way if you cannot get access to any of them anymore from anywhere as admin.
    the capabilities you are looking for are these

    $wppizzaRoleCap[]='wppizza_cap_settings';
    	$wppizzaRoleCap[]='wppizza_cap_order_settings';
    	$wppizzaRoleCap[]='wppizza_cap_gateways';
    	$wppizzaRoleCap[]='wppizza_cap_order_form_settings';
    	$wppizzaRoleCap[]='wppizza_cap_opening_times';
    	$wppizzaRoleCap[]='wppizza_cap_meal_sizes';
    	$wppizzaRoleCap[]='wppizza_cap_additives';
    	$wppizzaRoleCap[]='wppizza_cap_layout';
    	$wppizzaRoleCap[]='wppizza_cap_localization';
    	$wppizzaRoleCap[]='wppizza_cap_order_history';
    	$wppizzaRoleCap[]='wppizza_cap_access';
    	$wppizzaRoleCap[]='wppizza_cap_tools';
    	$wppizzaRoleCap[]='wppizza_cap_delete_order';

    b) delete ‘wppizza’ option from the option table of the db that relates to that particular site in your multisite setup. leave all other options alone. when you then go to the admin section of that sub-site, it will re-install the plugin , so you will have to re-set your settings again and delete all the default added items and pages , but it should not delete any items/categories etc you have already entered, it will just add to them

    also, the user that is doing it – i.e admin hopefully – will get all the above capabilities as default….

    WARNIING WARNING WARNING :: BACKUP YOUR STUFF FIRST THESE ARE JUST SOME IDEAS THAT MIGHT WORK. THEY HAVE NOT BEEN TESTED

    did I say : WARNING ?!

    Plugin Author ollybach

    (@ollybach)

    > also if I try to manually type in the url it gives me permissions denied etc

    well, yeah, would be a pretty crappy access right implementation if you can just type it in , wouldnt it 🙂

    Thread Starter nostahl

    (@nostahl)

    also on the front end the short codes are displaying now for the menu instead of processing it.

    Plugin Author ollybach

    (@ollybach)

    btw, ideas a) and b) are seperate ideas, NOT do a) and then b) . just to be clear

    Plugin Author ollybach

    (@ollybach)

    >also on the front end the short codes are displaying now for the menu instead of processing it.

    that – i would think – is totally unrelated.
    there’s something else wrong here

    i have a multisite setup on wp-pizza.com and it just does what it’s supposed to do (all the demos there are multisite-sites)

    Plugin Author ollybach

    (@ollybach)

    and every sub-site has the access rights option as intended……
    i’m beginning to think something else is screwed up as the namechange we did at the beginning of this thread cant really have any impact on any of that

    Thread Starter nostahl

    (@nostahl)

    I was just looking back, i did the name and slug lines

    Thread Starter nostahl

    (@nostahl)

    i have the user role editor plugin installed and checked admin user and he does intact have all the wppizza options checked for him it says. hmmm

    Plugin Author ollybach

    (@ollybach)

    >i did the … slug lines

    you just cannot do that….

Viewing 15 replies - 16 through 30 (of 36 total)
  • The topic ‘change back end WP Pizza name?’ is closed to new replies.