• 10-01-2010, 00:53:42
    #1
    Anlatım Bana Aittir Paylaşım Yaparken Lütfen Kaynak Gösterim

    İlk Önce Templatemizi Oluşturalım

    template ismi: harici

    template kodları:
    {vb:stylevar htmldoctype}
    <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
    <head>
    	{vb:raw headinclude}
    	<title>Sayfa Title</title>
    
    	<link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}forumbits.css" />
    	<!--[if IE 6]><link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}forumbits-ie.css" /><![endif]-->
    	<link rel="stylesheet" type="text/css" href="{vb:var vbcsspath}forumhome.css" />
    
    </head>
    	<body>
    {vb:raw header}
    {vb:raw navbar}
    
    
    <ol id="forums" class="floatcontainer"> 
    		<li class="forumbit_nopost L1" id="cat1"> 
    	<div class="forumhead foruminfo L1 collapse"> 
    		<h2> 
    			<span class="forumtitle"><a href="harici.php">tcat baslik</a></span> 
    			<span class="forumlastpost"></span> 
    		
    			<a class="collapse" id="collapse_c_cat1" href="harici.php#top"><img src="images/buttons/collapse_40b.png" alt="" title="Sayfayı  Kapat" /></a> 
    		
    		</h2> 
     
    		
    		<div class="forumrowdata"> 
    			<p class="subforumdescription">thead baslik</p> 
     
    			
    		</div> 
    		
    	</div> 
    	
    	<ol id="c_cat1" class="childforum"> 
    		<li id="forum2" class="forumbit_post L2"> 
    	<div class="forumrow table"> 
    
    			
    		<div class="foruminfo td"> 
    <img src="{vb:stylevar statusicon}/forum_new-48.png" class="forumicon" id="forum_statusicon_2" alt="" /> 
    						<div class="forumdata"> 
    				<div class="datacontainer"> 
    					<div class="titleline"> 
    						<h2 class="forumtitle">
    sayfa içeriğini
    <br />
    yazdırıyoruz
    uzun olması lazım biraz:D
    yoksa yapısık gozukur
    
    		</div> 
       <div class="navlinks">
       <a href="showgroups.php">Yöneticiler</a> | <a href="blog.php">Blog</a>
            </div>
    {vb:raw footer}
    </body>
    </html>

    harici.php

    <?php
    /*======================================================================*\
    || #################################################################### ||
    || # Kodlama Powered or vBulletinMaster
    || # ---------------------------------------------------------------- # ||
    || # Harici Sayfa ||
    || # # ||
    || # ---------------- Kayıtlı Oldugum Siteler ---------------- # ||
    || # http://www.webmastersitesi.com/powered-59647.html https://www.r10.net/members/44322-vbulletinmaster.html # ||
    || #################################################################### ||
    \*======================================================================*/
    // ####################### SET PHP ENVIRONMENT ###########################
    error_reporting(E_ALL & ~E_NOTICE);
    
    // #################### DEFINE IMPORTANT CONSTANTS #######################
    define('THIS_SCRIPT', 'harici');
    define('CSRF_PROTECTION', true);
    define('VB_ENTRY', 'harici.php');
    
    // ################### PRE-CACHE TEMPLATES AND DATA ######################
    // get special phrase groups
    $phrasegroups = array();
    
    // get special data templates from the datastore
    $specialtemplates = array();
    
    // pre-cache templates used by all actions
    $globaltemplates = array();
    
    // pre-cache templates used by specific actions
    $actiontemplates = array();
    
    
    // ######################### REQUIRE BACK-END ############################
    require_once('./global.php');
    
    $navbits = array();
    $navbar = render_navbar_template($navbits);
    
    ($hook = vBulletinHook::fetch_hook('harici_complete')) ? eval($hook) : false;
    
    $templater = vB_Template::create('harici');
    	$templater->register_page_templates();
    	$templater->register('harici', $harici);
    $templater->register('navbar', $navbar);
    
    print_output($templater->render());
    
    
    
    ?>
    Dipnot:Template Verdiğim Dosyayı Sitenize Ekledikten Sonra Hangi Template Adıyla Yazdıysanız Biz 'harici' Yaptırdık Navbar Kesinlikle Okutulmalıdır.
    (harici).php Dosyanızda
    Bulun :
    ($hook = vBulletinHook::fetch_hook('harici_complete')) ? eval($hook) : false; //templateadi_complete
    $templater->register_page_templates();
    	$templater->register('harici', $harici); // template adı
    $templater->register('navbar', $navbar);
    Yapıp Kaydedelim.
    Artık Sayfamız Kullanıma Hazır.
  • 11-01-2010, 11:31:33
    #2
    Üyeliği durduruldu
    ellerine sağlık dostum... arşive alıyorum bunu