当前位置: 首页>>代码示例>>PHP>>正文


PHP construct_edit_toolbar函数代码示例

本文整理汇总了PHP中construct_edit_toolbar函数的典型用法代码示例。如果您正苦于以下问题:PHP construct_edit_toolbar函数的具体用法?PHP construct_edit_toolbar怎么用?PHP construct_edit_toolbar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了construct_edit_toolbar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getInlineEditBodyView

	public function getInlineEditBodyView()
	{
		global $vbphrase;
		require_once DIR . '/includes/functions_databuild.php';
		require_once DIR . '/includes/functions.php';
		fetch_phrase_group('cpcms');


		$this->editing = true;

		//confirm that the user has edit rights
		if (!$this->content->canEdit() AND !($this->getUserId() == vB::$vbulletin->userinfo['userid'])
			AND !$this->content->canPublish())
		{
			return $vb_phrase['no_edit_permissions'];
		}


		vB::$vbulletin->input->clean_array_gpc('r', array(
			'postid' => vB_Input::TYPE_UINT,
			'blogcommentid' => vB_Input::TYPE_UINT,
			'do' => vB_Input::TYPE_STR,
			'blogid' => TYPE_UINT
		));

		if ($_REQUEST['do'] == 'delete')
		{
			$dm = $this->content->getDM();
			$dm->delete();
			$this->cleanContentCache();
			return $vbphrase['article_deleted'];
		}

		if ($_REQUEST['do'] == 'apply' OR $_REQUEST['do'] == 'update')
		{
			$this->SaveData($view);
		}



		require_once DIR . '/packages/vbcms/contentmanager.php';
		// Load the content item
		if (!$this->loadContent($this->getViewInfoFlags(self::VIEW_PAGE)))
		{
			throw (new vB_Exception_404());
		}

		global $show;

		$show['img_bbcode'] = true;
		// Get smiliecache and bbcodecache
		vB::$vbulletin->datastore->fetch(array('smiliecache','bbcodecache'));

		// Create view
		$view = $this->createView('inline', self::VIEW_PAGE);

		// Add the content to the view
		$view = $this->populateViewContent($view, self::VIEW_PAGE, false);
		$pagetext = $this->content->getPageText();
		// Get postings phrasegroup
		// need posting group
		require_once DIR . '/includes/functions_databuild.php';
		fetch_phrase_group('posting');

		// Build editor
		global $messagearea;
		require_once DIR . '/includes/functions_file.php';
		require_once DIR . '/includes/functions_editor.php';
		require_once(DIR . '/packages/vbattach/attach.php');

		$view->formid = "cms_content_data";
		$view->can_edit = $this->content->canEdit();

		if ($this->content->canEdit())
		{
			$attach = new vB_Attach_Display_Content(vB::$vbulletin, 'vBCms_Article');
			//this will set a number of its parameters if they are not already set.
			$posthash = null;
			$poststarttime = null;
			$postattach = array();
			$attachcount = 0;

			$values = "values[f]=" . $this->content->getNodeId() ;

			$attachmentoption = $attach->fetch_edit_attachments($posthash, $poststarttime, $postattach, $this->content->getNodeId(), $values, '', $attachcount);

			$attachinfo = fetch_attachmentinfo($posthash, $poststarttime, $this->getContentTypeId(), array('f' => $this->content->getNodeId()));

			$view->editorid = construct_edit_toolbar(
				$pagetext,
				false,
				new vBCms_Editor_Override(vB::$vbulletin),
				true,
				true,
				true,
				'cms_article',
				'',
				$attachinfo
			);

//.........这里部分代码省略.........
开发者ID:hungnv0789,项目名称:vhtm,代码行数:101,代码来源:article.php

示例2: implode

                 $pm['recipients'] = '';
             } else {
                 $pm['recipients'] = implode(' ; ', $recipients);
             }
         }
         ($hook = vBulletinHook::fetch_hook('private_newpm_blank')) ? eval($hook) : false;
     }
     construct_checkboxes(array('savecopy' => true, 'parseurl' => true, 'signature' => iif($vbulletin->userinfo['signature'] !== '', true)));
     $show['bcclink'] = true;
 }
 $folderjump = construct_folder_jump(0, $pm['folderid']);
 $posticons = construct_icons($pm['iconid'], $vbulletin->options['privallowicons']);
 require_once DIR . '/includes/functions_editor.php';
 // set message box width to usercp size
 $stylevar['messagewidth'] = $stylevar['messagewidth_usercp'];
 $editorid = construct_edit_toolbar($pm['message'], 0, 'privatemessage', iif($vbulletin->options['privallowsmilies'], 1, 0));
 // generate navbar
 if ($pm['pmid']) {
     $navbits['private.php?' . $vbulletin->session->vars['sessionurl'] . "folderid={$pm['folderid']}"] = $foldernames["{$pm['folderid']}"];
     $navbits['private.php?' . $vbulletin->session->vars['sessionurl'] . "do=showpm&pmid={$pm['pmid']}"] = $pm['title'];
     $navbits[''] = iif($pm['forward'], $vbphrase['forward_message'], $vbphrase['reply_to_private_message']);
 } else {
     $navbits[''] = $vbphrase['post_new_private_message'];
 }
 $show['sendmax'] = iif($permissions['pmsendmax'], true, false);
 $show['sendmultiple'] = $permissions['pmsendmax'] != 1;
 $show['parseurl'] = $vbulletin->options['privallowbbcode'];
 // build forum rules
 $bbcodeon = iif($vbulletin->options['privallowbbcode'], $vbphrase['on'], $vbphrase['off']);
 $imgcodeon = iif($vbulletin->options['privallowbbimagecode'], $vbphrase['on'], $vbphrase['off']);
 $htmlcodeon = iif($vbulletin->options['privallowhtml'], $vbphrase['on'], $vbphrase['off']);
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:private.php

示例3: array

if ($_REQUEST['do'] == 'quickedit')
{
	$vbulletin->input->clean_array_gpc('p', array(
		'editorid' => TYPE_NOHTML,
	));

	require_once(DIR . '/includes/class_xml.php');
	require_once(DIR . '/includes/functions_editor.php');

	$vminfo = verify_visitormessage($vbulletin->GPC['vmid']);

	$editorid = construct_edit_toolbar(
		htmlspecialchars_uni($vminfo['pagetext']),
		false,
		'visitormessage',
		true,
		true,
		false,
		'qenr',
		$vbulletin->GPC['editorid']
	);

	$xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml');

	$xml->add_group('quickedit');
	$xml->add_tag('editor', process_replacement_vars($messagearea), array(
		'reason'       => '',
		'parsetype'    => 'visitormessage',
		'parsesmilies' => true,
		'mode'         => $show['is_wysiwyg_editor']
	));
	$xml->close_group();
开发者ID:hungnv0789,项目名称:vhtm,代码行数:32,代码来源:visitormessage.php

示例4: array

			$attachmentoption = $attach->fetch_edit_attachments($posthash, $poststarttime, $postattach, 0, $values, $vbulletin->GPC['editorid'], $attachcount);
			$contenttypeid = $attach->fetch_contenttypeid();
		}
		else
		{
			$attachmentoption = '';
			$contenttypeid = 0;
		}

		// This function creates the global var $messagearea, that is used below
		construct_edit_toolbar(
			htmlspecialchars_uni($postinfo['pagetext']),
			0,
			$foruminfo['forumid'],
			$forum_allowsmilies,
			$postinfo['allowsmilie'],
			false,
			'qe',
			$vbulletin->GPC['editorid'],
			array(),
			'forum'
		);

		$xml->add_group('quickedit');
			$xml->add_tag('editor', process_replacement_vars($messagearea), array(
				'reason'       => $postinfo['edit_reason'],
				'parsetype'    => $foruminfo['forumid'],
				'parsesmilies' => $editor_parsesmilies,
				'mode'         => $show['is_wysiwyg_editor'],
				'content'      => 'forum'
			));
			if ($contenttypeid)
开发者ID:hungnv0789,项目名称:vhtm,代码行数:32,代码来源:ajax.php

示例5: construct_navbits

 $templater->register('tueboxchecked', $tueboxchecked);
 $templater->register('wedboxchecked', $wedboxchecked);
 $templater->register('weeklybox', $weeklybox);
 $templater->register('yearlycombo1', $yearlycombo1);
 $templater->register('yearlycombo2', $yearlycombo2);
 $templater->register('yearlycombo3', $yearlycombo3);
 $templater->register('yearlycombo4', $yearlycombo4);
 $templater->register('yearlycombo5', $yearlycombo5);
 $recurrence .= $templater->render();
 $show['deleteoption'] = false;
 // Make Rest of Nav Bar
 $navbits[''] = $vbphrase['add_new_event'];
 $navbits = construct_navbits($navbits);
 $navbar = render_navbar_template($navbits);
 require_once DIR . '/includes/functions_editor.php';
 $editorid = construct_edit_toolbar('', 0, 'calendar', $calendarinfo['allowsmilies'], true, false, 'fe', '', array(), 'content', 'vBForum_Calendar', 0, 0, false, true, 'titlefield');
 $dstchecked = 'checked="checked"';
 $show['parseurl'] = $calendarinfo['allowbbcode'];
 $show['misc_options'] = ($show['parseurl'] or !empty($disablesmiliesoption));
 $show['additional_options'] = ($show['misc_options'] or $show['custom_optional']);
 ($hook = vBulletinHook::fetch_hook('calendar_add_complete')) ? eval($hook) : false;
 $templater = vB_Template::create('calendar_edit');
 $templater->register_page_templates();
 $templater->register('calendarinfo', $calendarinfo);
 $templater->register('customfields_optional', $customfields_optional);
 $templater->register('customfields_required', $customfields_required);
 $templater->register('disablesmiliesoption', $disablesmiliesoption);
 $templater->register('dstchecked', $dstchecked);
 $templater->register('editorid', $editorid);
 $templater->register('eventinfo', $eventinfo);
 $templater->register('forumrules', $forumrules);
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:calendar.php

示例6: fetch_privatemessage_reply

                $threadpms .= $postbit_obj->construct_postbit($threadpm);
            }
        }
    }
    // generate navbar
    $navbits['private.php?' . $vbulletin->session->vars['sessionurl'] . "folderid={$pm['folderid']}"] = $foldernames["{$pm['folderid']}"];
    $navbits[''] = $pm['title'];
    $pm['original_title'] = $pm['title'];
    if ($show['quickreply']) {
        // get pm info
        require_once DIR . '/includes/functions_newpost.php';
        $pm = fetch_privatemessage_reply($pm);
        // create quick reply editor
        require_once DIR . '/includes/functions_editor.php';
        $stylevar['messagewidth'] = $stylevar['messagewidth_usercp'];
        $editorid = construct_edit_toolbar($pm['message'], false, 'privatemessage', $vbulletin->options['privallowsmilies'], true, false, 'qr_pm');
        $pm['savecopy'] = $vbulletin->userinfo['pmdefaultsavecopy'];
    }
    // report pm icon?
    $show['reportlink'] = (($vbulletin->options['rpforumid'] or $vbulletin->options['enableemail'] and $vbulletin->options['rpemail']) and $vbulletin->userinfo['userid'] != $pm['fromuserid']);
    $templatename = 'pm_showpm';
}
// ############################# start pm message history #############################
if ($_REQUEST['do'] == 'showhistory') {
    require_once DIR . '/includes/class_postbit.php';
    require_once DIR . '/includes/functions_bigthree.php';
    $vbulletin->input->clean_gpc('r', array('pmid' => TYPE_UINT));
    require_once DIR . '/includes/class_xml.php';
    $xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml');
    $xml->add_group('response');
    if ($vbulletin->userinfo['userid'] and $vbulletin->GPC['pmid']) {
开发者ID:benyamin20,项目名称:vbregistration,代码行数:31,代码来源:private.php

示例7: render_option_template

		}
		else
		{
			$optionselected = '';
			$optionclass = '';
		}
		$forum_options .= render_option_template($optiontitle, $optionvalue, $optionselected, $optionclass);
	}

	$post =& $announcementinfo;

	// build editor
	$editorid = construct_edit_toolbar(
		$announcementinfo['pagetext'],
		0, // is html?
		'announcement', // forumid
		true, // allow smilies
		($announcementinfo['announcementoptions'] & $vbulletin->bf_misc_announcementoptions['allowsmilies']) ? 1 : 0 // parse smilies
	);

	// build navbar
	$navbits = array();

	if ($announcementinfo['forumid'] == -1)
	{
		$navbits["announcement.php?" . $vbulletin->session->vars['sessionurl'] . "do=view&a=$announcementinfo[announcementid]"] = $vbphrase['global_announcement'];
	}
	else
	{
		$foruminfo =& $vbulletin->forumcache["$announcementinfo[forumid]"];
		$parentlist = array_reverse(explode(',', substr($foruminfo['parentlist'], 0, -3)));
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:announcement.php

示例8: and

// Only allow AJAX QC on the first page
$show['quickcomment'] = ($vbulletin->userinfo['userid'] and $viewself and $vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_visitor_messaging'] and $userinfo['vm_enable'] and $userinfo['permissions']['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canviewmembers'] and (!$userinfo['vm_contactonly'] or $userinfo['userid'] == $vbulletin->userinfo['userid'] or $userinfo['bbuser_iscontact_of_user'] or can_moderate(0, 'canmoderatevisitormessages')) and ($userinfo['userid'] == $vbulletin->userinfo['userid'] and $vbulletin->userinfo['permissions']['visitormessagepermissions'] & $vbulletin->bf_ugp_visitormessagepermissions['canmessageownprofile'] or $userinfo['userid'] != $vbulletin->userinfo['userid'] and $vbulletin->userinfo['permissions']['visitormessagepermissions'] & $vbulletin->bf_ugp_visitormessagepermissions['canmessageothersprofile']));
$show['post_visitor_message'] = $show['quickcomment'];
$show['allow_ajax_qc'] = ($pagenumber == 1 and $messagetotal) ? 1 : 0;
$pagenavbits = array("u={$userinfo['userid']}", "u2={$userinfo2['userid']}");
if ($perpage != $vbulletin->options['vm_perpage']) {
    $pagenavbits[] = "pp={$perpage}";
}
if ($vbulletin->GPC['showignored']) {
    $pagenavbits[] = 'showignored=1';
}
$pagenavurl = 'converse.php?' . $vbulletin->session->vars['sessionurl'] . implode('&', $pagenavbits);
$block_data['pagenav'] = construct_page_nav($pagenumber, $perpage, $messagetotal, $pagenavurl, '');
if ($show['quickcomment']) {
    require_once DIR . '/includes/functions_editor.php';
    $block_data['editorid'] = construct_edit_toolbar('', false, 'visitormessage', $vbulletin->options['allowsmilies'], true, false, 'qr_small', '', array(), 'content', 'vBForum_VisitorMessage', 0, $userinfo['userid']);
    $block_data['messagearea'] =& $messagearea;
    $block_data['clientscript'] = $vBeditTemplate['clientscript'];
}
$navbits = construct_navbits(array(fetch_seo_url('member', $userinfo) => $userinfo['username'], '' => construct_phrase($vbphrase['conversation_between_x_and_y'], $userinfo['username'], $userinfo2['username'])));
$navbar = render_navbar_template($navbits);
$usercss = construct_usercss($userinfo, $show['usercss_switch']);
$show['usercss_switch'] = ($show['usercss_switch'] and $vbulletin->userinfo['userid'] != $userinfo['userid']);
construct_usercss_switch($show['usercss_switch'], $usercss_switch_phrase);
($hook = vBulletinHook::fetch_hook('converse_complete')) ? eval($hook) : false;
$templater = vB_Template::create('memberinfo_block_visitormessaging');
$templater->register('block_data', $block_data);
$templater->register('prepared', $prepared);
$templater->register('userinfo', $userinfo);
$templater->register('userinfo2', $userinfo2);
$html = $templater->render();
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:converse.php

示例9: md5

        require_once DIR . '/includes/functions_editor.php';
        require_once DIR . '/includes/functions_attach.php';
        $posthash = md5(TIMENOW . $vbulletin->userinfo['userid'] . $vbulletin->userinfo['salt']);
        $poststarttime = TIMENOW;
        // Use our permission to attach or the person who owns the post? check what vB does in this situation
        if ($vbulletin->userinfo['permissions']['vbblog_entry_permissions'] & $vbulletin->bf_ugp_vbblog_entry_permissions['blog_canpostattach']) {
            $values = "values[blogid]={$bloginfo['blogid']}";
            require_once DIR . '/packages/vbattach/attach.php';
            $attach = new vB_Attach_Display_Content($vbulletin, 'vBBlog_BlogEntry');
            $attachmentoption = $attach->fetch_edit_attachments($posthash, $poststarttime, $postattach, $bloginfo['blogid'], $values, $vbulletin->GPC['editorid'], $attachcount);
            $contenttypeid = $attach->fetch_contenttypeid();
        } else {
            $attachmentoption = '';
            $contenttypeid = 0;
        }
        $editorid = construct_edit_toolbar(htmlspecialchars_uni($bloginfo['pagetext']), false, 'blog_entry', $vbulletin->userinfo['permissions']['vbblog_entry_permissions'] & $vbulletin->bf_ugp_vbblog_entry_permissions['blog_allowsmilies'], $bloginfo['allowsmilie'], false, 'qe', $vbulletin->GPC['editorid']);
        require_once DIR . '/includes/functions_file.php';
        $xml->add_group('quickedit');
        $xml->add_tag('editor', $messagearea, array('reason' => $bloginfo['edit_reason'], 'parsetype' => 'blog_entry', 'parsesmilies' => $vbulletin->userinfo['permissions']['vbblog_comment_permissions'] & $vbulletin->bf_ugp_vbblog_comment_permissions['blog_allowsmilies'], 'mode' => $show['is_wysiwyg_editor']));
        add_ajax_attachment_xml($xml, $contenttypeid, $posthash, $poststarttime, array('b' => $bloginfo['blogid']));
        $xml->close_group();
        $xml->print_xml();
    }
}
// #############################################################################
// retrieve a calendar
if ($_POST['do'] == 'calendar') {
    $vbulletin->input->clean_array_gpc('p', array('month' => TYPE_UINT, 'year' => TYPE_UINT, 'userid' => TYPE_UINT));
    $xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml');
    // can't view any blogs, no need for a calendar
    if (!($vbulletin->userinfo['permissions']['vbblog_general_permissions'] & $vbulletin->bf_ugp_vbblog_general_permissions['blog_canviewown']) and !($vbulletin->userinfo['permissions']['vbblog_general_permissions'] & $vbulletin->bf_ugp_vbblog_general_permissions['blog_canviewothers'])) {
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:blog_ajax.php

示例10: vB_Attach_Display_Content

     $show['poll'] = false;
 }
 $attachcount = 0;
 if ($forumperms & $vbulletin->bf_ugp_forumpermissions['canpostattachment'] and $vbulletin->userinfo['userid'] and !empty($vbulletin->userinfo['attachmentextensions'])) {
     $values = "values[f]={$foruminfo['forumid']}";
     require_once DIR . '/packages/vbattach/attach.php';
     $attach = new vB_Attach_Display_Content($vbulletin, 'vBForum_Post');
     $attachmentoption = $attach->fetch_edit_attachments($posthash, $poststarttime, $postattach, 0, $values, $editorid, $attachcount);
     $contenttypeid = $attach->fetch_contenttypeid();
 } else {
     $attachmentoption = '';
     $contenttypeid = 0;
 }
 require_once DIR . '/includes/functions_file.php';
 $attachinfo = fetch_attachmentinfo($posthash, $poststarttime, $contenttypeid, array('f' => $foruminfo['forumid']));
 $editorid = construct_edit_toolbar($newpost['message'], 0, $foruminfo['forumid'], $foruminfo['allowsmilies'], 1, $forumperms & $vbulletin->bf_ugp_forumpermissions['canpostattachment'] and $vbulletin->userinfo['userid'] and !empty($vbulletin->userinfo['attachmentextensions']), 'fe', '', $attachinfo, 'forum');
 $subject = $newpost['title'];
 // display prefixes
 require_once DIR . '/includes/functions_prefix.php';
 $prefix_options = fetch_prefix_html($foruminfo['forumid'], $newpost['prefixid'], true);
 // get username code
 $usernamecode = vB_Template::create('newpost_usernamecode')->render();
 $show['podcasturl'] = $foruminfo['podcast'];
 // can this user open / close this thread?
 if ($vbulletin->userinfo['userid'] and $forumperms & $vbulletin->bf_ugp_forumpermissions['canopenclose'] or can_moderate($foruminfo['forumid'], 'canopenclose')) {
     $threadinfo['open'] = 1;
     $show['openclose'] = true;
     $show['closethread'] = true;
 } else {
     $show['openclose'] = false;
 }
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:newthread.php

示例11: construct_edit_toolbar

			array(
				'parseurl'       => true,
				'disablesmilies' => ($sidebarinfo AND !$sidebarinfo['allowsmilie'])
		));
	}

	if ($sidebarinfo)
	{
		$show['delete'] = true;
		$show['edit'] = true;
	}

	$editorid = construct_edit_toolbar(
		$customblock['message'],
		false,
		'blog_entry',
		$userinfo['permissions']['vbblog_entry_permissions'] & $vbulletin->bf_ugp_vbblog_entry_permissions['blog_allowsmilies'],
		true,
		false
	);
	$usernamecode = vB_Template::create('newpost_usernamecode')->render();

	if ($type == 'block')
	{
		$blocks['count'] = $userinfo['customblocks'];
		$blocklimit = $userinfo['permissions']['vbblog_customblocks'];
		$show['block'] = true;
	}
	else
	{
		$blocklimit = $userinfo['permissions']['vbblog_custompages'];
	}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:32,代码来源:blog_usercp.php

示例12: eval

 if (empty($postarray)) {
     eval(standard_error(fetch_error('no_applicable_posts_selected')));
 } else {
     if (count($postarray) == 1) {
         eval(standard_error(fetch_error('not_much_would_be_accomplished_by_merging')));
     }
 }
 $postcount = count($postarray);
 $threadcount = count($threadlist);
 $forumcount = count($forumlist);
 if ($previewpost) {
     $pagetext = htmlspecialchars_uni($edit['message']);
 } else {
     $pagetext = htmlspecialchars_uni($pagetext);
 }
 $editorid = construct_edit_toolbar($pagetext, 0, $foruminfo['forumid'], iif($foruminfo['allowsmilies'], 1, 0), 1);
 $usernamebit = '';
 if (count($userselect) > 1) {
     $guests = array();
     uasort($userselect, 'strnatcasecmp');
     // alphabetically sort usernames
     foreach ($userselect as $optionvalue => $optiontitle) {
         preg_match('#^(\\d+)\\|(.+)$#', $optionvalue, $matches);
         if (!intval($matches[1])) {
             $guests[] = $optiontitle;
         } else {
             $optionselected = $optionvalue == "{$userid}|{$username}" ? "selected='selected'" : "";
             eval('$usernamebit .= "' . fetch_template('option') . '";');
         }
     }
     if (!empty($guests)) {
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:inlinemod.php

示例13: fetch_attachmentinfo

		$contenttypeid = vB_Types::instance()->getContentTypeID('vBForum_Post');
	}
	else
	{
		$contenttypeid = 0;
	}

	require_once(DIR . '/includes/functions_file.php');
	$attachinfo = fetch_attachmentinfo($posthash, $poststarttime, $contenttypeid, array('t' => $threadinfo['threadid']));

	$editorid = construct_edit_toolbar(
		'',
		0,
		$foruminfo['forumid'],
		($foruminfo['allowsmilies'] ? 1 : 0),
		1,
		false,
		'qr',
		'',
		$attachinfo,
		'forum'
	);
	$messagearea = "
		<script type=\"text/javascript\">
		<!--
			var threaded_mode = $threadedmode;
			var require_click = $show[qr_require_click];
			var is_last_page = $show[allow_ajax_qr]; // leave for people with cached JS files
			var allow_ajax_qr = $show[allow_ajax_qr];
			var last_post_id = $LASTPOSTID;
			var ajax_last_post = " . intval($effective_lastpost) . ";
		// -->
开发者ID:hungnv0789,项目名称:vhtm,代码行数:32,代码来源:showthread.php

示例14: construct_edit_toolbar

         }
     }
     if ($_GET['do'] == 'edit' and isset($file)) {
         $_POST = $file;
         $_POST['dname'] = $file['name'];
         $_POST['url'] = $vbulletin->input->clean($file['url'], TYPE_NOHTML);
     }
     if ($_POST['pin'] == 1) {
         $pinned = 'selected="selected"';
         $unpinned = '';
     } else {
         $pinned = '';
         $unpinned = 'selected="selected"';
     }
     // Get the message editor for the description
     $editorid = construct_edit_toolbar(htmlspecialchars_uni($file['description']), 0, 'nonforum', iif($vbulletin->options['privallowsmilies'], 1, 0));
     $category_array = $dl->construct_select_array(0, array('' => '----------'), '');
     foreach ($category_array as $cat_key => $cat_value) {
         if ($_POST['category'] == $cat_key or $_GET['cat'] == $cat_key) {
             $selected = 'selected="selected"';
         } else {
             $selected = '';
         }
         $category_select .= '<option value="' . $cat_key . '" ' . $selected . '>' . $cat_value . '</option>';
     }
     eval('$dmain_jr = "' . fetch_template('downloads_file_addit') . '";');
     eval('$dmain .= "' . fetch_template('downloads_wrapper_top') . '";');
 } else {
     if ($_GET['do'] == 'manfiles') {
         $navbits['downloads.php?do=manfiles'] = $vbphrase['ecdownloads_manage_files'];
         $dlcustomtitle = $vbphrase['ecdownloads_manage_files'];
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:downloads.php

示例15: iif

    // set show signature hidden field
    $showsig = iif($vbulletin->userinfo['signature'], 1, 0);
    // set quick reply initial id
    if ($threadedmode == 1) {
        $qrpostid = $curpostid;
        $show['qr_require_click'] = 0;
    } else {
        if ($vbulletin->options['quickreply'] == 2) {
            $qrpostid = 0;
            $show['qr_require_click'] = 1;
        } else {
            $qrpostid = 'who cares';
            $show['qr_require_click'] = 0;
        }
    }
    $editorid = construct_edit_toolbar('', 0, $foruminfo['forumid'], $foruminfo['allowsmilies'] ? 1 : 0, 1, false, 'qr');
    $messagearea = "\n\t\t<script type=\"text/javascript\">\n\t\t<!--\n\t\t\tvar threaded_mode = {$threadedmode};\n\t\t\tvar require_click = {$show['qr_require_click']};\n\t\t\tvar is_last_page = {$show['allow_ajax_qr']}; // leave for people with cached JS files\n\t\t\tvar allow_ajax_qr = {$show['allow_ajax_qr']};\n\t\t\tvar ajax_last_post = " . intval($effective_lastpost) . ";\n\t\t// -->\n\t\t</script>\n\t\t{$messagearea}\n\t";
    if (is_browser('mozilla') and $show['wysiwyg'] == 2) {
        // Mozilla WYSIWYG can't have the QR collapse button,
        // so remove that and force QR to be expanded
        $show['quickreply_collapse'] = false;
        unset($vbcollapse["collapseobj_quickreply"], $vbcollapse["collapseimg_quickreply"], $vbcollapse["collapsecel_quickreply"]);
    } else {
        $show['quickreply_collapse'] = true;
    }
} else {
    if ($show['ajax_js']) {
        require_once DIR . '/includes/functions_editor.php';
        $vBeditJs = construct_editor_js_arrays();
        // check that $editor_css has been built
        if (!isset($GLOBALS['editor_css'])) {
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:showthread.php


注:本文中的construct_edit_toolbar函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。