Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 03-27-2011, 05:40 PM
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Simplify Move Posts and Selecting Posts for Mods

[solved]
Reply With Quote
  #2  
Old 04-04-2011, 10:25 PM
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone help me with this (either of these issues)?

Thanks
Reply With Quote
  #3  
Old 04-04-2011, 11:14 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'd need to write a form for the first one. The basics:
HTML Code:
<form action="postings.php?do=domovethread&amp;t=xxxxx" method="post" name="pulledmove" onsubmit="return confirm('Are you sure?');"> 
<input type="hidden" name="s" value="" />     
<input type="hidden" name="securitytoken" value="xxxxxxxx" /> 
<input type="hidden" name="t" value="xxxxxxx" /> 
<input type="hidden" name="do" value="domovethread" /> 
<input type="hidden" name="title" value="xxxxxxx" /> 
<input type="hidden" name="redirect" value="xxxxxxx" /> 
<input type="hidden" name="redirecttitle" value="xxxxxxxx" />      
<input type="hidden" name="destforumid" value="xxxxxx" /> <- You'll want this to be some dropdown to pick the forum id   
<input type="submit" class="button" value="Move Thread" />
</form>
You'll need to play with that on your test site. I just use a single button to move a thread to a specific forumid on my site, so I don't use the dropdown of forumids that you'll need. But, those are the basics - you'll have to fill in the variables also.

For the second, you need to modify the CSS to not cover such a large area. Maybe something like:
HTML Code:
.postbit .posthead .nodecontrols, .postbitlegacy .posthead .nodecontrols, .eventbit .eventhead .nodecontrols {width: 50px;}
(I think there may be a fix posted in the bug report for this, so try a search in Jira.)
Reply With Quote
  #4  
Old 04-27-2011, 02:55 AM
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[solved]
Reply With Quote
  #5  
Old 04-27-2011, 04:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't use a mod. I wrote my own code and that is what I posted.

Yeah, you can try the second code in your additional.css template. "Search in Jira" means look in the bug tracker over on vbulletin.com. They use an application called Jira for tracking bugs.
Reply With Quote
  #6  
Old 06-05-2011, 02:09 AM
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For the first part, what template do I use this code in?

For the second part, I used the code you posted and it didn't seem to work. I will look in Jira. Let me know if you have any other ideas.

Thanks!
Reply With Quote
  #7  
Old 06-05-2011, 03:53 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code I posted is what I use for my mods to quickly move a thread to another forum. I put it in the SHOWTHREAD template. If you need to to do posts, you will have to modify it a bit, but I would guess that would still be the template to do it in.
Reply With Quote
  #8  
Old 06-05-2011, 04:42 AM
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[solved]
Reply With Quote
  #9  
Old 06-05-2011, 05:09 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The SHOWTHREAD template should have the variable $threadid, or {vb:raw threadid}, available for use.

As for the second, I don't know why it doesn't work for you, it works just fine on my default 4.1.3 site.
Reply With Quote
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 02:04 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.05212 seconds
  • Memory Usage 2,235KB
  • 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
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete