vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   New template class? (https://vborg.vbsupport.ru/showthread.php?t=258106)

bertwrld 01-31-2011 05:57 PM

New template class?
 
Hello

I apologize in advance, I am not a coder and am having trouble converting an older template that i was using into a new vb4 ready template.

If anyone could help it would be greatly appreciated as it would prob only take someone a minute when they know what they are doing.

The code is for the template for parachat integration

<?php

require_once("./global.php");
require_once("./chat_global.php");

$PARACHAT_LOGIN_USERNAME = $bbuserinfo[username];
$CHATSTYLE = 'whois';

$globaltemplates = array("parachat_$CHATSTYLE",);

$navbits = array();
$navbits[$parent] = $vbphrase[parachat_title];
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template("parachat_$CHATSTYLE") . '");');

?>

Thanks in advance for anyone's assistance.

TheLastSuperman 01-31-2011 08:26 PM

https://vborg.vbsupport.ru/showthread.php?t=228112
https://vborg.vbsupport.ru/showthread.php?t=228078

That will help you learn a bit more so next time you can update the code yourself! Now the best way is to do a comparison on a mod you had for vB3 and then the same mod for vB4, download the version of each and compare the codes, you'll see how they updated the codes and then it will make more sense ;).

bertwrld 01-31-2011 11:25 PM

Thanks for the articles.

I have tried to use both of those but ended up with blank pages, that is why I was asking here for help.

I will try again with creating the new page and see if I am missing something.


All times are GMT. The time now is 02:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01079 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete