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

Pages: [1]
1
i have a problem using this random images javascript... i tried to make these thumbnails expando when mouseover while it's marquee from the right to left... will stop and expand the image to a bigger size when mouseover ... the crawler script is working but the expando is still not working... can anyone please help me with this ....

Quote
<?php
if ((!defined('NV_SYSTEM')) AND (!defined('NV_ADMIN'))) {
    Header("Location: ../index.php");
    exit;
}
$content  .= "<head>\n";
$content  .= "<style type=\"text/css\">\n";
$content  .= "img.expando{ /*sample CSS for expando images. Not required but recommended*/\n";
$content  .= "border: none;\n";
$content  .= "vertical-align: top; /*top aligns image, so mouse has less of a change of moving out of image while image is expanding*/\n";
$content  .= "}\n";
$content  .= "</style>\n";
$content  .= "</head>\n";
$content  .= "<script type=\"text/javascript\" src=\"../js/expando.js\"></script>\n";
$content  .= "<script type=\"text/javascript\" src=\"../js/crawler.js\"></script>\n";
$content  .= "<div class=\"marquee\" id=\"mycrawler2\">\n";
$content  .= "<p><p align=\"center\">&nbsp;&nbsp;&nbsp;&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?1\" width=\"140\" height=\"110\"></SCRIPT>\n";
$content  .= "&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?2\" width=\"140\" height=\"110\"></SCRIPT>\n";
$content  .= "&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?3\" width=\"140\" height=\"110\"></SCRIPT>\n";
$content  .= "&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?4\" width=\"140\" height=\"110\"></SCRIPT>\n";
$content  .= "&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?5\" width=\"140\" height=\"110\"></SCRIPT>\n";
$content  .= "&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?6\" width=\"140\" height=\"110\"></SCRIPT>\n";
$content  .= "&nbsp;<SCRIPT language=\"JavaScript\" class=\"expando\" src=\"http://chuahuongdao.org/hinhanh/random.php?7\" width=\"140\" height=\"110\"></SCRIPT>\n";
$content  .= "</div></p>\n";
$content  .= "<script type=\"text/javascript\">\n";
$content  .= "marqueeInit({\n";
$content  .= "   uniqueid: 'mycrawler2',\n";
$content  .= "   style: {\n";
$content  .= "      'padding': '2px',\n";
$content  .= "      'width': '600px',\n";
$content  .= "      'height': '180px'\n";
$content  .= "   },\n";
$content  .= "   inc: 3, //speed - pixel increment for each iteration of this marquee's movement\n";
$content  .= "   mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)\n";
$content  .= "   moveatleast: 2,\n";
$content  .= "   neutral: 150,\n";
$content  .= "   savedirection: true\n";
$content  .= "});\n";
$content  .= "</script>\n";
?>


this is the image expando script site... http://www.dynamicdrive.com/dynamicindex4/expandoimage.htm

2
Language Packs / Re: [Language] Vietnamese
« on: November 16, 2008, 04:40:58 AM »
i used EMEDITOR... thanks alot.. i found it... save without BOM... it's works.... i learned something new hehehe. thanks

3
Mods & Plugins (Releases & Support) / Re: [MOD] Language select
« on: November 16, 2008, 04:01:57 AM »
i noticed that but i though i was wrong. but i dont think any body answer nor helping me over that topic, please help me out. 

4
Mods & Plugins (Releases & Support) / Re: [MOD] Language select
« on: November 16, 2008, 03:30:05 AM »
hi,
i changed the charset for my vietnamese font from ISO- to utf-8 and now in ACP and also on some images when i viewed it's showing this error too.  it's showing this error .. please help me to solved this.
thanks


Quote
Warning: Cannot modify header information - headers already sent by (output started at /home1/chuahuon/public_html/hinhanh/lang/vietnamese/main.php:1) in /home1/chuahuon/public_html/hinhanh/admin/admin_functions.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at /home1/chuahuon/public_html/hinhanh/lang/vietnamese/main.php:1) in /home1/chuahuon/public_html/hinhanh/admin/admin_functions.php on line 169

Warning: Cannot modify header information - headers already sent by (output started at /home1/chuahuon/public_html/hinhanh/lang/vietnamese/main.php:1) in /home1/chuahuon/public_html/hinhanh/admin/admin_functions.php on line 170

Warning: Cannot modify header information - headers already sent by (output started at /home1/chuahuon/public_html/hinhanh/lang/vietnamese/main.php:1) in /home1/chuahuon/public_html/hinhanh/admin/admin_functions.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /home1/chuahuon/public_html/hinhanh/lang/vietnamese/main.php:1) in /home1/chuahuon/public_html/hinhanh/admin/admin_functions.php on line 172

5
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: November 15, 2008, 07:05:40 PM »
let say i want to make this random image switches every 3 seconds, make it like flash.. how do you do this.

6
Language Packs / Re: [MOD] Language select
« on: November 15, 2008, 05:10:22 PM »
hi,
i changed the charset for my vietnamese font from ISO- to utf-8 and now in ACP and also on some images when i viewed it's showing this error too.  it's showing this error .. please help me to solved this.
thanks

Quote
Warning: Cannot modify header information - headers already sent by (output started at /home1/chuahuon/public_html/hinhanh/lang/vietnamese/main.php:1) in /home1/chuahuon/public_html/hinhanh/admin/admin_functions.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at /home1/chuahuon/public_html/hinhanh/lang/vietnamese/main.php:1) in /home1/chuahuon/public_html/hinhanh/admin/admin_functions.php on line 169

Warning: Cannot modify header information - headers already sent by (output started at /home1/chuahuon/public_html/hinhanh/lang/vietnamese/main.php:1) in /home1/chuahuon/public_html/hinhanh/admin/admin_functions.php on line 170

Warning: Cannot modify header information - headers already sent by (output started at /home1/chuahuon/public_html/hinhanh/lang/vietnamese/main.php:1) in /home1/chuahuon/public_html/hinhanh/admin/admin_functions.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /home1/chuahuon/public_html/hinhanh/lang/vietnamese/main.php:1) in /home1/chuahuon/public_html/hinhanh/admin/admin_functions.php on line 172

7
Language Packs / Re: [Language] Vietnamese
« on: November 15, 2008, 03:54:59 PM »
can you convert this into utf-8 instead? it's currently $lang['charset'] = "iso-8859-1"; i tried to set $lang['charset'] = "utf-8"; but when i uploaded it's not display right vietnamese... please help. i tried to rewrite all vietnamese text but all the text in there are like this
Quote
H&#7879; th&#7889;ng &#273;ang t&#7841;m ng&#432;ng ho&#7841;t

8
yes 666 works.
thanks

9
hi there... i did check everything... all the fonts are in the /public_html/hinhanh/captcha/fonts

i setted the path in the setting like this /public_html/hinhanh/captcha/fonts/arial.ttf  but still showing same error... what permission should i set and please show me where because there is no instruction on it. please help.
thanks

10
i have problem with this annotate mod.
it's shown error when i tried to add new images.

Quote
Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename in /home1/chuahuon/public_html/hinhanh/includes/annotate.php on line 95

Warning: imagettftext() [function.imagettftext]: Invalid font filename in /home1/chuahuon/public_html/hinhanh/includes/annotate.php on line 192

Warning: imagettftext() [function.imagettftext]: Invalid font filename in /home1/chuahuon/public_html/hinhanh/includes/annotate.php on line 193
Working on data/media/4/DSC00006_2.JPG file:
Copied original file into data/media/4/big/ folder.
Image resized.
Added annotation in data/media/4/DSC00006_2.JPG file.
Created thumbnail.
Image added: DSC00006 2

so it actually added the images but then show showing error like that and the watermark are not working.. please help.

11
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: November 13, 2008, 02:46:42 AM »
i got it. thanks alot.

but then i put this code into my index.php on main main page...
Quote
. "<SCRIPT language='JavaScript'  src='http://domainname.com/hinhanh/random.php?1' border='0' width='73' height='83'></SCRIPT>"
. "<SCRIPT language='JavaScript'  src='http://domainname.com/hinhanh/random.php?2' border='0' width='73' height='83'></SCRIPT>"
. "<SCRIPT language='JavaScript'  src='http://domainname.com/hinhanh/random.php?3' border='0' width='73' height='83'></SCRIPT>"
. "<SCRIPT language='JavaScript'  src='http://domainname.com/hinhanh/random.php?4' border='0' width='73' height='83'></SCRIPT>"
. "<SCRIPT language='JavaScript'  src='http://domainname.com/hinhanh/random.php?5' border='0' width='73' height='83'></SCRIPT>"
. "<SCRIPT language='JavaScript'  src='http://domainname.com/hinhanh/random.php?6' border='0' width='73' height='83'></SCRIPT>"
. "<SCRIPT language='JavaScript'  src='http://domainname.com/hinhanh/random.php?7' border='0' width='73' height='83'></SCRIPT>"

i got this and it's working now... but i seted the size of these images to be the same size.. like that ... but how come when it's shown it's not the same size.. so how do i make them all to be shown in one size.
please help.
thanks

12
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: November 12, 2008, 09:02:59 PM »
i did - my 4images dir is in ./hinhanh, the config.php is in that root too... i already take off the ./hinhanh/ now only define('ROOT_PATH', './');
but still not working ... i view the random.php file and it's shown these error.
Quote
Warning: include(ROOT/config.php) [function.include]: failed to open stream: No such file or directory in /home1/chuahuon/public_html/hinhanh/random.php on line 29

Warning: include() [function.include]: Failed opening 'ROOT/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/chuahuon/public_html/hinhanh/random.php on line 29

Warning: include(ROOT/includes/db_mysql.php) [function.include]: failed to open stream: No such file or directory in /home1/chuahuon/public_html/hinhanh/random.php on line 30

Warning: include() [function.include]: Failed opening 'ROOT/includes/db_mysql.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/chuahuon/public_html/hinhanh/random.php on line 30

Warning: include(ROOT/includes/constants.php) [function.include]: failed to open stream: No such file or directory in /home1/chuahuon/public_html/hinhanh/random.php on line 31

Warning: include() [function.include]: Failed opening 'ROOT/includes/constants.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/chuahuon/public_html/hinhanh/random.php on line 31

Fatal error: Class 'Db' not found in /home1/chuahuon/public_html/hinhanh/random.php on line 34

13
Mods & Plugins (Releases & Support) / Re: [Mod] Random image / Zufallsbild
« on: November 12, 2008, 08:48:42 PM »
okie i've read many post but i still can't make it work. please help me here.

my random.php file

Code: [Select]
<?php
define
('ROOT_PATH''./hinhanh/');
define('SCRIPT_URL''http://www.domainame.com/hinhanh/');
include(
ROOT_PATH.'config.php');
include(
ROOT_PATH.'includes/db_mysql.php');
include(
ROOT_PATH.'includes/constants.php');

$site_db = new Db($db_host$db_user$db_password$db_name);
function 
is_remote($file_name) {
  return (
preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i'$file_name)) ? 0;
}

$sql "SELECT COUNT(*) as total_images
        FROM "
.IMAGES_TABLE." a, ".CATEGORIES_TABLE." b 
        WHERE a.image_active=1 
        AND a.cat_id = b.cat_id 
        AND b.auth_viewcat="
.AUTH_ALL.
        AND b.auth_viewimage="
.AUTH_ALL."
        "
;
$row $site_db->query_firstrow($sql);
$total_images $row['total_images'];

mt_srand((double)microtime() * 1000000);
$number = ($total_images 1) ? mt_rand(0$total_images 1) : 0;

$sql "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments 
        FROM "
.IMAGES_TABLE." a, ".CATEGORIES_TABLE." b 
        WHERE a.image_active=1 
        AND a.cat_id = b.cat_id 
        AND b.auth_viewcat="
.AUTH_ALL.
        AND b.auth_viewimage="
.AUTH_ALL.
        LIMIT 
$number, 1";
$row $site_db->query_firstrow($sql);
$image_id $row['image_id'];
$cat_id $row['cat_id'];
$image_name $row['image_name'];
$image_comments $row['image_comments'];
$full_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : SCRIPT_URL.ROOT_PATH.MEDIA_DIR."/".$cat_id."/".$row['image_thumb_file'];

print(
"
document.write('<a href=\""
.SCRIPT_URL."details.php?image_id=$image_id\"><img src=\"".$full_src."\" border=\"1\" alt=\"$image_name\"></a>');
"
);
?>


and this is my test.html file that will be intergrated into my main index.php page... here is the code i put in there..

Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title></title>
  </head>
  <body>
LOL
<SCRIPT language='JavaScript'  src='http://domainame.com/hinhanh/random.php?1'></SCRIPT>
<SCRIPT language='JavaScript'  src='http://domainame.com/hinhanh/random.php?2'></SCRIPT>
<SCRIPT language='JavaScript'  src='http://domainame.com/hinhanh/random.php?3'></SCRIPT>[/quote]

  </body>
</html>

but then i still can't make it works.
it still showing this error

it only show the word LOL when i view the test.html file... wont show those 3 images

14
i changed the rooth path to define('ROOT_PATH', './hinhanh/'); still shown these error.

Warning: include(./hinhanh/global.php) [function.include]: failed to open stream: No such file or directory in /home1/chuahuon/public_html/hinhanh/new_images.php on line 31

Warning: include() [function.include]: Failed opening './hinhanh/global.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/chuahuon/public_html/hinhanh/new_images.php on line 31

Warning: require(./hinhanh/includes/sessions.php) [function.require]: failed to open stream: No such file or directory in /home1/chuahuon/public_html/hinhanh/new_images.php on line 32

Fatal error: require() [function.require]: Failed opening required './hinhanh/includes/sessions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/chuahuon/public_html/hinhanh/new_images.php on line 32


ALSO:
i even put the whole http://www.domainname.com/hinhanh/ and it still showing error
Security violationSecurity violation
Fatal error: Call to undefined function get_permission() in /home1/chuahuon/public_html/hinhanh/new_images.php on line 33


15
Mods & Plugins (Releases & Support) / Re: [Mod] Mini-Top
« on: November 12, 2008, 07:29:22 PM »
how do i add this mini top outside of the 4images gallery??? i want to show new images (thumbnails) on my actual website then people click on those pics will take them directly to this 4images gallery page.

Pages: [1]