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

Pages: 1 ... 4 5 6 7 [8] 9 10 11 12 ... 27
106
Installation, Update & Configuration / Re: About blank pages
« on: May 17, 2003, 08:48:38 AM »
Quote from: plentiamico
I've the same problem with 4images under windows

What do you mean - the same??  I know al least two systems running 4images on windows servers without any problems.

The only one I couldn't manage to run is NetPBM for windows.

107
Mods & Plugins (Requests & Discussions) / dropshadow?
« on: May 15, 2003, 02:43:45 PM »
i've moved this thread to mod's forum, otherwise it gonna be lost...

108
Mods & Plugins (Releases & Support) / [Mod] User upload limits
« on: May 15, 2003, 08:27:41 AM »
Quote from: Bomba
what's the difference in this new version?

Current version has two functions, for both global and daily limits, so you can choose which one to use.

109
Quote from: V@no
I thought thats what watermark is...:?

Not at all  :lol:  Neither my MOD, nor this is a real watermark. Watermark, first of all, is invisible, it's a kind of digital image signature. That was the reason why I called my MOD "annotation", not "watermark". Coming back to embedding images (logo, text) into uploaded pics - I could implement this into my MOD, if somebody needs this. It's really easy with GD, and I believe, also possible with IM

110
it's not a watermark at all... it's embedding of one image into another.

111
Quote from: andersen
Ok. My server have ImageMagick, do not have GD.
So If I wish to run this annotation -water mark mod. I need GD right?

gif support has nothing to do with annotation mod. just read mod installation instructions:
Quote
## Requirements:  GD2 Library compiled with Freetype support. Also works with ImageMagic,
##                but GD still needed for some functions, which ImageMagic is missing.

112
Quote from: andersen
Since above conversation, please guide me below version, which version I need to install?

if you want to get gif support back and have enough rights on your server, i'd suggest to use patched version of gd library, which you can find here

113
Mods & Plugins (Releases & Support) / [Mod] User upload limits
« on: May 14, 2003, 08:07:53 AM »
Quote from: Bomba
just one little thing
i don't have
Code: [Select]
function check_daily_picture_limit($user_id) {

that means you're using the first version of this mod. you should download the new one and reinstall it.

114
Quote from: batz
There is any chance if a user try to upload a photo before 24 hours, if that was the case, and with the warnig message showing a text like this: "You will be able to upload you next photo within xx:xx hours."

Seems you can do it now  :wink:

Replace the whole function function check_daily_picture_limit with this code:
Code: [Select]
function check_daily_picture_limit($user_id) {
global $site_db, $site_template;

$sql = "SELECT user_limit FROM ".USERS_TABLE." WHERE user_id = $user_id";
$result = $site_db->query($sql);
$row = $site_db->fetch_array($result);
$upload_limit = ($row['user_limit']);
$site_template->register_vars("upload_limit", $upload_limit);

$limit_cutoff = time() - 60 * 60 * 24;

$sql = "SELECT image_id, image_date FROM ".IMAGES_TABLE." WHERE user_id=$user_id AND image_date > $limit_cutoff ORDER BY image_date ASC";
$result = $site_db->query($sql);
$images_per_user = $site_db->get_numrows($result);
$row = $site_db->query_firstrow($sql);
$latest_image_date = ($row['image_date']);

$sql = "SELECT image_id, image_date FROM ".IMAGES_TEMP_TABLE." WHERE user_id=$user_id ORDER BY image_date ASC";
$result = $site_db->query($sql);
$tmp_images_per_user = $site_db->get_numrows($result);
$row = $site_db->query_firstrow($sql);
$latest_tmp_image_date = ($row['image_date']);
$images_per_user = $tmp_images_per_user + $images_per_user;

$latest_image_date = $latest_tmp_image_date > $latest_image_date ? $latest_tmp_image_date : $latest_image_date;
$time_to_go = gmstrftime("%H hrs %M min %S sec", 86400 - (time() - $latest_image_date));

$site_template->register_vars("images_per_user", $images_per_user);
$site_template->register_vars("time_to_go", $time_to_go);

if($images_per_user >= $upload_limit) {
return false;
} else {
return true;
}
}

Then insert {time_to_go} either directly into over_limits.html template or into into $lang['no_limits_text'] in the /lang/main.php. This is assuming that you're using 24 hrs limit, otherwise change 86400 to another figure

115
Quote from: andersen
* I had used "test.php" but the result is small error picture on my browser.

most likely you don't have gd2 library installed, which means you're not able to use this mod, even with image magic

116
Mods & Plugins (Releases & Support) / [Mod] Photo Of The Day
« on: May 12, 2003, 08:46:56 AM »
yes, you're right.

117
Quote from: helluvaguy
I was wondering, if it would be possible to exclude pics from one or two specific categories from being displayed in the POTD mod.


Easy enough... just add to POTD sql query limiting statements like this:
Code: [Select]
WHERE ..... AND c.cat_id != 2 ..... AND c.cat_id > 4

118
no chance to install image magic this way, you'd need shell access. but you can do it with netpbm... search through forum

119
Mods & Plugins (Releases & Support) / Re: Mebbernind!
« on: May 09, 2003, 09:02:31 AM »
Quote from: Omnirayf
You should get any old pic in your 4images database, regardless of stats. Refresh, and the pic should remain the same. After midnight of the date you implement the mod, the pic should change to another random pic for another 24 hours.

Hmmm.... sorry, I didn't get the idea  :cry:
This script shows random pic within some time frame, and, as I can see, has nothing to do with votes, ratings, etc... So, why do you call it "true POTD"??

120
Mods & Plugins (Releases & Support) / [Mod] Photo Of The Day
« on: May 09, 2003, 08:56:58 AM »
Quote from: batz
I have to rename it to "Most Voted Photo" or something like that.  :wink:

It's really the matter of word definitions, nothing else... From my point of view, the "Photo of the Day" is the most rated (voted, dl'd, etc.) picture through the whole gallery for any particular date. I know, I'm not the brightest guy in the world  :wink:  give me the right definition then?

I'm afraid, if you change this MOD the way you want it, it could happens that some day no one picture get votes. What are you supposed to show as a POTD in this case?

Pages: 1 ... 4 5 6 7 [8] 9 10 11 12 ... 27