Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 204
Total: 205

Author Topic: Guest Reporting Problem  (Read 13307 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: 16436
    • 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: 16436
    • 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: 16436
    • 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: 16436
    • 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
5076 Views
Last post May 22, 2008, 06:41:23 am
by enbeeone3
2 Replies
4930 Views
Last post January 04, 2009, 12:30:43 pm
by CdRsKuLL
1 Replies
5033 Views
Last post June 08, 2009, 04:12:38 pm
by SMFHacks
10 Replies
8455 Views
Last post January 22, 2010, 06:38:33 pm
by SMFHacks
3 Replies
3077 Views
Last post September 05, 2018, 02:22:14 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal