Re: Admin Profiles Support Thread
Quote:
Originally Posted by
stxmona
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /homepages/7/d236731769/htdocs/zen/admin/admin.php on line 222
The problem is a syntax error earlier in your code than line 222. Line 222, is where it is detected, rather than where it occurs. The actual error is probably just a lone or two earlier.
Did you edit the file yourself or use the versions provided with the mod?
If you edited it yourself, are you sure that you did precisely what was stated in the instructions; even a character out of place could cause a syntax error.
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
kuroi
The problem is a syntax error earlier in your code than line 222. Line 222, is where it is detected, rather than where it occurs. The actual error is probably just a lone or two earlier.
Did you edit the file yourself or use the versions provided with the mod?
If you edited it yourself, are you sure that you did precisely what was stated in the instructions; even a character out of place could cause a syntax error.
Hi Kuroi - thanks for the answer!
Yes I did edit it myself as I was not sure if any of the previously mods change those page or not so I thought the instructions were very straight forward and easy enough to follow.....so I did. Below is a copy of the first change on line 194 to 222.
<?php echo '<a href="' . zen_href_link(FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $admins->fields['admin_id'] . '&action=edit') . '">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif', ICON_EDIT) . '</a>'; ?>
<?php echo '<a href="' . zen_href_link(FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $admins->fields['admin_id'] . '&action=delete') . '">' . zen_image(DIR_WS_IMAGES . 'icon_delete.gif', ICON_DELETE) . '</a>'; ?>
<?php echo '<a href="' . zen_href_link(FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $admins->fields['admin_id'] . '&action=resetpassword') . '">' . zen_image(DIR_WS_IMAGES . 'icon_reset.gif', ICON_RESET) . '</a>'; ?>
<?php echo '<a href="' . zen_href_link(FILENAME_ADMIN_CONTROL, 'adminID=' . $admins->fields['admin_id']) . '">' . zen_image(DIR_WS_IMAGES . 'icon_permissions.gif', ICON_PERMISSIONS) . '</a>'; ?>
</td>
</tr>
<?php
$admins->MoveNext();
}
?>
<tr>
<td colspan="2">
<table border="0" width="100%" cellspacing="0" cellpadding="4">
<tr>
<td class="smallText" valign="top"><?php echo $admins_split->display_count($admins_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_ADMINS); ?></td>
<td class="smallText" align="right"><?php echo $admins_split->display_links($admins_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?></td>
</tr>
</table>
</td>
</tr>
<?php
if (empty($action)) {
?>
<tr>
<td align="right" colspan="4" class="smallText">
<?php
'text' => '<a href="' . zen_href_link(FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $adminInfo->admin_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a><a href="' . zen_href_link(FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $adminInfo->admin_id . '&action=resetpassword') . '">' . zen_image_button('button_reset_pwd.gif', IMAGE_RESET) . '</a><a href="' . zen_href_link(FILENAME_ADMIN, 'page=' . $_GET['page'] . '&adminID=' . $adminInfo->admin_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a><br /><a href="' . zen_href_link(FILENAME_ADMIN_CONTROL, 'adminID=' . $adminInfo->admin_id) . '">' . zen_image_button('button_edit_permissions.gif', IMAGE_PERMISSIONS) . '</a>');
Would you mind looking at it and seeing if you see anything? I really don't know PHP - something I now know I should at least learn the basics.
Thanks again
Mona
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
stxmona
Hi Kuroi - thanks for the answer!
Yes I did edit it myself as I was not sure if any of the previously mods change those page or not so I thought the instructions were very straight forward and easy enough to follow.....so I did.
I'm afraid that you replaced the wrong line for the second patch. The one you need to replace is much further on in the file.
Re: Admin Profiles Support Thread
now I am in a pickle because I did NOT make a copy of that file before changing it!! something I rarely do but it was midnight and I was in a hurry. Any ideas?
TIA
Mona
Re: Admin Profiles Support Thread
I don't use Firefox, I'm an IE gal completely but I did have one of my designers check that uses Firefox and she gets all the headers there as well instead of just the Catalog & Reports headers like she should get. All the files & patches are uploaded. Any other suggestions?
Re: Admin Profiles Support Thread
I figured it out! It was the files in the Boxes folder, they hadn't transferred over properly.
Re: Admin Profiles Support Thread
HELP me please:no:....I need to make it work soon as I need a statistic page for a client...
I got an error I found in some other posts of this Thread,
but it was not clear how it was solved.
Fatal error: Call to undefined function: menu_header_visible() in /web/htdocs/www.musicandsons.it/home/store/mands_12/includes/boxes/configuration_dhtml.php on line 13
I have the function menu_header_visible() defined in functions/admin_profiles.php and I checked that the file was on the server ...
What to do?
I have a new name for the "admin" folder: could this be the reason?
Re: Admin Profiles Support Thread
FIXED!
I was missing autoloaders file....
Re: Admin Profiles Support Thread
I need to show a statistics Report Page (third party mods) to a newly created user, that should see only that page.
Is there a way after logging in, to force the user to go directly to that target page skipping the Admin Home?
Thanks
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
stxmona
now I am in a pickle because I did NOT make a copy of that file before changing it!! something I rarely do but it was midnight and I was in a hurry. Any ideas?
Quick and easy approach would be to use the pre-patched file. It's unlikely that you are using mods that have changed this admin file, but keep a copy of it, as you might need to refer to it if your have knock on problems.
In that unlikely case you would have to go back to whichever other mod you had installed that had already changed this file and re-edit the version supplied there.