PDA

View Full Version : reputation in Blog ?


Zoul
07-28-2014, 07:25 PM
Hello is it possible as attorneys in the cms to add reputation to blog?
https://vborg.vbsupport.ru/showthread.php?t=261566

I tried to blog_comment, but it does not work


<vb:if condition="$show['reputationlink']">
<li>
<a class="popupctrl reputation" title="{vb:rawphrase reputation}" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&amp;p={vb:raw post.postid}" rel="nofollow" id="reputation_{vb:raw post.postid}"><img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase reputation}" /></a>
</li>
</vb:if>


TY

Rafa-el
07-29-2014, 10:09 PM
Post your BLOG template, but basically you copy this below, wherever you want to add the reputation, it's better to add it
<vb:if condition="$show['reputationlink']">
<li>
<a class="popupctrl reputation" title="{vb:rawphrase reputation}" href="reputation.php?{vb:raw session.sessionurl}do=addreputation&amp;p={vb:raw post.postid}" rel="nofollow" id="reputation_{vb:raw post.postid}"><img src="{vb:stylevar imgdir_button}/reputation-40b.png" alt="{vb:rawphrase reputation}" /></a>
</li>
</vb:if>

cellarius
07-30-2014, 06:13 AM
I don't think the post variable will be available in blog templates. So this code probably won't work, just like the OP's. I have not worked much with the blog, but it may be that the reputation data is not available there and would have to be queried from the database in a plugin.

Zoul
08-03-2014, 09:14 AM
Hello there

Unfortunately Rafa-el that does not work better because it is the same thing.

I think you're right cellarius. It is difficult to make that?
Think you can do?

TY