16
Mods & Plugins (Releases & Support) / Re: [MOD] Last comments v1.2.0
« on: June 05, 2010, 10:35:31 AM »
Fantastic, thanx a lot!
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.
//--------------------------------------------
//--------- Auto Image Resizing --------------
//--------------------------------------------
if ($config['auto_image'] && !$uploaderror) {
$src_copy = MEDIA_PATH."/".$cat_id."/big";
if ($direct_upload) {
$src = MEDIA_PATH."/".$cat_id."/".$new_name;
$src_copy = MEDIA_PATH."/".$cat_id."/big";
}
else {
$src = MEDIA_TEMP_PATH."/".$new_name;
}
$do_resize = 0;
if ($image_info = @getimagesize($src)) {
if ($image_info[2] == 1 || $image_info[2] == 2 || $image_info[2] == 3) {
$do_resize = 1;
}
}
if ($do_resize) {
if (!function_exists(init_convert_options)) {
require(ROOT_PATH.'includes/image_utils.php');
}
$convert_options = init_convert_options();
if (!$convert_options['convert_error']) {
if ($image_info[0] > $config['max_image_width'] || $image_info[1] > $config['max_image_height']) {
$result = true;
if (!@is_dir($src_copy)) {
$oldumask = umask(0);
$result = mkdir($src_copy);
umask($oldumask);
if (!@is_dir($src_copy) || !$result) {
$result = mkdir($src_copy, 0755);
}
}
if ($result == true){
copy($src, $src_copy."/".$new_name);
}
$convert_options = init_convert_options();
if (!$convert_options['convert_error']) {
$quality = (intval($config['auto_image_quality']) && intval($config['auto_image_quality']) <= 100) ? intval($config['auto_image_quality']) : 100;
if (!resize_image($src, $quality, $config['max_image_width'], 1)) {
$msg .= (($msg != "") ? "<br />" : "")."<b>".$lang['file_upload_error'].": ".$new_name;
$uploaderror = 1;
}
}
}else{
$do_resize = 0;
}
}
}
}
//-------------------------------------------
<img src="./templates/default/images/splugin.png" alt="Suchplugin" style="position:absolute;top:0px;right:0px;margin:0px;padding:0px;" border="0" />
Hi! Is there a current HowTo to install this mod PM v2? reagrds clubsocietyIt's not working in 1.7.7
i wanna be able to do a facebook application and link it to my photogallery.
there is 2 opion:
1- the user will select what category he want to see in his facebook body page ( it's like query search result )
2- or he i will see a mini gallery ( latest pictures )
Version 3.2.6 (2009-08-19)
Added new wordcount plugin, this will display the number of typed words as you write. Contributed by Andrew Ozz.
Added new getNext and getPrev methods to DOM utils. These will return the first matching sibling.
Fixed bug where it was impossible to place the caret after a table on Gecko. It will now add a paragraph after tables.
Fixed bug where inline dialogs would fail if used in a window opened using a showModalDialog. Patch contributed by Derek Britt.
Fixed bug where IE could sometimes render a unknown runtime error on invalid input HTML.
Fixed bug where some incorrectly placed tables wouldn't be moved outside the paragraphs on IE.
Fixed bug where uppercase script/style element wouldn't be handled correctly and converted to valid lowercase.
Fixed bug where some WebKit versions on Mac OS X would produce issues with hidden select fields.
Fixed bug where the media plugin would fail on WebKit since the node wasn't properly imported to the right document.
Fixed bug where absolute URLs for the TinyMCE script using a base href element would cause loading problems in IE 6/7.
Fixed bug where pasting using the paste plugin wasn't possible on IE with to restrictive security settings.
Fixed bug where pasting of whitespace was impossible using the new custom paste method.
Fixed bug where pasting on some WebKit browsers would not work if you pasted specific contents due to a WebKit bug.
Fixed bug where doctypes with multiple lines would not be parsed correctly by the fullpage plugin. Patch contributed by Colin.
Fixed bug where the autoresize plugin would break the fullscreen functionality.
Fixed bug where tables would be chopped up running on IE using invalid contents and pasting paragraphs into a cell.
Fixed bug where the each method of jQuery build didn't iterate styleSheets. We now use the TinyMCE API one instead.
Fixed bug where auto switching to paragraphs after headers some times failed in Gecko.
Fixed so all editor options gets passed to the Serializer class. Patch contributed by Jasper Mattsson.
Fixed so script/style blocks isn't wrapped in paragraphs as other inline elements.
Fixed so the XHR requests sends the X-Requested-With HTTP header.
Fixed so the data url scheme is handled in the tinymce.util.URI class.
Changed inline documentation to use moxiedoc style comments.
Removed the compat2x plugin people should have upgraded to the 3.x API by now. 3.0 was released more then a year ago.
Re-added Gecko specific message for users who doesn't understand the security concept regarding paste.
if ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER_AWAITING) {
show_error_page($lang['no_permission']);
exit;
erreichen, dass die jeweilige Seite nur dann aufgerufen werden kann, wenn man eingeloggt ist.Header('HTTP/1.1 401 Unauthorized');
...klar soll der völlig unabhängig sein, missverstanden habe ich da nichts.
Völlig unabhängig von dem bestehenden Voting-System.
nur ich würde halt den einfacheren weg gehen, wie schon gesagt ein voting wenn die vorgegebene quote erfüllt ist wird das bild inaktiv geschaltet.
wenn du nur mit ja nein voten lassen willst ist es auch gut, das prinzip ist ja immer das gleiche, oder?
mfg Andi