PDA

View Full Version : How can I add forum jump to my new vb page


SilverBoy
03-30-2005, 07:20 AM
Hi all



I created a new vb page, and I tried to put forum jump in it, but I couldn't



any help???



code of my page



<?php

// ####################### SET PHP ENVIRONMENT ###########################

error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################

define('NO_REGISTER_GLOBALS', 1);

define('THIS_SCRIPT', 'rules'); // change this depending on your filename

// ################### 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(

'RULES',

);

// pre-cache templates used by specific actions

$actiontemplates = array(

);

// ######################### REQUIRE BACK-END ############################

require_once('./global.php');

// ################################################## #####################

// ######################## START MAIN SCRIPT ############################

// ################################################## #####################

$navbits = array();

$navbits[$parent] = 'Forum Rules';

$navbits = construct_navbits($navbits);

$frmjmpsel['rules'] = ' selected="selected" class="fjsel"';

$forumjump = construct_forum_jump();

eval('$navbar = "' . fetch_template('navbar') . '";');

eval('print_output("' . fetch_template('rules') . '");');

?>









and this is rules template content



$stylevar[htmldoctype]

<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">

<head>

<title>$vboptions[bbtitle] - Forum Rules</title>

$headinclude

</head>

<body>

$header

$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tr>

<td class="tcat" align="center">Forum Rules</td>

</tr>

<tr>

<td class="alt1">My Rules</td>

</tr>

</table>

<br>

<div align="left">

$forumjump

</div>

<br>

$footer

</body>

</html>







Iam waiting your help



by the way my vb version is 3.0.7

no body knows??

SilverBoy
04-02-2005, 04:20 AM
know body knows, or know one wanna help???

SilverBoy
04-05-2005, 05:10 PM
:(

why all of u don't want to help me?

SilverBoy
04-29-2005, 02:27 PM
what happend here?

why-not
04-29-2005, 04:35 PM
Hi

You can not do this!

$forumjump = construct_forum_jump ();

don't assign the function a output variable, it does not work that way!

do it like this....

construct_forum_jump ();

now use the variable '$forumjump' in the template you want it to be shown!


c, ya...
Sonia

SilverBoy
04-29-2005, 05:41 PM
thanks alot, :)

ok now why-not who I can add the custom page to forum jump list with specific link?