tfarchive skin - vBulletin

Problem? Question? Suggestion? Post it here.
Post Reply
User avatar
Dinob0t
Protoform
Posts: 10
Joined: Mon Mar 17, 2008 1:47 am

tfarchive skin - vBulletin

Post by Dinob0t » Mon Jun 21, 2010 5:22 pm

Does anyone know if it's available anywhere else for download?

User avatar
Denyer
Posts: 32326
Joined: Sun Sep 17, 2000 4:00 am
Custom Title: Shooty Dog Thing
Location: UK
Contact:

Post by Denyer » Mon Jun 21, 2010 5:47 pm

I suppose I could always export the main templates -- but there's nothing special there, just colour changes, one or two extra graphics, some smilies carried over from UBB, etc. It wouldn't be in a form usable by someone else, and templates aren't necessarily transferable between vB versions -- plus there are code changes to this forum additional to what's in official updates.

If you mean the stuff at the top and sides, though (i.e. integration with the rest of a site) I can tell you how to achieve that pretty easily. Add a hook to global_start under Plugins & Products, which will let you add PHP code to draw in the header/footer code you're already using for the rest of your pages.

[php]ob_start();
include("../common/skin/headinclude.php");
$tfa_headinclude = ob_get_contents();
ob_end_clean();
ob_start();
include("../common/skin/bodyinclude.php");
$tfa_bodyinclude = ob_get_contents();
ob_end_clean();
ob_start();
include("../common/skin/footinclude.php");
$tfa_footinclude = ob_get_contents();
ob_end_clean();[/php]

Under vB you can't easily replace the entire page (<html> tag downwards) so you need to inject stuff between the <head></head> tags, after the start of <body> and just before </body>. What the above does is get that stuff into variables you can use in your template.

The message indicator at the top left just pulls data straight out of the forum tables based on cookied data. Very basic SQL and PHP.

If that went completely over your head, apologies, but if so you'd be better off paying someone to set up and maintain your forum. Or starting with a plain install and learning some PHP afterwards.

Some other TF sites use http://www.vbadvanced.com/ to integrate their forum/site more closely, and also as a content management system.

We're only just now coming to looking at CMS options, as I have very little free time these days.

User avatar
Dinob0t
Protoform
Posts: 10
Joined: Mon Mar 17, 2008 1:47 am

Post by Dinob0t » Mon Jun 21, 2010 5:54 pm

Hi Denyer,

Thanks alot, I'll give that ago but if you can export the main templates then that'd be great. :D I'll work through it with my coder.

User avatar
Denyer
Posts: 32326
Joined: Sun Sep 17, 2000 4:00 am
Custom Title: Shooty Dog Thing
Location: UK
Contact:

Post by Denyer » Mon Jun 21, 2010 6:51 pm

Graphics are easily obtained by saving a few pages, though I'd really suggest coming up with your own.

Note that vB wasn't designed for fixed-width templates that are this narrow, and there are ugly workarounds so that the PM system is usable. None of this is likely to pass muster with the W3C validation service, because XHTML is a dead-end technology for anyone not needing features specific to XML.

_
Attachments
vbulletin-style.xml.txt
(131 KiB) Downloaded 225 times

User avatar
Laksh
Protoform
Posts: 0
Joined: Fri Feb 20, 2015 6:05 am

Post by Laksh » Fri Feb 20, 2015 6:06 am

?

Post Reply