lookjapan.COM - IRC ve mIRC dünyasının forumu!   buy vps


  lookjapan.COM - IRC ve mIRC dünyasının forumu! IF - Web Tabanlı Uygulamalar WHMCS


Etiketlenen üyelerin listesi

Yeni Konu   Cevap Yaz

 
LinkBack Seçenekler Stil
Alt 02 Ekim 2015, 22:13   #1
 
Anti - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: 23 Temmuz 2015
Mesajlar: 129
WEB Sitesi: *
IRC Sunucusu: *
İlgi Alanı:
Alınan Beğeni: 16
Standart WHMCS'de Ek Sayfa Ekleme

Merhaba,

WHMCompleteSolution sistemlerde [root]/templates/*ThemeName içerisinde bulunan .tpl dosyaları ile yeni bir sayfa oluşturabilirsiniz.
Not: Varolan yani o an aktif olarak kullandığınız temanın klasörüne ([root]/templates/*ThemeName) attığınız .tpl dosyası sitede gözükür. Başka bir tema seçerseniz ona'da oluşturduğunuz .tpl dosyanızı kopyalamanız gereklidir aktif olarak gözükmesi için.
.tpl dosyanızı oluşturduktan sonra ise whmcs sisteminizin kurulu olduğu [root] tabana gelerek. Bir PHP dosyası oluşturun. İçeriği ise:

Sürümünüz 5.2.x ise:
PHP- Kodu: 
<?php
 
 define
("CLIENTAREA",true);
 
//define("FORCESSL",true); // Uncomment to force the page to use https://
 
 
require("init.php");
 
 
$ca = new WHMCS_ClientArea();
 
 
$ca->setPageTitle("Your Page Title Goes Here");
 
 
$ca->addToBreadCrumb('index.php',$whmcs->get_lang('globalsystemname'));
 
$ca->addToBreadCrumb('mypage.php','Your Custom Page Name');
 
 
$ca->initPage();
 
 
//$ca->requireLogin(); // Uncomment this line to require a login to access this page
 
 # To assign variables to the template system use the following syntax.
 # These can then be referenced using {$variablename} in the template.
 
 
$ca->assign('variablename'$value);
 
 
# Check login status
 
if ($ca->isLoggedIn()) {
 
   
# User is logged in - put any code you like here
 
   # Here's an example to get the currently logged in clients first name
 
   
$result mysql_query("SELECT firstname FROM tblclients WHERE id=".$ca->getUserID());
   
$data mysql_fetch_array($result);
   
$clientname $data[0];
 
   
$ca->assign('clientname'$clientname);
 
 } else {
 
   
# User is not logged in
 
 
}
 
 
# Define the template filename to be used without the .tpl extension
 
 
$ca->setTemplate('TPLDOSYASININADI');
 
 
$ca->output();
 
 
?>

Sürümünüz 4.x veyada 5.0.x , 5.1.x ise:
PHP- Kodu: 
<?php
define
("CLIENTAREA",true);
//define("FORCESSL",true); # Uncomment to force the page to use https://
require("dbconnect.php");
require(
"includes/functions.php");
require(
"includes/clientareafunctions.php");
$pagetitle $_LANG['clientareatitle'];
$breadcrumbnav '<a href="index.php">'.$_LANG['globalsystemname'].'</a>';
$breadcrumbnav .= ' > <a href="mypage.php">My Page</a>'
initialiseClientArea($pagetitle,'',$breadcrumbnav);
# To assign variables to the template system use the following syntax.
# These can then be referenced using {$variablename} in the template.
$smartyvalues["variablename"] = $value
# Check login status
if ($_SESSION['uid']) {
  
# User is logged in - put any code you like here
  # Here's an example to get the currently logged in clients first name
  
$result mysql_query("SELECT firstname FROM tblclients WHERE id=".(int)$_SESSION['uid']);
  
$data mysql_fetch_array($result);
  
$clientname $data[0];
  
$smartyvalues["clientname"] = $clientname;
} else {
  
# User is not logged in
}
# Define the template filename to be used without the .tpl extension
$templatefile "TPLDOSYASININADI"
outputClientArea($templatefile);
?>

olacaktır. Yukarıdaki kodda bulunan TPLDOSYASININADI yerine kendi tpl dosyanızın adını yazıp kaydettikten sonra kontrol edebilirsiniz.
Teşekkürler.

Kaynak: r10
 Anti isimli Üye şimdilik offline konumundadır   Alıntı

Yeni Konu   Cevap Yaz

Etiketler
ekleme, sayfa, whmcsde


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Facebook Sayfa Onaylatma Nasıl Yapılır? Vesaire Sosyal Ağlar 0 12 Mayıs 2016 01:41
vBulletin Harici Sayfa - Login Formu - Son Konular Code vBulletin 0 19 Eylül 2015 22:34
Php ile Şifreli Sayfa Oluşturma Violence PHP 0 27 Temmuz 2015 22:55
Facebook Fotoğraf ve Sayfa Beğenisi Siteleri SARIYILDIRIM Web Site Tanıtımları 0 04 Nisan 2015 16:05

web hosting web hosting
 buy vds
 vps buy

Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.