Customize approval/rejection screen

15 years 1 month ago #90333 by adonnan
Customize approval/rejection screen was created by adonnan
I would like to customize the com_profiler screen to add in a couple custom fields that I added from the admin screen.

ex url:
index.php?option=com_comprofiler&task=pendingApprovalUser

I attempted to do this but it didn't work.

[code:1]<th><?php echo cb_customerid; ?></th>
[/code:1]
and
[code:1]echo "<td>".$users[$i]->cb_customerid."</td>";[/code:1]

I imagine my problem is in the $users (that's the table name right? Any help would be awesome.
[code:1]<div class='contentheading'><?php echo _UE_USERAPPROVAL_MODERATE; ?></div><br />
<form action='<?php echo cbSef("index.php?option=$option".($Itemid ? "&Itemid=". (int) $Itemid : ""«»)); ?>' method='post' id='adminForm' name='adminForm'>
<table width='100%' border='0' cellpadding='4' cellspacing='2'>
<thead><tr align='left'>
<th> </th>
<th><?php echo _UE_USER; ?></th>
<th><?php echo _UE_EMAIL; ?></th>
<th><?php echo _UE_REGISTERDATE; ?></th>
<th><?php echo _UE_COMMENT; ?></th>
</tr></thead>
<?php
for($i = 0; $i < count($users); $i++) {
echo "<tr align='left' valign='middle'>";
echo "<td><input id='u".$users[$i]->id."' type=\"checkbox\" checked=\"checked\" name=\"uids[]\" value=\"".$users[$i]->id."\" /></td>";
echo "<td><a href='".cbSef("index.php?option=com_comprofiler&task=userProfile&user=".$users[$i]->id.($Itemid ? "&Itemid=". (int) $Itemid : ""«»))."'>".getNameFormat($users[$i]->name,$users[$i]->username,$ueConfig). "</a></td>";
echo "<td>".$users[$i]->email."</td>";
echo "<td>".cbFormatDate($users[$i]->registerDate)."</td>";
echo "<td><textarea name='comment".$users[$i]->id."' cols='20' rows='3'></textarea></td>";
echo "</tr>";
}
echo '<tr align="center" valign="middle"><td colspan="5">'
.'<input class="button" style="background-color:#CFC;" onclick="this.form.task.value=\'approveUser\';this.form.submit();" type="button" value="'._UE_APPROVE.'" />'
.'   '
.'<input class="button" style="background-color:#FCC;" onclick="this.form.task.value=\'rejectUser\';this.form.submit();" type="button" value="'._UE_REJECT.'" /></td></tr>';
echo "</table>\n";
echo "<input type='hidden' name='task' value='' />\n";
echo "<input type='hidden' name='option' value='".$option."' />\n";
echo cbGetSpoofInputTag( 'pendingApprovalUsers' );
echo "</form>\n";
}
function manageConnections($connections,$actions,$total,&$connMgmtTabs,&$pagingParams,$perpage,$connecteds=null) {
global $ueConfig, $_REQUEST, $Itemid;

$ui=1;
outputCbTemplate($ui);
addCbHeadTag( 1, initToolTip(1) );
?>[/code:1]

Post edited by: adonnan, at: 2009/03/02 17:09

Please Log in to join the conversation.

15 years 1 month ago #91343 by adonnan
Replied by adonnan on topic Re:Customize approval/rejection screen
Hasn't anyone else tried this before?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.163 seconds

Facebook Twitter LinkedIn