Author Topic: Missing MODs/FIXes/FAQs (Updated 19-07-2005 21:10 EST)  (Read 93247 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Missing MODs/FIXes/FAQs (Updated 19-07-2005 21:10 EST)
« on: March 15, 2005, 08:32:17 AM »
This is list of MODs/FIXes/FAQs that we have saved from Google, Yahoo and MSN search cached pages.
If u know any other MODs/FIXes/FAQs that were posted before the hack and not included in this list and havent been published yet, please let us know
Also, if a topic already published and in the list it listed as not published, please let us know too, so we wont waste our time recreating already published topics.
NOTE:
please do not post cached pages of a mod already included in this list and listed as "mod/fix is saved but not published yet". We already have those.



Thank you.


Legend:
  • mod/fix is saved but not published yet
  • mod/fix is published
  • mod/fix is missing need help to restore it!
The topics:

« Last Edit: March 19, 2005, 07:37:21 PM by Chris »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« Reply #1 on: March 15, 2005, 02:46:18 PM »
We're still missing the [Error] and [Tip] posts that we had in the FAQ forum.  And we're also missing the bug fixes  :|

I found a few last night in the Yahoo cache but after a while, the cached pages stopped loading and I had to go to bed.
« Last Edit: March 15, 2005, 02:48:55 PM by Chris »

Offline Antrax

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« Reply #2 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?

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« Reply #3 on: March 15, 2005, 03:08:02 PM »
If anyone can recover the following topics, it would be greatly appreciated by all forum visitors !  These were invaluable bug fixes

Code: [Select]
1.7, 1.7.1: Reuse eCard values when modifying from preview
1.7.1: {if blah} {endif blah} left in templates
1.7, 1.7.1: No right-click javascript for all browsers
Can not upload images when no cat_id specified
Deleting an image does not remove it from lightboxes
Max height setting has no affect when you do image resize
User edit image does not pre-load original value
Quotes in category names
Wrong search results when certain conditions applied
Additional fields are not autofilled in 'edit image'
Allow IP in download URL and remote image path
Image download counter does not update when dl from lightbox
Deleting of non-activated users
ACP - can not find images uploaded by nonexistent users
Subcategory columns do not display proportionately
1.7: Back btn fails in Admin CP Edit Users/Images
Error msg when update/delete user with quote in the name
details.php with mode=lightbox, next/previous may be wrong
Can not display \\# (i.e \\2 or \\4 or \\9)

EDIT:

I have successfully recovered the following bug fix topics:
Code: [Select]
1.7, 1.7.1 Reuse eCard values when modifying from preview
1.7.1 {if blah} {endif blah} left in templates
ACP - can not find images uploaded by nonexistent users
Allow IP in download URL and remote image path
Deleting an image does not remove it from lightboxes
Deleting of non-activated users
Image download counter does not update when dl from lightbox
Quotes in category names
1.7: Database backup fails in Mozilla and Firefox
« Last Edit: April 01, 2005, 08:56:56 PM by V@no »

Offline Antrax

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
[MOD]Another Simple News Publishing Mod
« Reply #4 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
« Last Edit: March 15, 2005, 03:18:53 PM by Antrax »

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« Reply #5 on: March 15, 2005, 03:24:23 PM »
Do I upload it to server and u will then place it where it belongs?
Yes, just post a reply to this topic and include the recovered cached pages or mod files as attachments to the post.  Thank you.

Offline Antrax

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
[MOD]Auto annotate images MOD for 4images - Image Gallery Management
« Reply #6 on: March 15, 2005, 03:28:16 PM »
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.

Offline Antrax

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
[PLUGIN] Check images v2
« Reply #7 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

Offline Antrax

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
[MOD]SlideshowII MOD for 4images
« Reply #8 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.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« Reply #9 on: March 15, 2005, 04:29:27 PM »
Thank you but in the future, please upload attachments to THIS topic so everything is in one place.  Just give up the topic title and we will know which board it goes to.  I am going to merge your other posts into this topic
« Last Edit: March 15, 2005, 04:33:04 PM by Chris »

Offline Antrax

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« Reply #10 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

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« Reply #11 on: March 15, 2005, 06:43:43 PM »
Post subject: [FIX] details.php with mode=lightbox next/prev maybe wrong

Code: [Select]
V@no
Post subject: [FIX] details.php with mode=lightbox next/prev maybe wrong   

--------------------------------------------------------------------------------
 
This is a little bug, that will show u next/previous links in lightbox mode to images even if u dont have permission to view them and

because u dont have permission to view details of those images, u'll be redirected to index.php
(to check it try this: set view_cat permissions to ALL, set view_image permissions to ADMIN, add images in your lightbox, then add one

image from another category where u have permission to view_cat and view_image. Then go to lightbox, click on that image in details.php

u'll see link to next image that will redirect u to index.php when u click on it)

FIX:
Open /details.php
Find:Code:
            WHERE image_active = 1 AND image_id IN ($image_id_sql) AND cat_id IN (".get_auth_cat_sql("auth_viewcat").")
Replace with:Code:
            WHERE image_active = 1 AND image_id IN ($image_id_sql) AND (cat_id IN (".get_auth_cat_sql("auth_viewimage").") AND cat_id IN

(".get_auth_cat_sql("auth_viewcat")."))
« Last Edit: March 15, 2005, 06:45:35 PM by impss »

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« Reply #12 on: March 15, 2005, 06:51:35 PM »
[Bug Fix 1.7] Back btn fails in Admin CP Edit Users/Images   

Code: [Select]
vividviews

Joined: 11 May 2002
Posts: 3060
Location: USA
 Posted: 23.10.2003, 18:58    Post subject: [Bug Fix 1.7] Back btn fails in Admin CP Edit Users/Images   

--------------------------------------------------------------------------------
 
This bug fix applies to 4images version 1.7

Problem
When editing users from the admin control panel and a multipage list is returned, the "Back" button does not work. The same holds true for "Edit Images".

Edit Users Solution
Open admin/users.php and locate this block of code:
Code:
  echo "<div align=\"right\">";
  echo "<form action=\"".$site_sess->url("users.php")."\" name=\"form2\" method=\"post\">\n";

  if ($limitnumber != 5000 && $limitfinish < $countusers['users']) {
    show_hidden_input("action", "findusers");
    show_hidden_input("user_level", $user_level);
    show_hidden_input("user_name", $user_name, 1);
    show_hidden_input("user_email", $user_email, 1);
    show_hidden_input("dateafter", $dateafter);
    show_hidden_input("datebefore", $datebefore);
    show_hidden_input("lastactionafter", $lastactionafter);
    show_hidden_input("lastactionbefore", $lastactionbefore);

    show_hidden_input("orderby", $orderby, 1);
    show_hidden_input("direction", $direction, 1);
    show_hidden_input("limitstart", $limitstart + $limitnumber + 1);
    show_hidden_input("limitnumber", $limitnumber);

    echo "<input type=\"submit\" value=\"   ".$lang['search_next_page']."   \" class=\"button\">\n";
  }
  echo "<input type=\"button\" value=\"   ".$lang['back']."   \" onclick=\"history.go(-1)\" class=\"button\">\n";
  echo "</form>";
  echo "</div>";
}

REPLACE the entire block with this:
Code:
  echo "<div align=\"right\">";
  echo "<form action=\"".$site_sess->url("users.php")."\" name=\"form2\" method=\"post\">\n";

  //if ($limitnumber != 5000 && $limitfinish < $countusers['users']) {
    show_hidden_input("action", "findusers");
    show_hidden_input("user_level", $user_level);
    show_hidden_input("user_name", $user_name, 1);
    show_hidden_input("user_email", $user_email, 1);
    show_hidden_input("dateafter", $dateafter);
    show_hidden_input("datebefore", $datebefore);
    show_hidden_input("lastactionafter", $lastactionafter);
    show_hidden_input("lastactionbefore", $lastactionbefore);
    show_hidden_input("orderby", $orderby, 1);
    show_hidden_input("direction", $direction, 1);
    show_hidden_input("limitstart", $limitstart + $limitnumber + 1);
    show_hidden_input("limitnumber", $limitnumber);

  if( $limitstart > 1 )
  echo "<input type=\"button\" value=\"   ".$lang['back']."   \" onclick=\"limitstart.value=limitstart.value-limitnumber.valu
e*2;submit();\" class=\"button\">\n";
  if ($limitnumber != 5000 && $limitfinish < $countusers['users']) {
    echo "<input type=\"submit\" value=\"   ".$lang['search_next_page']."   \" class=\"button\">\n";
  }
  // echo "<input type=\"button\" value=\"   ".$lang['back']."   \" onclick=\"history.go(-1)\" class=\"button\">\n";
  echo "</form>";
  echo "</div>";
}



Edit Images Solution
Open admin/images.php and locate this block of code:
Code:
  echo "<div align=\"right\">";
  echo "<form action=\"".$site_sess->url("images.php")."\" name=\"form2\" method=\"post\">\n";
 
  if ($limitnumber != 5000 && $limitfinish < $countimages['images']) {
    show_hidden_input("action", "findimages");
    show_hidden_input("image_id", $image_id);
    show_hidden_input("image_name", $image_name, 1);
    show_hidden_input("image_description", $image_description, 1);
    show_hidden_input("image_keywords", $image_keywords, 1);
    show_hidden_input("cat_id", $cat_id);
    show_hidden_input("image_media_file", $image_media_file, 1);
    show_hidden_input("image_thumb_file", $image_thumb_file, 1);
    show_hidden_input("dateafter", $dateafter);
    show_hidden_input("datebefore", $datebefore);
    show_hidden_input("downloadsupper", $downloadsupper);
    show_hidden_input("downloadslower", $downloadslower);
    show_hidden_input("ratingupper", $ratingupper);
    show_hidden_input("ratinglower", $ratinglower);
    show_hidden_input("votesupper", $votesupper);
    show_hidden_input("voteslower", $voteslower);
    show_hidden_input("hitsupper", $hitsupper);
    show_hidden_input("hitslower", $hitslower);

    show_hidden_input("orderby", $orderby, 1);
    show_hidden_input("direction", $direction, 1);
    show_hidden_input("limitstart", $limitstart + $limitnumber + 1);
    show_hidden_input("limitnumber", $limitnumber);

    echo "<input type=\"submit\" value=\"   ".$lang['search_next_page']."   \" class=\"button\">\n";
  }
  echo "<input type=\"button\" value=\"   ".$lang['back']."   \" onclick=\"history.go(-1)\" class=\"button\">\n";
  echo "</form>";
  echo "</div>";
}


REPLACE the entire block with this:
Code:
  echo "<div align=\"right\">";
  echo "<form action=\"".$site_sess->url("images.php")."\" name=\"form2\" method=\"post\">\n";
 
  //if ($limitnumber != 5000 && $limitfinish < $countimages['images']) {
    show_hidden_input("action", "findimages");
    show_hidden_input("image_id", $image_id);
    show_hidden_input("image_name", $image_name, 1);
    show_hidden_input("image_description", $image_description, 1);
    show_hidden_input("image_keywords", $image_keywords, 1);
    show_hidden_input("cat_id", $cat_id);
    show_hidden_input("image_media_file", $image_media_file, 1);
    show_hidden_input("image_thumb_file", $image_thumb_file, 1);
    show_hidden_input("dateafter", $dateafter);
    show_hidden_input("datebefore", $datebefore);
    show_hidden_input("downloadsupper", $downloadsupper);
    show_hidden_input("downloadslower", $downloadslower);
    show_hidden_input("ratingupper", $ratingupper);
    show_hidden_input("ratinglower", $ratinglower);
    show_hidden_input("votesupper", $votesupper);
    show_hidden_input("voteslower", $voteslower);
    show_hidden_input("hitsupper", $hitsupper);
    show_hidden_input("hitslower", $hitslower);

    show_hidden_input("orderby", $orderby, 1);
    show_hidden_input("direction", $direction, 1);
    show_hidden_input("limitstart", $limitstart + $limitnumber + 1);
    show_hidden_input("limitnumber", $limitnumber);

  if( $limitstart > 1 )
    echo "<input type=\"button\" value=\"   ".$lang['back']."   \" onclick=\"limitstart.value=limitstart.value-limitnumber.value*2;submit();\" class=\"button\">\n";
  if ($limitnumber != 5000 && $limitfinish < $countimages['images']) {
    echo "<input type=\"submit\" value=\"   ".$lang['search_next_page']."   \" class=\"button\">\n";
  }
  //echo "<input type=\"button\" value=\"   ".$lang['back']."   \" onclick=\"history.go(-1)\" class=\"button\">\n";
  echo "</form>";
  echo "</div>";
}
 
 
 
 

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« Reply #13 on: March 15, 2005, 06:56:43 PM »
Post subject: [FIX] Subcategories columns dont show proportionaly

Code: [Select]
V@no



Joined: 17 Jul 2002
Posts: 5351
Location: Atlanta, GA, RUSSIA-LATVIA
 Posted: 26.12.2002, 09:23    Post subject:   

--------------------------------------------------------------------------------
 
I think it's little bug....
here is the fix:

1. Open /includes/functions.php file.
1.2. Find:Code:
      if ($total <= $table_columns && $table_columns > 1) {
        $table_rows = 1;
      }
      else {
        $table_rows = $total / $table_columns;
        if ($total >= $table_columns && !is_integer($table_rows)) {
          $table_rows = intval($table_rows) + 1;
        }
      }
Just delete it.
 
 

Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: Missing MODs/FIXes/FAQs (Updated 15-03-2004 03:00 EST)
« Reply #14 on: March 15, 2005, 07:00:48 PM »
Auto fill in additional image fields

Code: [Select]
moritzh



Joined: 11 Mar 2003
Posts: 3
Location: Zurich (CH) / Hamburg (D)
 Posted: 06.08.2003, 19:50    Post subject: Auto fill in additional image fields/Zusätzliche Bild-Felder   

--------------------------------------------------------------------------------
 
If you add additional user and image fields to your gallery following the description in db_field_definitions.php, you will have one problem when including these fields in your templates, such as member_editimage.html:
While the standard fields (such as name of the image) will be filled with the existing (current) values on the member_editimage.html form, all the additional fields will show up empty.
This only happened to me with the additional image fields, not with the additional user fields. Strange...
For instance, I added additional fields like user_name_last and user_name_first and image_photographer. I changed member_editprofile.html and member_editimage.html and member_uploadform.html to let users change these additional fields. However, while all the user_fields worked perfectly alright (meaning that on the page where users can modify their profile (member_editprofile.html) all the existig values where already filled in (e.g. if a last name was stored in user_name_last, it showed up)), the additional image fields didn't (meaning that if something was stored for the name of the photographer in image_photographer, it still did not show up on member_editimage, so the field was blank although a name was stored).
Here is how I resolved it:

#####
OPEN
#####
member.php


#####
FIND
#####
Code:

  $site_template->register_vars(array(
    "image_id" => $image_id,
    "image_name" => htmlspecialchars($image_name),
    "image_description" => htmlspecialchars($image_description),
    "image_keywords" => htmlspecialchars($image_keywords),
    "image_allow_comments_yes" => ($image_allow_comments) ? " checked=\"checked\"" : "",
    "image_allow_comments_no" => (!$image_allow_comments) ? " checked=\"checked\"" : "",
    "lang_edit_image" => $lang['image_edit'],
    "lang_image_name" => $lang['image_name'],
    "lang_description" => $lang['description'],
    "lang_keywords" => $lang['keywords_ext'],
    "lang_allow_comments" => isset($lang['allow_comments']) ? $lang['allow_comments'] : "",
    "lang_submit" => $lang['submit'],
    "lang_reset" => $lang['reset'],
    "lang_yes" => $lang['yes'],
    "lang_no" => $lang['no']
  ));
 
  if (!empty($additional_image_fields)) {
    $additional_field_array = array();
    foreach ($additional_image_fields as $key => $val) {
      if ($val[1] == "radio") {
        $value = (isset($HTTP_POST_VARS[$key])) ? intval($HTTP_POST_VARS[$key]) : 1;
        if ($value == 1) {
          $additional_field_array[$key.'_yes'] = " checked=\"checked\"";
          $additional_field_array[$key.'_no'] = "";
        }
        else {
          $additional_field_array[$key.'_yes'] = "";
          $additional_field_array[$key.'_no'] = " checked=\"checked\"";
        }
      }
      else {
        $value = (isset($HTTP_POST_VARS[$key])) ? htmlspecialchars(stripslashes(trim($HTTP_POST_VARS[$key]))) : "";
      }
      $additional_field_array[$key] = $value;
      $additional_field_array['lang_'.$key] = $val[0];
    }
    if (!empty($additional_field_array)) {
      $site_template->register_vars($additional_field_array);
    }
  }
  $content = $site_template->parse_template("member_editimage");
 



####
REPLACE WITH
####

Code:

  $site_template->register_vars(array(
    "image_id" => $image_id,
    "image_name" => htmlspecialchars($image_name),
    "image_description" => htmlspecialchars($image_description),
    "image_keywords" => htmlspecialchars($image_keywords),
    "image_allow_comments_yes" => ($image_allow_comments) ? " checked=\"checked\"" : "",
    "image_allow_comments_no" => (!$image_allow_comments) ? " checked=\"checked\"" : "",
    "lang_edit_image" => $lang['image_edit'],
    "lang_image_name" => $lang['image_name'],
    "lang_description" => $lang['description'],
    "lang_keywords" => $lang['keywords_ext'],
    "lang_allow_comments" => isset($lang['allow_comments']) ? $lang['allow_comments'] : "",
    "lang_submit" => $lang['submit'],
    "lang_reset" => $lang['reset'],
    "lang_yes" => $lang['yes'],
    "lang_no" => $lang['no']
  ));
   
  // BEGIN MOD Auto fill in for additional image fields
  $sql2 = "SELECT image_id".$additional_sql."
          FROM ".IMAGES_TABLE."
          WHERE image_id = $image_id";
  $image_row2 = $site_db->query_firstrow($sql2);
  // END MOD Auto fill in for additional image fields
 
  if (!empty($additional_image_fields)) {
    $additional_field_array = array();
    foreach ($additional_image_fields as $key => $val) {
      if ($val[1] == "radio") {
        // BEGIN MOD Auto fill in for additional image fields
        $value = (isset($HTTP_POST_VARS[$key])) ? intval($HTTP_POST_VARS[$key]) : intval($image_row2[$key]);
        // END MOD Auto fill in for additional image fields     
        if ($value == 1) {
          $additional_field_array[$key.'_yes'] = " checked=\"checked\"";
          $additional_field_array[$key.'_no'] = "";
        }
        else {
          $additional_field_array[$key.'_yes'] = "";
          $additional_field_array[$key.'_no'] = " checked=\"checked\"";
        }
      }
      else {
        // BEGIN MOD Auto fill in for additional image fields
        $value = (isset($HTTP_POST_VARS[$key])) ? htmlspecialchars(stripslashes(trim($HTTP_POST_VARS[$key]))) : htmlspecialchars(stripslashes($image_row2[$key]));
        // END MOD Auto fill in for additional image fields
      }
      $additional_field_array[$key] = $value;
      $additional_field_array['lang_'.$key] = $val[0];
    }
    if (!empty($additional_field_array)) {
      $site_template->register_vars($additional_field_array);
    }
  }
  $content = $site_template->parse_template("member_editimage");
 



Please note: I have quite a few modifications in my code, so I don't know if it was me (the modifications) that caused the bug or if this was already in the original version of the code. Also, I have very limited knowledge about PHP and MySQL, so this solution might not be very elegant. But it worked for me...
 

 

Post your comments here