![]()
Antonio wrote: Hi admin, I would like to thank you for the 4imageshelp.zip file. But I need some assistance regarding a problem mentioned on the following question 1. QUESTION 1 Despite installing 3 times your files+instructions as included in your zip file, all is working fine except as admin I can't login in the 4images admin control panel. The link as per your indication is: http://YourNukeURL/modules/Gallery/admin (I replaced YourNukeURL with my domain) When I include my login details nothing happens just is refreshing the page and returns back to the login box. I tried tweaking here and there but I can't solve this problem, some help is much appreciated. QUESTION /NOTE 2 In your 4imagesuserintegration.rtf file on the third note: (modules/Your_Account/index.php) you mentioned how to include the logout session for the standard phpnuke Your_Account module. But since per Your_Account I have a modified version (NSN Nukescript) like yours eventually I found out were it was ecessary to include the mod. in the index.php file. (As per following) Where: index.php file (Your_Account module - **NSN VERSION ONLY**) case "logout": cookiedecode($user); $r_uid = $cookie[0]; $r_username = $cookie[1]; $galprefix = "4images"; setcookie("user"); $db->sql_query("DELETE FROM ".$prefix."_session WHERE uname='$r_username'"); $db->sql_query("OPTIMIZE TABLE ".$prefix."_session"); $db->sql_query("DELETE FROM ".$prefix."_bbsessions WHERE session_user_id='$r_uid'"); $db->sql_query("OPTIMIZE TABLE ".$prefix."_bbsessions"); $db->sql_query("DELETE FROM ".$galprefix."_sessions WHERE session_user_id='$r_uid'"); $user = ""; include("header.php"); if ($redirect != "") { echo "<META HTTP-EQUIV=\"refresh\" content=\"2;URL=modules.php?name=$redirect\">"; } else { echo "<META HTTP-EQUIV=\"refresh\" content=\"2;URL=index.php\">"; } title(_YOUARELOGGEDOUT); include("footer.php"); //____________________________________________END OF CASE The 2 bold lines in the the above case "logout" section are the extra lines included for 4images logout session. (Both portal+4images) (I mentioned this just in case you want include a note for administrators that are using NSN Your_Account module) Many thanks in advance Antonio Posted: Tue Jun 07, 2005 12:28 am
Antonio wrote:
Please disregards the QUESTION 1 as I find the solution: The reason why I was unable to login in the 4images control panel (as admin) it was because my username userlevel2 is was set to 2. Consequently for nukers that experiencing the same problem to rectify the inconvenience please do the following: 1- Go in your phpmyAdmin database 2- in the nuke_users table select your portal username (normally is the number 2) 3- Edit your entry (scroll down to userlevel2) change the value from 2 to 9 SAVE & DONE Posted: Tue Jun 07, 2005 1:33 am
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||