Want to create your very own vBulletin powered page which includes the header, footer, and the user permissions system as well?
Well now you can
Want to know how it will look? Take a look at the attached screenshot below!
Now includes the Who's Online modification! Also, instructions included on how to create your own pages that are integrated with current vBulletin files!
I'm going to give you a generic page but you can easily modify the contents of the page by changing the template
So here we go
Instructions:
Create a new file, whatever you want to call it (let's say test.php).
Open up test.php and add the following (replace TEST with whatever template you want to show):
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS ####################### define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'test'); // 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( 'TEST', );
// pre-cache templates used by specific actions $actiontemplates = array(
Be sure to change 'TEST' to the actual template name, and change 'test' to the filename. Also, change 'Test Page' to whatever you want to show in the navbar, such as 'Viewing Member Profile' (just an example).
Now create the template, called TEST with the following content:
Replace 'xxx' with whatever you want ?do= in the query string to be (for example, replace 'xxx' with 'showprofile' so then someone would type in example.php?do=showprofile to view this template.) Then of course, change TEMPLATE_XXX to your template name, it's that simple!
How would someone visit these pages, are they links in your header, footer, or navbar for example? If I browse to yourdomain.com how many clicks does it take for me to get to one of these pages. If there are too many clicks needed, or they aren't even visible, they won't be indexed by google.
Thank you for reply, yes these are all links, and its the only way to get to the pages. Unless of course you already know the exact URL which can be typed directly into the address bar.
I wouldn't say it's useless but Google is pretty good at determining what is real content and what is not. You just want to make sure the pages can be accessed by Google.
You want to use traditional HTML links, not fancy JavaScript or Flash for making links that google spiders will ignore.
I wouldn't say it's useless but Google is pretty good at determining what is real content and what is not. You just want to make sure the pages can be accessed by Google.
You want to use traditional HTML links, not fancy JavaScript or Flash for making links that google spiders will ignore.
Thank you for reply. All great help here.
Yes, they are indeed always html, (I don't know anything more than HTML) coding-wise. Would it help if I add the pages to robots.txt?
I've only used robots.txt to block spiders. Not sure if it works the other way around. One thing you might want to check out is producing a "site map" that will tell the search engines which URLs to crawl. (Or at least tell them they exist, it doesn't guarantee anything.)
Yes, they are indeed always html, (I don't know anything more than HTML) coding-wise. Would it help if I add the pages to robots.txt?
Just having a link to the page on any of your pages will get it indexed if there is content and its not duplicated. Search engines follow a "click tree" so:
Homepage>link to forum x page>
>links to threads
>Links elsewhere on page
>links to other forums, pages (like your custom one) and external links
So link to your pages anywhere in your site and they will eventually be crawled , or you can submit the url directly to google to crawl.