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

Pages: 1 2 3 4 [5] 6 7 8 9 10
61
So can someone help me...? Or just say what the problem is?

Quote
Processing image Paskutinė vakarienė... from category Nuotraukos, image ID 80 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK

62
It`s dificult to make an universal wap page... then we need to do a phone recognition...
try this code, I hope it`ll help:

Code: [Select]
<?
//Some settings
$url = 'http://www.pramoga.net'; //where installed 4images
$title = 'wap.pramoga.net'; //title for wap card
$no_id = 'ID not found'; //msg when no id found
$enter_id = 'ID'; //msg when user comes
$button = ' find &gt;'; //text for button
$footer = 'Pramoga.net'; //footer text
$dbhost = "localhost";
$dbuser = "dbuser";
$dbpass = "dbpass";
$dbname = "pramoga_pramoga";
//dont need to change after this
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\"?>";
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="<? echo $title ?>">
<p>
<br />
<?
$id = $_REQUEST['id'];
if($id!=""){
$db = mysql_connect("$dbhost", "$dbuser", "$dbpass") or die ("Error");
@mysql_select_db("$dbname", $db) or die ("DB not found");
$result = mysql_query("SELECT image_id, image_media_file, cat_id, image_name FROM 4images_images where image_id=$id");
$row = mysql_fetch_array($result);
$image_id = $row["image_id"];
$cat_id = $row["cat_id"];
$image_name = $row["image_name"];
if ($image_id!=""){
$image_media_file = $row["image_media_file"];
?>
Spausk nuoroda, kad parsisiusti:
<a href="<? echo $url;?>/data/media/<? echo $cat_id;echo "/";echo $image_media_file; ?>"><? echo $image_name;?></a><br />
<? }
else { echo $no_id,"<br />"; }
}
else { echo $enter_id,"<br />"; }
?>
<br />
<input name="id" /><br />
<a href="index.php?id=$(id)"><? echo $button ?></a>
</p>
</card>
</wml>

63
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: May 07, 2005, 09:17:30 AM »
is these in the place?

Code: [Select]
{if user_avatar_images}

...

{endif user_avatar_images}

I can`t imagine how they can upload...

64
same problem...  :?

65
Hi.
A little problem, okay... big problem :)
This is my gd info:
==========================
GD Support  enabled 
GD Version  bundled (2.0.28 compatible) 
GIF Read Support  enabled 
GIF Create Support  enabled 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 
XBM Support  enabled 
==========================


Quote
Annotating between image ID 2560 and 2569:
Processing image BaseBall from category Sportas, image ID 2560 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image Geras pasas? from category Sportas, image ID 2562 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image Trumpas stalas from category Sportas, image ID 2563 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image Sumo from category Sportas, image ID 2564 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image Lengvoji? atletika from category Sportas, image ID 2565 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image ledo teisejai protingas? from category Sportas, image ID 2566 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image Dar pakelt koja? from category Sportas, image ID 2567 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK
Processing image kulverstis from category Sportas, image ID 2568 >>
Warning: imagesx(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 184

Warning: imagecolortransparent(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 185

Warning: imagecopymerge(): supplied argument is not a valid Image resource in /home/pramoga/public_html/includes/annotate.php on line 186
OK


Why I get these errors when I`m using "Batch Annotate". Annotation works perfect when I uploading image...

66
I've already proposed such feature for the future version ;)

Future version :) sounds great!

67
Have you tried this header?

Code: [Select]
Header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml_1.2.xml\">";

I`m working with wap pages and it`s usability. I have tested this page with 7 diferent phones.
Wml code is very tricky one. Because everything MUST be valid.

68
but we have all way to the image, image name... so...
maybe there is possible to add some kind a link Delete this image, or something, this must be easier than button with checkboxes

69
If I do Check new images in admin panel and I found a bad image (I don`t like it) how to add a link or maybe button [ delete selected ] to delete these/this file(s)? Is it difficult to do?

70
Well. I have tested wap page on several phones. And I think that I fixed everything :)
So...
The biggest bug was <center> tag, so we must to replace it with <p> tag:

Find
Code: [Select]
<center>
replace with:
Code: [Select]
<p align="center">
find:
Code: [Select]
</center>
replace with:
Code: [Select]
</p>


and to ensure working use this:
Code: [Select]
Header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml_1.2.xml\">";


So it works?

71
And one more problem...

Usernames: "new girl" and "new_girl" are the same in the pm system.
:idea: maybe we can remove checking from field "recipient"? This also solves problem with "nick*", "nick1", "nick..."


M?


72
Templates & Styles (Requests & Discussions) / Re: White background?
« on: April 24, 2005, 04:09:29 PM »
no problem ;)

73
Quote
Motorola V3: The page works, but I didnt get to push the 'submit' button, so im not sure if that works or not... should.

Change:
Code: [Select]
<form method="post">

To:
Code: [Select]
<form method="post" action="index.php">

74
Yes I have one Idea ;)

Replace this:
Code: [Select]
header("Content-type: text/wml");
echo("<?xml version=\"1.0\" encoding=\"windows-1257\"?>\n");
echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
." \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n");

With this:
Code: [Select]
header("Content-Type: text/vnd.wap.wml");
echo '<?xml version="1.0"?>';
echo '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">';


Must work :)

75
Discussion & Troubleshooting / Re: last commented image listing
« on: April 24, 2005, 10:39:51 AM »
Uch one more problem, I think big, and why problems are always with me?  :?

Whent I add this:
Code: [Select]
$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 = 100;
     $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);

To my page_header.php
All links of images goes to last commented image. How can it be?
I had to comment this code and everything works now...

Pages: 1 2 3 4 [5] 6 7 8 9 10