I'm gonna have to say it's bugging again.
A member of mine cant save the background images (they've purchased permissions to customize their profile and change the background images)... Any idea as to what might be up with this?
Aha! FOUND IT! :P
I do believe I still have to comment out that THIS_SCRIPT != 'ajax'... But what seems to be the biggest problem is this:
When having bought the proper permissions, the user can in fact design his layout and save the changes. Upon reloading of the profile the changes are gone...
Nooo.. in ajax.php this is executed when the user requests to save the css:
if ($_REQUEST['do'] == 'saveusertheme' )
{
//class db_Assertor needs to be initialized.
vB_dB_Assertor::init(vB::$vbulletin->db, vB::$vbulletin->userinfo);
echo...
I've made it possible for my members to purchase the ability to customize their profiles through the shop. When the proper items have been bought it is in fact possible for them to change their css values, they get a response saying the changes were saved, but in fact they're not. So I checked...
admin
ajax
box
bug
button
cache
caching
color
colors
comment
customization
delete
design
failed
font
image
images
inbox
instance
layout
link
member
members
module
more
new
only
permissions
php
post
pro
profile
query
saving
settings
shop
size
ten
text
thread
update
user
vbshop
vbulletin
I checked the hooks of all my plugins and only yours uses the cache_permission.. so it's not something else that is messing with it. :(
I'm running version 1.2 i believe of vbShop.. isn't it the newest?
but did you try it from a non-admin account xD?
.. anyway I'll see if there's another plugin using the cache_permission hook that'll mess with your script :(
There place that these do not work is the private messages..
My users has bought 500 pm inbox space but whenever someone with the "Ignore PM Quota" permission tries to PM them they get told they cant.. I just tested my self and it's true, my members aren't lying to me xD
When you're testing...
When are the new permissions set and calculated? Then I'll look through the other mods I have and see if I can find something.. But i seriously doubt it as I use very few mods :)
DB Error..
I receive quite a bit of this..
Database error in vBulletin 4.0.5:
Invalid SQL:
UPDATE user AS vbcreditst_1 SET vbcreditst_1.credits = WHERE vbcreditst_1.userid = 41277;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server...