Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11795
Latest: LaurieluvsGH
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 41468
Total Topics: 7262
Most Online Today: 79
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 74
Total: 74

Author Topic: Guest Reporting Problem  (Read 11810 times)

0 Members and 1 Guest are viewing this topic.

Offline RagingEagle

  • Member
  • *
  • Posts: 4
    • View Profile
Guest Reporting Problem
« 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

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15689
    • View Profile
Re: Guest Reporting Problem
« 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
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline RagingEagle

  • Member
  • *
  • Posts: 4
    • View Profile
Re: Guest Reporting Problem
« 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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15689
    • View Profile
Re: Guest Reporting Problem
« 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??
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline RagingEagle

  • Member
  • *
  • Posts: 4
    • View Profile
Re: Guest Reporting Problem
« 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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15689
    • View Profile
Re: Guest Reporting Problem
« 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: [Select]
function ReportPicture()
{
global $context, $mbname, $txt;

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

                is_not_guest();

isAllowedTo('smfgallery_report');
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline RagingEagle

  • Member
  • *
  • Posts: 4
    • View Profile
Re: Guest Reporting Problem
« 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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15689
    • View Profile
Re: Guest Reporting Problem
« 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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
4058 Views
Last post May 22, 2008, 06:41:23 am
by enbeeone3
2 Replies
3662 Views
Last post January 04, 2009, 12:30:43 pm
by CdRsKuLL
1 Replies
3833 Views
Last post June 08, 2009, 04:12:38 pm
by SMFHacks
10 Replies
6646 Views
Last post January 22, 2010, 06:38:33 pm
by SMFHacks
3 Replies
1154 Views
Last post September 05, 2018, 02:22:14 pm
by SMFHacks

+- Recent Topics

Question (Gallery Pro) by mickjav
Today at 11:59:10 am

Image View by SMFHacks
October 14, 2021, 11:55:21 am

From SMF Gallery Lite to SMF Gallery Pro by SMFHacks
October 11, 2021, 08:00:29 am

Picture Orientation by mickjav
October 09, 2021, 01:25:54 pm

4. Global Headers and Footers by mickjav
October 07, 2021, 12:22:09 am

S3 System For SMF Attachments by shuban
October 06, 2021, 07:58:50 am

Download Page images by mickjav
October 04, 2021, 01:28:07 pm

Agree To Licence by mickjav
October 03, 2021, 10:00:27 am

Install Problems by mickjav
October 01, 2021, 01:33:14 pm

Can SMF2WPBridge bridge SMF membergroups into WP? by SMFHacks
September 30, 2021, 02:07:34 pm

Powered by EzPortal