Hallo Community,
Ich habe eine Community laufen mit Wordpress3 und Vbulletin4.
Ich Nutze beide Systeme Getrennt und möchte Wordpress gerne Design Technisch in Vbulletin4 haben.
Dazu habe ich mir gedacht erstelle Ich eine Custom Seite mit vbulletin4 per PHP und dann muss ich da irgentwie Wordpress reinbekommen.
Meine Frage ist --> Wie stellt sich das jetzt am Besten an ?
So sieht mein Vbulletin4 PHP File mommentan!!!
ZitatPHP Alles anzeigen<?php // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('THIS_SCRIPT', 'portal'); define('CSRF_PROTECTION', true); // 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('portal', ); // pre-cache templates used by specific actions $actiontemplates = array(); // ######################### REQUIRE BACK-END ############################ // if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line // chdir ('/path/to/your/forums'); require_once('./global.php'); // ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### $navbits = construct_navbits(array('' => 'Portal')); $navbar = render_navbar_template($navbits); // ###### YOUR CUSTOM CODE GOES HERE ##### $pagetitle = 'NAME MEINER WEBSEITE :)'; // ###### NOW YOUR TEMPLATE IS BEING RENDERED ###### $templater = vB_Template::create('portal'); $templater->register_page_templates(); $templater->register('navbar', $navbar); $templater->register('pagetitle', $pagetitle); print_output($templater->render()); ?>
Das Template File das Ich in Vbulletin4 erstellt habe was auch das PHP File Benutzt sieht so aus!
ZitatHTML Alles anzeigen{vb:stylevar htmldoctype} <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html"> <head> <title>{vb:raw pagetitle}</title> {vb:raw headinclude} {vb:raw headinclude_bottom} </head> <body> {vb:raw header} {vb:raw navbar} <div class="blockbody"> <div class="blockrow"> <iframe src="http://MEINE WEBSITE" style="border:0px #000000 none;" name="portal" scrolling="no" frameborder="0" align=aus marginheight="0px" marginwidth="0px" height="1800" width="932"></iframe> </div> </div> {vb:raw footer} </body> </html>
Ich habe Wordpress bis jetzt nur mit Iframe eingebunden!
Da wo das Iframe ist bräuchte ich nun den Wordpress PHP Code der wordpress mit eigenem Design einfügt.
Meine verzeichnis auflistung sieht so aus
wp-admin
wp-content
wp-includes
forums
Vb4 Läuft im Subverzeichnis!!!
Ich danke jedem für seinem Support. In der Community von Vbulletin konnte mir keiner Weiterhelfen :(