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

Pages: [1] 2
1
silent-art i found that script earlier.... it is not a good script becouse it will show recived comments only to the author of image. I'd like script that show from user profile all recived comments to everyone... so =/

2
Thank You mawenzi but with MOD - votes saved in database by Vano it doesn't work. The vote 4.5 will be saved in databaste as 4.0 :(

3
hello

is it possible to rate 4.5 and 3.5 not only 3.0 and 4.0 ?

How can I do it?

Thank you for help!

4
When user is adding new picture and he push the submit button there is displayed page with that picture but without comment form and comments - only single picture.
What sould I do to make link of that picture to the page with this picture with comment form and comments ?

Ok I did it myself

In member.php find :

$content .= "<table border=\"0\" align=\"center\">\n<tr>\n<td>\n".$media."\n</td>\n</tr>\n</table>\n";

and replace it with :

$content .= "<table border=\"0\" align=\"center\">\n<tr>\n<td>\n<a href=\"details.php?image_id=".$image_id."\">".$media."</a>\n</td>\n</tr>\n</table>\n";

5
Mods & Plugins (Requests & Discussions) / Re: Sorting by COMMENTS?
« on: October 25, 2012, 07:38:49 PM »
Sorry but your link have nothing common with this topic. As always I have to do it myself... :?

6
Mods & Plugins (Requests & Discussions) / Re: Sorting by COMMENTS?
« on: October 24, 2012, 10:14:45 PM »
So what is the link to that MOD ? Can anyone post it here ?

7
Anyone has idea how to sort images by rating date with MOD "Save votes in the database" ??

8
Hello

Is it possible to make default sorting of images by date of last comment added ?

How to do it ?

Thanks for every help!

9
Hello.

I'd like users who already voted to have possibility to edit their vote and change it from for example 3 to 5 but how to do it ?

10
Thank You Rembrandt !

Can You please tell me where should I paste the code if I want to display the number of users under all thumbnails ? Becouse I dont want to show it on details page but under every thumbnail on list page.

$sql "SELECT l.lightbox_image_ids, u.user_id, l.user_id".get_user_table_field(", u.""user_name")."
	
	
	
	
FROM ("
.LIGHTBOXES_TABLE." l, ".USERS_TABLE." u)
	
	
	
	
WHERE l.lightbox_image_ids LIKE '%
$image_id%' AND u.user_id=l.user_id";
	
	
	
	

$result $site_db->query($sql);
  
$lightbox_row = array();
  while (
$row $site_db->fetch_array($result)) {
    
$lightbox_row[] = $row;
  }
  
$site_db->free_result($result);
  
$num_rows sizeof($lightbox_row);
	
if (
$num_rows) {
    for (
$i 0$i $num_rows$i++) {
	
	
	
$lightbox_list .= "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$lightbox_row[$i]['user_id'])."\">".$lightbox_row[$i]['user_name']."</a>";
	
	
	
if (
$i+!= $num_rows) {
	
	
	
	
$lightbox_list .= ", ";
	
	
	
}
	
	
	

	
	
}
	
}

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
	
"lightbox_list" => $lightbox_list,


By the way  I think that this solution will not be good because when mysql will have to search LIKE %image_id% for example 1000 records the database will die....I will try do it by adding new field in database to image table for example 4images_image.lightbox and by using UPDATE command I will add "+1" counter.

I don't know if it works but it will be much better solution in my opinion.

Maybe You can help me ?

Thanks again!

11
Hello everybody

I'd like to display under thumbnail on main page a number that display how many people added this photo to lightbox. It's not difficult becouse the mysql query looks like that :

SELECT count(*) from 4images_lightboxes where lightbox_image_ids = for example 1;

But how will look function that display that number ? And where should be placed - in functions.php or other file ?

Please help.


12
Can anyone send me the code of modification becouse download link is not working.....

13
Hello.

I've been searching all forum but I can't find mod which display in user member profile all images he added by category.

I know that there is a mod that displays all images that user add -->> http://www.4homepages.de/forum/index.php?topic=15390.0

But I want to display photos like that :

Name of category for example landscapes

and under all images user added to this category so  if any user display my profile he will show this :

| landscapes |

|photo 1 | photo2 | and so on...

| animals |

| photo 1 | photo 2 | and so on....

|flowers |

|photo1 | photo 2 | and so on....

14
Hello...

I'd like every registered user to give recommendation a photo they like the best. The photo which recive more recommendation will be display on home page.

How to do it ?

15
PROBLEM SOLVED - SORRY AND THANKS FOR HELP !!

Helo ,

when I try to upload photo I get this error message :

"DB Error: Bad SQL Query: INSERT INTO 4images_images (cat_id, user_id, image_name, image_description, image_keywords, image_date, image_last_view, image_active, image_media_file, image_thumb_file, image_download_url, image_allow_comments) VALUES (4, 1, 'dfdfdfdf', '', '', 1341487023, 1341487023, 1341487023, 1, 'zd1_5.jpg', 'zd1_5.jpg', '', 1)
Column count doesn't match value count at row 1"

I know that there are 3  "1341487023, 1341487023, 1341487023" - it is one more that should be.

What Can I do ? Please help....

PROBLEM SOLVED - SORRY AND THANKS FOR HELP !!

In member.php file  I've got in insert instruction one field too much i delete it and problem is solved.... sometimes i am so stuuupid !  ;)

Pages: [1] 2