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

Pages: [1]
1
Language Packs / Re: [Language] Slovenian language pack
« on: April 01, 2005, 03:57:43 PM »
No I didn't but I will try! Expect it here for 2 days!

2
Language Packs / Re: [Language] Slovenian language pack
« on: March 21, 2005, 06:39:58 PM »
žal ne vem! Kaj sploh je e107 ? :?

3
Language Packs / Re: [Language] Slovenian language pack
« on: March 19, 2005, 05:38:56 PM »
Zakaj bi pa email prevajal? Na večini straneh se najde Email in ne E-pošta zaradi tega sem pustil kar Email!

4
Chit Chat / Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« on: March 15, 2005, 05:44:21 PM »
Ok sorry my mistake!  :oops: I'm not used to this board and this attachment stuff... Now I've found out how to attachs things  :D Tnx Chris

5
Chit Chat / [MOD]SlideshowII MOD for 4images
« on: March 15, 2005, 03:39:28 PM »
This mod was published before forum was "hacked" and I don't give support for it couse it is not my work! Copyright notice is below! Link to the zip file http://zvoncek.rozica.com/4images_slideshow.zip
Code: [Select]
SlideshowII MOD for 4images - Image Gallery Management System.

Version: 1.3

Date: 2004-07-11

Author: Daniel Janesch <admin@the-deejay.com> http://www.the-deejay.com

Description:

This MOD shows all pictures of one Gallery as an slideshow. You can choos between three direction (ascending, descending or coincidentally). The pictures could also changed manually and the time who long a picture is shown could also be changed. Also you can use crossfade effects for visitors with internet explorer.

For a live-demo you can visit http://www.the-deejay.com.

New in v1.3 - 2004-07-11
    Now it is possible to turn on/off the message after all pictures are shown in the controll panel.
    Also the slideshow could be opend in new a full size window.
    The javascript error is now catched for Opera browsers.

v1.2 - 2004-06-13
    Now you can choose if the slideshow should open in a new window or not in the control panel.
    Additional you can choose if you open the details or not when the visitor clicks on an image.
    And you can set the maximum size (height, width) of the pictures in the slideshow.

v1.1 - 2004-06-04
    All script parts which have to be copied into existing files are now in new files and
    only a reference to the file is inserted in the existing file.
    Now all single quotes (') have been replaced by double quotes (").
    Also the slideshow button is available as simple text link {slideshow_link} .

v1.0 - 2004-05-27
    The release of the slideshow mod II.


Installation Level: Easy
Installation Time: 10 Minutes

Files To Edit: 9

/4images/templates/default/categories.html
/4images/scripts/4images.js (if not available /4images/templates/default/header.html)
/4images/templates/default/header.html
/4images/categories.php
/4images/admin/index.php
/4images/lang/english/admin.php
/4images/lang/english/main.php
/4images/lang/deutsch/admin.php
/4images/lang/deutsch/main.php



Attention! This MOD is altering 4images database!
Please go Control Panel and backup you database now!


COPY FILES

slideshow.php >> to the ROOT 4images directory
install_slideshow.php >> to the ROOT 4images directory
slideshow.sql >> to the ROOT 4images directory
categories_slideshowII.inc >> to the ROOT 4images directory

/scripts directory >> create directory if not existing
slideshow.js >> to the /scripts directory

slideshow_settings.php >> to the /admin directory
transitions_de.html >> to the /admin directory
transitions_en.html >> to the /admin directory
*.gif >> to the /admin/images directory

admin_slideshowII.inc >> to the /lang/english directory
main_slideshowII.inc >> to the /lang/english directory
admin_slideshowII.inc >> to the /lang/english directory
main_slideshowII.inc >> to the /lang/english directory

slideshow.html >> in to the /templates/default directory
(or any other template dir e.g. my_tpl)


or you copy the whole content of  the 4images directory to the ROOT 4images directory on your webserver



***************************************************************************************
***************************************************************************************
RUN   /4images/install_slideshow.php

All neccessary fields will be added to 4images database.
Afterwards delete install_slideshow.php and slideshow.sql for security reasons!



***************************************************************************************
***************************************************************************************
OPEN    /4images/templates/default/categories.html

FIND

                    <td align="right" valign="bottom">{upload_button}</td>

REPLACE

                    <td align="right" valign="bottom">{upload_button}{slideshow_button}</td>



***************************************************************************************
***************************************************************************************
OPEN    /4images/scripts/4images.js (if not available /4images/templates/default/header.html)

END ADD

//-----------------------------------------------------
//--- Slideshow changes -------------------------------
//-----------------------------------------------------
function openslideshow(url,window_width,window_height,new_window) {
  if (new_window == 2 || new_window == 1) {
    var width_avail = screen.availWidth-15;
    var height_avail = screen.availHeight-60;
    var width_full = screen.width;
    var height_full = screen.height;

    // Callculate the spaces from left and top to center the new window:
    var left_space = ((width_avail - window_width) > 0) ? parseInt((width_avail - window_width) / 2) : 0;
    var top_space = ((height_avail - window_height) > 0) ? parseInt((height_avail - window_height) / 2) : 0;
    if (new_window == 2) {
      window_width = width_avail;
      window_height = height_avail;
      left_space = 0;
      top_space = 0;
      url += "&maw="+(window_width-97)+"&mah="+(window_height-194)+"&msw="+width_full+"&msh="+height_full;
    } // if complete picture (whole window)

    slideshow_window = window.open(url,"slideshowwindow","resizable=yes,dependent=yes,hotkeys=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,width="+window_width+",height="+window_height+",left="+left_space+",top="+top_space+"");
  } // if new_window
  else {
    window.location.href=url;
  } // else new_window
} // openslideshow



***************************************************************************************
***************************************************************************************
OPEN    /4images/templates/default/header.html

SEARCH

<link rel="stylesheet" href="{template_url}/style.css" />

AFTER ADD

<script language="JavaScript" type="text/javascript" src="{template_url}/../../scripts/4images.js"></script>

SEARCH AND DELETE

  function opendetailwindow() {
    window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
  }



***************************************************************************************
***************************************************************************************
OPEN    /4images/admin/index.php

FIND

show_nav_option($lang['nav_general_settings'], "settings.php?action=modifysettings");

AFTER ADD

//-----------------------------------------------------
//--- Slideshow changes -------------------------------
//-----------------------------------------------------
show_nav_option($lang["nav_slideshow_settings"], "slideshow_settings.php?action=modifysettings");



***************************************************************************************
***************************************************************************************
OPEN    /4images/categories.php

FIND

  $upload_button = "<a href=\"".$upload_url."\"><img src=\"".get_gallery_image("upload.gif")."\" border=\"0\" alt=\"\" /></a>";
}

AFTER ADD

//-----------------------------------------------------
//--- Slideshow changes -------------------------------
//-----------------------------------------------------
require ("categories_slideshowII.inc");



***************************************************************************************
***************************************************************************************
OPEN    /4images/lang/english/admin.php

END ADD

//-----------------------------------------------------
//--- Slideshow Settings ------------------------------
//-----------------------------------------------------
require("admin_slideshowII.inc");



***************************************************************************************
***************************************************************************************
OPEN    /4images/lang/deutsch/admin.php

END ADD

//-----------------------------------------------------
//--- Slideshow Settings ------------------------------
//-----------------------------------------------------
require("admin_slideshowII.inc");



***************************************************************************************
***************************************************************************************
OPEN    /4images/lang/english/main.php

END ADD

//-----------------------------------------------------
//--- Slideshow Settings ------------------------------
//-----------------------------------------------------
require("main_slideshowII.inc");



***************************************************************************************
***************************************************************************************
OPEN    /4images/lang/deutsch/main.php

END ADD

//-----------------------------------------------------
//--- Slideshow Settings ------------------------------
//-----------------------------------------------------
require("main_slideshowII.inc");



***************************************************************************************
***************************************************************************************
SAVE AND UPLOAD ALL FILES TO SERVER

Go Admin Control Panel and check/modify slideshow settings.

6
Chit Chat / [PLUGIN] Check images v2
« on: March 15, 2005, 03:33:25 PM »

Quote
This is easy mod just replace the old file with this one in zip
you can download zip file from here: http://zvoncek.rozica.com/checkimages_v2.zip

7
I've uploaded the zip files to my server for this mod becouse hack destroyed it! :( I don't give support for it couse it isn't mine! Copyright notice is below! Link to zip file: http://zvoncek.rozica.com/annotation_1_4.zip
Code: [Select]
Auto annotate images MOD for 4images - Image Gallery Management System.

Version: 1.4

Author: Silly Little Lamer <sll@dalnet.ru>

Description:

This MOD automatically places a line of custom text, called "Annotation" on every image uploaded to the Gallery. Fully customizable: font type, size and color, shadow usage, offsets, annotation location, etc. "Batch Annotate" admin plug-in included, to annotate images, uploaded to your gallery before you installed this MOD.

Requirements:

To use in text annotation mode: GD2+ Library compiled with Freetype support. Also works with ImageMagic, but GD still needed for some functions, which ImageMagic is missing.

New in v.1.4

NetPBM support in both text and image embedding mode.
Media type check (applies only on jpeg images; no ‘gif’ errors anymore.


New in v.1.31

CP annotation settings are now separated from the Gallery Settings. Simplified MOD installation.

New in v.1.3

You can choose the annotation method now: text annotation or embedded PNG image (logo, text, etc.). Image embedding (hopefully) works with ImageMagick even if GD library is not installed on your server. Read notes below.

New in v.1.2

Misc. corrections (read 4images forum), code cleanup. Problem with *nix"rename" solved.
Now checking if annotation text would fit image width, skipping if not.
Now you can use variables in the "annotation text" setting, which will be automatically replaced during annotation:
                   %N for Site Name , %H for full Site URL (http://www.mysite.com), %U for short Site URL (www.mysite.com)  
                   %S for User Name (image uploader name), %D for current date, %T for current time, %B to insert line break into annotation text.

New in v.1.1

Now you can customize both text and shadow colors and set alpha blending (text transparency) value for your annotation (thanks to V@no). Transparency using GD2 only!


Installation Level: Easy
Installation Time: 10 Minutes

Files To Edit: 3

/4images/member.php
/4images/admin/index.php
/4images/lang/english/admin.php

Notes:

Due to the GD2 transparency bug you have to use different embedded images for GD or ImageMagick. Prepare true transparent background PNG image to use with ImageMagick. For GD library you’d need the solid color background (for example, black), this color you will set to be transparent in the MOD settings later. See PNG examples attached.

NetPBM users: please note, that for you “alpha blending” actually means embedded image opacity.

For those, who want to disable GD font anti-aliasing (for example, with very small fonts) just set negative $ann_fill_color and $ann_shadow_color like this: -$ann_shadow_color. ImageMagic users should just take away -antialias from the respective lines.

If you get the "Could not find/open font", and you are sure, that you've set the right path and name, try removing the .ttf extension from the filename in MOD settings,  e.g., use  "/fonts/verdana", not "/fonts/verdana.ttf".

GD library and ImageMagic render fonts the different way, so text size will not be the same.

You wont' get very accurate result if you use smaller font size (<10 pt). There is nothing wrong in PHP or GD or even in FreeType. It is just how TrueType font works.

Do not forget, that filenames on *nix systems are case-sensitive!

GD users can check http://www.coupin.net/gd-freetype/ and http://www.coupin.net/gd-freetype/windows.php This patched GD2 version provides much better image quality.      


      
Attention! This MOD is altering 4images database!
Please go Control Panel and backup you database now!


COPY FILES

install_annotation.php >> to the ROOT 4images directory
ia.sql >> to the ROOT 4images directory
*.png >> to the ROOT 4images directory

annotate.php >> to the /includes directory

ann_settings.php >> to the /admin directory
color.html >> to the /admin directory

batch_annotate.php >> to the /admin/plugins directory (create, if not exists)

You'd also need any Windows (not MAC!) TTF font, I'd suggest Arial of Tahoma. For NetPBM you’d need X-Window BDF font. Place it somewhere at your server and remember the full(!) path to it, you'd need to specify this path in 4images settings later. In Windows environment try to avoid very long path, especially with spaces in the name. If for some reason you still have to use such names, specify it 8.3-style (c:/progra~1/fonts/)



RUN   /4images/install_annotation.php

All neccessary fields will be added to 4images database.
Afterwards delete install_annotation.php and ia.sql for security reasons!


OPEN    /4images/member.php

FIND

 if (!$uploaderror) {  

DIRECT BEFORE, ADD

//-------------------------------------------------------------------------------------------
// --- Annotate Images ----------------------------------------------------------------------
//-------------------------------------------------------------------------------------------

if ($config['annotation_use'] && strtolower(get_file_extension($new_name) == jpg)) {
require(ROOT_PATH.'includes/annotate.php');
$ann_user_name = ($user_info['user_name']);
  if ($direct_upload) { $ann_src = MEDIA_PATH."/".$cat_id."/".$new_name; }
  else { $ann_src = MEDIA_TEMP_PATH."/".$new_name; }
  annotate_image($ann_src);
}

//-------------------------------------------------------------------------------------------


OPEN    /4images/admin/index.php

FIND

show_nav_option($lang['nav_general_settings'], "settings.php?action=modifysettings");

AFTER ADD

show_nav_option($lang['nav_ann_settings'], "ann_settings.php?action=modifysettings");


OPEN    /4images/lang/english/admin.php

ADD

//-----------------------------------------------------
//--- Annotation Settings -----------------------------
//-----------------------------------------------------

$lang['nav_ann_settings'] = "Annotation Settings";
$lang['nav_ann_current_conv_tool'] = "is set as an image conversion tool";
$setting['annotation_use'] = "Use auto images annotation on image upload";
$setting['annotation_mode'] = "Annotation mode<br /><span class=\"smalltext\">Select if you using text for annotation or embedding image</span>";
$annotation_mode_optionlist = array(
  "text"  => "text",
  "image" => "image"
);
$setting['annotation_embed_image'] = "Image to embed<br /><span class=\"smalltext\">Specify full path and filename of PNG image</span>";
$setting['annotation_embed_image_opacity'] = "Embedded image opacity<br /><span class=\"smalltext\">Specify value from 0 to 100.</span>";
$setting['annotation_embed_image_bg'] = "Embedded image background color to set as a transparent<br /><span class=\"smalltext\">Define HEX value, for example #000000. Have a look at <a target=\"_blank\" href=\"color.html\">color samples</a></span>";
$setting['annotation_font'] = "Annotation font&nbsp;&nbsp;<span class=\"smalltext\"><br>Specify full path and font filename.<br>For ImageMagick & GD Lib: <b>Windows TTF</b> fonts only, for NetPBM: <b>X-Windows BDF</b> fonts only!</span>";
$setting['annotation_font_size'] = "Annotation font size";
$setting['annotation_use_shadow'] = "Use letter shadows";
$setting['annotation_shadow_offset'] = "Shadow offset (same right and down)";
$setting['annotation_image_quality'] = "Resulting image quality (in per cent)";
$setting['annotation_text'] = "Annotation text<br /><span class=\"smalltext\">You can use the following variables: <b>%N</b> - Site Name, <b>%H</b> - full Site URL, <b>%U</b> - short Site URL, <b>%S</b> - User Name, <b>%D</b> - date, <b>%T</b> - time, <b>%B</b> - line break</span>";
$setting['annotation_fill_color'] = "Annotation text fill color<br /><span class=\"smalltext\">Define HEX value, for example #FFFFFF. Have a look at <a target=\"_blank\" href=\"color.html\">color samples</a></span>";
$setting['annotation_shadow_color'] = "Annotation text shadow color<br /><span class=\"smalltext\">Define HEX value, for example #000000. Have a look at <a target=\"_blank\" href=\"color.html\">color samples</a></span>";
$setting['annotation_fill_alpha'] = "Fill color alpha blending (transparency)<br /><span class=\"smalltext\">Alpha blending value must be between 0.0 and 0.9&nbsp;&nbsp;&nbsp;&nbsp;0.0 = no transparency</span>";
$annotation_fill_alpha_optionlist = array(
  "0.0"  => "0.0",
  "0.1"  => "0.1",
  "0.2"  => "0.2",
  "0.3"  => "0.3",
  "0.4"  => "0.4",
  "0.5"  => "0.5",
  "0.6"  => "0.6",
  "0.7"  => "0.7",
  "0.8"  => "0.8",
  "0.9"  => "0.9",
);
$setting['annotation_shadow_alpha'] = "Shadow color alpha blending (transparency)<br /><span class=\"smalltext\">Alpha blending value must be between 0.0 and 0.9&nbsp;&nbsp;&nbsp;&nbsp;0.0 = no transparency</span>";
$annotation_shadow_alpha_optionlist = array(
  "0.0"  => "0.0",
  "0.1"  => "0.1",
  "0.2"  => "0.2",
  "0.3"  => "0.3",
  "0.4"  => "0.4",
  "0.5"  => "0.5",
  "0.6"  => "0.6",
  "0.7"  => "0.7",
  "0.8"  => "0.8",
  "0.9"  => "0.9",
);
$setting['annotation_v_alignment'] = "Vertical annotation alignment";
$setting['annotation_h_alignment'] = "Horizontal annotation alignment";
$annotation_v_positioning_optionlist = array(
  "top"  => "image top",
  "middle" => "image middle",
  "bottom" => "image bottom"
);
$annotation_h_positioning_optionlist = array(
  "left"  => "left image edge",
  "center"  => "image center",
  "right" => "right image edge"
);
$setting['annotation_top_offset'] = "Top annotation margin";
$setting['annotation_bottom_offset'] = "Bottom annotation margin";
$setting['annotation_left_offset'] = "Left annotation margin";
$setting['annotation_right_offset'] = "Right annotation margin";


OPEN    /4images/lang/deutsch/admin.php

ADD

//-----------------------------------------------------
//--- Annotation Settings -----------------------------
//-----------------------------------------------------

$lang['nav_ann_settings'] = "Annotation Einstellungen";
$lang['nav_ann_current_conv_tool'] = "gewaehlt als Modul zum Erstellen der Bilder";
$setting['annotation_use'] = "Automatische Annotation-Funktion beim Upload";
$setting['annotation_mode'] = "Anmerkung Modus<br /><span class=\"smalltext\">Wahlen Sie wenn Sie Text fur Anmerkung verwendend oder Bild einbettend vor</span>";
$annotation_mode_optionlist = array(
  "text"  => "Text",
  "image" => "Bild"
);
$setting['annotation_embed_image'] = "Einzubetten Bild<br /><span class=\"smalltext\">Spezifizieren Sie PNG voller Path und Dateiname</span>";
$setting['annotation_embed_image_opacity'] = "Eingebettete Bildnis Undurchsichtigkeit<br /><span class=\"smalltext\">Spezifizieren Sie Wert von 0 bis 100.</span>";
$setting['annotation_embed_image_bg'] = "Eingebettete Bildhintergrundfarbe, zum als transparentes einzustellen<br /><span class=\"smalltext\">Definieren Sie  einen HEX Wert, Z.B. #000000. Beispiele sehen Sie hier <a target=\"_blank\" href=\"color.html\">Farbbeispiele</a></span>";
$setting['annotation_font'] = "Annotation Schriftart&nbsp;&nbsp;<br><span class=\"smalltext\">Definieren Sie die volle Pfadangabe und den Dateinamen der Schrift<br>Fьr ImageMagick & GD Lib: nur <b>Windows TTF</b> fonts, fьr NetPBM: nur <b>X-Windows BDF</b> Fonts!</span>";
$setting['annotation_font_size'] = "Annotation Schriftgrosse";
$setting['annotation_use_shadow'] = "Schatten Buchstaben verwenden";
$setting['annotation_shadow_offset'] = "Schattenversatz (gleichfalls rechts und unten)";
$setting['annotation_image_quality'] = "Auszugebende Bildqualitat (in Prozent)";
$setting['annotation_text'] = "Annotation Text<br /><span class=\"smalltext\">Sie konnen Variablen hier benutzen: <b>%N</b> fur Name der Galerie, <b>%H</b> fur Site URL, <b>%U</b> - Kurze Site URL, <b>%S</b> - Username, <b>%D</b> fur jetziges Datum, <b>%T</b> fur jetzige Zeit, <b>%B</b> - line break</span>";
$setting['annotation_fill_color'] = "Annotation Text Fullfarbe<br /><span class=\"smalltext\">Definieren Sie  einen HEX Wert, Z.B. #000000. Beispiele sehen Sie hier <a target=\"_blank\" href=\"color.html\">Farbbeispiele</a></span>";
$setting['annotation_shadow_color'] = "Annotation Text Schattenfarbe<br /><span class=\"smalltext\">Definieren Sie  einen HEX Wert, Z.B. #000000. Beispiele sehen Sie hier <a target=\"_blank\" href=\"color.html\">Farbbeispiele</a></span>";
$setting['annotation_fill_alpha'] = "Fullfarbe des Alpha Blending (Transparenz)<br /><span class=\"smalltext\">Der Alpha Blending Wert muss zwischen 0.0 and 1.0&nbsp;&nbsp;&nbsp;&nbsp;(0.0 = Keine Transparenz) liegen</span>";
$annotation_fill_alpha_optionlist = array(
  "0.0"  => "0.0",
  "0.1"  => "0.1",
  "0.2"  => "0.2",
  "0.3"  => "0.3",
  "0.4"  => "0.4",
  "0.5"  => "0.5",
  "0.6"  => "0.6",
  "0.7"  => "0.7",
  "0.8"  => "0.8",
  "0.9"  => "0.9",
);
$setting['annotation_shadow_alpha'] = "Schattenfarbe des Alpha Blending (Transparenz)<br /><span class=\"smalltext\">Der Alpha Blending Wert muss zwischen 0.0 and 1.0&nbsp;&nbsp;&nbsp;&nbsp;(0.0 = Keine Transparenz) liegen</span>";
$annotation_shadow_alpha_optionlist = array(
  "0.0"  => "0.0",
  "0.1"  => "0.1",
  "0.2"  => "0.2",
  "0.3"  => "0.3",
  "0.4"  => "0.4",
  "0.5"  => "0.5",
  "0.6"  => "0.6",
  "0.7"  => "0.7",
  "0.8"  => "0.8",
  "0.9"  => "0.9",
);
$setting['annotation_v_alignment'] = "Vertikale Ausrichtung des Annotation Textes oder Bild";
$setting['annotation_h_alignment'] = "Horizontale Ausrichtung des Annotation Textes oder Bild";
$annotation_v_positioning_optionlist = array(
  "top"  => "Oberer Rand des Bildes",
  "middle"  => "Bildmitte",
  "bottom" => "Unterer Rand des Bildes"
);
$annotation_h_positioning_optionlist = array(
  "left"  => "Linke Bildecke",
  "center"  => "Bildcenter",
  "right" => "Rechte Bildecke"
);
$setting['annotation_top_offset'] = "Versatz des oberen Textes oder Bild";
$setting['annotation_bottom_offset'] = "Versatz des unteren Textes oder Bild";
$setting['annotation_left_offset'] = "Versatz des linken Textes oder Bild";
$setting['annotation_right_offset'] = "Versatz des rechten Textes oder Bild";

SAVE AND UPLOAD ALL FILES TO SERVER

Go Admin Control Panel and check/modify annotations settings.

8
Chit Chat / [MOD]Another Simple News Publishing Mod
« on: March 15, 2005, 03:16:53 PM »
This mod was here before hack and I just published readmet.txt and uploaded zip files to my server! I don't give support for it couse it isn't mine!
Download file here: http://zvoncek.rozica.com/4images_news.zip

Code: [Select]
##############################################################
## MOD Title: Another Simple News Publishing Mod
## MOD Author: janfy < janfy@cagades.com > http://www.cagades.com/
## MOD Description: Adds news to your 4images gallery
##
## MOD Version: 1.3.0
##
## MOD Topic : http://www.4homepages.de/forum/index.php?topic=6778.0
##
## Installation Level: (Medium)
## Installation Time: 20 Minutes
##
## Files To Edit: - index.php
##                - admin/index.php
##                - admin/settings.php
##                - includes/constants.php
##                - lang/english/main.php
## - lang/english/admin.php
##                - lang/french/main.php
##                - lang/french/admin.php
##                - templates/home.html
##
## Included Files: admin/news.php
## includes/rssbuilder.php
## install_news.php
## news.php
## rss.php
## rss_reader.php (simple RSS reader by Richard James Kendall-richard@richardjameskendall.com)
## templates/default/news.html
## templates/default/news_bit.html
## templates/default/news_show.html
##
## MOD Demo : http://www.bestof-sexe.com/4images/
## http://www.bestof-sexe.com/4images/news.php
## http://www.bestof-sexe.com/4images/rss.php
## http://www.bestof-sexe.com/4images/rss_reader.php
##############################################################
##############################################################
## Author Notes:
##
## Only administrator are allowed to publish news
##
##############################################################
## MOD History:
##
## 2004-09-12 - version 1.3.0: -Adding config parameters :
## - number of news to display on homepage
## OR
## - show news of the last X days
## - Allow HTML in news
## - Allow BB-Code in news
## - Allow images (BB-Code) in news
##
##  -Display 'New' text for newer news
##
## 2004-08-22 - version 1.2.0: Added RSS generator
## 2004-08-15 - version 1.1.0: Added an 'Archives' page to show old news with pagination
##   2004-08-11 - Added file install_news.php to simply update your DB.
##   2004-08-08 - Version 1.0.0
##       - First Release
##
##############################################################
## MOD Todo:
## - Add configuration option to easily configure rss feed
##############################################################
## Before Adding This MOD To Your Gallery, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]---------------------------------
#
includes/constants.php

#
#-----[ FIND ]---------------------------------
#
define('LIGHTBOXES_TABLE', $table_prefix.'lightboxes');

#
#-----[ AFTER, ADD ]------------------------------------------
#
define('NEWS_TABLE', $table_prefix.'news');

#
#-----[ OPEN ]---------------------------------
#
index.php

#
#-----[ FIND ]---------------------------------
#
unset($categories);

#
#-----[ AFTER, ADD ]------------------------------------------
#

//-----------------------------------------------------
// ----- Show news ------------------------------------
//-----------------------------------------------------

if (!isset($config['news_home_display']) || $config['news_home_display'] == 1)
$sql = "SELECT news_title, news_text, user_name, news_date FROM ".NEWS_TABLE." ORDER BY news_date DESC LIMIT 0, ".((isset($config['news_nb']))?$config['news_nb']:5);
else if ($config['news_home_display'] == 2)
$sql = "SELECT news_title, news_text, user_name, news_date FROM ".NEWS_TABLE." WHERE news_date > ".(time() - ((isset($config['news_nb_days']))?$config['news_nb_days']:15)*86400)." ORDER BY news_date DESC";

$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);

if (!$num_rows)  {
  $news = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  $news .= $lang['no_news'];
  $news .= "</td></tr></table>";
}
else  {
  $news = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";

  while ($image_row = $site_db->fetch_array($result))
  {
    $news .= "<tr class=\"imagerow1\">\n";
    $news .= "<td width=\"100%\" valign=\"top\">\n";
    $new_is_new = ($image_row['news_date'] > time() - ((isset($config['news_cutoff']))?$config['news_cutoff']:3)*86400);
$news .= "<b>".$image_row['news_title']."</b>".(($new_is_new)?" <sup class=\"new\">".$lang['new']."</sup>":"").sprintf($lang['news_posted_by'], $image_row['user_name'], format_date($config['date_format']." ".$config['time_format'], $image_row['news_date']));
    $news .= "\n</td>\n";
    $news .= "</tr>\n";

    $news .= "<tr class=\"imagerow2\">\n";
    $news .= "<td width=\"100%\" valign=\"top\">\n<br/>";
$news .= format_text($image_row['news_text'], ((isset($config['news_html']))?$config['news_html']:0), 0, ((isset($config['news_bbcode']))?$config['news_bbcode']:1), ((isset($config['news_bbcodeimg']))?$config['news_bbcodeimg']:1));
$news .= "<br/><br/>\n</td>\n";
    $news .= "</tr>\n";

  } // end while

  $news .= "</table>\n";
} // end else

$site_template->register_vars(array(
"news" => $news,
"news_archives" => $lang['news_archive'],
"news_main" => $lang['news_main']
));
unset($news);

#
#-----[ OPEN ]---------------------------------
#
admin/index.php

#
#-----[ FIND ]---------------------------------
#
show_nav_option($lang['nav_comments_edit'], "comments.php?action=modifycomments");

#
#-----[ AFTER, ADD ]------------------------------------------
#
show_nav_header($lang['news_main']);
show_nav_option($lang['news_add'], "news.php?action=addnews");
show_nav_option($lang['modify_news'], "news.php?action=modifynews");


#
#-----[ OPEN ]---------------------------------
#
lang/english/main.php

#
#-----[ FIND ]---------------------------------
#
$lang['delete'] = "[Delete]";

#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['news_main'] = 'News';
$lang['no_news'] = 'No news';
$lang['news_deleted'] = ' news deleted';
$lang['newss_deleted'] = ' news deleted';
$lang['news_deletion'] = 'News deletion';
$lang['newss'] = 'news';
$lang['news'] = 'news';
$lang['news_modified'] = 'News modified successfully.';
$lang['news_modified_nok'] = 'Error during news modification.';
$lang['news_deletion_confirmation'] = 'Do you really want to delete the %s selected news.';
$lang['edit_news_title'] = 'News #%d posted by %s';
$lang['news_title'] = 'Title';
$lang['news_content'] = 'Content';
$lang['news_date'] = 'Date';
$lang['modify_news'] = 'Edit news';
$lang['news_author'] = 'Author';
$lang['news_add'] = 'Add a news';
$lang['news_add_ok'] = 'News added successfully.';
$lang['news_posted_by'] = ' -- Posted by <b>%s</b> on <i>%s</i>';
$lang['news_archive'] = 'Archives';
$lang['page'] = 'Page';

#
#-----[ OPEN ]---------------------------------
#
lang/french/main.php

#
#-----[ FIND ]---------------------------------
#
$lang['delete'] = "[Supprimer]";

#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['news_main'] = 'Nouvelles';
$lang['no_news'] = 'Pas de nouvelle';
$lang['news_deleted'] = ' nouvelle supprimée';
$lang['newss_deleted'] = ' nouvelles supprimées';
$lang['news_deletion'] = 'Suppression de news';
$lang['newss'] = 'nouvelles';
$lang['news'] = 'nouvelle';
$lang['news_modified'] = 'Nouvelle modifiée avec succčs';
$lang['news_modified_nok'] = 'Erreur lors de la modification de la nouvelle.';
$lang['news_deletion_confirmation'] = 'Etes vous sur de vouloir supprimer la(les) %s nouvelle(s) sélectionnée(s)';
$lang['edit_news_title'] = 'Nouvelle #%d postée par %s';
$lang['news_title'] = 'Titre';
$lang['news_content'] = 'Contenu';
$lang['news_date'] = 'Date';
$lang['modify_news'] = 'Editer les nouvelles';
$lang['news_author'] = 'Auteur';
$lang['news_add'] = 'Ajouter une nouvelle';
$lang['news_add_ok'] = 'Nouvelle ajoutée avec succés.';
$lang['news_posted_by'] = ' -- Posté par <b>%s</b> le <i>%s</i>';
$lang['news_archive'] = 'Archives';
$lang['page'] = 'Page';

#
#-----[ OPEN ]---------------------------------
#
template/default/home.html

#
#-----[ FIND ]---------------------------------
#
{whos_online}

#
#-----[ BEFORE, ADD ]------------------------------------------
#
<table width="450" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="head1">
      <table width="100%" border="0" cellspacing="0" cellpadding="4">
        <tr>
          <td class="head1">{news_main}</td>
          <td class="head1" align="right"><a class="head1" href="news.php">{news_archives}</a></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="head1" colspan="2">{news}</td>
  </tr>
</table>
<br />

#
#-----[ OPEN ]---------------------------------
#
lang/english/admin.php

#
#-----[ FIND ]---------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
/*-- Setting-Group 8 --*/
$setting_group[8] = "News";
$news_display_optionlist = array(
  "1" => "Show the last 'X' news",
  "2" => "Show news of the last 'X' days",
);

$setting['news_home_display'] = "News display mode";
$setting['news_nb'] = "News number";
$setting['news_nb_days'] = "Days number";
$setting['news_cutoff'] = "Number of days each news is marked as new";
$setting['news_html'] = "Allow HTML in news";
$setting['news_bbcode'] = "Allow BB-Code in news";
$setting['news_bbcodeimg'] = "Allow images (BB-Code) in news";

#
#-----[ OPEN ]---------------------------------
#
lang/french/admin.php

#
#-----[ FIND ]---------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
/*-- Setting-Group 8 --*/
$setting_group[8] = "Nouvelles";
$news_display_optionlist = array(
  "1" => "Afficher les 'X' derničres nouvelles",
  "2" => "Afficher les nouvelles des 'X' derniers jours",
);

$setting['news_home_display'] = "Mode d'affichage des nouvelles";
$setting['news_nb'] = "Nombre de nouvelles";
$setting['news_nb_days'] = "Nombre de jours";
$setting['news_cutoff'] = "Nombre de jours ou la nouvelle est considérée comme 'nouvelle'";
$setting['news_html'] = "Autoriser le HTML dans les nouvelles";
$setting['news_bbcode'] = "Autoriser le BB-Code dans les nouvelles";
$setting['news_bbcodeimg'] = "Autoriser les images (BB-Code) dans les nouvelles";

#
#-----[ OPEN ]---------------------------------
#
admin/settings.php

#
#-----[ FIND ]---------------------------------
#
show_setting_row("highlight_admin", "radio");

#
#-----[ AFTER, ADD ]------------------------------------------
#
show_table_separator($setting_group[8], 2, "#setting_group_8");
show_setting_row("news_home_display", "show_news_display_options");
show_setting_row("news_nb");
show_setting_row("news_nb_days");
show_setting_row("news_cutoff");
show_setting_row("news_html", "radio");
show_setting_row("news_bbcode", "radio");
show_setting_row("news_bbcodeimg", "radio");

#
#-----[ FIND ]---------------------------------
#
// end of functions

#
#-----[ BEFORE, ADD ]------------------------------------------
#

function show_news_display_options($setting_name, $setting_value) {
  global $news_display_optionlist;
  foreach ($news_display_optionlist as $key => $val) {
    echo "<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if ($setting_value == $key) {
      echo " checked=\"checked\"";
    }
    echo "> ".$val."<br />";
  }
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

#
#-----[ DATABASE UPDATE ]------------------------------------------
#

Open a web browser and open the page http://your_domain/4images_dir/install_news.php
to update the database

9
Language Packs / [Language] Slovenian language pack
« on: March 15, 2005, 03:10:31 PM »
This is Slovenian language pack! Slovenian and not Slovakian!
http://zvoncek.rozica.com/slovenian.zip

10
Chit Chat / Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« on: March 15, 2005, 02:59:06 PM »
I have few mods with readme and install.txt files included!
Slideshow 1.3
Batch importing
News system
Import webimages 0.8.4
Image annotation 1.4
check images v2

Do I upload it to server and u will then place it where it belongs?

11
Chit Chat / Is the "picture in signature" also lost?
« on: March 14, 2005, 08:55:10 PM »
Subject says all!

Pages: [1]