Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Set up Administrators

 

Seems to be working but i get this error:

Fatal error: Call to undefined function: tep_get_admin_name() in /home/virtual/site2/fst/var/www/html/Venom-Store/admin/administrators.php on line 320

 

Line 320: $heading[] = array('text' => '<center><b>' . tep_get_admin_name($aInfo->admin_id) . '</b></center>');

 

Also, i dont see nowhere on how to delete or edit the default Administrator.

 

Anyone?

Posted

No one using administrators 1.2.2 ? :? Guess ill uninstall this mod since no one has it working. :(

Posted

I guess it is outdated.

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Posted

Admin 1.2.2 is working okay for me, and can for you by adding this function to the end of admin/includes/functions/general.php:

function tep_get_admin_name($admin_id) {



   $admin_query = tep_db_query("select admin_name from " . TABLE_ADMINISTRATORS . " where admin_id = '" . $admin_id . "'");

   $admin = tep_db_fetch_array($admin_query);



   return $admin['admin_name'];

 }

 

This was step 2e in the installation instructions.

Posted

And regarding the default administrator with all powers, that's God and you don't want to delete God. But you could edit it's username and password.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...