PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Making Login Not Required (http://www.photopost.com/forum/photopost-pro-how-do-i/113789-making-login-not-required.html)

sneekee May 5th, 2005 12:19 PM

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

Chuck S May 5th, 2005 01:49 PM

What version of Photopost you using? Unregistered users can upload if you allow it.

What integration?

sneekee May 5th, 2005 01:57 PM

latest version...phpbb2 integration..

www.sneekeetalk.com/galleries

thanks
Jeff

Chuck S May 5th, 2005 05:17 PM

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

sneekee May 5th, 2005 05:22 PM

hmm definately makes sense...not sure what it's doing on my site :) if you could look into it more I would appreciate it.

Chuck S May 5th, 2005 05:43 PM

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97