The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
How can I add 'unfollow' button to the 'my following' page
Hello, everyone.
I'm a novice PHP-developer and recently I started to work with vBulletin 5. My task is to create 'unfollow' button in the 'my following' tab and I didn't find any other solution, as to copy the same button from the 'conversationdisplay' widget. And it isn't work correctly. Can u just help me to understand, how to create new functionals on the page? So, my goal: make button on the 'my following' page. When is clicked, it must to unfollow me from theme. For that: 1) I placed that button to the 'my following' tab: Code:
<button type="button" data-node-id="{vb:raw conversation.parentid}" data-owner-id="{vb:raw user.userid}" class="is-topic custom button follow-btn uppercase h-left<vb:if condition="$isSubscribed"> isSubscribed unfollow-btn</vb:if>"><vb:if condition="$isSubscribed"><span class="button-icon"></span></vb:if></button> Code:
{vb:js js/conversation-rollup.js} So, what I need, just to understand how can I use delete-method from Follow class in my code and how can I attach that to the button. I only used {vb:data} for that kind of calls, but it is not suitable for me in that situation. For now, I just have the button that can work correctly only after I subscribe to the channel. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|