coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: markvicious on May 30, 2007, 12:39:03 AM

Title: Login error when "login" is removed
Post by: markvicious on May 30, 2007, 12:39:03 AM
I tried the plugins, they didn't work.

Removing the login at the top worked when I used the "//" in the code.  Although it worked, when I did want to login, I had an error.  I went to the login.php page to login but after you try to login, it goes to a blank page with the code saying there is an error in the code.

Is there a different way to remove the "login" at the top so I won't have this problem?
Title: Re: Login error when "login" is removed
Post by: Joachim Müller on May 30, 2007, 09:13:19 AM
Quote from: markvicious on May 30, 2007, 12:39:03 AMI tried the plugins
Which one?

Quote from: markvicious on May 30, 2007, 12:39:03 AMthey didn't work.
What does "didn't work" mean? Any error message?

Quote from: markvicious on May 30, 2007, 12:39:03 AMRemoving the login at the top worked when I used the "//" in the code.
Where?

Post more details!
Title: Re: Login error when "login" is removed
Post by: markvicious on May 30, 2007, 05:27:09 PM
I have it here:

//addbutton($sys_menu_buttons,'{LOGIN_LNK}','{LOGIN_TITLE}','{LOGIN_TGT}','login','');

I forget which plugins I tried to use, but I don't think it was the actually plugins that didn't work.  I just couldn't figure out how to add them and use them from the threads.
Title: Re: Login error when "login" is removed
Post by: markvicious on June 16, 2007, 02:50:53 AM
This doesn't happen on firefox, only IE... help please?
Title: Re: Login error when "login" is removed
Post by: Tranz on June 16, 2007, 05:33:02 AM
There still isn't enough details. Please post a link to your gallery.
Title: Re: Login error when "login" is removed
Post by: markvicious on June 16, 2007, 05:46:55 AM
i can use the "//" to get rid of the login and when I go to "login.php" the login page shows up but when it actually signs me in it just brings me to a page that says:

QuoteTemplate error
Failed to find block 'login'(#(<!-- BEGIN login -->)(.*?)(<!-- END login -->)#s) in :

            <!-- BEGIN my_gallery -->
        <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a> ::
  <!-- END my_gallery -->  <!-- BEGIN allow_memberlist -->
        <a href="{MEMBERLIST_TGT}" title="{MEMBERLIST_TITLE}">{MEMBERLIST_LNK}</a> ::
  <!-- END allow_memberlist -->  <!-- BEGIN my_profile -->
        <a href="{MY_PROF_TGT}" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a> ::
  <!-- END my_profile -->  <!-- BEGIN enter_admin_mode -->
        <a href="{ADM_MODE_TGT}" title="{ADM_MODE_TITLE}">{ADM_MODE_LNK}</a> ::
  <!-- END enter_admin_mode -->  <!-- BEGIN leave_admin_mode -->
        <a href="{USR_MODE_TGT}" title="{USR_MODE_TITLE}">{USR_MODE_LNK}</a> ::
  <!-- END leave_admin_mode -->  <!-- BEGIN upload_pic -->
        <a href="{UPL_PIC_TGT}" title="{UPL_PIC_TITLE}">{UPL_PIC_LNK}</a> ::
  <!-- END upload_pic -->  <!-- BEGIN register -->
        <a href="{REGISTER_TGT}" title="{REGISTER_TITLE}">{REGISTER_LNK}</a> ::
  <!-- END register -->  <!-- BEGIN faq -->
        <a href="{FAQ_TGT}" title="{FAQ_TITLE}">{FAQ_LNK}</a> ::
  <!-- END faq -->  <!-- BEGIN logout -->
        <a href="{LOGOUT_TGT}" title="{LOGOUT_TITLE}">{LOGOUT_LNK}</a>
  <!-- END logout -->

Never mind my previous message, this error shows for both Firefox and IE.
Title: Re: Login error when "login" is removed
Post by: markvicious on June 16, 2007, 05:48:16 AM
Gallery:  www.desertedhospitals.com/photos
Title: Re: Login error when "login" is removed
Post by: Joachim Müller on June 25, 2007, 08:35:09 AM
Unable to replicate. When does the error message show? After attempting to log in? If yes, post a non-admin test user account as well.