Go Back   vb.org Archive > vBulletin Modifications > Premium Modifications > vBulletin Open Source Products > Project Tools
[bug] create issue Details »»
[bug] create issue
Version: , by baghdad4ever baghdad4ever is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-13-2010 Last Update: Never Installs: 0
 
No support by the author.

hi

the radio select of create issue from thread found in

1-thread option
2-search in this thread
3- rate the thread

i hope this will be fixed

thanks

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-13-2010, 08:23 PM
we_are_borg we_are_borg is offline
 
Join Date: Jul 2004
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will make ticket for this bug on internal tracker. Should be fixed in next version.

--------------- Added [DATE]1276474038[/DATE] at [TIME]1276474038[/TIME] ---------------

A developer is working on it as we speak maybe he can post a work around here for you and others.
Reply With Quote
  #3  
Old 06-14-2010, 10:43 AM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #4  
Old 06-14-2010, 06:49 PM
PitchouneN64ngc's Avatar
PitchouneN64ngc PitchouneN64ngc is offline
Senior Member
 
Join Date: Aug 2002
Location: France
Posts: 515
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Plugin: Show Thread: Display moderation option if permitted

Change this line:

PHP Code:
$vbulletin->templatecache['SHOWTHREAD'] = str_replace('<li class="formsubmit">''<li><label><input type="radio" name="do" value="createptissue" /> ' $vbphrase['pt_create_issue'] . '&hellip;</label></li><li class="formsubmit">'$vbulletin->templatecache['SHOWTHREAD']); 
By this line:

PHP Code:
$vbulletin->templatecache['SHOWTHREAD'] = str_replace('<form action="postings.php" method="post">
                        <ul class="popupbody popuphover">'
'<form action="postings.php" method="post">
                        <ul class="popupbody popuphover">
<li><label><input type="radio" name="do" value="createptissue" /> ' 
$vbphrase['pt_create_issue'] . '&hellip;</label></li>'$vbulletin->templatecache['SHOWTHREAD']); 
PS: I know this is not a good way to add things on templates but there is no template hook in this place and it seems we will not have this one.

http://www.vbulletin.com/forum/showt...=1#post1983704
Reply With Quote
  #5  
Old 06-15-2010, 07:27 PM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PitchouneN64ngc View Post
Plugin: Show Thread: Display moderation option if permitted

Change this line:

PHP Code:
$vbulletin->templatecache['SHOWTHREAD'] = str_replace('<li class="formsubmit">''<li><label><input type="radio" name="do" value="createptissue" /> ' $vbphrase['pt_create_issue'] . '&hellip;</label></li><li class="formsubmit">'$vbulletin->templatecache['SHOWTHREAD']); 
By this line:

PHP Code:
$vbulletin->templatecache['SHOWTHREAD'] = str_replace('<form action="postings.php" method="post">
                        <ul class="popupbody popuphover">'
'<form action="postings.php" method="post">
                        <ul class="popupbody popuphover">
<li><label><input type="radio" name="do" value="createptissue" /> ' 
$vbphrase['pt_create_issue'] . '&hellip;</label></li>'$vbulletin->templatecache['SHOWTHREAD']); 
PS: I know this is not a good way to add things on templates but there is no template hook in this place and it seems we will not have this one.

http://www.vbulletin.com/forum/showt...=1#post1983704

thanks PitchouneN64ngc

i apply this but the create issue gone so i return back to the original code with bug
Reply With Quote
  #6  
Old 06-15-2010, 07:30 PM
we_are_borg we_are_borg is offline
 
Join Date: Jul 2004
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you notice that the first box contains 3 lines

Code:
$vbulletin->templatecache['SHOWTHREAD'] = str_replace('<li class="formsubmit">', '<li><label><input type="radio" name="do" value="createptissue" /> ' . 
$vbphrase['pt_create_issue'] . '&hellip;</label></li><li class="formsubmit">', 
$vbulletin->templatecache['SHOWTHREAD']);
Reply With Quote
  #7  
Old 06-16-2010, 06:48 AM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi we are borg

i replace the 1st code with the PitchouneN64ng`s code

the create issue radio button disappear at all

so i return back
Reply With Quote
  #8  
Old 06-16-2010, 03:30 PM
we_are_borg we_are_borg is offline
 
Join Date: Jul 2004
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by baghdad4ever View Post
hi we are borg

i replace the 1st code with the PitchouneN64ng`s code

the create issue radio button disappear at all

so i return back
Just tested it and it removes all Create Issue. To be save and fix the problem make abackup of Plugin: Show Thread: Display moderation option if permitted and copy and paste the code below in it this should resolve the issue (it did for me on my test PT).

Code:
// TODO: this could have its own permission in moderation for future
$show['createptissue'] = can_moderate($threadinfo['forumid'], 'canmanagethreads') AND can_moderate($threadinfo['forumid'], 'canremoveposts');

$show['adminoptions'] = $show['adminoptions'] OR $show['createptissue'];

// Display the link in showthread
// I hope future vB versions will add a template_hook in this place
// as this code is not completely useful (can slow a page load)

if ($show['createptissue'])
{
	$vbulletin->templatecache['SHOWTHREAD'] = str_replace('<form action="postings.php" method="post">
						<ul class="popupbody popuphover">', '<form action="postings.php" method="post">
						<ul class="popupbody popuphover">
<li><label><input type="radio" name="do" value="createptissue" /> ' . $vbphrase['pt_create_issue'] . '&hellip;</label></li>', $vbulletin->templatecache['SHOWTHREAD']);
}
Reply With Quote
  #9  
Old 06-18-2010, 09:15 AM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by we_are_borg View Post
Just tested it and it removes all Create Issue. To be save and fix the problem make abackup of Plugin: Show Thread: Display moderation option if permitted and copy and paste the code below in it this should resolve the issue (it did for me on my test PT).

Code:
// TODO: this could have its own permission in moderation for future
$show['createptissue'] = can_moderate($threadinfo['forumid'], 'canmanagethreads') AND can_moderate($threadinfo['forumid'], 'canremoveposts');

$show['adminoptions'] = $show['adminoptions'] OR $show['createptissue'];

// Display the link in showthread
// I hope future vB versions will add a template_hook in this place
// as this code is not completely useful (can slow a page load)

if ($show['createptissue'])
{
    $vbulletin->templatecache['SHOWTHREAD'] = str_replace('<form action="postings.php" method="post">
                        <ul class="popupbody popuphover">', '<form action="postings.php" method="post">
                        <ul class="popupbody popuphover">
<li><label><input type="radio" name="do" value="createptissue" /> ' . $vbphrase['pt_create_issue'] . '&hellip;</label></li>', $vbulletin->templatecache['SHOWTHREAD']);
}

thanks it is fixed now
Reply With Quote
Reply

Thread Tools

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 10:02 PM.


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.04626 seconds
  • Memory Usage 2,300KB
  • Queries Executed 24 (?)
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
  • (3)bbcode_code
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (5)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
  • (8)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