Главная Мои проекты All Gallery in one php script
E-mail Печать PDF

Posted new script All Gallery for automatic creation thumbnails. In a script has been supports the following popular libraries: Darkbox, Fboxbot, Highslide, Jquery lightbox, Jsibox, Lightbox, Lightwindow, PrettyPhoto, Slimbox2. This script is the first universal extension, which works with all JavaScript libraries.

Just insertion of images in the article.

1
2
3
4
<img class="border_tracings" alt="God sees everything!" src="http://sitetranslation.org/images/stories/allimage/god.jpg" width="124" height="124" />
<img class="border_tracings" alt="Admiral" src="http://sitetranslation.org/images/stories/allimage/admiral.jpg" width="124" height="124" />
<img class="border_tracings" alt="Fighters" src="http://sitetranslation.org/images/stories/allimage/stels.jpg" width="124" height="124" />
<img class="border_tracings" alt="Сarrier" src="http://sitetranslation.org/images/stories/allimage/carrier.jpg" width="124" height="124" />

The result of inserting images in the article.

God sees everything! Admiral Fighters Сarrier

Functions

  • create thumbnail and replace original image to thumbnail
  • adding frames and comments to image (add class border_tracings)
  • Ability to use on different pages of different libraries. Just add the following code in the article {ageent}darkbox{ageent}
  • If you want to disable the plugin for certain images it can be done by adding to the image class not_touch (class = "not_touch")
  • Easy integration into any other components.

Examples insert images and a demo of the JavaScript libraries you can see below.

Information for Developers

Below is an example of calling a class that allows you to work to handle any pictures. everything you need for work is to transmit the text containing the images.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
require_once('allgallery/allgallery.php'); 
 
$options = array(
'base_url'=>base(), // site address
'gallery' => "highslide", // selected gallery: lightwindow, highslide, slimbox2, jquery lightbox, prettyPhoto, Lightbox, Jsbox, darkbox, fancyzoom, fboxbot.
'path_to_full_img' => dirname(__FILE__), // absolute path to large images, if link in image shown as relatively
'path_to_small_img' => dirname(__FILE__)."/img/thumbnail/", // path to the folder where the images will be stored
'path_to_small_url' => base()."img/thumbnail/", // path to the folder where the images will be stored
'width' => "100", // width default
'height' => "100", // height default
'percentage' => 20, // percentage of positives. If the original width and height of the image 100X100 pixels, the image will be processed unless the specified width or height of the image will be <= 80
'use_risaze_img' => "yes", // compress images with php or not?
'include_jquery' => "yes",
'i_want_img' => "not", // if yes, will only be processed image with the class - class="i_want_img"
'link_highslide' => "yes",
'border_tracings' => "not" // show whether or not a frame in the image?
);
$all_gallery = new All_gallery($options);
 
ob_start();
include("index.php");
$content = ob_get_contents();
ob_end_clean();
 
echo $all_gallery->get_content($ageent,"1");

To delete an image for example when changing the article, you can use the following function.

1
$all_gallery->get_clear_content($content,$article_id);

Attention!

All libraries use this plugin can be used only for non-commercial web sites! If you want to use this plugin for commercial websites please ask for permission to developers of libraries. Links to their websites can be viewed below or by dialing the appropriate request to google. Links to official sites: LightwindowHighslideSlimbox2Jquery lightboxprettyPhotoLightboxJsboxDarkboxFancyzoomFboxbot.

Прикрепленные файлы:
All Gallery in one php script1 Kb

Авторизация

Nice Ajax Poll

Какое из моих расширений самое лучшее?

Статистика



Реклама