Customizing SMF > Modifications and Packages
Password Protect Boards
JTVaughn:
Is there any way to increase the session time? I plan on having quite a few passworded boards but it may prove annoying if I have to keep entering the password several times a day.
4Three:
Fatal error: Call to undefined function passwdBoardFailed() in /var/www/vhosts/website../httpdocs/forum/Sources/Load.php on line 856
4Three:
Bump :)
eQuuS:
Hi,
I have a problem with the above. modification. I installed, I set the password in the departments and now I can not see the board / thread, as it receives this message:
--- Code: ---You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.unapproved_topics, b.unapproved_posts, t.approved, t.id_member_started FROM ' at line 6
--- End code ---
Modification uninstalled manually and with machine and nothing (after the first re-installed the automatic installation of thinking that something will). Removing went 100% correct code agrees with what is proposed parser, the board removed in a xxx_boards. When you add a query on the phrase "passwd" in phpMyAdmin there is nothing interesting except (I think) this (column data type text and not the value of the function below):
--- Code: ---session_value|s:32:"6b12dc86f59fd80b92dc17ed792f1488";session_var|s:7:"cdb8e3b";robot_check|i:1364603266;mc|a:7:{s:4:"time";i:1364598723;s:2:"id";i:0;s:2:"gq";s:3:"0=1";s:2:"bq";s:3:"0=1";s:2:"ap";a:0:{}s:2:"mb";a:0:{}s:2:"mq";s:3:"0=1";}ban|a:5:{s:12:"last_checked";i:1364603266;s:9:"id_member";i:0;s:2:"ip";s:14:"213.186.75.122";s:3:"ip2";s:14:"213.186.75.122";s:5:"email";s:0:"";}log_time|i:1364603266;timeOnlineUpdated|i:1364598719;old_url|s:18:"http://adres/";USER_AGENT|s:124:"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1350.0 Iron/24.0.1350.0 Safari/537.17";verification_image_reload|i:0;failed_image_verification|i:0;verification_image_loop|i:0;avatar_rand|s:32:"d7e024139064e1f0ad843a4b16a9dd4b";AvatarsToShow|a:10:{i:0;a:2:{i:0;s:20:"Actors/Brad_Pitt.jpg";i:1;s:32:"60e7e266bfa1e061111df832039422c6";}i:1;a:2:{i:0;s:30:"Actors/Christopher_Lambert.jpg";i:1;s:32:"d4b03061f70b568146e6ee99d0ec3384";}i:2;a:2:{i:0;s:22:"Actors/David_Spade.jpg";i:1;s:32:"51c5e68d9049e177c0d5c02995e0bb00";}i:3;a:2:{i:0;s:26:"Actors/Denise_Richards.jpg";i:1;s:32:"a2314950aa0610bf983cf0a5f32aec45";}i:4;a:2:{i:0;s:24:"Actors/Eva_Habermann.jpg";i:1;s:32:"3b9d1c6982743114312ac6da3f163b7e";}i:5;a:2:{i:0;s:26:"Actors/Gwyneth_Paltrow.jpg";i:1;s:32:"d740422e9d3a0e8c4a35e217a75831de";}i:6;a:2:{i:0;s:27:"Musicians/Avril_Lavigne.jpg";i:1;s:32:"e357b058b9987f4d161a60bde9a4fe03";}i:7;a:2:{i:0;s:24:"Musicians/Bob_Marley.jpg";i:1;s:32:"4622216b670990c805a836b904479a4e";}i:8;a:2:{i:0;s:26:"Musicians/Jon_Bon_Jovi.jpg";i:1;s:32:"045c79066486a2f7ae538dba251a9288";}i:9;a:2:{i:0;s:22:"Musicians/No_Doubt.jpg";i:1;s:32:"5e3d509944034f4db085d23a19dae1c4";}}RightAvatar|a:1:{i:0;a:2:{i:0;s:38:"QWN0b3JzL0RlbmlzZV9SaWNoYXJkcy5qcGc%3D";i:1;s:32:"a2314950aa0610bf983cf0a5f32aec45";}}register_vv|a:5:{s:5:"count";i:4;s:6:"errors";i:0;s:8:"did_pass";b:0;s:1:"q";a:0:{}s:4:"code";s:6:"CEYRAH";}login_adrescookie|s:33:"a:3:{i:0;i:0;i:1;s:0:"";i:2;i:0;}";admin_time|i:1364597722;id_msg_last_visit|s:1:"3";rc|a:3:{s:2:"id";s:1:"1";s:4:"time";i:1364579579;s:7:"reports";s:1:"0";}unread_messages|i:0;last_read_topic|i:8;forms|a:8:{i:0;i:11481249;i:1;i:10771379;i:2;i:8118812;i:3;i:9578437;i:4;i:15934397;i:5;i:12839994;i:6;i:8383499;i:7;i:8934148;}last_backup_for|s:17:"passwdBoard.zip$$";visual_verification_code|s:6:"DBDWWK";temp_attachments|a:0:{}move_to_topic|i:21;pretty|a:0:{}board_access|a:0:{}approved_image_verification|s:11:"got through";registration_agreed|b:1;
--- End code ---
The second value (based on the table above):
--- Code: ---session_value|s:32:"ce484916a5deb47cfe4a84847845cdce";session_var|s:9:"fb1c3cb0e";robot_check|i:1364867783;mc|a:7:{s:4:"time";i:1364869352;s:2:"id";s:1:"1";s:2:"gq";s:3:"1=1";s:2:"bq";s:3:"1=1";s:2:"ap";a:1:{i:0;i:0;}s:2:"mb";a:0:{}s:2:"mq";s:3:"0=1";}ban|a:5:{s:12:"last_checked";i:1364867793;s:9:"id_member";i:0;s:2:"ip";s:14:"213.186.75.122";s:3:"ip2";s:14:"213.186.75.122";s:5:"email";s:0:"";}log_time|i:1364870058;timeOnlineUpdated|i:1364870058;old_url|s:18:"http://adres/";USER_AGENT|s:124:"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1350.0 Iron/24.0.1350.0 Safari/537.17";login_adresciasteczka|s:95:"a:4:{i:0;s:1:"1";i:1;s:40:"0745d47bfe50fc1f2a17d5ccf104a02dad0dec9a";i:2;i:1364871393;i:3;i:1;}";admin_time|i:1364867793;id_msg_last_visit|s:2:"10";rc|a:3:{s:2:"id";s:1:"1";s:4:"time";i:1364867793;s:7:"reports";s:1:"0";}unread_messages|i:0;forms|a:2:{i:0;i:4982461;i:1;i:3859418;}last_backup_for|s:17:"passwdBoard.zip$$";board_access|a:0:{}
--- End code ---
In addition to this are the logs (and pretty acp) in phpMyAdmin.
Plug-ins do not emulate, worked without. Translated by Google.
Navigation
[0] Message Index
[*] Previous page
Go to full version