Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Gazzagreen

Pages: [1] 2
1
YEEEES!

You've cracked it again V@no! Works beautifully now :)

Many thanks.
Gazza

2
done, i sent you a link

Gazza  :mrgreen:

3
Can you PM me with a link to phpinfo() on your site?

how do I get phpinfo()?

Shows what a newbie I am eh?

Off to work now for 12 hour shift!

4
Hi V@no

It's the same fault  :cry:

 One thing I noticed about my server is that sometimes I need to add apostrophes ('') to statements to make them work, such as...

($something =0)

would need to be:

($something =='0')

Think this may be the problem?

Also, When I type the password straight into the database in the users table under the name of the user I'm logged in as, I still come to the password page? I would think I should go straight to the category if I have the password in the database already?

Gazza :?

5
No its the same. Can get to the password page, but when i enter the correct (or incorrect) password the next page is an error page with this path

http://gallery.lovemansfield.co.uk/php.cgi?cat_id=23

Off tpo bed now, its 1.30am :(

6
Hello

I have been trying to get this mod to work but have had no luck. I have even tried to reinstall gallery from fresh incase any other mods were interfering with it, but still not working.

I can get the password page, but when I enter a password I get HTTP 404 - File not found.

The address in the addressbar is : http://gallery.lovemansfield.co.uk/php.cgi?cat_id=2

I don't have a php.cgi file?

Any advice welcome.

7
Mant thanks yet again V@no

I had to adjust the code slightly from example: c.auth_viewcat = 0  to c.auth_viewcat='0' for it to work correctly, but that could be just my servers little quirk :)

So again, many thanks!

8
Hi all

I am trying to make it so that people can view pictures from my gallery on another website (I know there is other mods for this, but I need a special requirement). Is there anyone who can help?

At the moment I have come up with this.

Code: [Select]
<?
//Allow Photo Gallery on other websites
$sql = "select * from gallery_images where image_active=1 ORDER BY RAND() desc LIMIT 0,5";
$result_sq = mysql_query($sql);
while($row = mysql_fetch_array($result_sq))
{
$id = $row["image_media_file"];
$category = $row["cat_id"];
$image_name = $row["image_name"];
$photo2 = "<img alt=\"$image_name!\"  src=http://gallery.lovemansfield.co.uk/data/media/$category/$id width=90 border=0>";

print "<td><div align=center>

<a href=http://gallery.lovemansfield.co.uk/data/media/$category/$id>$photo2</a>

</div></td>";
}
?>

Now this works great but as you'll notice it just searches the IMAGE_TABLE. But there is that special requirement I need.

At the moment this code shows all photos. But I need to limit what people see. This is normally done in the categories table under "auth_viewcat. " 0 is for  "ALL" to view and 2 for just "MEMBERS" to view.

Questions:
How can I add an argument to include the CATEGORIES_TABLE into my code above so that just categories with 0 in the auth_viewcat are displayed. The resuls will be displayed on a .php page so don't need code anywhere else but on the page thanks.

At the moment I have set the size to width=90. Is there anyway to make this a proportional size? eg. 90 for the widest side without making it square?

Many thanks.
Gazza

9
Hi all

Looks like noone knows the answer to my problem. I'll try it a different way then. I was thinking of making it so that I allow anyone to view the category (that way people will be able to click on the photos and get a full size photo), but if there is a password present in that category, the code will look for a password for the viewer. If there isn't one then it will open a password page for the view to enter the password.

Once the password in the Sessions table for the viewer, he can then open the category and view the pictures. Should be easy! hehehee

All the best
Gazza

10
Hi V@no

Thank you for taking the time to look at my problem.

I have stored the password users enter in the password page in the database (sessions table in a field called new_password). It is entered in the correct row based on the users ip_address.

In Categories the password field is called cat_password (you were almost spot on).

I can't get the code you have added to work yet, but I think its something to do with how you think I've done the code on my password.php. As you can see above, I have used the database to store the passwords, both the catagory password and the session. Nothing too technical as I am a beginner really.

I am totally lost with this sentence...

...The user entered passwords stored in session (or even in the database for members if you decide go more advanced ) in "cat_pass" in the following format: cat_id,password|cat_id,password (each category separated with a "|" and each cat id separated from password with a comma)...

You can assume I haven't done this as I opted for the database version. Even visitors that are not signed in as a member can have their own password as its based on their session_ip address.

I've had a go at changing the permissions in the auth.php file but have failed for now.

Any ideas?
 
All the best
Gazza   :?

11
I have been working on a new mod to allow users to create password protected categories. Visitors will be able to open a new password page and type in a password. If they type in a correct password the category and its photos will appear on the page.

I have this up and working but now and you can see a demo here: http://gallery.lovemansfield.co.uk/password.php, use video as a password

Now I have a problem I need help with.

The category is set to private  (auth_viewcat  =  5), and doesn’t show anywhere on the site except on the password page (if correct password is entered). This is correct and as it should be! However, when the category comes up on the password page, the photos in the category are unclickable. If I am signed in as an admin, I CAN click the photos and open them on the details page, but visitors and other members cannot.

I need to get to the code to allow visitors and members to click the photos on the password page so they open as normal on the details page? Where can I find this code as i have searched and can’t seem to find it?

All the best
Gary
lovemansfield.co.uk

12
Mods & Plugins (Releases & Support) / Re: [MOD] Slideshow II
« on: October 19, 2008, 10:39:33 PM »
Just finished the install and I have got a little problem with the slideshow.

When I press the slideshow button, I get an error message at the bottom of webpage. Doesn't tell me anything

When i checked my database after the install I noticed that the slideshow tables aren't there. Is there supposed to be slideshow tables there? I tried to upload the slideshow.sql file to the database but all i got was an error.

I found out where the sql entries went. Its not that thats the problem then. I'll look through everything and try to find out where i went wrong :(


Thanks Gazza



Got it working. I just got a little confused with the /script 4images.js file! When i made one and added the code in the doc file, the slideshow works!

Looks really good. Many thanks the the author of this mod. Its apprieated and I'll let you know if i can inprove it.

Gazza

13
Hi Killercookie and viewers

Just to let you know that i have succeeded in getting the latest mod done, now people on my site can create there own categories (thanks to killercookies original mod), they can delete the category and all files associated with it (pictures,comments, folders) and now they can modify their categories too. Just the creator of the category can make changes or delete!

By modifying categories I mean they can reedit the name of the category, edit the description and change whom can view the category. Example of this, All visitors can view the picture in the category, Just members can see the photos or they can make them private so that just the author can see the photos.

The next task will be to allow the author to assign a password to private categories so they can allow just visitors with the correct password to view the category.  may need some advise on this one, but I'm going to give it a try first.

14
Hi Killer

Can't wait for the new version to come :)

In the meantime my next task will be to allow members to edit their categories, example "change name of the category" and allow to alter who can see the category example "all, members or private". Private will mean that people have to type in a password to view the category page and see the photos in there. I may also alter the code so that pics don't show up to visitors on the front screen if they are member or private.

I am in the middle of editing a dance show ATM so have no time. Got another large dance show to film and edit at the end of the month too, so don't know when I'll get into the code again (which is very difficult when your used to the simple php, not this {bracketed} stuff.

BTW I have created some code to be able to delete your own categories. It works well deleting all the photos in the category, the database  and the actual folder too, except I haven't found out how to redirect to a page afterwards yet! Tell me if you want to see the code I used.

All the best
Gazza

15
Now I am going to attemp to allow members to edit and delete their own categories if they wish :)

Pages: [1] 2