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

Pages: [1]
1
Hi, I made all steps correctly and after upload "install_autoimage.php" to my server and press "start modify database" it says "An unexpected error occured. Please try again later. An unexpected error occured. Please try again later" I checked my database configuration its ok.
I'm waiting your helps
Thanks in advance

2
Mods & Plugins (Releases & Support) / Re: [Mod] Toplist altered
« on: July 15, 2008, 02:54:51 PM »
YESSSS its solved because of you Bob. I don't want to give my url now, after prepared I will show everybody  8)
Thanks a million Bob  :thumbup:

3
Mods & Plugins (Releases & Support) / Re: [Mod] Toplist altered
« on: July 15, 2008, 02:32:36 PM »
Thanks for rapid reply, I try this but I have error. My top.php is
Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: top.php                                              *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    * 
 *              Web: http://www.4homepages.de                             * 
 *    Scriptversion: 1.7.6                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$main_template 'top';

define('GET_CACHES'1);
define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();
include(
ROOT_PATH.'includes/page_header.php');

$cache_id create_cache_id(
  
'page.top',
  array(
    
$user_info[$user_table_fields['user_id']],
    
$cat_id,
    
$config['template_dir'],
    
$config['language_dir']
  )
);

if (!
$cache_page_top || !$content get_cache_file($cache_id)) {
if (
$cache_page_top) {
  
// Always append session id if cache is enabled
  
$old_session_mode $site_sess->mode;
  
$site_sess->mode 'get';
}

ob_start();

$cat_match_sql = ($cat_id && check_permission("auth_viewcat"$cat_id)) ? "AND i.cat_id = '$cat_id' " "";
$register_array = array();

$cat_id_sql get_auth_cat_sql("auth_viewcat""NOTIN");

// Rating
$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
        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_rating DESC, i.image_name ASC
        LIMIT 10"
;
$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 <= 10$i++) {
  if (isset(
$top_list[$i])) {
    
$register_array['image_rating_'.$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'])."\">".format_text($top_list[$i]['image_name'])."</a>" format_text($top_list[$i]['image_name']);
    
$register_array['image_rating_thumb_'.$i] = (isset($top_list[$i]['image_id']) && !empty($top_list[$i]['image_id'])) ? "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\"><img src=\"data/thumbnails/".$top_list[$i]['cat_id']."/".$top_list[$i]['image_thumb_file']."\" width=\"200\" height=\"150\" border=\"0\" alt=\"\" /></a>" format_text(trim($top_list[$i]['image_name']), 2);

    
$register_array['image_rating_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\">".format_text($top_list[$i]['image_name'])."</a>" format_text($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_rating_user_'.$i] = "<a href=\"".$site_sess->url($user_profile_link)."\">".format_text($top_list[$i][$user_table_fields['user_name']])."</a>";
    }
    else {
      
$register_array['image_rating_user_'.$i] = $lang['userlevel_guest'];
    }
    
$register_array['image_rating_cat_'.$i] = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$top_list[$i]['cat_id'])."\">".format_text($top_list[$i]['cat_name'])."</a>";
    
$register_array['image_rating_number_'.$i] = "<b>".$top_list[$i]['image_rating']."</b> (".$top_list[$i]['image_votes']." ".$lang['votes'].")";
  }
  else {
    
$register_array['image_rating_'.$i] = "--";
    
$register_array['image_rating_user_'.$i] = "--";
    
$register_array['image_rating_cat_'.$i] = "--";
    
$register_array['image_rating_number_'.$i] = "--";
    
$register_array['image_rating_thumb_'.$i] = "--";
  }
}
// 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")."
        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 10"
;
$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 <= 10$i++) {
  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'])."\">".format_text($top_list[$i]['image_name'])."</a>" format_text($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\">".format_text($top_list[$i]['image_name'])."</a>" format_text($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)."\">".format_text($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'])."\">".format_text($top_list[$i]['cat_name'])."</a>";
    
$register_array['image_votes_number_'.$i] = "<b>".$top_list[$i]['image_rating']."</b> (".$top_list[$i]['image_votes']." ".$lang['votes'].")";
  }
  else {
    
$register_array['image_votes_'.$i] = "--";
    
$register_array['image_votes_user_'.$i] = "--";
    
$register_array['image_votes_cat_'.$i] = "--";
    
$register_array['image_votes_number_'.$i] = "--";
  }
}

// Hits
$sql "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_hits, 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 i.cat_id NOT IN (
$cat_id_sql) AND i.cat_id = c.cat_id
        
$cat_match_sql
        ORDER BY i.image_hits DESC, i.image_name ASC
        LIMIT 10"
;
$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 <= 10$i++) {
  if (isset(
$top_list[$i])) {
    
$register_array['image_hits_'.$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'])."\">".format_text($top_list[$i]['image_name'])."</a>" format_text($top_list[$i]['image_name']);
    
$register_array['image_hits_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\">".format_text($top_list[$i]['image_name'])."</a>" format_text($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_hits_user_'.$i] = "<a href=\"".$site_sess->url($user_profile_link)."\">".format_text($top_list[$i][$user_table_fields['user_name']])."</a>";
    }
    else {
      
$register_array['image_hits_user_'.$i] = $lang['userlevel_guest'];
    }
    
$register_array['image_hits_cat_'.$i] = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$top_list[$i]['cat_id'])."\">".format_text($top_list[$i]['cat_name'])."</a>";
    
$register_array['image_hits_number_'.$i] = "<b>".$top_list[$i]['image_hits']."</b>";
  }
  else {
    
$register_array['image_hits_'.$i] = "--";
    
$register_array['image_hits_user_'.$i] = "--";
    
$register_array['image_hits_cat_'.$i] = "--";
    
$register_array['image_hits_number_'.$i] = "--";
  }
}

// Downloads
$sql "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_downloads, 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 i.cat_id NOT IN (
$cat_id_sql) AND i.cat_id = c.cat_id
        
$cat_match_sql
        ORDER BY i.image_downloads DESC, i.image_name ASC
        LIMIT 10"
;
$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 <= 10$i++) {
  if (isset(
$top_list[$i])) {
    
$register_array['image_downloads_'.$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'])."\">".format_text($top_list[$i]['image_name'])."</a>" format_text($top_list[$i]['image_name']);
    
$register_array['image_downloads_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\">".format_text($top_list[$i]['image_name'])."</a>" format_text($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_downloads_user_'.$i] = "<a href=\"".$site_sess->url($user_profile_link)."\">".format_text($top_list[$i][$user_table_fields['user_name']])."</a>";
    }
    else {
      
$register_array['image_downloads_user_'.$i] = $lang['userlevel_guest'];
    }
    
$register_array['image_downloads_cat_'.$i] = "<a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$top_list[$i]['cat_id'])."\">".format_text($top_list[$i]['cat_name'])."</a>";
    
$register_array['image_downloads_number_'.$i] = "<b>".$top_list[$i]['image_downloads']."</b>";
  }
  else {
    
$register_array['image_downloads_'.$i] = "--";
    
$register_array['image_downloads_user_'.$i] = "--";
    
$register_array['image_downloads_cat_'.$i] = "--";
    
$register_array['image_downloads_number_'.$i] = "--";
  }
}

$site_template->register_vars($register_array);

//-----------------------------------------------------
//--- Clickstream -------------------------------------
//-----------------------------------------------------
$clickstream "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'];
if (
$cat_id && isset($cat_cache[$cat_id])) {
  
$clickstream .= get_category_path($cat_id1).$config['category_separator'];
}
$clickstream .= $lang['top_images']."</span>";

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  
"msg" => $msg,
  
"clickstream" => $clickstream,
  
"lang_top_image_hits" => $lang['top_image_hits'],
  
"lang_top_image_downloads" => $lang['top_image_downloads'],
  
"lang_top_image_rating" => $lang['top_image_rating'],
  
"lang_top_image_votes" => $lang['top_image_votes']
));
$site_template->print_template($site_template->parse_template($main_template));

$content ob_get_contents();
ob_end_clean();

if (
$cache_page_top) {
  
// Reset session mode
  
$site_sess->mode $old_session_mode;

  
save_cache_file($cache_id$content);
}

// end if get_cache_file()

echo $content;

include(
ROOT_PATH.'includes/page_footer.php');
?>
How to add this code and where

4
Mods & Plugins (Releases & Support) / Re: [Mod] Toplist altered
« on: July 15, 2008, 12:50:27 PM »
Hi, I'm usign top.php and works perfect. But my problem is I want to use this on my home.html . I try to use iframe and its shown but after I click one of images , it will open in the iframe.
is it possible to open in a new window or _parent, _top target.
thanks in advance

5
Hi,
I used mini-top in past but now Im using edited top.php. When I used mini-top, after add {mini_top_images} code on home.html, it works.
My question is ; is it possible to use my top.php file on home.html ? I used iframe, when clicked on a picture,username exc., it will open in iframe so I dont want to use iframe on my home.html

Finally is it possible to use my top.php or toplist system on home.html ?

Thanks is advance and sorry for my bad english

6
Turkish / Türkçe / Re: Resim Yüklerken Türkçe Karakter Sorunu
« on: May 26, 2008, 04:00:16 AM »
Sorun sitenin versiyonundan kaynaklanyormuş,eskisini silip yeni 1.7.6 yükleyince düzeldi, ilgin için teşekkür ederim

7
Hi, thanks for great mod, I have a question, is it possible to inform user by email for when somebody add him/her to buddy list?

8
Thanks for your great help Nicky. :mrgreen:

9
Turkish / Türkçe / Re: Resim Yüklerken Türkçe Karakter Sorunu
« on: May 18, 2008, 12:35:01 AM »
1.7.4 versiyonu

10
Hello, when I want to upload a picture in uploadform with Turkish language which use utf-8 charset, it will an error "please fill picture name" however when I want to fill name and description box in english language there was no problem...
How can I fix this
Thanks in advance

11
Turkish / Türkçe / Resim Yüklerken Türkçe Karakter Sorunu
« on: May 17, 2008, 01:54:05 PM »
Resim yüklerken resim adı veya açıklamasına türkçe karakterli bir şey yazarsam resmi yüklemiyor, bunu nasıl düzeltebilirim?

12
Modifikasyonlar / Re: Üyeniz yüklediklerini Görsün
« on: April 21, 2008, 10:01:52 PM »
Merhaba,

tüm yazılanları yaptım fakat herhangi bir değişiklik olmadı neden acaba ?

13
Mods & Plugins (Releases & Support) / Re: [Mod] Mini-Top
« on: April 21, 2008, 09:50:40 PM »
Thanks a million :) I solve the problem

14
Mods & Plugins (Releases & Support) / Re: [Mod] Mini-Top
« on: April 21, 2008, 02:10:22 AM »
Hi,
I did everything what you tell but I have this error :

DB Error: Bad SQL Query: 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, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 1) ORDER BY i.image_rating DESC, i.image_votes DESC
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: 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, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 1) ORDER BY i.image_votes DESC, i.image_rating DESC
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: 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, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id IN (0, 1) ORDER BY i.image_hits DESC, i.image_name ASC
Unknown column 'i.user_id' in 'on clause'


How should I do ?

Thanks in advance

15
Hi, everyone and thunder :)

I install this mod and it is working nicely but I have a little problem, I'm using this mod in Turkey so my guess will use turkish language, when I was tried to post a comment in turkish alphabet, there will nothing in comment box, but when I was use english alphabet I will post my comments.

How can I change this form's character set to UTF-8 or Turkis language ?

Thanks in advance

Pages: [1]