* Mwebvendor * Mwebvendor Its not working for me...
2017-04-18 20:44
*
* asasas.png · image/png · 26.76KB
· (0)
* Mwebvendor The guest is the second comment,,,
2017-04-18 20:44 · (0)
* Graham * Mwebvendor You have put it on the wrong bit you have replaced the logged in users avatar
it should be in the {% else %}

{% else %}
<img class="img-responsive" src="/img/user.jpg" /><figcaption class="text-center">{{ comment.nick }}</figcaption>
{% endif %}

Copy code
2017-04-18 23:23 · (0)
* Mwebvendor * Graham Thank man,,,, anyway,,, there are another way about default avatar for regestered user?
2017-04-19 06:08 · (0)
* Mwebvendor Graham what is the css class name of the background of xt forum? can i change it?
2017-04-19 09:07 · (0)
* Graham * Mwebvendor If you want to use the standard forum without custom twig then download http://xtgem.com/css/xtforum.css to your site and rename it xtforum_template.css it then gets automatically linked to the forum page xt_forum is the main forum body class
and you can customize it as much as you like

registered users on the blog use either the image they set in their xtgem profile or if they have one the image they set for their email at http://gravatar.com if neither are set then it uses the default user image from gravatar the images come in 16/32/64/128 and 150px sizes just change the number in
comment.author_profile.avatars[16]
2017-04-19 09:34 (edited 2017-04-19 10:16 by Graham ) · (0)
* Mwebvendor * Graham Sorry for my English grammar ,,, this is the bug for xtgem? i try to register the new account on xtgem via xtblog comment link and i was redirected in xtgem sogn up page right? after done my registration, i change my profile picture, the uplaoding picture is ok because my photo is showing and if a click the "change" button in the bottom section of profile setting, my upload picture was gone and it going back the default avatar of xtgem.
2017-04-21 02:22 · (0)
* Mwebvendor * Graham Question 2:

Graham why everytime i put multi code like this "{{ comment.nick }}" in xtblog twig. and the user profile link will disabled? i mean it not a clickable. i want this because, i want to hide the user avatar in mobile view,,, its working but the user profile link was disabled, show my screeshot,
2017-04-21 02:40
* *
* pc.png · image/png · 30.41KB
* mb.png · image/png · 15.52KB
· (0)
* Graham * Mwebvendor Just wrap the actual <img> tag in the 'if' statement not the whole <a> tag ie
<a href="{{ comment.author_profile.link }}">{% if ctx.data.device != 'mobile' %}<img src="{{ comment.author_profile.avatars[16] }}" style="display:inline" />{% endif %}{{ comment.author_profile.name }}</a>
Copy code

Note that I used ctx.data.device not just data.device in this instance because it is within the comment macro function

As for the other issue I will try to test it myself and get back to you on that
2017-04-21 03:09 (edited 2017-04-21 03:16 by Graham ) · (0)
* Mwebvendor * Graham Good day graham... how to remove the RSS blog in my headtag?

everytime i view my site via source code.. there are RSS meta tag. if that good for SEO, forget about my question.

<link rel="alternate" type="application/rss+xml" title="RSS" href="http://mysite.com/index?__xtblog_rss=VHhnSUp4Y1lHYU01cDJ5a3BLRXlvS2t1RE95enMyY1ZIVEExSFVNKw==" />
2017-04-23 06:59 (edited 2017-04-23 07:04 by Mwebvendor ) · (1)

Online: Guests: 1