Author Topic: Problem Using PlugIns  (Read 2773 times)

0 Members and 1 Guest are viewing this topic.

Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Problem Using PlugIns
« on: September 21, 2010, 09:56:57 AM »
I've a strange problem using plugins..
when i click on it, first it asks for relogin.. after entering that i get message, "logged in.. you'll be redirected" then error 404 page appears..

and also i want to get rid of entering the username password again and again..

thanks

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Problem Using PlugIns
« Reply #1 on: September 21, 2010, 02:26:23 PM »
The 404 error when login in from a plugin can be fixed by replacing in admin/admin_globals.php
<input type="hidden" name="redirect" value="<?php echo $site_sess->url(ROOT_PATH."admin/".$self_url); ?>">

With this:
<input type="hidden" name="redirect" value="<?php echo $site_sess->url(str_replace("../../", "../", ROOT_PATH)."admin/".$self_url); ?>">

As of need login "again and again", it depends on what do you mean by "again and again"
If it's like every 15 minutes or an hour, then it should be fixed if you login as admin at members login form (on each non-admin page) and select "remember me" checkbox.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: Problem Using PlugIns
« Reply #2 on: September 21, 2010, 03:59:57 PM »
THanks worked..
login problem solved from settings in admin panel..