Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #11  
Old 03-19-2012, 12:56 PM
AlokSharma AlokSharma is offline
 
Join Date: Jan 2011
Location: Nasik Road, India
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, so it will be like this:

HTML Code:
<vb:if condition="$thread.forumid == 19">
or may be:

HTML Code:
<vb:if condition="{vb:raw thread.forumid} == 19">
Reply With Quote
  #12  
Old 03-19-2012, 12:59 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<vb:if condition="$thread['forumid'] == 19">
Reply With Quote
Благодарность от:
AlokSharma
  #13  
Old 03-20-2012, 12:05 PM
AlokSharma AlokSharma is offline
 
Join Date: Jan 2011
Location: Nasik Road, India
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 03-20-2012, 12:41 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

then edit the showthread template and use $threadinfo like in the original code.
Reply With Quote
  #15  
Old 03-22-2012, 11:31 AM
AlokSharma AlokSharma is offline
 
Join Date: Jan 2011
Location: Nasik Road, India
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 03-22-2012, 11:44 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 03-22-2012, 01:01 PM
AlokSharma AlokSharma is offline
 
Join Date: Jan 2011
Location: Nasik Road, India
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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&amp;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&amp;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>
Reply With Quote
Благодарность от:
BirdOPrey5
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:22 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06744 seconds
  • Memory Usage 2,240KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (2)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete