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

Pages: [1]
1
language ---- main.php

Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: main.php                                             *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7                                                  *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) f&#38175;&#32107;ere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
 
/**************************************************************************
 *                                                                        *
 *    English translation by Thomas (http://www.japanreference.com)       *
 *                                                                        *
 *************************************************************************/

$lang['no_settings'] = "ERROR: Could not load configuration settings!";

//-----------------------------------------------------
//--- Templates ---------------------------------------
//-----------------------------------------------------
$lang['charset'] = "utf-8";
$lang['direction'] = "ltr";

2
I've got a problem with charset in new version 1.7.2 . Some characters show wrong , for example the category name
At the beginning a thought that this is server problem .
But I tried to upload previous version 1.7.0 ,, with the same template and language pack and the problem doesn't exist

I posted my problem into a attachment (show as a images , easier for me to descript...) , please have a look and please tell me what's the problem here ??
What I should do ?
Thanks so much !!

3
I think you should add this line to /lang/(your language)/main.php

Code: [Select]
$lang['images_awaiting_validation'] = "<b>{num_images}</b> images awaiting validation";
(This line is already exist in /lang/(your language)/admin.php)

4
I want to know how many awaiting validation images are there in my album but without login in ADMIN CONTROL PANEL

I tried to put this code into ../album/index.php :
right before
Code: [Select]
include(ROOT_PATH.'includes/page_footer.php');I put this code :
Code: [Select]
//2
 
  $sql = "SELECT COUNT(*) as temp_images
          FROM ".IMAGES_TEMP_TABLE;
  $row = $site_db->query_firstrow($sql);

  $awaiting_validation = preg_replace("/".$site_template->start."num_images".$site_template->end."/siU", $row['temp_images'], $lang['images_awaiting_validation']);
  $awaiting_validation = sprintf("<a href=\"".$site_sess->url("validateimages.php?action=validateimages")."\">%s</a>", $awaiting_validation);
  echo "<center><td width=\"16%\"><b>".$lang['images']."</b></td><td width=\"16%\">".$total_images." / ".$awaiting_validation."</td>\n";
  $size = 0;
  echo "<center><td width=\"16%\"><b>".$lang['thumb_directory']."</b></td><td width=\"16%\">"."</td>\n";
  echo "</tr>";

But the result is : it only appeared on the bottom of index.php page . I want to show it somewhere else in the index page but I can't

Could someone show me how to do this , I mean , put this line : "8 images awaiting validation" into the INDEX page .
Thanks alot !!

5
Mods & Plugins (Releases & Support) / Re: [MOD] RSS Feed 0.1
« on: November 10, 2005, 07:50:48 PM »
Could you show me the final edition of this MOD ?

I've just downloaded it from the 1st page , and installed it . It works but without showing thumbnails , I tried to use the Feedreader v2.9 to view rss.php but the thumbnails still didn't appear . What should I do now ?

6
How to display more than 3 subcategories in the index page ?
Normally , It only shows three subcategories in homepage , like this
(Main category)
    Sub1 , Sub2 , Sub3 ...

How to show more than 3 subcategories under the (Main category)

Thanks !!

7
Hi ! I need your help !
I have that trouble too . But there is a little diference !!
I still can use the "Auto-thumbnail" and "Auto-resizer" when I login as a ADMIN and DIRECT UPLOAD , everything sucessful !!
But when my memberS upload their picture (not "Direct Upload") , I validate these images ok ,  but I can't use the "Auto-thumnail"
The error notice :

Create thumbnail for: Metallica logo (newani.gif) ....  
Warning: call_user_func() expects first argument, 'ImageCreateFromgif', to be a valid callback in /home/luong/public_html/a4land/lucky/admin/thumbnailer.php on line 76

Warning: imagesx(): supplied argument is not a valid Image resource in /home/luong/public_html/a4land/lucky/admin/thumbnailer.php on line 81

Warning: imagesy(): supplied argument is not a valid Image resource in /home/luong/public_html/a4land/lucky/admin/thumbnailer.php on line 81

Warning: imagecopyresized(): supplied argument is not a valid Image resource in /home/luong/public_html/a4land/lucky/admin/thumbnailer.php on line 81

Warning: call_user_func() expects first argument, 'Imagegif', to be a valid callback in /home/luong/public_html/a4land/lucky/admin/thumbnailer.php on line 83

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/luong/public_html/a4land/lucky/admin/thumbnailer.php on line 85
   Error creating thumbnail!


I'm not sure that my hosting provider is working on SAFE MODE or NOT because It's not my own server . So that I hope you can help me !
Thankyou and sorry for my English

Pages: [1]