
Anna wrote: First, this is regarding a stand alone 4 images gallery NOT nuked. I am trying to create a hack so that a person is promoted to a 4images usergroup after uploading 5 photo's to the gallery. This woiuld then give them extra permissions. Have been playing with the following code
Buit this results in an error regarding the final line ) Hoping that someone here is able to herlp me figure out how to achieve this result. I should mention that I am trying to insert this into member.php after a successful image upload has been completed. I also think that the above code will cause another issue for me as it is not checking to see if the user is already a member of that group. Any help would be appreciated. Posted: Thu Apr 19, 2007 2:21 am Last edited by Anna on Fri Apr 20, 2007 9:57 pm; edited 1 time in total
admin(Mark) wrote: that should not be ), it should instead be } To solve the issue if the user is already a member of the group, you should add a numrows check after this line if ($uploaded_images ==5) { [/code] Posted: Thu Apr 19, 2007 2:40 am
Anna wrote: Thanks, will give that a try after dinner, but figured it was going to be something along those lines. Why do the simplest problems result in the most hair loss? Posted: Thu Apr 19, 2007 3:13 am
Anna wrote: Thanks, that got the syntax issue sorted, now just have to work out the best place to set this up within the script. Using it through the upload code did not produce the correct results. This is a job for tomorrow though. Appreciate the help. Posted: Thu Apr 19, 2007 5:15 am
Anna wrote: I am adding a whole new dimension to the definition of the word confused. I had the code below working, with the exception of the time not being correctly inserted into the database. I tested it a number of times, deleting the entries and reinstating them. All was going fine. Then I decided to play with the time aspect. All of a sudden it stopped working. Not even replacing the original code below would make it work again. I dont understand why it would work, then stop working????
Posted: Fri Apr 20, 2007 12:44 am
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||