PDA

View Full Version : New template class?


bertwrld
01-31-2011, 05:57 PM
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.