Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on May 31, 2012
@prototech prototech Make the confirm_box() in the MCP's titania module work. 984e13c
Commits on Jun 01, 2012
@michaelcullum michaelcullum Merge pull request #113 from prototech/task/disapprove-post-confirmation
Make the confirm_box() in the MCP's titania module work.
9fc5d35
View
8 misc/modules/includes/mcp/mcp_titania.php
@@ -50,12 +50,12 @@ function main($id, $mode)
require TITANIA_ROOT . 'common.' . PHP_EXT;
// Need a few hacks to be used from within phpBB
- titania_url::decode_url(titania::$config->phpbb_script_path);
titania::$hook->register(array('titania_url', 'build_url'), 'titania_outside_build_url', 'standalone');
titania::$hook->register(array('titania_url', 'append_url'), 'titania_outside_build_url', 'standalone');
titania::$hook->register(array('titania', 'page_header'), 'titania_outside_page_header', 'standalone');
titania::$hook->register(array('titania', 'page_footer'), 'titania_outside_page_footer', 'standalone');
titania::$hook->register('titania_generate_text_for_display', 'titania_outside_generate_text_for_display', 'standalone');
+ titania_url::decode_url(titania::$config->phpbb_script_path);
titania::add_lang('manage');
@@ -77,6 +77,12 @@ function titania_outside_generate_text_for_display(&$hook, $text, $uid, $bitfiel
function titania_outside_build_url(&$hook, $base, $params = array())
{
+ // Not pretty, but it avoids issues with $current_page_url since it already has the appropriate parameters for the page.
+ if (isset($params[0]) && strpos($params[0], 'mcp.php?i=titania&mode=attention&a=') === 0)
+ {
+ return titania::$absolute_board . $params[0];
+ }
+
if ($base == 'manage/attention' || $base == titania_url::$current_page || strpos($base, 'mcp.' . PHP_EXT))
{
return phpbb::append_sid('mcp', array_merge(array('i' => 'titania', 'mode' => 'attention'), $params));
View
22 misc/modules/styles/prosilver/template/common/confirm_body.html
@@ -0,0 +1,22 @@
+<!-- INCLUDE overall_header.html -->
+
+<form id="confirm" action="{S_CONFIRM_ACTION}" method="post">
+<div class="panel">
+ <div class="inner"><span class="corners-top"><span></span></span>
+
+ <h2>{MESSAGE_TITLE}</h2>
+ <p>{MESSAGE_TEXT}</p>
+
+ <!-- IF CONFIRM_EXTRA --><p>{CONFIRM_EXTRA}</p><!-- ENDIF -->
+
+ <fieldset class="submit-buttons">
+ {S_HIDDEN_FIELDS}
+ <input type="submit" name="confirm" value="{L_YES}" class="button2" />&nbsp;
+ <input type="submit" name="cancel" value="{L_NO}" class="button2" />
+ </fieldset>
+
+ <span class="corners-bottom"><span></span></span></div>
+</div>
+</form>
+
+<!-- INCLUDE overall_footer.html -->

No commit comments for this range

Something went wrong with that request. Please try again.