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

Pages: [1] 2 3
1
Plugins / Re: [Plugin] Notepad in Control Panel
« on: June 09, 2003, 01:09:17 PM »
Can I add to backup list ??

 :lol:

2
Discussion & Troubleshooting / last commented image listing
« on: May 11, 2003, 05:10:49 PM »
Nothing........

Quote

is there any particulary reasons u inserted into page__header.php???? 8O

3
Discussion & Troubleshooting / last commented image listing
« on: May 11, 2003, 04:10:51 PM »
Please try to access to my site and chick any pics for testing........Then you will get the problems.

This code was inserted to includes/page_header.php.

 :cry:

4
Discussion & Troubleshooting / last commented image listing
« on: May 11, 2003, 09:47:09 AM »
After I add the following MOD to page_header.php, I chick to any pic on my site.  It will appear with same pics.  I'm not sure what the problems, please help me.

 :cry:
Jackie

my site ==> http://album.barndisco.com


Code: [Select]
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$additional_sql = "";
      $table_fields = $site_db->get_table_fields(USERS_TABLE);
      foreach ($additional_user_fields as $key => $val) {
        if (isset($HTTP_POST_VARS[$key]) && isset($table_fields[$key])) {
          $additional_sql .= ", $key = '".un_htmlspecialchars(trim($HTTP_POST_VARS[$key]))."'";
        }
      }
  if (isset($HTTP_GET_VARS['user_id']) and $HTTP_GET_VARS['user_id'] != ""){
    $add_where = "WHERE c.user_id IN (".$user_id.")";
  }else{
    $add_where = "";
  }
  $sql = "SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, c.comment_date".get_user_table_field(", u.", "user_level").get_user_table_field(", u.", "user_name").get_user_table_field(", u.", "user_lastaction").get_user_table_field(", u.", "user_comments").$additional_sql."
          FROM ".COMMENTS_TABLE." c
          LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = c.user_id)
          ".$add_where."
          ORDER BY c.comment_date DESC
        LIMIT 14";  
  $result = $site_db->query($sql);  
  $comment_row = array();
  while ($row = $site_db->fetch_array($result)) {
    $comment_row[] = $row;
  }
  $site_db->free_result($result);
  $num_comments = sizeof($comment_row);
  if (!$num_comments) {
    $comments_short = "<tr><td class=\"commentrow1\" colspan=\"2\">".$lang['no_comments']."</td></tr>";
  }
  else {
    $comments_short = "";
    for ($i = 0; $i < $num_comments; $i++) {
        $image_id = $comment_row[$i]['image_id'];
        $sql = "SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file
                FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c
                LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
                WHERE i.image_id = $image_id AND c.cat_id = i.cat_id";
        $image_row = $site_db->query_firstrow($sql);
        $cat_id = (isset($image_row['cat_id'])) ? $image_row['cat_id'] : 0;
      if (check_permission("auth_readcomment", $cat_id)){
        $comment_user_name = htmlspecialchars($comment_row[$i]['comment_user_name']);
        $comment_user_info = $lang['userlevel_guest'];
        $comment_user_id = $comment_row[$i]['user_id'];
        $user_row_comment = get_user_info($comment_user_id);
        $comment_user_profile_link = "";
        $comment_user_info = $lang['userlevel_guest'];
        if (!isset($comment_row[$i][$user_table_fields['user_level']]) || (isset($comment_row[$i][$user_table_fields['user_level']]) && $comment_row[$i][$user_table_fields['user_level']] == USER)) {
          $comment_user_info = $lang['userlevel_user'];
        }
        elseif ($comment_row[$i][$user_table_fields['user_level']] == ADMIN) {
          $comment_user_info = $lang['userlevel_admin'];
        }
        if (isset($comment_row[$i][$user_table_fields['user_name']]) && $comment_user_id != GUEST) {
          $comment_user_name = htmlspecialchars($comment_row[$i][$user_table_fields['user_name']]);
          $comment_user_profile_link = !empty($url_show_profile) ? $site_sess->url(preg_replace("/{user_id}/", $comment_user_id, $url_show_profile)) : $site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$comment_user_id);
        }
          $comment_user_profile_link = ($comment_user_profile_link) ? "<a href=\"".$comment_user_profile_link."\">".$comment_user_name."</a>" : $comment_user_name;
        if (!get_file_path($image_row['image_thumb_file'], "thumb", $image_row['cat_id'], 0, 0)) {
        $thumb_file = ICON_PATH."/".get_file_extension($image_row['image_media_file']).".gif";
      }else {
        $thumb_file = get_file_path($image_row['image_thumb_file'], "thumb", $image_row['cat_id'], 0, 1);
      }
      $thumb_info = @getimagesize($thumb_file);
      $width = $thumb_info[0];
      $height = $thumb_info[1];
      $dimension = 40;
      $ratio = $width / $height;
      if ($ratio > 1) {
        $new_width = $dimension;
        $new_height = floor(($dimension/$width) * $height);
      }else {
        $new_width = floor(($dimension/$height) * $width);
        $new_height = $dimension;
      }
      $site_template->register_vars(array(
          "comment_image_thumb" => (!check_permission("auth_viewcat", $cat_id) || !check_permission("auth_viewimage", $cat_id)) ? "<img src=\"".$thumb_file."\" width=\"".$new_width."\" height=\"".$new_height."\" onClick=\"alert('".$lang['members_only']."');\" border=\"".$config['image_border']."\">" : "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$comment_row[$i]['image_id'].((!empty($mode)) ? "&amp;mode=".$mode : ""))."\"><img src=\"".$thumb_file."\" width=\"".$new_width."\" height=\"".$new_height."\" border=\"".$config['image_border']."\"></a>",
          "comment_image_name" => (!check_permission("auth_viewcat", $cat_id) || !check_permission("auth_viewimage", $cat_id)) ? $image_row['image_name'] : "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$comment_row[$i]['image_id'].((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$image_row['image_name']."</a>",
          "comment_cat_name" => (!check_permission("auth_viewcat", $cat_id)) ? $image_row['cat_name'] : "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$cat_id)."\">".$image_row['cat_name']."</a>",
          "comment_user_name" => $comment_user_profile_link,
          "comment_user_info" => $comment_user_info,
          "comment_headline" => format_text($comment_row[$i]['comment_headline'], 0, $config['wordwrap_comments'], 0, 0),
          "comment_text" => format_text($comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']),
          "comment_date" => format_date($config['date_format']." ".$config['time_format'], $comment_row[$i]['comment_date']),
        ));
        $comments_short .= $site_template->parse_template("comment_short_bit");
      }
    } // end while
  } //end else
  $site_template->register_vars("comments_short", $comments_short);
  unset($comments_short);

5
Mods & Plugins (Requests & Discussions) / a question 2 v@no
« on: May 06, 2003, 08:50:44 PM »
Quote from: V@no
pms_new.html


Thank you for your kindly help.

P.S. I'm sorry for an inconvenience cause.

Jackie

 :lol:

6
Mods & Plugins (Requests & Discussions) / Re: Runtime Error
« on: May 06, 2003, 08:44:04 PM »
Thank you very much.

:lol:

And you use the NortonInternetSecurity, this software can check all error in PHP and JS.

Quote from: V@no
Ah, see, my NortonInternetSecurity kills all JS errors, so it doesnt show me any errors...
but u forgot add
Code: [Select]
<script language="JavaScript" src="bbcode.js" type="text/javascript"></script> in your template.

7
Mods & Plugins (Requests & Discussions) / Runtime Error
« on: May 06, 2003, 08:23:35 PM »
I'm not sure the problems to my site.  But I just to know my problems "If I use the PMS to send a new message with smile text or bbcode, the error was found.

Could you tell me "How can I check it? & Where can I found the solution?".

 :arrow: http://www.barndisco.com/alnum/

Thanks.

Jackie
jackie911@so-net.com.hk

P.S. Sorry, I'm not an expert in PHP script.  If I want to debug the PHP script, What software do I need to install in my computer?

8
Mods & Plugins (Requests & Discussions) / a question 2 v@no
« on: May 06, 2003, 08:09:44 PM »
I know it, but I'm not an expert in PHP.

I need help to debug my PHP script.

Can you tell me "How can I do it"??


Jackie

9
Runtime Error

pms.php
Code: [Select]
REMOVED!!!!!!!!!!!!

 :idea:

Jackie

10
Mods & Plugins (Releases & Support) / Re: Runtime Error
« on: May 05, 2003, 07:57:33 PM »
Where can I insert this code to pms.php

Code: [Select]
"smiles_text" => get_smiles_text()


Quote from: V@no
Quote from: jackie911
I used the smile text for bbcode.  Unfortunately, there are some errors.
I'm not an expert, please help me to debug it.


Nothing personaly, but next time I wont even click :roll:


I'm not sure what u did, but I have tryed your site yesterday and it was working perfectly!

11
Mods & Plugins (Releases & Support) / Runtime Error
« on: May 05, 2003, 06:05:13 PM »
I used the smile text for bbcode.  Unfortunately, there are some errors.
I'm not an expert, please help me to debug it.

http://jackie.net/barndisco.com/album/pms.php?action=new

Jackie
jackie911@so-net.com.hk

12
Mods & Plugins (Requests & Discussions) / a question 2 v@no
« on: May 04, 2003, 07:29:03 AM »
I had some errors.

Code: [Select]
Fatal error: Call to undefined function: get_smiles_text() in /ha/jackie/public_html/barndisco.com/album/details.php on line 438

Jackie
jackie911@so-net.com.hk

Quote from: V@no
Quote from: Xwall
I have a problem i canīt show the emoticons.  :(

My functions.php

wait i put the adress[/code]

ah, ok...I think I edited more files then I though... 8O
find in detail.php
Code: [Select]
     "lang_bbcode" => $lang['bbcode'],
add after:
Code: [Select]
     "smiles_text" => get_smiles_text(),

13
Thank you very much.

 :lol:

14
Thanks..............I know it.

15
Small Bugs to my site.

Please help me to check it.

==> http://album.barndisco.com

Jackie
jackie911@so-net.com.hk

Pages: [1] 2 3