Author Topic: MSN, Yahoo, AIM icons in coments?  (Read 10047 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
MSN, Yahoo, AIM icons in coments?
« on: January 03, 2003, 04:31:18 AM »
I have succesfully add MSN, Yahoo and AIM fields in user info.
it shows everywhere, exept coments.
I did the same things as for other pages but still it doesnt show it.
all I could find that in details.php in coments code reads ICQ data from database
Code: [Select]
get_user_table_field(", u.", "user_icq"), but doesnt read " additional.sql " data that stores the rest (?)...
so, can someone help me to make details code read all fields from USER table?
thx.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Re: MSN, Yahoo, AIM icons in coments?
« Reply #1 on: August 11, 2009, 06:52:25 AM »
WOw 8O .great :) !   :wink:
I'm Back :)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: MSN, Yahoo, AIM icons in coments?
« Reply #2 on: August 11, 2009, 07:19:25 AM »
What's so great?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Re: MSN, Yahoo, AIM icons in coments?
« Reply #3 on: August 11, 2009, 12:12:06 PM »
Nope..i mean its cool  :lol:
I'm Back :)

Offline Sunny C.

  • Addicted member
  • ******
  • Posts: 1.806
  • I ♥ 4I
    • View Profile
Re: MSN, Yahoo, AIM icons in coments?
« Reply #4 on: September 10, 2010, 11:14:10 PM »
Is currently still a problem?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: MSN, Yahoo, AIM icons in coments?
« Reply #5 on: September 11, 2010, 12:40:25 AM »
Yes, 4images still doesn't support additional fields in comments.

But you can try the following modification:
in details.php find:
  $sql "SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, c.comment_ip, c.comment_date".get_user_table_field(", u.""user_level").get_user_table_field(", u.""user_name").get_user_table_field(", u.""user_email").get_user_table_field(", u.""user_showemail").get_user_table_field(", u.""user_invisible").get_user_table_field(", u.""user_joindate").get_user_table_field(", u.""user_lastaction").get_user_table_field(", u.""user_comments").get_user_table_field(", u.""user_homepage").get_user_table_field(", u.""user_icq")."

Replace with:
  $additional_sql "";
  if (!empty(
$additional_user_fields)) {
    foreach (
$additional_user_fields as $key => $val) {
      
$additional_sql .= ", u.".$key;
    }
  }
  
$sql "SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, c.comment_ip, c.comment_date".get_user_table_field(", u.""user_level").get_user_table_field(", u.""user_name").get_user_table_field(", u.""user_email").get_user_table_field(", u.""user_showemail").get_user_table_field(", u.""user_invisible").get_user_table_field(", u.""user_joindate").get_user_table_field(", u.""user_lastaction").get_user_table_field(", u.""user_comments").get_user_table_field(", u.""user_homepage").get_user_table_field(", u.""user_icq")."$additional_sql



Find:
      $comments .= $site_template->parse_template("comment_bit");

Insert above :above::
      if (!empty($additional_user_fields)) {
        
$additional_field_array = array();
        foreach (
$additional_user_fields as $key => $val) {
          
$additional_field_array[$key] = (!empty($comment_row[$i][$key])) ? format_text($comment_row[$i][$key], 1) : REPLACE_EMPTY;
          
$additional_field_array['lang_'.$key] = $val[0];
        }
        if (!empty(
$additional_field_array)) {
          
$site_template->register_vars($additional_field_array);
        }
      }
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)