X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-surfbar_list.php;h=0b10c3418c18ee825d17e17d32fdbc7346a60806;hb=c4823d28fd0bd22250b16d73f2034f36fc54abda;hp=14a3ed991f31db834ece4760afb87af93c09de5a;hpb=04b69ac9f33369cbf654396c4a42cb1fff710ff4;p=mailer.git
diff --git a/inc/modules/member/what-surfbar_list.php b/inc/modules/member/what-surfbar_list.php
index 14a3ed991f..0b10c3418c 100644
--- a/inc/modules/member/what-surfbar_list.php
+++ b/inc/modules/member/what-surfbar_list.php
@@ -14,11 +14,9 @@
* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -45,7 +43,7 @@ if (!defined('__SECURITY')) {
}
// Add description as navigation point
-addMenuDescription('member', __FILE__);
+addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('surfbar'));
@@ -56,7 +54,7 @@ if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
$urlArray = SURFBAR_GET_USER_URLS();
// Are there entries or form is submitted?
-if ((isFormSent()) && (isPostRequestParameterSet(('action'))) && (isPostRequestParameterSet('id'))) {
+if ((isFormSent()) && (isPostRequestParameterSet('action')) && (isPostRequestParameterSet('id'))) {
// Process the form
if (SURFBAR_MEMBER_DO_FORM(postRequestArray(), $urlArray)) {
// Action performed but shall we display it?
@@ -70,27 +68,19 @@ if ((isFormSent()) && (isPostRequestParameterSet(('action'))) && (isPostRequestP
}
} elseif (count($urlArray) > 0) {
// List all URLs
- $OUT = ''; $SW = 2;
+ $OUT = '';
foreach ($urlArray as $id => $content) {
// "Translate"/insert data
- $content['sw'] = $SW;
if ($content['views_total'] > 0) {
// Include link to stats
- $content['views_total'] = '[' . translateComma($content['views_total']) . ']';
+ $content['views_total'] = '[{%pipe,translateComma=' . $content['views_total'] . '%}]';
} // END - if
$content['url_registered'] = generateDateTime($content['url_registered'], 2);
$content['url_last_locked'] = generateDateTime($content['url_last_locked'], 2);
$content['actions'] = SURFBAR_MEMBER_ACTIONS($content['id'], $content['url_status']);
- if (empty($content['url_lock_reason'])) {
- // Fixes some HTML problems with empty cells
- $content['url_lock_reason'] = '---';
- } // END - if
// Load row template
$OUT .= loadTemplate('member_surfbar_list_row', true, $content);
-
- // Switch color
- $SW = 3 - $SW;
} // END - if
// Load main template