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.


Topics - gifwav

Pages: [1]
1
Discussion & Troubleshooting / People don't recieve postcards
« on: March 16, 2007, 12:34:03 PM »
I've got problems with the postcardsystem.
When a visitor sends an postcard the recipient don't recieve the mail.
People only recieve a postcard when registered users send the postcard.
And it only works when I use smtp server in the settings of the control panel.
I'm using 4images 1.7.1
Today I've installed 4images 1.7.4 and everything's working fine with this version.
I don't have to use the smtp server.

What could be the problem?
I'm using several mods.

regards,

Jan

2
Hello

I want to give guests (in my case kids) the possibility to link directly to another template.
V@no has something like this on his gallery. ( Layout: » Menu: right / Auto-hide).

Can anybody help me with this?

Thanks,

Jan

3
Hi,

I want to create seperate top30's voor votes, downloads etc. (like http://www.terradreams.de/gallery/).
I've copied top.php and top.html and named them for example "topvotes.php" and "topvotes.html".
I changed the code for votes:

Code: [Select]
// Votes
$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_rating, i.image_votes, c.cat_name".get_user_table_field(", u.", "user_name").", i.image_thumb_file, i.image_media_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_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND i.cat_id = c.cat_id
        $cat_match_sql
        ORDER BY i.image_votes DESC, i.image_name ASC
        LIMIT 30";
$result = $site_db->query($sql);
$top_list = array();
$i = 1;
while ($row = $site_db->fetch_array($result)) {
  $top_list[$i] = $row;
  $i++;
}
$site_db->free_result();

for ($i = 1; $i <= 30; $i++) {
if (isset($top_list[$i])) {
           if (empty($top_list[$i]['image_thumb_file'])) {
                  $thumb_file = ICON_PATH."/".get_file_extension($top_list[$i]['image_media_file']).".gif";
         }else {
                   $thumb_file = (is_remote($top_list[$i]['image_thumb_file'])) ? $top_list[$i]['image_thumb_file'] : THUMB_PATH."/".$top_list[$i]['cat_id']."/".$top_list[$i]['image_thumb_file'];
         }
}

  if (isset($top_list[$i])) {
    $register_array['image_votes_'.$i] = (check_permission("auth_viewimage", $top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\">".multilang(htmlspecialchars($top_list[$i]['image_name']))."</a>" : htmlspecialchars(multilang($top_list[$i]['image_name']));
    $register_array['image_votes_openwindow_'.$i] = (check_permission("auth_viewimage", $top_list[$i]['cat_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".multilang(htmlspecialchars($top_list[$i]['image_name']))."</a>" : htmlspecialchars(multilang($top_list[$i]['image_name']));
    if (isset($top_list[$i][$user_table_fields['user_name']]) && $top_list[$i]['user_id'] != GUEST) {
      $user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/", $top_list[$i]['user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$top_list[$i]['user_id'];
      $register_array['image_votes_user_'.$i] = "<a href=\"".$site_sess->url($user_profile_link)."\">".htmlspecialchars($top_list[$i][$user_table_fields['user_name']])."</a>";
    }
    else {
      $register_array['image_votes_user_'.$i] = $lang['userlevel_guest'];
    }
    $register_array['image_votes_cat_'.$i] = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$top_list[$i]['cat_id'])."\">".multilang(htmlspecialchars($top_list[$i]['cat_name']))."</a>";
   if ($top_list[$i]['image_votes'] == "1") {$votes=$lang['vote'];}
    else {$votes=$lang['votes'];}
    $register_array['image_votes_number_'.$i] = "<b>".$top_list[$i]['image_rating']."</b> (".$top_list[$i]['image_votes']." ".$votes.")";
  $register_array['image_votes_thumb_'.$i] = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\"><img src=\"".$thumb_file."\"  border=\"1\" alt=\"\" />";
}
  else {
    $register_array['image_votes_'.$i] = "--";
    $register_array['image_votes_user_'.$i] = "--";
    $register_array['image_votes_cat_'.$i] = "--";
    $register_array['image_votes_number_'.$i] = "--";
$register_array['image_votes_thumb_'.$i] = "--";
  }
}


I've enlarged the topvotes.html with:

Code: [Select]
<td valign="top" class="row2" align="center" width="20%">
<br />{image_votes_thumb_11}
<br />{image_votes_11}
<br />{image_votes_cat_11}
<br />{image_votes_number_11}</td>

etc.

But nothing changed in the browser.
What are the following steps?

regards,

Jan

www.funpics.4u.com

Pages: [1]