Jump to content

Manage my template


subzeros

Recommended Posts

Hello,

 

I integrate my WHMCS template all is well. I create a table that is like this

 

CREATE TABLE IF NOT EXISTS `mod_wizardpanelsettings` (

`id` int(11) NOT NULL AUTO_INCREMENT,

`favicon` varchar(75) NOT NULL,

`active_facebook` int(1) NOT NULL DEFAULT '1',

`url_facebook` varchar(75) NOT NULL,

`active_twitter` int(1) NOT NULL DEFAULT '1',

`url_twitter` varchar(75) NOT NULL,

`active_youtube` int(1) NOT NULL DEFAULT '1',

`url_youtube` varchar(75) NOT NULL,

`active_googleplus` int(1) NOT NULL DEFAULT '1',

`url_googleplus` varchar(75) NOT NULL,

`active_linekedin` int(1) NOT NULL DEFAULT '1',

`url_linekedin` varchar(75) NOT NULL,

`active_livechat` int(1) NOT NULL DEFAULT '0',

`active_langage` int(1) NOT NULL DEFAULT '0',

PRIMARY KEY (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2;

 

So I start to create my module to record information from the admin. But how to recover such 'url_facebook' from my table to display in the header.tpl?

 

Sorry for my english i am french :(

 

Thank you for your future responses

 

Cordially

Link to comment
Share on other sites

I forgot to post my hook.php

 

function wizardpanel_ClientAreaHeadOutput_Hook($vars) {

/* My table */

mysql_query ......

$return['url_facebook'] = 'http://www.';

return $return;

}

 

if (!defined("WHMCS")) {

exit( 'This file cannot be accessed directly' );

add_hook( "ClientAreaHeadOutput", 0, "wizardpanel_ClientAreaHeadOutput_Hook" );

add_hook( "AdminHomeWidgets", 1, "widget_wizardpanel_addon" );

}

 

In my header I have to put {$url_facebook}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated