![]() |
Making Login Not Required Hello, Is there a way to make it so that the user doesn't have to be registered to post photos to my gallery? I'm trying to set the permissions to allow uploads for anonymous users but I get this error after inputing a description at the final step of the upload process: Database error! Please report to System Administrator. INSERT INTO pp_photos (id,user,userid,cat,date,title,description,keywords,bigimage,width,height,filesize,medwidth,medheight,medsize,approved,lastpost, watermarked,allowprint,extra1,extra2,extra3,extra4,extra5,extra6,ipaddress) values(NULL,'', , 511, 1115313513, 'striper', 'Look at the size of this fish!', '', 'striper.jpg', 640, 480, 36116, 600, 450, 36344, 1, 1115313513, 'no','no','','','','','','','209.33.214.146') Any idea what is going on and how do fix it? THANKS Jeff |
What version of Photopost you using? Unregistered users can upload if you allow it. What integration? |
|
Interesting. I tried this on another phpbb site and have no issue. I will do more testing but I dont understand why your userid and username are empty in the query to insert the name This code is right in the phpbb2 integration file and is standard in every integration we use. If a user is a guest or not logged in $gologin=0. There is the code in the function authenticate which is used in every file basically. if ( $gologin == 1 ) { $User['username'] = $Globals['pp_lang']['unreg']; $User['userid'] = 0; $Globals['offset'] = $Globals['gmtoffset']; } This tells the program the $User['username'] will be Unregistered and $User['userid'] = 0 Thus in image-inc.php $iuser and $upuserid are set to those $User variables |
hmm definately makes sense...not sure what it's doing on my site :) if you could look into it more I would appreciate it. |
At the bottom of your index.php file place this before the end ?> echo"My Username is {$User['username']}<br />My Userid is {$User['userid']}"; If your logged in it should say at the bottom of your page your username and userid If your logged out at the bottom of your page should be this My Username is Unregistered My Userid is 0 |
| All times are GMT -5. The time now is 11:10 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0