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 - lemccoy

Pages: 1 2 3 4 [5] 6 7
61
//is there an image_id and does the user have permission to delete the image? If not, send them back to the index page!

OK that is what the problem is.  I logged in as the user (family site) and it allowed to rotate.  Let me go back and check the code...wow that was a fast response!


Code: [Select]
//is there an image_id and does the user have permission to delete the image? If not, send them back to the index page!
if (!$image_id || ($config['user_delete_image'] != 1)) {
    header("Location: ".$site_sess->url(ROOT_PATH."index.php", "&"));
    exit;
  }

I think this is the problem.  I can delete as an admin I just checked. 

Would there be a snippet of code that could replace this to just check if it's user owner or admin?

Oh Wait!  If I have it setup that users can delete their own posts, then I don't even need this code, correct?  Cause it checks here:

Code: [Select]
//is the user a registered user and the 'owner' of the image? If not, send them back to the index page!
  if ($user_info['user_level'] == ADMIN OR !$image_row || $image_row['user_id'] <= USER_AWAITING || ($user_info['user_id'] = $image_row['user_id'])) {

Does that make sense?

62
I am trying this on another 4images site I have just created and it just bounces back to the index.php after clickign the rotate button and doesn't change the picture.  Any ideas?

63
Would there be anyway for a user to select which size to create the files as?

Such as a drop down list:

Small - 640x480
Medium - 800x600
Large - 1024x768 (default)

sorry if this has been brought up I scanned through the pages but didn't see anything.


64
Great, that works.  Thanks.

65
I have the guestbook mod and i have made a counter for the number of guestbook entries:

Code: [Select]
//-----------------------------------------------------
//--- Guestbook Signatures-----------------------------
//-----------------------------------------------------
$sql = "SELECT SUM(comment_id) AS sum
         FROM ".GUESTBOOK_TABLE;
 $row = $site_db->query_firstrow($sql);

 $sum = (isset($row['sum'])) ? $row['sum'] : 0;
 $total_signatures = "".$lang['total_signatures']."<B> ".$row['sum']."</B>\n";
 
 $site_template->register_vars("total_signatures", $total_signatures);
unset($total_signatures);

With the corresponding language and calls etc.  However, when it counts it counts deleted posts as there.  I know because I made an entry, deleted it, made another entry.  It now says there are 2 instead of 1.  Is there a better variable to count than the "comment_id"?

66
Installation, Update & Configuration / Re: Changing Time...
« on: February 10, 2006, 03:40:59 PM »
thanks but that didn't work.   :oops:  :?:

67
Installation, Update & Configuration / Re: Changing Time...
« on: February 10, 2006, 03:09:12 PM »
My site is 3 hours behind what the actual time is Eastern. I have tried an offset of 3 (hrs), an offset of 180 (mins), and an offset of 10800 (secs).  What is the correct format for the offset?

68
would there be anyway to determine exactly how many times the searchbot is on your site? Sessions, not page views?

works great, after i installed the endifno mod.  thanks!  my top images were going up unproportionally, now that should be fixed :-)

is there anyway to give the searchbots semi-admin access, so basically their hits don't get counted?

69
Mods & Plugins (Releases & Support) / Re: [MOD] Shoutbox
« on: January 19, 2006, 09:00:22 PM »
The link is not working for me.  Anyone have these files elsewhere?  I will check V@no's now. 

70
Quote
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/thereal2/public_html/drunkisland/postcards.php:1) in /home/thereal2/public_html/drunkisland/includes/sessions.php on line 84

Say WHAAA?

71
FAQ, Tips / Re: How can I add more allowed file extensions?
« on: January 08, 2006, 07:27:58 PM »
OK i followed it and it works.   Mainly, I'm just an idiot.  I had created the screensaver as an .exe instead of an scr.

72
FAQ, Tips / Re: How can I add more allowed file extensions?
« on: January 08, 2006, 01:59:07 AM »
I uploaded a screensaver file via FTP to my site, but how do i tell it is in the directory?  I click "check new images" and nothing appears?  Am I doing something wrong, or do I have to add the mime type as shown before it will recognize it?  Thanks

73
What I have done is delete the javascript code and use:

header.html

Code: [Select]
<meta http-equiv="imagetoolbar" content="no">
as well as:

Code: [Select]
<body oncontextmenu="return false" ...>
Works pretty well so far, need to test on firefox.

74
Thanks Loda.  V@no I tried searching through the mods for a while last night and couldn't find anything. 

Resetting the $last_action_user_list variable worked perfectly.  Thanks again.

75
I am having the same problem with the Top Uploaders before the Top Commentors.  What I see is this:

 Top 5 Uploaders
DrunkIslander 131
Niens 22
Jade 7
Rinsa 4
Guest 1

Top 5 Commentator
DrunkIslander 131
Niens 22
Jade 7
Rinsa 4
Guest 1
lee 2
GregoryMcdonald 1
DrunkIslander 0
spencer 0
lilshtanky 0

I posted this in another spanish mod somewhere...gonna go find and delete...

Pages: 1 2 3 4 [5] 6 7