SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 22, 2012, 02:26:25 pm

Login with username, password and session length
Members
Total Members: 10066
Latest: khoeidong
Stats
Total Posts: 28682
Total Topics: 4975
Online Today: 87
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 62
Total: 62
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Guest Reporting Problem  (Read 6887 times)
RagingEagle
Newbie
*
Offline Offline

Posts: 4


View Profile
« on: September 28, 2006, 01:57:13 am »

Hi,

I setup the SMF Gallery Lite and upon testing it I came across a couple problems I hope can be looked at.

The first is whenever a Guest reports an image, it records the report, even increases the number in "Images reported:" however when you go into the admin area to view those reports they don't show up. But if a member leaves a report, that shows up in the admin area.

The other is also involving Guests. I enabled their Permissions so they could add images but when you go to click on Add Image it asks that you login.

Does anyone know of any solutions for my problems?

Thanks,
RE
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #1 on: September 28, 2006, 06:43:22 am »

Guest's are not allowed to add images or do certain things, they are mostly just allowed to view the gallery.
It would cause some problems if they were actually allowed to add images since a lot of it is member based.

I will try to think of some ways to fix that but it will kind of difficult.

SMFHacks.com
Logged
RagingEagle
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #2 on: September 28, 2006, 07:03:32 am »

My main concern right now is that Guests can report images, but I have no way of viewing those reports. Nor can I set the permissions to disallow Guests from posting reports, so they can make a thousand reports and "Images reported:" could say "Images reported: 1000" but I'd have no way of handling those issues.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #3 on: September 28, 2006, 08:49:29 am »

There should be a permission for guests that says "Report Pictures/Comments"
which you can disable?

Not sure if you do want guests to actually report images??
Logged
RagingEagle
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #4 on: September 28, 2006, 03:34:43 pm »

I like to keep my website as open as I can, that's why I wanted to allow Guests to submit and report images. I can make it work the other way, but it's just not my preference.

I tried setting Guests permissions to disallow "Report Pictures/Comments" but Guests are still able to click on "Report Picture" which takes them to the report form, where after they make their report it's hidden somewhere. However if a Guest clicks on "Add Comment" it takes them to the login screen, which I'd be cool with if it happened with the "Report Pictures/Comments" link, but it appears as though there is a bug.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #5 on: September 28, 2006, 03:56:17 pm »

hmm suprised the permission didn't work well here is a fix to  make it the same way as adding a picture for guests

open Sources/Gallery.php
Find
Code:
function ReportPicture()
{
global $context, $mbname, $txt;

isAllowedTo('smfgallery_report');
Change it to
Code:
function ReportPicture()
{
global $context, $mbname, $txt;

                is_not_guest();

isAllowedTo('smfgallery_report');
Logged
RagingEagle
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #6 on: September 28, 2006, 04:54:51 pm »

Thanks, but I tried uninstalling and reinstalling the script and it fixed the problem. Mustn't of installed right or something.

I have another question though, is there anyway to call images via XML? Like let's say I wanted to call the 4 most recent images and display them else where on my website, is that at all possible?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #7 on: September 28, 2006, 05:28:45 pm »

That is not possible with the Lite Edition. I will look into doing that for the pro edition.
You could run a mysql query to gather that information if you needed to you. Picutres are located in the smf_gallery_pic table.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]

[May 17, 2012, 12:38:16 pm]

[May 15, 2012, 09:32:27 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.228 seconds with 21 queries.