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

Pages: 1 [2] 3 4 5 6 7
16
Думаю, нельзя ответить универсально на данный вопрос. Все зависит от того что делает скрипт и какой результат хотелось бы видеть на выходе.

17
any solution for the not-working drop down list?
hmm, rescue911,
check my site.. is it working?
No, it is not good working in you site. I explain it with example:
1. I stay in the page http://wallp.ape.rs/wallpapers-pics-galleries-albums-from-category-formula-1-season-2004-wallpapers-709.html
2. I choose anothe category with drop down list: Animal Clip Art's
3. And then i see url "http://wallp.ape.rs/wallpapers-pics-galleries-albums.html", but it must be "http://wallp.ape.rs/wallpapers-pics-galleries-albums-from-category-animal-clip-art-s-1445.html".
Do you know how to fix this?

18
Mods & Plugins (Releases & Support) / Re: [MOD] Multi-Lightboxes v1.03.1
« on: November 22, 2010, 10:14:30 PM »
Now lightboxses are not change:
1 ligthbox: 1394 1393 1400
2 ligthbox: 1396 1397
I delete photo 1400 by user. Photo was deleted(i didn't see it in gl_images), but ligthbox hasn't any changes.
I delete photo 1396 by admin(ACP). Photo was deleted, but ligthbox hasn't any changes.

19
Mods & Plugins (Releases & Support) / Re: [MOD] Multi-Lightboxes v1.03.1
« on: November 17, 2010, 11:12:37 PM »
Can you confirm if this happens when user himself deletes a photo or admin deletes it via ACP? (if via ACP, do you use default images.php or modified version?)
My happen when admin delete photo via ACP.

Now example when user himself deletes a photo:
1 ligthbox: 1399 1394 1393
2 ligthbox: 1399 1396
I delete photo 1399. Photo was deleted, but ligthbox hasn't any changes. It's new error.

My images.php(attach) has this mod: Batch Copy/Move/Edit Images; Multi-Language support for any text.

20
Mods & Plugins (Releases & Support) / Re: [MOD] Multi-Lightboxes v1.03.1
« on: November 17, 2010, 01:04:18 PM »
Thanks for any ideas or thoughts.

Look my post #144
If you delete image which was in lightbox, then you will have this error.
I don't know how to fix it. And i don't know how people can use this mode (they don't delete any photo?!)

21
Mods & Plugins (Releases & Support) / Re: [MOD] Top 100
« on: March 18, 2010, 02:13:52 PM »
2 little error in top100.php

1. here valign=\"middle\" write two times in two places:
Code: [Select]
  if ($top_100_picture_user_name_below_activate == 1) {
  $toplist .= "<td  valign=\"middle\" align=\"center\" valign=\"middle\">".$image."<br>".$user_name."</td>\n";
  $top_100_picture_activate = "0";
  }
  if ($top_100_picture_activate == 1) {
  $toplist .= "<td  valign=\"middle\" align=\"center\" valign=\"middle\">".$image."</td>\n";
  }

2. 'alt' is not for tag <a>, i will change it for 'title'

Code: [Select]
$cat_name = "<a href=\"".ROOT_PATH."categories.php?cat_id=".$row['cat_id']."\" alt=\"".$row['cat_name']."\">".$cat_name_small."</a>";
and for image_name i add 'title'

Code: [Select]
$image_name = "<a href=\"".ROOT_PATH."details.php?image_id=".$row['image_id']."\" title=\"".$row['image_name']."\">".$image_name_small."</a>";

22
My constants.php is already had this change and this changes in index.html didn't work.

But i found that this code is work:
Code: [Select]
<iframe src="/gallery/random.php" width="150" height="450" scrolling="no" frameborder="0"></iframe>
May it work whithout <iframe>?

 

23
I think that i have error becouse i have wrong path, but i don't know how to write right path. I try different combination, but nothing didn't help.
How will be look right path if i have my files here:
http://www.mydomain.ru/index.html
http://www.mydomain.ru/gallery/random.php  ?


24
I am not coder and i don't know what code is better for use  :oops:
But i try this php code before i try java and there is no any picture too.

25
... for random images on your own index.php trying better this ...

Mawenzi, i use index.html, but not index.php. My index.html is not in the folder with gallery. I can't undestand how you link can help me (especially, i can't undestand how i can use {random_images} in my index.html)?


26
If i look in page http://www.mydomain.ru/gallery/random.php  then i see random picture.
But what i need to do if i want see random picture in http://www.mydomain.ru/index.html ?  I try to add this in index.html , but i didn't see anything:
Code: [Select]
<SCRIPT language='JavaScript'  src='http://www.mydomain.ru/gallery/random.php'></SCRIPT>My random.php:
Code: [Select]
// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie
define('ROOT_PATH', './');

include(ROOT_PATH.'config.php');
include(ROOT_PATH.'includes/db_mysql.php');
include(ROOT_PATH.'includes/constants.php');

define('SCRIPT_URL', 'http://www.mydomain.ru/gallery/');

$site_db = new Db($db_host, $db_user, $db_password, $db_name);
function is_remote($file_name) {
  return (preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $file_name)) ? 1 : 0;
}

echo "<body bgcolor=\"#5D8FB5\" topmargin=\"0\" leftmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";

// NUMBER OF THUMBNAILS TO DISPLAY / NUMMER DER GEWÜNSCHTEN THUMBNAILS
$num_images = 1;

$sql = "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments, a.image_hits, b.cat_name
        FROM (".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b)
        WHERE a.image_active=1
        AND a.cat_id = b.cat_id
        AND b.auth_viewcat=".AUTH_ALL."
        AND b.auth_viewimage=".AUTH_ALL."
        ORDER BY RAND()
        LIMIT $num_images";
$result = $site_db->query($sql);

echo "<table border='0' bgcolor='#5D8FB5' align='center'>\n";
echo "<tr>\n";

while ($row = $site_db->fetch_array($result)){
  $image_id = $row['image_id'];
  $cat_id = $row['cat_id'];
  $image_name = $row['image_name'];
  $image_comments = $row['image_comments'];
  $thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : ROOT_PATH.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];
  $image_hits = $row['image_hits'];
  $cat_name = $row['cat_name'];

  echo "<td width='133' align='center'><a href=\"".SCRIPT_URL."details.php?image_id=$image_id\" target=\"_blank\"> <img src=\"".SCRIPT_URL.$thumb_src."\" border=\"0\" alt=\"$image_name\"></a></td>\n";
}
  echo "</tr>\n";
  echo "</table>\n";
Please, help me

27
Now i try with details.php 1.7.6. Problem still exist.

28
Discussion & Troubleshooting / Error with sort images by Hits/Ascending
« on: January 21, 2010, 01:52:46 PM »
I have this settings:
Sort images by: Hits
Ascending/Descending: Ascending

For example, i have 5 photo in one category(name/hits):

photo1 - 3
photo2 - 5
photo3 - 5
photo4 - 5
photo5 - 8

User open photo1 in detail page and he want see all other photo with press "next page":
photo1 (next page photo2)
photo2 (next page photo3)
photo3 (next page photo4)
photo4 (next page photo2) - he will see photo2 because it have 6 hits, and after that he see one more time photo3, photo4 etc., but NOT photo5.

How fix this problem without changing settings?

29
Mods & Plugins (Releases & Support) / Re: [MOD] Language select
« on: October 28, 2009, 11:34:05 AM »
I want to show one part of page only if choose russian language. How to do this?

30
Mods & Plugins (Requests & Discussions) / Re: Category Dropdown Form
« on: October 28, 2009, 10:59:23 AM »
I found error in last solution: if i do something in admin panel(for example, edit category), then in dropdown menu i see only two categoryes levels. V@no, could you hel with it?

PS. If use the first metod, then in admin panel i see full dropdown menu, but in this method i can't see two levels.

Pages: 1 [2] 3 4 5 6 7