Go Back   vb.org Archive > vBulletin Modifications > Premium Modifications > vBulletin Open Source Products > Project Tools
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Invalid Action Specified Details »»
Invalid Action Specified
Version: , by SeToY SeToY is offline
Developer Last Online: Jul 2021 Show Printable Version Email this Page

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

Hey,

when i want to create an issue out of a posts, it's redirecting me to a page saying "Invalid Action Specified".

Greetings

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-22-2010, 05:32 PM
PitchouneN64ngc's Avatar
PitchouneN64ngc PitchouneN64ngc is offline
Senior Member
 
Join Date: Aug 2002
Location: France
Posts: 515
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Already fixed for 2.1.2.

Open projectpost.php, find this:

PHP Code:
require_once(DIR . '/includes/functions_ptimporter.php');
$threadinfo = verify_id('thread', $threadid, 1, 1); 
Replace with this:

PHP Code:
if (in_array($_REQUEST['do'], array('processimportthread', 'importthread', 'importthread2')))
{
    require_once(DIR . '/includes/functions_ptimporter.php');
    $threadinfo = verify_id('thread', $threadid, 1, 1);
} 
Reply With Quote
  #3  
Old 07-24-2010, 11:48 AM
chiptz's Avatar
chiptz chiptz is offline
 
Join Date: Jan 2005
Location: Portugal
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

changed this however problem still presists.

vB 4.0.5
Reply With Quote
  #4  
Old 09-16-2010, 04:56 PM
SeToY SeToY is offline
 
Join Date: Dec 2009
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Me2, this happens for me nevertheless i changed the lines.

My projectpost.php:
PHP Code:
<?php
[...]

        $optgroup_options = '';
        foreach (array_keys($projectinfo['types']) AS $type)
        {
            // Check we can both view and post the target issue type
            if (!($project_perms["$projectid"]["$type"]['generalpermissions'] & $vbulletin->pt_bitfields['general']['canview']) OR !($project_perms["$projectid"]["$type"]['postpermissions'] & $vbulletin->pt_bitfields['post']['canpostnew']))
            {
                continue;
            }
            $optionvalue = $projectinfo['projectid'] . '-' . $type;
            $optiontitle = $vbphrase["issuetype_{$type}_singular"];
            $optionselected = (($issue['issuetypeid'] == $type AND $issue['projectid'] == $projectid) ? ' selected="selected"' : '');
            $optgroup_options .= render_option_template($optiontitle, $optionvalue, $optionselected, $optionclass);
        }

        if (empty($optgroup_options))
        {
            continue;
        }

        $optgroup_label = $projectinfo['title'];
        $templater = vB_Template::create('optgroup');
            $templater->register('optgroup_extra', $optgroup_extra);
            $templater->register('optgroup_label', $optgroup_label);
            $templater->register('optgroup_options', $optgroup_options);
        $project_type_select .= $templater->render();
    }

    $navbits = array(
        'project.php' . $vbulletin->session->vars['sessionurl_q'] => $vbphrase['projects'],
        "project.php?" . $vbulletin->session->vars['sessionurl'] . "projectid=$project[projectid]" => $project['title_clean'],
        'project.php?' . $vbulletin->session->vars['sessionurl'] . "issueid=$issue[issueid]" => $issue['title'],
        '' => $vbphrase['edit_issue']
    );

    $navbits = construct_navbits($navbits);
    $navbar = render_navbar_template($navbits);

    $templater = vB_Template::create('pt_move_issue');
        $templater->register_page_templates();
        $templater->register('issue', $issue);
        $templater->register('navbar', $navbar);
        $templater->register('project', $project);
        $templater->register('project_type_select', $project_type_select);
    print_output($templater->render());

}

//require_once(DIR . '/includes/functions_ptimporter.php');
//$threadinfo = verify_id('thread', $threadid, 1, 1);

if (in_array($_REQUEST['do'], array('processimportthread', 'importthread', 'importthread2')))
{
    require_once(DIR . '/includes/functions_ptimporter.php');
    $threadinfo = verify_id('thread', $threadid, 1, 1);
} 

// #######################################################################
if ($_POST['do'] == 'processimportthread')
{
    $vbulletin->input->clean_array_gpc('p', array(
        'projectid' => TYPE_UINT,
        'issuetypeid' => TYPE_NOHTML,
        'title' => TYPE_NOHTML,
        'summary' => TYPE_NOHTML,
        'priority' => TYPE_UINT,
        'projectcategoryid' => TYPE_UINT,
        'appliesversionid' => TYPE_UINT,
        'addressedversionid' => TYPE_INT,
        'issuestatusid' => TYPE_UINT,
        'milestoneid' => TYPE_UINT
    ));

    // Do our own checking to make sure we have all permissions needed to create issues
    $project = ptimporter_verify_issuetypeid($vbulletin->GPC['issuetypeid'], $vbulletin->GPC['projectid']);
    $posting_perms = ptimporter_prepare_issue_posting_pemissions($project['projectid'], $vbulletin->GPC['issuetypeid']);
    
    // Make sure the new issue status is valid
    ptimporter_verify_issuestatusid($vbulletin->GPC['issuestatusid'], $vbulletin->GPC['issuetypeid']);

    // Finally, run the import
    require_once(DIR . '/includes/class_ptimporter.php');
    
    $importer = new vB_PtImporter($vbulletin, $threadinfo, $project, $posting_perms, array(), array());
    $issueid = $importer->import_all();

    $vbulletin->url = 'project.php?' . $vbulletin->session->vars['sessionurl'] . "issueid=$issueid";
    eval(print_standard_redirect('pt_issue_inserted'));
}

// #######################################################################
if ($_REQUEST['do'] == 'importthread2')
{
    $vbulletin->input->clean_array_gpc('r', array(
        'project-issuetype' => TYPE_NOHTML
    ));

    list($projectid, $issuetypeid) = explode('-', $vbulletin->GPC['project-issuetype']);

    $project = verify_project($projectid);
    $posting_perms = ptimporter_prepare_issue_posting_pemissions($project['projectid'], $issuetypeid);

    verify_issuetypeid($issuetypeid, $project['projectid']);

    $issuetype = $vbphrase["issuetype_{$issuetypeid}_singular"];

    $issueperms = fetch_project_permissions($vbulletin->userinfo, $project['projectid'], $issuetypeid);

    // Check we can both view and post the target issue type
    if (!($issueperms['generalpermissions'] & $vbulletin->pt_bitfields['general']['canview']) OR !($issueperms['postpermissions'] & $vbulletin->pt_bitfields['post']['canpostnew']))
    {
        print_no_permission();
    }

[...]
?>
Reply With Quote
Reply


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 07:41 AM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.