Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11790
Latest: ButtKoWitz
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 41408
Total Topics: 7255
Most Online Today: 103
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 30
Total: 31

Author Topic: Guest Reporting Problem  (Read 11785 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: 15662
    • 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: 15662
    • 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: 15662
    • 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: 15662
    • 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
4023 Views
Last post May 22, 2008, 06:41:23 am
by enbeeone3
2 Replies
3613 Views
Last post January 04, 2009, 12:30:43 pm
by CdRsKuLL
1 Replies
3784 Views
Last post June 08, 2009, 04:12:38 pm
by SMFHacks
10 Replies
6606 Views
Last post January 22, 2010, 06:38:33 pm
by SMFHacks
3 Replies
1068 Views
Last post September 05, 2018, 02:22:14 pm
by SMFHacks

+- Recent Topics

Import downloads by mickjav
September 25, 2021, 04:47:13 am

Errors with 5.0.6 version by Hatshepsut
September 24, 2021, 10:21:24 pm

Forum ToolBox by mickjav
September 23, 2021, 03:20:07 pm

Ads Description is running into Ad Location by Shades
September 23, 2021, 09:56:42 am

S3 System For SMF Attachments by SMFHacks
September 21, 2021, 05:46:38 pm

Boards Icon by mickjav
September 18, 2021, 02:13:43 pm

Search Word Limit by SMFHacks
September 17, 2021, 08:41:01 pm

Item not appearing in category by SMFHacks
September 17, 2021, 08:39:45 pm

Undefined index: gallery_ad_seller by Shades
September 17, 2021, 01:23:10 pm

What happens if? by SMFHacks
September 14, 2021, 10:25:07 pm

Powered by EzPortal