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

Pages: [1] 2
1
Спасибо.
Я примерно так и сделал.
Но это не совсем удобно.
Будет ли вынесено в админку в след. версии?

2
Давно не заходил в гости, но появилась необходимость в новой галерее.
Так и не нашел ответа на вопрос об отдельных настройках размеров картинок для разных категорий.
Есть в планах релизовать?

3
Replace

Code: [Select]
$t = (isset($HTTP_GET_VARS['t'])) ? intval(trim($HTTP_GET_VARS['t'])) : 0;
so

Code: [Select]
if (isset($HTTP_GET_VARS['t']) || isset($HTTP_POST_VARS['t'])) {
  $t = (isset($HTTP_GET_VARS['t'])) ? stripslashes(trim($HTTP_GET_VARS['t'])) : stripslashes(trim($HTTP_POST_VARS['t']));
} else $t = "";

4
Если что - обращайтесь.
Чем могу - помогу :)

5
What to avoid mistakes at processing google the robot of categories, it is necessary a code

Code: [Select]
$categories = mysql_query('SELECT cat_id FROM ' . $table_prefix . 'categories');
while ($category = mysql_fetch_array($categories))
{
$catid = $category['cat_id'];
if ($shortURL == 1) {
$cat_url = $gallery_url.'cat'.$catid.'.htm';
}else {
$cat_url = $gallery_url.'categories.php?cat_id='.$catid;
}

print_xml($cat_url,$prio_cat,'',$freq_cat);
}

replace

Code: [Select]
$categories = mysql_query('SELECT cat_id FROM ' . $table_prefix . 'categories');
while ($category = mysql_fetch_array($categories))
{
$catid = $category['cat_id'];
if ($shortURL == 1) {
$cat_url = $gallery_url.'cat'.$catid.'.htm';
}else {
$cat_url = $gallery_url.'categories.php?cat_id='.$catid;
}

$date = date("Y-m-d")."T".date("H:i:s")."+00:00";
print_xml($cat_url,$prio_cat,$date,$freq_cat);
}

6
Mods & Plugins (Releases & Support) / Re: [MOD] Multi-Lightboxes v1.03.1
« on: October 09, 2006, 02:10:45 PM »
V@no
Описываю ситуацию (моделировал на 2-х пользователях имеющих по 2 альбома):
2 пользователя: User1 и User2
у каждого есть по 2 (public) Альбома (Избранное) с внесенными фото:
User1_albom1, User1_albom2
User2_albom1, User2_albom2

Заходим в галерею как User1, в списке Альбомов выбран User1_albom1, по ссылке в профиле User2 заходим в User2_albom2, жмем на ссылку "Очистить альбом" и очищаем свой User1_albom1.
В связи с этим есть необходимость при просмотре чужого Альбома не выводить ссылку "Очистить альбом", что бы случайно не потереть свой :).
И возможно в ссылке "Очистить альбом" следует приписывать Имя очищаемого Альбома.

7
Jasmine

Code: [Select]
   }
  $site_template->register_vars( 'cat_wordsearch', (empty($search_cat_result) ? "" join("\n\n<li>", $search_cat_result)) );      // add result to template
// END MOD: Search category names for keywords

Replace

Code: [Select]
   }
$site_template->register_vars( 'cat_wordsearch', (empty($search_cat_result) ? "" : join("\n\n<li>", $search_cat_result)) );      // add result to template
// END MOD: Search category names for keywords

The sign was lost  : :)

8
Mods & Plugins (Releases & Support) / Re: [MOD] Multi-Lightboxes v1.03.1
« on: September 21, 2006, 08:57:48 PM »
N@no,

Whence data undertake for 
Code: [Select]
$config['lightbox']
in Step 4:
Code: [Select]
if ((($user_row['user_lightbox_private'] || $user_row['user_level'] == ADMIN) && $config['lightbox_share'] && $user_info['user_level'] >= $config['lightbox']) || $user_info['user_level'] == ADMIN)
in my tables "4images_settings" not setting_name "lightbox" :)

9
Mods & Plugins (Releases & Support) / Re: [MOD] Multi-Lightboxes v1.03.1
« on: September 21, 2006, 06:19:48 AM »
Thanks!

10
Mods & Plugins (Releases & Support) / Re: [MOD] Multi-Lightboxes v1.03.1
« on: September 20, 2006, 07:20:19 PM »
hi V@no!
Please send file
http://gallery.vano.org/file70dl

11
Mods & Plugins (Releases & Support) / Re: [MOD] 4images Quiz
« on: August 24, 2006, 06:31:20 PM »
Has your quiz the "limit count" ?

It has not been included.
Has now included, you can check up:)

12
Mods & Plugins (Releases & Support) / Re: [MOD] 4images Quiz
« on: August 23, 2006, 09:27:26 PM »
Hi, mawenzi !
My little update for limit count game is one user:

quiz_include.php
find
Code: [Select]
$variante = "English";
add after
Code: [Select]
$onegame = 1; // 1- limit is one game is one user, 0- no limit game


quiz.php
find
Code: [Select]
if ($user_info['user_level'] > GUEST )
{
$user_name_quiz = $user_info['user_name'];
}else{
$user_name_quiz = "Guest";
}

add after
Code: [Select]
if ($onegame == 1) {

if ($user_info['user_level'] > GUEST)
{
$user_id_quiz = $user_info['user_id'];
$user_quiz_level = $p;

$sql = "SELECT username, user_id, user_quiz_firstlevel
        FROM ".USERS_TABLE."
        WHERE user_id = $user_id_quiz";
$row = $site_db->query_firstrow($sql);
$user_quiz_firstlevel = $row['user_quiz_firstlevel'];

if ($user_quiz_firstlevel > "0.00"){

echo "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\"><meta http-equiv=\"pragma\" content=\"no-cache\">";
echo "<title>".$titel."</title>";
echo "<link rel=\"stylesheet\" href=\"quiz_style.css\" /></head>";
echo "<body oncontextmenu=\"return false\" onselectstart=\"return false\" ondragstart=\"return false\">";
echo "<center><br><div id=\"game\"><div id=\"titel\">You already took part in a quiz :)</div>";

// --- Highscore Liste  ---
$sql = "SELECT *
        FROM ".USERS_TABLE."
        WHERE user_quiz_level > 0
        ORDER BY user_quiz_level DESC, user_quiz_firstlevel DESC, username ASC
        LIMIT 10";
$result = $site_db->query($sql);

  echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tr><td class=\"tableborder\">";
  echo "<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tr>";
  echo "<td width=\"100%\" class=\"listhead\" valign=\"top\" align=\"center\" colspan=\"3\"><small>".$quiz_list_1."</small></td></tr>";
  echo "<td width=\"10%\" class=\"listhead\" valign=\"top\" align=\"center\"><small>".$quiz_list_2."</small></td>";
  echo "<td width=\"60%\" class=\"listhead\" valign=\"top\" align=\"center\"><small>".$quiz_list_3."</small></td>";
  echo "<td width=\"30%\" class=\"listhead\" valign=\"top\" align=\"center\"><small>".$quiz_list_4."</small></td>";
  echo "</tr>\n";
  $count = 0;
  $bgcolor = 0;
  $counter = $count+1;
  while ($user_row = $site_db->fetch_array($result)) {
  $user_name = htmlspecialchars($user_row['user_name']);
  $user_quiz_level = ($user_row['user_quiz_level']);
  if ($count == 0) {
  $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;
  echo "<tr class=\"listrow".$row_bg_number."\">\n";
  }
  echo "<td valign=\"bottom\" align=\"middle\"><small>".$counter."</small></td>\n";
  echo "<td valign=\"bottom\" align=\"left\"><small>".$user_name."</small></td>\n";
  echo "<td valign=\"bottom\" align=\"middle\"><small>".$user_quiz_level." %</small></td>\n";
  echo "\n</tr>\n";
  $counter++;
  } // end while : Ausgabe der Tabellenzeile
  echo "</table>\n";
  echo "</td>\n</tr>\n</table><br>\n";
// --- Highscore Liste  ---

echo "</div></center></body></html>";
exit;
}}
}

testing.

13
Mods & Plugins (Releases & Support) / Re: [MOD] Histogram
« on: June 08, 2006, 09:11:36 AM »
Quote
Warning: imagesx(): supplied argument is not a valid Image resource in /home/myanimw/public_html/4images/histo.php on line 15

in histo.php add after
Code: [Select]
//      Free to use and change, provided you keep these lines :)
//

this
Code: [Select]
if (isset($HTTP_GET_VARS['hist_image']) || isset($HTTP_POST_VARS['hist_image'])) {
  $hist_image = (isset($HTTP_GET_VARS['hist_image'])) ? stripslashes(trim($HTTP_GET_VARS['hist_image'])) : stripslashes(trim($HTTP_POST_VARS['hist_image']));
}
else {
  $hist_image = "";
}

if (isset($HTTP_GET_VARS['hist_path']) || isset($HTTP_POST_VARS['hist_path'])) {
  $hist_path = (isset($HTTP_GET_VARS['hist_path'])) ? stripslashes(trim($HTTP_GET_VARS['hist_path'])) : stripslashes(trim($HTTP_POST_VARS['hist_path']));
}
else {
  $hist_path = "";
}

if (isset($HTTP_GET_VARS['hist_file']) || isset($HTTP_POST_VARS['hist_file'])) {
  $hist_file = (isset($HTTP_GET_VARS['hist_file'])) ? stripslashes(trim($HTTP_GET_VARS['hist_file'])) : stripslashes(trim($HTTP_POST_VARS['hist_file']));
}
else {
  $hist_file = "";
}

14
Mods & Plugins (Requests & Discussions) / Re: Google Maps integration
« on: February 27, 2006, 02:13:09 PM »
Спасибо SAD!
именно то что нужно - и класно же выглядит:)
буду пробовать такое для 4images сделать.

Удалось прикрутить?

15
Mods & Plugins (Requests & Discussions) / Re: Google Maps integration
« on: January 31, 2006, 08:05:53 AM »
gnikolay
потом поделись изысками :)

Pages: [1] 2
Post your comments here