First example (lines 24 & 25):
echo '<div id="contents">'."\n";
echo '<div id="loginform">'."\n";
are printed before anything, and are not inside the templates.
Also, any errors use an echo instead of putting it in a smarty variable.
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| login.php shows errors outside of templates |
| |||
| Quick Fix
1. Replace all "echo " statements with "$msg .= ". 2. Change the first "$msg .= " to "$msg = " 3. Move the last two "$msg .= " statements that have the closing "</div>" tags to before the "$main_smarty->display($the_template . '/generic_main.tpl');" statement. 4. Add the following line after the last "$msg .= " statement and before the smarty display statement: $main_smarty->assign('message', $msg); 5. Add {$message} to your login_center.tpl template wherever you want, but after the "{config_load file="../libs/lang.conf"}" line. Should now work and put the errors/messages within your template. |
| |||
|
Great tip... I'm going hunting for other echos now. |
| |||
|
One litte fix for this... The original line, echo ("<p>".PLIGG_PassEmail_SendSuccess."</p>"); is displayed on the forgotten passward step 2 page, so change it to: $msg .= '<p>'.PLIGG_PassEmail_SendSuccess.'</p>'; $main_smarty->assign('message', $msg); and in ForgottenPassword_Step2.tpl add the first line: {$message} |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| After switching templates, yget still shows | jlebeau | Customization Assistance | 5 | 08-11-2008 11:28 PM |
| Uploaded Templates do not show in the list | exstatic | General Help | 2 | 08-11-2008 08:24 PM |
| Parent categories shows errors and stay empty | Andtony | General Help | 3 | 07-24-2008 05:22 AM |
| Pligg Templates for Sale / Custom Templates Available | carpathios | Template Sales | 3 | 11-15-2007 10:47 AM |
| installation errors when PHP warnings enabled | betagirl | Installation and Upgrade Help | 4 | 10-16-2007 11:22 AM |




Linear Mode

