This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Client Notice Manager
#6
RE: Client Notice Manager
I am so sorry for my delay folks.
Here is the code i used, made my edits and then i changed back, instructions provided in the comments (fully commented)

PHP Code:
<?php

/**
 * @copyright 2014-2015 Sentora Project (http://www.sentora.org/) 
 * Sentora is a GPL fork of the ZPanel Project whose original header follows:
 *
 * Generic template place holder class.
 * @package zpanelx
 * @subpackage dryden -> ui -> tpl
 * @version 1.1.0
 * @author Bobby Allen (ballen@bobbyallen.me)
 * @copyright ZPanel Project (http://www.zpanelcp.com/)
 * @link http://www.zpanelcp.com/
 * @license GPL (http://www.gnu.org/licenses/gpl.html)
 *
 *
 * File location: /etc/sentora/panel/dryden/ui/tpl/notice.class.php
 * Edited by wormsunited = Help Sentora, donate now (http://sentora.org/donate)
 * Remove the code on line 34 of this code
 * CODE: runtime_xss::xssClean($result['ac_notice_tx'] = To plain text
 * CODE: ($result['ac_notice_tx']                      = For HTML tags
 * 
 * ATTENTION: USE AT YOUR OWN RISK
 *
 */
class ui_tpl_notice {

 
   public static function Template() {
 
       $user_array ctrl_users::GetUserDetail();
 
       global $zdbh;
 
       $result $zdbh->query("SELECT ac_notice_tx FROM x_accounts WHERE ac_id_pk = " $user_array['resellerid'] . "")->Fetch();
 
       if ($result) {
 
           if ($result['ac_notice_tx'] <> "")
 
               return ui_sysmessage::shout(
 
                   ($result['ac_notice_tx']),
 
                   'notice',
 
                   // YOU CAN ADD LINKS AND MORE HERE TOO
 
                   'Visit my website: <a href="http://google.com" target="_blank">Click here</a>',
 
                   true
                
);
 
           return false;
 
       } else {
 
           return false;
 
       }
 
   }

}

?>


I hope this can help the community Wink
'' Life is full of important choices ''
Help Sentora Donate now => http://sentora.org/donate Blush
Reply
Thanks given by:


Messages In This Thread
Client Notice Manager - by wormsunited - 06-07-2016, 12:21 PM
RE: Client Notice Manager - by Ron-e - 06-07-2016, 09:57 PM
RE: Client Notice Manager - by TGates - 06-08-2016, 12:18 AM
RE: Client Notice Manager - by wormsunited - 06-24-2016, 09:46 AM
RE: Client Notice Manager - by Ron-e - 06-24-2016, 01:37 PM
RE: Client Notice Manager - by wormsunited - 07-08-2016, 06:43 PM
RE: Client Notice Manager - by TGates - 07-09-2016, 12:23 AM
RE: Client Notice Manager - by wormsunited - 07-09-2016, 11:04 AM
RE: Client Notice Manager - by TGates - 07-12-2016, 04:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Disabling warning and notice logging in /var/sentora/logs/domains/* JSmith 0 2 ,506 01-02-2021, 07:50 PM
Last Post: JSmith
Update extplorer and panels client poseidon97 0 3 ,777 02-06-2020, 11:40 PM
Last Post: poseidon97
DNS Manager - Unable to find requested module! obrempong7 0 2 ,585 11-18-2019, 07:59 AM
Last Post: obrempong7

Forum Jump:


Users browsing this thread: 1 Guest(s)