Author Topic: [Mod] Show user's comments from his profile  (Read 127971 times)

0 Members and 1 Guest are viewing this topic.

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [Mod] Show user's comments from his profile
« Reply #60 on: July 25, 2006, 01:16:35 AM »
can we got the avatar (userpic) of the user of who had received the comment ?

Offline sy4k4

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [Mod] Show user's comments from his profile
« Reply #61 on: July 26, 2006, 02:46:20 AM »
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 119 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 114 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 97 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 31 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 13 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 118 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 117 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 116 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 65 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 20 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 40 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 53 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'



i use 4images 1.7.2

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [Mod] Show user's comments from his profile
« Reply #62 on: August 12, 2006, 11:24:53 PM »
This mod is not compatible with integrations such as phpbb or vbuletin integrations.

V@no I installed this mod succesful and i have my gallery integrated with phpbb. it´s great! thanks a lot! ^^

um.. i modified the integrated mod to see 4images profile. my problem is when i try to add a new field in 4images profile..
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: [Mod] Show user's comments from his profile
« Reply #63 on: November 05, 2006, 05:46:55 PM »
Hello,

i have 1.7.4 and i have an error :

Notice: Undefined variable: user_row in /homepages/35/d85936339/htdocs/0images/includes/page_header.php on line 117

what is the right code for page_header.php ?

I put this code in the includes/page_header.php

"lang_show_user_comments" => $lang['show_user_comments'],
  "url_show_user_comments" => $site_sess->url(ROOT_PATH."member.php?action=showcomments&user_id=".$user_row['user_id']),

Thanks for helping ;-)

Greez Darkness  :mrgreen:

Offline Joss

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • All about digital photography
Re: [Mod] Show user's comments from his profile
« Reply #64 on: February 19, 2007, 12:43:36 AM »
sy4k4,
this is a incompatibility with a MySQL5. Change the following string:

FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c

to

FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)

V@no,
could you update your script accordingly?

Digital Photo Gallery: http://gallery.imagemaster.ru

Offline maus

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Mod] Show user's comments from his profile
« Reply #65 on: May 17, 2007, 01:57:49 PM »
Hallo zusammen,

geht es das man dieses mod auch in deutsch erklären kann.
Leiter kann ich kein Wort englisch.

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [Mod] Show user's comments from his profile
« Reply #66 on: June 14, 2007, 11:24:42 PM »
it is working with latest vesion 1.74?

i got that error by clicking show comments:

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 347 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.image_name, c.cat_name, i.image_media_file, i.image_thumb_file, i.image_allow_comments FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 231 AND c.cat_id = i.cat_id
Unknown column 'i.user_id' in 'on clause'


manurom

  • Guest
Re: [Mod] Show user's comments from his profile
« Reply #67 on: June 15, 2007, 09:55:11 AM »
Hello;
the answer is two posts before: http://www.4homepages.de/forum/index.php?topic=4131.msg88884#msg88884:
this is a incompatibility with a MySQL5. Change the following string:

FROM ".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c

to

FROM (".IMAGES_TABLE." i,  ".CATEGORIES_TABLE." c)

Offline Fragezeichen

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [Mod] Show user's comments from his profile
« Reply #68 on: June 15, 2007, 11:36:25 AM »
GREAT!!!

..now it works well,many thanks.

 :P :P :P :P :P :P :P :P :P

Offline ojoaldato

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Mod] Show user's comments from his profile
« Reply #69 on: June 26, 2007, 12:55:33 PM »
How can i show only the comments in one concrete image?

Thanks

Offline Frank Götze

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Photography Portal Galerie
Re: [Mod] Show user's comments from his profile
« Reply #70 on: June 28, 2007, 08:41:25 AM »
This line from step 1.2 is resposible:
Code: [Select]
   $comments = "<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"bordercolor\"><tr><td class=\"commentrow1\" colspan=\"2\">".$lang['member_no_comments']."</td></tr></table>";

Hi Vano,

thank you for this graet MOD. But i have the same problem if the user has no comments in profile. ( http://www.photography-portal.de/galerie/member.php?action=showcomments&user_id=19 )

I'm insert this code and it' work:
Code: [Select]
$comments = "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"bordercolor\">\n<tr>\n<td>\n<table width=\"100%\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\"><td class=\"commentrow1\" colspan=\"2\">".$lang['member_no_comments']."</td>\n";
Frank.
« Last Edit: June 28, 2007, 07:51:11 PM by Frank Götze »

Offline mato72

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • Brick-Cinema
Re: [Mod] Show user's comments from his profile
« Reply #71 on: August 01, 2007, 10:27:02 PM »
I get an
Parse error: syntax error, unexpected ';', expecting ')' in /member.php on line 962

On this line is this:

961    "lang_icq" => $lang['icq'],
962    ));
963

>>>>EDIT<<<<

Sorry, I just found out...

>>><<<<<
« Last Edit: August 01, 2007, 11:14:14 PM by mato72 »

Offline Schtorsch

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [Mod] Show user's comments from his profile
« Reply #72 on: October 03, 2007, 07:41:42 PM »
I have a problem with the mod...
I checked every step many times - and I can`t find the mistake...

The link in member profile is shown and works nice. But the "result-site" is damaged...
There are "frames" - the gallery is copying itself...  And the paging is at top of the site...

Here are the screenshot:



Can anybody help me?!

EDIT: Here are the link to my "mistake"...  http://www.dhk-galerie.de/4images/member.php?action=showcomments&user_id=29
« Last Edit: October 03, 2007, 09:55:22 PM by Schtorsch »
Freundliche Grüße


Daniel, der Schtorsch

Offline Tino23

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • LMJ - Motorsport
Re: [Mod] Show user's comments from his profile
« Reply #73 on: October 27, 2007, 06:34:42 PM »
An welcher Stelle der member.php muß ich denn noch folgenden Code Einfügen, damit mit der Link "Angezeigt" wird und verknüpft ist?
Quote
"lang_show_user_comments" => $lang['show_user_comments'],
      "url_show_user_comments" => $site_sess->url(ROOT_PATH."member.php?action=showcomments&user_id=".$user_row['user_id']),

9.12.2007  :?:
« Last Edit: December 09, 2007, 07:06:13 PM by Tino23 »

Offline masterred

  • Sr. Member
  • ****
  • Posts: 494
    • View Profile
Re: [Mod] Show user's comments from his profile
« Reply #74 on: January 08, 2008, 01:30:06 AM »
hi

how show the comment in member_profile.html,

step

Quote
Step 3.
Open /templates/<yourtemplate>/member_profile.html

Add this tag, whereever u want to display link for comments:
Code:
<A href="{url_show_user_comments}">&nbsp;&nbsp;{lang_show_user_comments}&nbsp;&nbsp;</a>

I do like to look at the comments member_profiles.html no link to another page. Which are shown in profile.

thanks
Apache/2.2.21 (Win32)
PHP/5.3.5
Mysql Version: 5.5.19
4images Version: 1.7.?