View Full Version : Miscellaneous Hacks - vBulletin Style Skin for MediaWiki
Jaxel
10-09-2008, 10:00 PM
vBulletin MediaWiki Skin
The purpose of this mod is to get your MediaWiki to look like your forums... A lot of people have been having trouble getting their Wikis to look streamlined with their forums, this is my first attempt.
------------
INSTALLATION
------------
1. Upload the contents of the "upload" folder to the "skins" directory of your Wiki installation...
2. Go into WIKIDIRECTORY/skins/vBulletin.php and replace all instances of <URLTOFORUMS> with the URL to your forums (ex: http://www.vbulletin.com/forums), make sure to leave the trailing slash off.
If you use the standard vBulletin skin, you are DONE. Your new skin can be selected or forced in your Wiki settings.
If you use a customized skin, please read the following steps...
-----------
CUSTOMIZING
-----------
3. Go into your vBulletin AdminCP > vBulletin Options > Style & Language Settings and make sure that "Store CSS Stylesheets as Files?" is set to yes and working. If it is, go into your FTP and download the CSS file from FORUMDIRECTORY/clientcript/vbulletin_css/, if you find multiple stylesheets in there, make sure to take the one with the same style sheet ID as the style you would like to enable for your Wiki. Rename this file to vbulletin.css and copy it over into the WIKIDIRECTORY/skins/vbulletin/ directory, overwriting the existing file.
4. Go into WIKIDIRECTORY/skins/vBulletin.php and find the section called <!-- HEADER -->. Make edits to this area to match the header to your skin. You can not use vB variables in this area, so make everything absolute. Be sure to remember to set the variables for the spacer_open variables towards the end.
5. Go into WIKIDIRECTORY/skins/vBulletin.php and find the section called <!-- FOOTER -->. Make edits to this area to match the footer to your skin. You can not use vB variables in this area, so make everything absolute.
6. If you know anything about skinning the Wiki, feel free to edit other areas. I have tried my best to limit the need to edit other areas.
lindab2
10-10-2008, 06:52 AM
Wrong forum I guess...
M-Tuning
10-10-2008, 07:56 AM
Nice!
emath
10-10-2008, 08:35 AM
thanks alottttt!!!
though i getting these errors :
maagar = mediawiki location......
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php:1) in /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/includes/User.php on line 1947
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php:1) in /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/includes/User.php on line 1950
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php:1) in /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/includes/User.php on line 1956
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php:1) in /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/includes/WebResponse.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php:1) in /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/includes/WebResponse.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php:1) in /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/includes/WebResponse.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php:1) in /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/includes/WebResponse.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php:1) in /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/includes/WebResponse.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php:1) in /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/includes/WebResponse.php on line 11
hollosch
10-10-2008, 10:06 AM
hi - super idea !!!
is this skin compatible with vbwikiPro ? can i use this?
emath
10-10-2008, 10:12 AM
and in addition i dont have any css files under FORUMDIRECTORY/clientcript/vbulletin_css/
and ive just changed "Store CSS Stylesheets as Files?" to yes..
hollosch
10-10-2008, 10:45 AM
hi - super idea !!!
is this skin compatible with vbwikiPro ? can i use this?
It works, but i have problems to customize the wiki-skin with header, fisheyemenu and navbar, like in the forums. How can i solve this? Can you help me?
the forumlink: http://www.wollmilchsau.org/forum/index.php
the wikilink with not perfect skin: http://www.wollmilchsau.org/jugendwiki/index.php?title=Hauptseite
Jaxel
10-10-2008, 03:04 PM
@imiviortal ... no idea how a skin would cause any of THOSE problems... as for the store CSS stylesheets as files problem, you need to make sure that the vbulletin_css directory is writeable so that vB can write those files in. If its not writeable, then you will never get the files.
@hollosch ... this skin should be compatible with any MediaWiki, no matter what bridge you are using. Though, if you are using vBWikiPro/NuHitWiki, doesn't it automatically do this stuff for you? I thought that was the advantage of getting the Pro version, full integration with vB... as for customizing it to your forums, you may need to manually edit other players around vBulletin.php to get it to look like your forums. You may also need to add script callups in the section above in <head>.
hollosch
10-10-2008, 03:44 PM
@hollosch ... this skin should be compatible with any MediaWiki, no matter what bridge you are using. Though, if you are using vBWikiPro/NuHitWiki, doesn't it automatically do this stuff for you? I thought that was the advantage of getting the Pro version, full integration with vB... as for customizing it to your forums, you may need to manually edit other players around vBulletin.php to get it to look like your forums. You may also need to add script callups in the section above in <head>.
the vBwikiPro-Stuff is dead - nuhit.com is dead. but the script is alive - and i have no plan to create the header like in the forums....:( and i don't know to add callups...
thats why i need help...
Milad
10-10-2008, 04:38 PM
That's nice.
I would suggest that you make the boxes collapsible.
Regards
emath
10-11-2008, 05:49 PM
listen when i trying to enter my account in wiki i get these messages :
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php:1) in /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/includes/User.php on line 1947
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php:1) in /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/includes/User.php on line 1950
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php:1) in /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/includes/User.php on line 1956
user.php lines 1940-1970 :
function setCookies() {
global $wgCookieExpiration, $wgCookiePath, $wgCookieDomain, $wgCookieSecure, $wgCookiePrefix;
$this->load();
if ( 0 == $this->mId ) return;
$exp = time() + $wgCookieExpiration;
$_SESSION['wsUserID'] = $this->mId;
setcookie( $wgCookiePrefix.'UserID', $this->mId, $exp, $wgCookiePath, $wgCookieDomain, $wgCookieSecure );
$_SESSION['wsUserName'] = $this->getName();
setcookie( $wgCookiePrefix.'UserName', $this->getName(), $exp, $wgCookiePath, $wgCookieDomain, $wgCookieSecure );
$_SESSION['wsToken'] = $this->mToken;
if ( 1 == $this->getOption( 'rememberpassword' ) ) {
setcookie( $wgCookiePrefix.'Token', $this->mToken, $exp, $wgCookiePath, $wgCookieDomain, $wgCookieSecure );
} else {
setcookie( $wgCookiePrefix.'Token', '', time() - 3600 );
}
}
/**
* Logout user.
*/
function logout() {
global $wgUser;
if( wfRunHooks( 'UserLogout', array(&$this) ) ) {
$this->doLogout();
wfRunHooks( 'UserLogoutComplete', array(&$wgUser) );
}
}
please help me.. its something with headers that already have sent.. shall i disable one of the functions above ?
emath
10-11-2008, 06:05 PM
in addition when i put in the search a valid keyname (i mean it has a page on this name) and hitting "Go" it gives me a blank page, though the "search" is working good...
emath
10-12-2008, 01:59 AM
ok nvm.. tnx for the plugin
Jaxel
10-12-2008, 07:30 AM
You got it working? What was wrong?
I made this skin wth the NEWEST version of MW.
Dave Alcock
10-12-2008, 03:48 PM
Thank you. Works great!
Vitaly
10-13-2008, 07:16 PM
Looks awesome! Thanks!
Offered for MOTM.
ehsanix
10-14-2008, 04:56 AM
first of all thanks and 1 major question
what about forums in which "width" is not full screen and have background image ?
GoodOmens
10-14-2008, 07:40 AM
Works great on my site!
http://www.lineagejunkies.com/forum/
http://www.lineagejunkies.com/wiki/Main_Page
hollosch
10-14-2008, 11:58 AM
Hi,
how can i change the linkcolor for "wanted pages", when i use the ccs file from my vb-Style ?
thanks
carrlos
10-14-2008, 07:23 PM
This is a great addition!!! I have one situation that I hope someone can help me with: I am gettig two "TOOLBOX" and two "SEARCH" boxes on my page now. One set is expanded and the other is not. Any ideas??
http://www.androidmodding.com/wiki/Main_Page
Jaxel
10-15-2008, 04:46 AM
I'm working on fixing the CSS for this script... its really confusing... fix will come in time...
@carrlos, I dont see two boxes... I am not logged in.
carrlos
10-15-2008, 11:55 AM
Jaxel, I'm getting the error whether or not I am connected:
http://www.androidmodding.com/photogallery/misc/wiki_double_errors.gif
Dave Alcock
10-15-2008, 04:57 PM
Hi,
how can i change the linkcolor for "wanted pages", when i use the ccs file from my vb-Style ?
thanks
I've sort of solved the problem - It's a conflict in the css.
This mod is merging the vbulletin css and main css files and there is a conflict in a: values.
The wanted page link is indicated by the .new class in the main css, but it is being over-ridden by a: values being set in the vbulletin css
I've solved it by deleting the alt1 class a: entries in the vbulletin css. From there, modify the a: colours for the .new class in the main css if you're not happy with the Wiki default colours.
leonnix
10-16-2008, 12:02 AM
I'm having the same problem as Carrlos ! two search boxes and two tool boxes !
You can have a look at my forum !
Link: http://www.rowiki.net/wiki
Account: Memphis
Pass: 123
BTW could you have a look at my logo and footer ?
I only have the logo on the left.
I have those pics for the Header and Footer but I have no ideas what to do with those to make them look like my forum's. I'm bad with coding, so I need your help !
Link to my forum: http://www.rowiki.net/forum
Those images attached bellow are the footer(small one) and header (big one) !
Thank you in advance
carrlos
10-16-2008, 12:26 AM
I'm having the same problem as Carrlos ! two search boxes and two tool boxes !
Thanks for speaking up leonnix! I thought it was just me and that everyone was ignoring me!! Hopefully someone can tell us why and how to fix it. :)
leonnix
10-16-2008, 03:43 AM
Ok Carrlos I find out the problems ! All you have to do is to fix your mediawiki:sidebar page. Go and look for these line *Tool and *Search then delete them !
carrlos
10-16-2008, 04:18 AM
Ok Carrlos I find out the problems ! All you have to do is to fix your mediawiki:sidebar page. Go and look for these line *Tool and *Search then delete them !
EXCELLENT leonnix!!! That did the trick! Thanks! :up:
Jaxel
10-17-2008, 04:02 AM
Glad you got it figured out.
leonnix
10-17-2008, 03:18 PM
thx for this skin Jaxel, my site looks much better now !
BTW there is a small problem that I need your help ! could you tell me how I can make the the link to a not-created-yet page red like the one shown below ?
the link to that part is:http://www.rowiki.net/wiki/index.php?title=Qu%C3%A1i_v%E1%BA%ADt
ID:Memphis
pass:123
hollosch
10-17-2008, 03:23 PM
thx for this skin Jaxel, my site looks much better now !
BTW there is a small problem that I need your help ! could you tell me how I can make the the link to a not-created-yet page red like the one shown below ?
https://vborg.vbsupport.ru/showpost.php?p=1645731&postcount=23
leonnix
10-20-2008, 01:48 AM
thanks Hollosch, that helped !
leonnix
10-22-2008, 02:56 PM
I edit the copyright for my wiki but it doesn't appear ! what should I do ?
Dexter_kcd
12-10-2008, 09:10 PM
I am trying this out, and also had the problem of having two search and tool boxes, which I have edited out. The other problem I am noticing is that the buttons to collapse the boxes on the left sidebar are not working. Are these simply for show?
I have installed it , everything is fine but its not showing my LOGO. what might be wrong? Its not showing non of the image files.
Any suggestions?
Dexter_kcd
12-18-2008, 09:23 PM
I edit the copyright for my wiki but it doesn't appear ! what should I do ?
If you did not get that sorted out yet, the copyright tag is not added to the footer text in the skin. You need to open Vbulletin.php. Find:
<?php $footerlinks = array(
'lastmod', 'viewcount', 'numberofwatchingusers',
);
Change to
<?php $footerlinks = array(
'copyright', 'lastmod', 'viewcount', 'numberofwatchingusers',
);
This adds the copyright notice as the first line of the footer. You can the placement of it by moving it elsewhere in that array.
Dexter...
Dexter_kcd
12-18-2008, 10:42 PM
What I would really love to see on this skin is at the top, in the navbar area, instead of having the info on when the page was last modified and the number of views, is to have the Vb login form there if someone is not logged in, and the Private Message notification stuff if they are logged in. I gave it a try using the require call to global.php, but I could not seem to just copy and paste that stuff from the navbar template over to this skin file.
Any ideas?
Dexter...
Rev O
12-22-2008, 07:42 PM
Ok Carrlos I find out the problems ! All you have to do is to fix your mediawiki:sidebar page. Go and look for these line *Tool and *Search then delete them !
Hello,
Which file exactly do you have to edit?
Thanks
The other problem I am noticing is that the buttons to collapse the boxes on the left sidebar are not working. Are these simply for show?
Ditto.
Does anyone have a fix for this?
kapoor22
12-25-2008, 05:16 AM
Thanks for the great hack.
Any chance this hack would work with vb version 3.6.8.
Thanks!
Daniel Richter
12-25-2008, 12:49 PM
I have a problem with this hack. Using 3.7.4 and it makes me this error:
Fatal error: Call to undefined method SkinvBulletin::tooltipAndAccesskey() in /var/www/vhosts/tvwiki.de/httpdocs/skins/vBulletin.php on line 216
Does anyone know why it is an error? I only did these changes, which are named in this thread!
dutchbb
01-17-2009, 02:58 PM
Is it possible to only add header and footer (static) from the vb forum? Leaving the wiki code as it is?
optrex
01-20-2009, 06:01 PM
This is a great addition!!! I have one situation that I hope someone can help me with: I am gettig two "TOOLBOX" and two "SEARCH" boxes on my page now. One set is expanded and the other is not. Any ideas??
Ok Carrlos I find out the problems ! All you have to do is to fix your mediawiki:sidebar page. Go and look for these line *Tool and *Search then delete them !
I have the same issue. My account has Sysops, Autoconfirmed users, Bureaucrats, Users but I can't find a page called sidebar to edit.
Please can someone point me in the right direction?
optrex
01-20-2009, 09:06 PM
DOnt worry, I sorted it. I was looking for an edit button, but used the "create" instead.
optrex
01-21-2009, 05:59 AM
me again - great mod I'm really enjoying myself with it. Stuck on how to include drop down menu bars though. Any advice?
flOid
01-22-2009, 10:34 AM
The skin breaks the 'printable version' page of the content. It looks really bad now...is there any way to fix this, so that the printable version is being displayed as in the standard skin?
Jaxel
01-26-2009, 08:31 PM
The skin breaks the 'printable version' page of the content. It looks really bad now...is there any way to fix this, so that the printable version is being displayed as in the standard skin?
All the "printable version" function does is change all the text to black. Thats it. It keeps the skin, but changes the text to black so that it can be printed on while paper.
ericdesmontagne
02-09-2009, 06:16 AM
Hello :) i have planned to replace deprecated vbwiki pro by this mod... but...
is it compatible with vb 3.8 ?
is it possible to have 2 mediawiki installed and linked to the vb forum as actually in my configuration ?
Thanks for your help.:up:
carrlos
02-13-2009, 06:20 PM
I'm using vB 3.8.1 and MediaWiki 1.13.4. I can't change the default skin to vBulletin. But I get a perfect preview.
Edit:
Fixed!!!! Your LocalSettings.php must have the skin in all lower case letters (vbulletin) and NOT vBulletin! ;)
MTGDarkness
03-09-2009, 04:44 PM
I can't figure out how to change the favicon away from the vbulletin default.
Deviant++
03-14-2009, 03:37 PM
I've done something similar with www.circumpedia.com its still being developed but I manually skinned both of them to match :D
mickknutson
04-27-2009, 11:45 PM
I copied the the header and footer of my code from the styles page (img attached).
Then I added it to vbulletin.php but I get variables that are not parsed in my skin now. Can someone help?
Tmnoonan
05-01-2009, 09:10 PM
I installed everything per the instructions, but I am still getting:
Fatal error: Call to undefined function: makeglobalvariablesscript() in [Path to my site]/wiki/skins/vBulletin.php on line 117
Tmnoonan
05-01-2009, 09:56 PM
Oh, looks like I have an old version of MediaWiki...
Mastergumble
05-16-2009, 01:46 AM
I almost set everything but cant find how to make the header expand, i set the left and right logo's but dunno how to get that "liquid" expandable effect...
Anyone can help me on this?
JakeS
06-26-2009, 07:08 PM
Thanks a bunch! :D This will come in really handy for me :-)
Setting up a theme now with it :-)
Spinball
12-02-2009, 06:57 AM
I am trying this out, and also had the problem of having two search and tool boxes, which I have edited out. The other problem I am noticing is that the buttons to collapse the boxes on the left sidebar are not working. Are these simply for show?
Having this same problem also.
Did anyone find a solution?
pjkcards
01-31-2010, 08:17 PM
This is a good mod.
How did you get the navbar to show up on the wiki as well? I see that this mod only makes the CSS the same, but doesn't bring the navbar over. Thanks!
grey_goose
07-23-2010, 05:59 AM
Can't seem to get it to 'save' the skin change. ??? Preview is just fine.
hexmode
04-29-2012, 01:16 AM
I'm working on getting the MW tarball working in more places and would like to work with you to get this working on newer versions of MediaWiki. Please ping me.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.