PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > General Forums > General Discussion

General Discussion General use discussion forum for PhotoPost products.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old June 10th, 2008, 07:30 PM   #1 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
drop down user list

Just noticed this in the uploadphoto.php file.

I removed the comment block, but it doesn't work..

//if you have a low number of users you can use this drop down list box, otherwise you have to input the name manually
//$useroptions = "<select name=\"upuser\"><option selected=\"userid\" value=\"{$User['userid']}\">{$User['username']}</option>";
//$useroptions .= useropts();
//$useroptions .= "</select>";
skidpics is offline   Reply With Quote
Old June 11th, 2008, 07:06 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,690
You would need to actually comment out the other useroptions lines in uploadphoto.php to see a difference.

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; June 12th, 2008 at 12:24 PM.
Chuck S is offline   Reply With Quote
Old June 11th, 2008, 09:29 AM   #3 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
I thought about that after I posted the post. It is an interesting little gem undiscovered by most admins. Thanks!
skidpics is offline   Reply With Quote
Old June 11th, 2008, 09:30 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,690
Not a problem glad to help.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 12th, 2008, 09:21 AM   #5 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
On anything I choose, I get error user not found..
skidpics is offline   Reply With Quote
Old June 12th, 2008, 09:23 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,690
Please post a url and a test login
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 12th, 2008, 10:14 AM   #7 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
Cannot PM you the details..

Quote:
Chuck S has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.

Last edited by skidpics; June 12th, 2008 at 11:38 AM.
skidpics is offline   Reply With Quote
Old June 12th, 2008, 11:40 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,690
It is fine to post a url here and a test user login non admin. You can do that or email support. That is correct I do not use the PM system here.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 12th, 2008, 11:42 AM   #9 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
Your username is: chuck
Your new password is: REMOVED



Skidpics - Free Photo Sharing,Free Wallpaper and Free Screensavers - Main Index

Last edited by Chuck S; June 12th, 2008 at 12:20 PM.
skidpics is offline   Reply With Quote
Old June 12th, 2008, 12:21 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,690
I have removed the password please make that user an admin or email us an admin login

regular users dont seem to be affected

Skidpics - Free Photo Sharing,Free Wallpaper and Free Screensavers - chuck Gallery
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 12th, 2008, 12:27 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,690
I made a slight change to the code in post 2 as this is way old code reapply and see if that helps.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 12th, 2008, 11:33 PM   #12 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
Quote:
Originally Posted by Chuck S View Post
I have removed the password please make that user an admin or email us an admin login

regular users dont seem to be affected

Skidpics - Free Photo Sharing,Free Wallpaper and Free Screensavers - chuck Gallery
User is admin now. applying the code right now also..
..

Code modification did not work.
what was changed?
skidpics is offline   Reply With Quote
Old June 13th, 2008, 08:24 AM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,690
Basically upuser is a username variable not userid that old legacy code passes upuser as the userid not username so I simply changed the code to username

Try this

Code:
Content visible to verified customers only.
change to this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 13th, 2008, 08:27 AM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,690
Then in your integration file photopost.php make sure the useropts function is this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; June 13th, 2008 at 10:09 AM.
Chuck S is offline   Reply With Quote
Old June 13th, 2008, 09:27 AM   #15 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
With the change in photopost.php, I am getting this error:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/vande11/public_html/skidpics/forums/photopost.php on line 78
skidpics is offline   Reply With Quote
Old June 13th, 2008, 10:09 AM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,690
Wow that function is archaic. Reapply the code edit above in photopost.php
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 13th, 2008, 10:13 AM   #17 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
same error. perhaps I should just leave it as is.. since the coding is so old?

actually, the userid is not changed to upuser in the code you posted ?
skidpics is offline   Reply With Quote
Old June 13th, 2008, 10:32 AM   #18 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
yea, I replaced userid with upuser and that didn't work either.
skidpics is offline   Reply With Quote
Old June 13th, 2008, 10:40 AM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,690
The edit in uploadphoto.php should remain as posted in post 13. My last post explained to update the user options function in post 14 as thats where I made the change to that query

drop down user list
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 13th, 2008, 10:48 AM   #20 (permalink)
Ultimate Member
 
Join Date: Jun 2007
Posts: 1,340
I applied the below to uploadphoto.php:
Quote:
if ( $Globals['vbversion'] == "fusion" || $Globals['vbversion'] == "threads" || $Globals['vbversion'] == "threads7" )
{
$useroptions = "<select name=\"upuser\"><option selected=\"userid\" value=\"{$User['login']}\">{$User['username']}</option>";
$useroptions .= useropts();
$useroptions .= "</select>";
}
else
{
$useroptions = "<select name=\"upuser\"><option selected=\"userid\" value=\"{$User['username']}\">{$User['username']}</option>";
$useroptions .= useropts();
$useroptions .= "</select>";
}
and this to photopost.php:
Quote:
function useropts() {
global $Globals, $db_link;

$useropts = "";

$queryv = ppmysql_query("SELECT userid,username FROM {$Globals['pp_db_prefix']}users ORDER BY name",$db_link);
while ( list( $userid, $username ) = mysql_fetch_row($queryv) ) {
$useropts .= "<option value=\"$username\">$username</option>";
}

return( $useropts );
}
still getting:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/vande11/public_html/skidpics/forums/photopost.php on line 78
skidpics is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop-down list of Manufacturers? bob weaver ReviewPost How do I...? 5 February 26th, 2008 07:23 AM
PP 5.62: User Profil: drop-down list to select homepages snoopy5 Photopost Pro How Do I...? 3 January 11th, 2007 06:30 PM
How can I get these drop down list fields to show a 'blank' when on uploadproduct.php criscokid ReviewPost How do I...? 1 April 30th, 2006 02:37 PM
Remove 'zip code' from the 'sort by' drop down list criscokid ReviewPost How do I...? 2 February 27th, 2006 05:46 PM
Upgraded to RP3.11 - problem with drop down list of categories criscokid ReviewPost Installation & Upgrades 3 November 22nd, 2005 02:24 PM


All times are GMT -5. The time now is 08:10 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0