The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Ok, so it will be like this:
HTML Code:
<vb:if condition="$thread.forumid == 19">
HTML Code:
<vb:if condition="{vb:raw thread.forumid} == 19">
|
#12
|
||||
|
||||
Code:
<vb:if condition="$thread['forumid'] == 19"> |
Благодарность от: | ||
AlokSharma |
#13
|
|||
|
|||
Thanks, that worked out.
BTW, if I want to put this one click move code in the showthread page just next to the title, then which template I have to edit. |
#14
|
||||
|
||||
then edit the showthread template and use $threadinfo like in the original code.
|
#15
|
|||
|
|||
I checked that template but couldn't find the where the thread heading is displayed at the top in the form of navigation tree.
E.g. Home Icon > Forum > Tech Support > Thread Title I wish to display the one click move button over here. |
#16
|
||||
|
||||
That is in the navbar template... actually each on of those "Forum" / "Tech Support" etc... is a separate call to a "breadcrumb" template.
However I don't know if $thread is going to be available in the navbar since the navbar is built early on. |
#17
|
|||
|
|||
Thanks a lot. I added the code next to the Thread: <Title>.
Here is the code: HTML Code:
<vb:if condition="$threadinfo['forumid'] == <source_forum_id>"> <form action="postings.php?do=domovethread&t={vb:raw thread.threadid}" method="post" name="resolved" style="display:inline;"> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="t" value="{vb:raw thread.threadid}" /> <input type="hidden" name="do" value="domovethread" /> <input type="hidden" name="title" value="{vb:raw threadinfo.title}" /> <input type="hidden" name="redirect" value="none" /> <input type="hidden" name="redirecttitle" value="{vb:raw threadinfo.title}" /> <input type="hidden" name="destforumid" value="<target_forum_id>" /> <input type="submit" class="button" value="Mark as Resolved" /> </form> <vb:elseif condition="$threadinfo['forumid'] == <source_forum_id>" /> <form action="postings.php?do=domovethread&t={vb:raw thread.threadid}" method="post" name="resolved" style="display:inline;"> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="t" value="{vb:raw thread.threadid}" /> <input type="hidden" name="do" value="domovethread" /> <input type="hidden" name="title" value="{vb:raw threadinfo.title}" /> <input type="hidden" name="redirect" value="none" /> <input type="hidden" name="redirecttitle" value="{vb:raw threadinfo.title}" /> <input type="hidden" name="destforumid" value="<target_forum_id>" /> <input type="submit" class="button" value="Mark as Resolved" /> </form> </vb:if> |
Благодарность от: | ||
BirdOPrey5 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|