Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Pensamientos al azar acerca de vBSEO y www.bmwfaq.com
Rate this Entry

Create a Custom page link and vBSEO-it

Posted 10-22-2007 at 05:08 AM by dbembibre
Updated 10-26-2007 at 06:42 AM by dbembibre
Create a archive in your forum root with name links.php

Copy the following content

PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT''links'); // 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('mylinks');
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$navbits = array();
$navbits[$parent] = 'Links en YOUR SITE NAME';
$navbits construct_navbits($navbits);
eval(
'$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('mylinks') . '");');
?>

Go to AdminCP->Styles & Templates->your style name->Create New template

Title: mylinks
Content:
Download and copy the content of attachment template

Go to vBSEO CP and surf to Custom Rewrite Rules (CRR) and put this on it

Code:
'links\.php'=>'links.html'
Demo:
BMWFAQ Club

Attached Files
File Type: txt template.txt (3.2 KB, 126 views)
Posted in BMW FAQ Club , Php
Views 809 Comments 2 Email Blog Entry
Total Comments 2

Comments

  1. Old
    ragtek's Avatar
    hi
    remove
    PHP Code:
    define('NO_REGISTER_GLOBALS'1); 
    its not needed
    this is for version < 3.5 or 3.0
    permalink
    Posted 10-26-2007 at 06:28 AM by ragtek ragtek is offline
  2. Old
    Danny Bembibre's Avatar
    Thanks a lot ragtek i have this standars template from the times of 3.0
    permalink
    Posted 10-26-2007 at 06:42 AM by Danny Bembibre Danny Bembibre is offline
 
Total Trackbacks 0

Trackbacks


All times are GMT -4. The time now is 05:48 PM.


Powered by vBulletin Version 3.8.0 Release Candidate 1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.