Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Showing avatars in comments

Asked Modified Viewed 2,723 times
W
wd
W
wd 10
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
asked
Junior Member

Hi,

I've author's theme to php-fusion 7 and unfortunately aren't showing avatars in comments, because in theme.php file hasn't function: function render_comments. I download package 7.02.07 and in file readme is instruction what to do to avatars was showing in comments, I would like to ask for help from where I can take code unction render_comments to can add ti it code:

if ($settings['comments_avatar'] == "1") { echo "<span class='comment-avatar'>>".$data['user_avatar']."</span>>\n"; } 
Edited by wd on 22-02-2016 14:51,
0 replies

7 posts

F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

You have clear examples in the v7 version of the Gillette theme for that feature.
0 replies
W
wd
W
wd 10
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

You have clear examples in the v7 version of the Gillette theme for that feature.
- by Falk


I know that in theme.php Gillete is such a code:

function render_comments($c_data, $c_info){
   global $locale, $settings;
   opentable($locale['c100']);
   if (!empty($c_data)){
      echo "<div class='comments floatfix'>\n";
         $c_makepagenav = '';
         if ($c_info['c_makepagenav'] !== FALSE) {
         echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n";
      }
         foreach($c_data as $data) {
           $comm_count = "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a>";
         echo "<div class='tbl2 clearfix floatfix'>\n";
         if ($settings['comments_avatar'] == "1") { echo "<span class='comment-avatar'>".$data['user_avatar']."</span>\n"; }
           echo "<span style='float:right' class='comment_actions'>".$comm_count."\n</span>\n";
         echo "<span class='comment-name'>".$data['comment_name']."</span>\n<br />\n";
         echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
   if ($data['edit_dell'] !== false) { echo "<br />\n<span class='comment_actions'>".$data['edit_dell']."\n</span>\n"; }
         echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
      }
      echo $c_makepagenav;
      if ($c_info['admin_link'] !== FALSE) {
         echo "<div style='float:right' class='comment_admin'>".$c_info['admin_link']."</div>\n";
      }
      echo "</div>\n";
   } else {
      echo $locale['c101']."\n";
   }
   closetable();   
}


So this all code I need to add? Or only a some part of this code? I remind that code render_news in my file looks different than in Gillete, can I get a specific help not a part?
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Yes, adjust it to suit the new theme. Trial and error is the way to learn and to test it.
0 replies
W
wd
W
wd 10
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
answered
Junior Member

What you mean that I should adjust it?
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

With that, I mean that you take the Avatar codes needed from the Gillette example and insert them in to the theme you need.
0 replies
W
wd
W
wd 10
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

With that, I mean that you take the Avatar codes needed from the Gillette example and insert them in to the theme you need.
- by Falk


Once you write about that to copy this big code and paste to theme.php and now you write that from this big code take a codes which causing showing avatars in comments. So now I don't know what you mean exactly. In file readme is wrote to in function: function render_comments add this code:

if ($settings['comments_avatar'] == "1") { echo "<span class='comment-avatar'>>".$data['user_avatar']."</span>>\n"; }


Which enable showing avatars at users nicks in comments.

So can I get a specific help what I exactly need to do? You have a knowledge in this subject I don't, that's why I asked for help on official support to someone help me.
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Please understand that there are differences in getting pointers and to actually have others to the work for you, huge difference.
We often if not always give pointers but to customize every persons code desires is not something you can actually expect from us.
Now what you have posted above are the News function and the comments are not rendered there.

I need you to attach your whole theme in a zipfile in this thread for someone to even have a chance to help you.
0 replies

Category Forum

Themes Support

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
W
W
wd 10
  • Junior Member, joined since
  • Contributed 13 posts on the community forums.
  • Started 5 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet