eseelke Posted October 12, 2009 Share Posted October 12, 2009 Problem solved! Shrike at phpbuilder.com gave me the answer. To use the Page Manager for your 404 error page do the following: Enter this into your page manager index file (assuming index.php): Find: $query = 'SELECT * FROM tblpages WHERE urlname = "'.$id.'"'; $result = mysql_query ($query); Replace with: $query = 'SELECT * FROM tblpages WHERE urlname = "'.$id.'"'; $result = mysql_query ($query); if( mysql_num_rows( $result ) == 0 ) { $query = 'SELECT * FROM tblpages WHERE urlname = "404"'; $result = mysql_query ($query); } Add this to your .htaccess file: # Customized error messages. ErrorDocument 404 /404.html Both of these assume that you have created a page in Page Manager with the URL Name of 404. If not, change 404 in the above code to the correct urlname. 0 Quote Link to comment Share on other sites More sharing options...
merlinpa1969 Posted November 3, 2009 Share Posted November 3, 2009 We have put in the information just like in the example and we get no name listed, it works on all the default pages but not on the page manager pages is this the only thing you are putting in the logedin box: and only this in the Smartyvalues box: and only this in the Body box: If so then it should be working else you could try puting {debug} in a std .tlp file then go to the page url and a popup box will list all that can be used and see if clientsdetails firstname is showing Wright or not. 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted November 4, 2009 Share Posted November 4, 2009 have you tried using the " {debug} "? 0 Quote Link to comment Share on other sites More sharing options...
merlinpa1969 Posted November 4, 2009 Share Posted November 4, 2009 you said to put the debug in a normal page, I didnt do this because the variables are showing up in the core pages, its only the page manager pages that are having issues.... you get welcome ! rather than welcome ( name )! 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted November 4, 2009 Share Posted November 4, 2009 ok try putting the {debug} in to the Body box within the pagemanager. 0 Quote Link to comment Share on other sites More sharing options...
merlinpa1969 Posted November 4, 2009 Share Posted November 4, 2009 Ok using debug it is showing the username in the debug console however its still not displaying on the page itself here is the exact code 0 Quote Link to comment Share on other sites More sharing options...
earthone Posted November 9, 2009 Share Posted November 9, 2009 When I add the following it shows the first time, when I go to edit the page it shows it messed up then deletes all but the first table. I am entering it in the body area so that should not be the problem, <table width="250" border="1"> <tr> <td><div align="center"><img src=""><br /> <br /> <textarea name="mediumgreen" cols="20px" rows=""></textarea> </div></td> <td><div align="center"><img src=""><br /> <br /> <textarea name="mediumgreen" cols="20px" rows=""></textarea> </div></td> <td><div align="center"><img src=""><br /> <br /> <textarea name="mediumgreen" cols="20px" rows=""></textarea> </div></td> <td><div align="center"><img src=""><br /> <br /> <textarea name="mediumgreen" cols="20px" rows=""></textarea> </div></td> <td><div align="center"><img src=""><br /> <br /> <textarea name="mediumgreen" cols="20px" rows=""></textarea> </div></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> Any ideas on why it is doing this and how I can fix it? Thank you. 0 Quote Link to comment Share on other sites More sharing options...
earthone Posted November 10, 2009 Share Posted November 10, 2009 Ok so i figured out that the problem is with the textarea, when I put in multiple text areas it deletes all but the first one. Any idea why this is and possibly a work around or fix for it? Thank you. 0 Quote Link to comment Share on other sites More sharing options...
EasyWHMCS Posted November 19, 2009 Share Posted November 19, 2009 Sorry to bring up a old topic,, But does anyone know how i can get it to display the latest announcement ? <?phpinclude("support/dbconnect.php"); include("support/includes/functions.php"); $query = "SELECT * FROM tblannouncements WHERE published='on' ORDER BY date DESC LIMIT 0,3"; $result = mysql_query($query); while ($data = mysql_fetch_array($result)) { $id = $data["id"]; $date = $data["date"]; $title = $data["title"]; $announcement = $data["announcement"]; $date = fromMySQLDate($date); echo("<p><font color=#cccccc>$date</font> - <b>$title</b><br>$announcement</p>"); } ?> This is the php code, how do i insert it into page manager? as currently when i just insert that it gives me $date - $title$announcement "); } ?> Can anyone help ? 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted November 19, 2009 Share Posted November 19, 2009 (edited) Sorry to bring up a old topic,, But does anyone know how i can get it to display the latest announcement ? This is the php code, how do i insert it into page manager? as currently when i just insert that it gives me Can anyone help ? Try this: <?php include("support/dbconnect.php"); include("support/includes/functions.php"); $query = "SELECT * FROM tblannouncements WHERE published='on' ORDER BY date DESC LIMIT 0,3"; $result = mysql_query($query); while ($data = mysql_fetch_array($result)) { $id = $data["id"]; $date = $data["date"]; $title = $data["title"]; $announcement = $data["announcement"]; $date = fromMySQLDate($date); echo '<p><font color=#cccccc>$date</font> - <b>$title</b><br>$announcement</p>; } ?> echo '<p><font color=#cccccc>$date</font> - <b>$title</b><br>$announcement</p>; And put it in the "Smartyvalues" box and not the "Body" box Edited November 19, 2009 by thehost5968 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted November 19, 2009 Share Posted November 19, 2009 Sorry above is wrong. try changing to this: echo("<p><font color=#cccccc>". $date ."</font> - <b>". $title ."</b> <br>". $announcement ."</p>"); http://forum.whmcs.com/showthread.php?p=122144 0 Quote Link to comment Share on other sites More sharing options...
EasyWHMCS Posted November 20, 2009 Share Posted November 20, 2009 Try this: <?php include("support/dbconnect.php"); include("support/includes/functions.php"); $query = "SELECT * FROM tblannouncements WHERE published='on' ORDER BY date DESC LIMIT 0,3"; $result = mysql_query($query); while ($data = mysql_fetch_array($result)) { $id = $data["id"]; $date = $data["date"]; $title = $data["title"]; $announcement = $data["announcement"]; $date = fromMySQLDate($date); echo '<p><font color=#cccccc>$date</font> - <b>$title</b><br>$announcement</p>; } ?> echo '<p><font color=#cccccc>$date</font> - <b>$title</b><br>$announcement</p>; And put it in the "Smartyvalues" box and not the "Body" box Ok, So the <?php include("support/dbconnect.php"); include("support/includes/functions.php"); $query = "SELECT * FROM tblannouncements WHERE published='on' ORDER BY date DESC LIMIT 0,3"; $result = mysql_query($query); while ($data = mysql_fetch_array($result)) { $id = $data["id"]; $date = $data["date"]; $title = $data["title"]; $announcement = $data["announcement"]; $date = fromMySQLDate($date); echo '<p><font color=#cccccc>$date</font> - <b>$title</b><br>$announcement</p>; } ?> Goes in"Smartyvalues" box or "body box? and this line you've put echo '<p><font color=#cccccc>$date</font> - <b>$title</b><br>$announcement</p>; Goes in"Smartyvalues" box or "body box? Sorry, dont really understand fully how this thing works,, Cheers for your help 0 Quote Link to comment Share on other sites More sharing options...
thehost5968 Posted November 20, 2009 Share Posted November 20, 2009 (edited) OK <?php include("support/dbconnect.php"); include("support/includes/functions.php"); $query = "SELECT * FROM tblannouncements WHERE published='on' ORDER BY date DESC LIMIT 0,3"; $result = mysql_query($query); while ($data = mysql_fetch_array($result)) { $id = $data["id"]; $date = $data["date"]; $title = $data["title"]; $announcement = $data["announcement"]; $date = fromMySQLDate($date); echo("<p><font color=#cccccc>". $date ."</font> - <b>". $title ."</b> <br>". $announcement ."</p>"); } ?> Now as the above code is all / Full PHP you can only get this working if it go in the "Smartyvalues" box, Now then biff box's: Loggedin Code box = any PHP and building of smarty tags FOR USE TO SHOW INFO TO ONLY LOGGED IN CLIENTS, Smartyvalues box = any PHP and building of smarty tags FOR DISPLY TO ALL, Body Box = any HTML or TEXT AND SMARTY TAGS BUT NO PHP CODE, Also: Loggedin Code box and Smartyvalues box are = to what would go in to a .PHP part of WHMCS custom page. Body Box are = to what would go in to the .tpl part of WHMCS custom page. Hope this helps Edited November 20, 2009 by thehost5968 0 Quote Link to comment Share on other sites More sharing options...
EasyWHMCS Posted November 20, 2009 Share Posted November 20, 2009 OK <?php include("support/dbconnect.php"); include("support/includes/functions.php"); $query = "SELECT * FROM tblannouncements WHERE published='on' ORDER BY date DESC LIMIT 0,3"; $result = mysql_query($query); while ($data = mysql_fetch_array($result)) { $id = $data["id"]; $date = $data["date"]; $title = $data["title"]; $announcement = $data["announcement"]; $date = fromMySQLDate($date); echo("<p><font color=#cccccc>". $date ."</font> - <b>". $title ."</b> <br>". $announcement ."</p>"); } ?> Now as the above code is all PHP you can only get this working if it go in the "Smartyvalues" box, Now then biff box's: Loggedin Code box = any PHP and building of smarty tags FOR USE TO SHOW INFO TO ONLY LOGGED IN CLIENTS, Smartyvalues box = any PHP and building of smarty tags FOR DISPLY TO ALL, Body Box = any HTML or TEXT AND SMARTY TAGS BUT NO PHP CODE, Hope this helps Ok cheers you've been a big help with exsplaining, I've added all the code to the smartyvalues and the page displays nothing, I presume i need to add a bit to the body box aswell ? 0 Quote Link to comment Share on other sites More sharing options...
merlinpa1969 Posted March 24, 2010 Share Posted March 24, 2010 Is this module dead? We were never able to get it to work right ( wouldnt pick up variables ) 0 Quote Link to comment Share on other sites More sharing options...
robb3369 Posted April 18, 2010 Share Posted April 18, 2010 For those use who have modified their default TinyMCE Editor to allow server side spellcheck and/or have modified the editor buttons, here is a way to bring those changes to the page editor... Replace the top 24 (or so) lines that include the two tinymce script code blocks: <script language="javascript" type="text/javascript" src="editor/tiny_mce.js"></script> <script language="javascript" type="text/javascript"> tinyMCE.init({ editor_selector : "mceEditor", mode : "textareas", theme : "advanced", convert_urls : false, relative_urls : false, plugins : "style,table,advhr,advimage,advlink,iespell,inlinepopups,insertdatetime,media,searchreplace,contextmenu,paste,directionality,fullscreen,visualchars,xhtmlxtras", theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl,|,fullscreen", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true }); function toggleEditor(id) { if (!tinyMCE.get(id)) tinyMCE.execCommand('mceAddControl', false, id); else tinyMCE.execCommand('mceRemoveControl', false, id); } </script> and replace it with this one line of code: <?php include("editor/editor.php"); ?> 0 Quote Link to comment Share on other sites More sharing options...
merlinpa1969 Posted April 20, 2010 Share Posted April 20, 2010 Im still wondering if anyone has gotten this to pick up correct variables? we have tested time and time again and it still will NOT display variables the way that the directions say 0 Quote Link to comment Share on other sites More sharing options...
merlinpa1969 Posted July 12, 2010 Share Posted July 12, 2010 Well I posted last in April its now July This module would kick serious %$#$%% if it actually would work correctly If the authors are still around a quick reply here would rock 0 Quote Link to comment Share on other sites More sharing options...
EasyWHMCS Posted July 12, 2010 Share Posted July 12, 2010 Well I posted last in April its now July This module would kick serious %$#$%% if it actually would work correctly If the authors are still around a quick reply here would rock I shall be releasing a new version of a module similar over next few days! Includes multi language, different access levels, published status ect! A new forum post will be made soon! 0 Quote Link to comment Share on other sites More sharing options...
R-n-R Posted July 15, 2010 Share Posted July 15, 2010 Place a link here to the new forum, as I am following this one. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted July 15, 2010 Share Posted July 15, 2010 I shall be releasing a new version of a module similar over next few days!Includes multi language, different access levels, published status ect! A new forum post will be made soon! I've got the code setup to only allow paid customers of specific products, access to custom pages... Does your product do this already? If you'd like the code PM me and I'll send it to you. I've been adding the pages manually but your addon would speed up the process and make is much easier to add password protected pages for paid customers 0 Quote Link to comment Share on other sites More sharing options...
EasyWHMCS Posted July 15, 2010 Share Posted July 15, 2010 I've got the code setup to only allow paid customers of specific products, access to custom pages... Does your product do this already? If you'd like the code PM me and I'll send it to you. I've been adding the pages manually but your addon would speed up the process and make is much easier to add password protected pages for paid customers Currently the system allows you to select access levels for vistors, registered users and administrators for pages, If you email me or pm me the code i can take a look at adding this feature, however you should still be able to do this without it being added to the module as a core feature just insert the code inside the admin area Cheers 0 Quote Link to comment Share on other sites More sharing options...
EasyWHMCS Posted July 16, 2010 Share Posted July 16, 2010 I have just released the WHMCS CMS You can view more info here: http://forum.whmcs.com/showthread.php?t=30742 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.