Announcement

Collapse
No announcement yet.

Calling Templates in Vb5

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calling Templates in Vb5

    Hi

    I wrote a membership system for Vb3 and 4 all works

    But need to port it to VB5

    so i have a PHP script that calls templates to display forms etc

    PHP Code:
    // Nav Bar Setup
    $navbits construct_navbits(array('' => 'AVO Online Choice'));
    $navbar render_navbar_template($navbits);

    $templater vB_Template::create('avo_online_menu');
    $templater->register_page_templates();
    $templater->register('username'$username);
    $templater->register('navbar'$navbar);
    $templater->register('pagetitle'$pagetitle);
    print_output($templater->render()); 
    what is the $templater in VB5 ?

    Giz
    http://bbs.rsownersclub.co.uk

  • #2
    getting there

    PHP Code:
    require_once(dirname(__FILE__) . '/global.php');
    require_once(
    DIR '/includes/adminfunctions.php');
    require_once(
    DIR '/includes/functions_login.php'
    add and boom up it comes no VB5 theme round it ! but it does

    next area I need to migrate is

    PHP Code:
    eval(standard_error(fetch_error('error_avo_not_filled'$vbulletin->userinfo['username']))); 
    using this causes a system error
    http://bbs.rsownersclub.co.uk

    Comment


    • #3
      Unless you're creating new pages in the AdminCP, I suggest using modules to display information on vBulletin pages instead of creating PHP files.

      There is a basic overview of creating a new package/product here: https://forum.vbulletin.com/blogs/joe-d/3932614-


      There is also a skeleton package on vBulletin.org that provides everything to create a simple module and add it to the database using vBulletin 5's package system.

      https://vbulletin.org/forum/showthre...light=skeleton
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment

      Related Topics

      Collapse

      • lange
        Template_safe_function
        by lange
        Hi,

        I would like to add a hook in vB5.

        In vb3.8.11, I was going to Admincp/Hooks&Products System/Add New Hook. At Hook Location, I selected Template_safe_function to add...
        Tue 1 Jun '21, 5:45pm
      • BulliM
        Upgrade to PHP 7.2 / MCrypt
        by BulliM
        I've just readed, that vB-Support for PHP 7.0 ends in december. So I decided to upgrate now to PHP 7.2. The package php7.0-mcrypt is installed on my server. I don't know, if vB5 needs this package or...
        Tue 2 Oct '18, 4:46pm
      • ep0ch
        very slow pages
        by ep0ch
        My site runs in alpine docker containers.
        It was running with PHP 7.1.5 and 10.1.22-MariaDB
        I have since upgraded my containers to PHP 7.19 and 10.1.26-MariaDB

        However vbulletin...
        Tue 19 Sep '17, 4:11am
      • mobiltr
        vb5 için öneri
        by mobiltr
        merhaba vb5 için bir eklenti önerim olacak daha doğrusu bunu direk php olarak yazılıp sisteme entegre yapmanız daha iyi olur
        eklenti veya yazılımsal şu şekilde olmalı ayarlar bölümünde...
        evet bu gibi özelleştirmeler getirilmeli
        100.00%
        3
        hayır getirilmesin
        0%
        0
        Sun 8 Nov '20, 10:59am
      • jayeley
        How to include php file in my template plugin?
        by jayeley
        Hi:
        I'm developping plugin on vb5.
        I want to know how to include a separated php file in my template?
        And there are some many limit on vb5 template syntax,I can not write php code freely...
        Tue 4 Jun '13, 6:00pm
      Working...
      X