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

Pages: [1] 2 3
2
I hope that "using captcha" is not considered to be a fix for this bug. It is a serious bug.

3
Discussion & Troubleshooting / Re: Ratings vs. Votes
« on: May 07, 2007, 04:53:25 PM »
Well, but, the word voting is used for what the script does, and the word rating is used for what the user does. The only problem is if your user asks you, "How do I vote?" Then you would have to explain that they don't.

4
Discussion & Troubleshooting / Re: Ratings vs. Votes
« on: May 06, 2007, 04:24:17 AM »
You don't get Acidgod's explanation, or my question?

As it happens, voting and rating in 4images are not quite two separate things, though. No votes can take place unless an image has been rated first. The script extrapolates the votes from the ratings. Users don't actually vote. Users rate.

4images does not have polls.

5
You were able to figure that out without my URL and an admin account at my site? 8O When did that change?

 :lol:

6
 8O

I researched the problem I was having with the setperpage dropdown on the home/index page.
I looked at several 4images setups found via Google.
None of them had a working setperpage dropdown menu, and the demo of 4images does not either!

There are 69 images loaded in the demo. When I select 30 from the dropdown, only 3 show.

:|

7
Ok, I'll just put a link in. :)

8
In the template home.html, there is the line
Code: [Select]
<td><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />{clickstream}</td>but no link for Home appears on the Home page. I don't really understand why it wouldn't, and maybe no one else understands why I want one there, but it's because of the refresh factor. If I have made a change to the page via the admin panel or ftp and I hit refresh, I always get the postdata notice and I hate that. If I had a link to Home, I could just click that instead of refreshing and it would be better.

Anyway, I can change the template and just add a link there, but I am wondering why one does not already show up, since the code above is in the template?  8O

9
I have figured out that the setperpage dropdown does work on the categories page,the lightbox page, and even the search page --- just not the index page. Does this information narrow it down for anyone who might care to help me, hopefully? I have "newness" set to 100 days, images per row at only 1, and rows per page at 100 and still I get only one image showing on the index page. I have 11 images uploaded! All 11 should be showing with those settings, I think?

I just did a file comparison of the original download of index.php vs. my current index.php. The only difference is that the original said, on line 89:
Code: [Select]
$site_template->register_vars(array(
  "has_rss"   => true,
  "rss_title" => "RSS Feed: ".format_text($config['site_name'], 2)." (".str_replace(':', '', $lang['new_images']).")",
  "rss_url"   => $script_url."/rss.php?action=images"
));

and my index.php says:
Code: [Select]
$site_template->register_vars(array(

));

10
Also removed this as well.

Quote
  if ($comment_headline == "") {
    $error['comment_headline'] = 1;
Jenn, your posts were helpful and together they solved the problem. I appreciate it. :)

11
I get the impression you don't know the answer! Ha! Where's V@no? He used to know the answers and was not too petty to share them. Maybe he left because you are such an ass? Yes? Yes.

12
This is from index.php. Is this where the problem is?
Code: [Select]
//-----------------------------------------------------
//--- Show New Images ---------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(

));

$imgtable_width = ceil(intval($config['image_table_width']) / $config['image_cells']);
if ((substr($config['image_table_width'], -1)) == "%") {
  $imgtable_width .= "%";
}

$additional_sql = "";
if (!empty($additional_image_fields)) {
  foreach ($additional_image_fields as $key => $val) {
    $additional_sql .= ", i.".$key;
  }
}

$num_new_images = $config['image_cells'];
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits".$additional_sql.", c.cat_name".get_user_table_field(", u.", "user_name")."
        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_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")
        ORDER BY i.image_date DESC
        LIMIT $num_new_images";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);

if (!$num_rows)  {
  $new_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  $new_images .= $lang['no_new_images'];
  $new_images .= "</td></tr></table>";
}
else  {
  $new_images = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";
  $count = 0;
  $bgcounter = 0;
  while ($image_row = $site_db->fetch_array($result)){
    if ($count == 0) {
      $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
      $new_images .= "<tr class=\"imagerow".$row_bg_number."\">\n";
    }
    $new_images .= "<td width=\"".$imgtable_width."\" valign=\"top\">\n";

    show_image($image_row);
    $new_images .= $site_template->parse_template("thumbnail_bit");
    $new_images .= "\n</td>\n";
    $count++;
    if ($count == $config['image_cells']) {
      $new_images .= "</tr>\n";
      $count = 0;
    }
  } // end while

  if ($count > 0)  {
    $leftover = ($config['image_cells'] - $count);
    if ($leftover >= 1) {
      for ($f = 0; $f < $leftover; $f++) {
        $new_images .= "<td width=\"".$imgtable_width."\">\n&nbsp;\n</td>\n";
      }
      $new_images .= "</tr>\n";
    }
  }
  $new_images .= "</table>\n";
} // end else

$site_template->register_vars("new_images", $new_images);
unset($new_images);
:|

13
I'll get the answer elsewhere, and will post it here. And without support, no contribution.  :twisted:

14
I read what you said, but I don't want to give you an url or an admin account. I want to know how to fix this; what I should look for, etc. But first, I need to know whether or not I have even interpreted this function correctly in the first place. Should it be showing a second row if I have specified two rows, or not? Not everything is clear-cut around here, so I'm asking.

If it should be showing a second row, what files should I look at to see what is wrong?

What files would you look at if you had an admin account at my site?

15
Should I expect to see a second row or not? Have I misinterpreted this function?

Pages: [1] 2 3