A hook to get at the public and private controls on a post would be nice, at the moment you've got to do annoying template edits.
K: 1.0.2
I'm not sure I understand - if we are talking about the hooks around public and private controls in the post template (post_private_controls and post_public_controls) then there is only one thing that the message ID can be - which can be derived from the $post array, which is available to the hook as part of the template parameters.I see this and similar got added, but without a parameter in the hook to the exact message, it's a bit of a nightmare getting the message id out. Seems to be because it's a foreach loop in an include in an include you can get the array of messages but not know where you are in the array.
End up doing an icky regex to get the message id out, unless I'm missing something?![]()
I'm not sure I understand - if we are talking about the hooks around public and private controls in the post template (post_private_controls and post_public_controls) then there is only one thing that the message ID can be - which can be derived from the $post array, which is available to the hook as part of the template parameters.
$params = $template->getParams();
<xen:hook name="post_private_controls" params="{xen:array 'post={$post}'}">
<div class="publicControls">
<a href="{xen:link threads/post-permalink, $thread, 'post={$post}'}" class="item muted postNumber hashPermalink" title="{xen:phrase permalink}">#{xen:calc '{$post.position} + 1'}</a>
<xen:hook name="post_public_controls" params="{xen:array 'post={$post}'}">
<xen:if is="{$post.canLike}">
<a href="{xen:link posts/like, $post}" class="LikeLink item control {xen:if $post.like_date, unlike, like}" data-container="#likes-post-{$post.post_id}"><span></span><span class="LikeLabel">{xen:if $post.like_date, {xen:phrase unlike}, {xen:phrase like}}</span></a>
</xen:if>
<xen:if is="{$canReply}">
<a href="{xen:link threads/reply, $thread, 'quote={$post.post_id}'}" data-postUrl="{xen:link posts/quote, $post}" class="ReplyQuote item control reply" title="{xen:phrase reply_quoting_this_message}"><span></span>{xen:phrase reply}</a>
</xen:if>
</xen:hook>
</div>
pls include this one^^Next Request => Admin Template addon_list
It would be cool, to be able to add own links into the popup menu.
under:
For example i had to edit the template to addCode:<xen:link href="{xen:adminlink 'add-ons/edit', $addOn}" displayif="{$canAccessDevelopment}">{xen:phrase edit}</xen:link>
Code:<xen:link href="{xen:adminlink 'add-ons/createZip', $addOn}" displayif="{$canAccessDevelopment}">create zip</xen:link> <xen:link href="{xen:adminlink 'add-ons/editInstallCode', $addOn}" displayif="{$canAccessDevelopment}">link sql tables</xen:link>
You should be able to that with template_post_render. That data should be available in the extra data array (3rd param).pls include this one^^
Hm, not really.You should be able to that with template_post_render. That data should be available in the extra data array (3rd param).
if ($templateName == 'addon_list'){
die($content);
}
<li class="listItem primaryContent" id="_ragtekdevelopertools">
<a href="admin.php?add-ons/ragtekdevelopertools/delete" class="delete OverlayTrigger secondaryContent" title="Uninstall"><span>Delete...</span></a>
<div class="Popup">
<a class="toolsCtrl" rel="Menu">Controls</a>
<div class="Menu">
<div class="primaryContent menuHeader"><h3>Controls</h3></div>
<ul class="secondaryContent blockLinksList Left">
<li><a href="admin.php?add-ons/ragtekdevelopertools/upgrade-confirm">Upgrade</a></li>
<li><a href="admin.php?add-ons/ragtekdevelopertools/disable&_xfToken=1%2C1307359600%2C47037f02c17b4121eba412a6519602bdc4e2021b">Disable</a></li>
<li><a href="admin.php?add-ons/ragtekdevelopertools/delete">Uninstall</a></li>
<li><a href="admin.php?add-ons/ragtekdevelopertools/edit">Edit</a></li>
<li><a href="admin.php?add-ons/ragtekdevelopertools/export">Export</a></li>
</ul>
</div>
</div>
<h4>
<a href="admin.php?add-ons/ragtekdevelopertools/edit">
<em>ragtek Developer Tools</em>
<dfn>1.0.5</dfn>
</a></h4>
</li>
<li><a href="admin.php?add-ons/ADDONID/createZip">zip erstellen</a></li>
<li><a href="admin.php?add-ons/ADDONID/qualityCheck">QA</a></li>
public function actionIndex()
{
$addOnModel = $this->_getAddOnModel();
$viewParams = array(
'addOns' => $addOnModel->getAllAddOns(),
'canAccessDevelopment' => $addOnModel->canAccessAddOnDevelopmentAreas()
);
return $this->responseView('XenForo_ViewAdmin_AddOn_List', 'ragtek_addon_list_extended', $viewParams);
}
</fieldset>
<fieldset id="piGroups">
there's already a hookhook here also are needed
Edit Template
in right side or around the editor
no not the that editor ...
I mean in the AdminCP when you edit a template or create new template
if ($_SERVER['REMOTE_ADDR'] == 'add.your.ip.here')
{
$config['debug'] = true;
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.