vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - vBulletin Style Skin for MediaWiki (https://vborg.vbsupport.ru/showthread.php?t=193244)

Jaxel 10-09-2008 10:00 PM

vBulletin Style Skin for MediaWiki
 
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

Quote:

Originally Posted by hollosch (Post 1641809)
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/jugendwi...tle=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

Quote:

Originally Posted by Jaxel (Post 1641989)
@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 :

Code:

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 :

PHP Code:

    function setCookies() {
        global 
$wgCookieExpiration$wgCookiePath$wgCookieDomain$wgCookieSecure$wgCookiePrefix;
        
$this->load();
        if ( 
== $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 ( 
== $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/photog...ble_errors.gif

Dave Alcock 10-15-2008 04:57 PM

Quote:

Originally Posted by hollosch (Post 1644826)
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

Quote:

Originally Posted by leonnix (Post 1646041)
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

Quote:

Originally Posted by leonnix (Post 1646120)
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...1i_v%E1%BA%ADt
ID:Memphis
pass:123

hollosch 10-17-2008 03:23 PM

Quote:

Originally Posted by leonnix (Post 1647087)
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....1&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?

geda 12-13-2008 05:54 AM

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

Quote:

Originally Posted by leonnix (Post 1650484)
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:


Code:

<?php        $footerlinks = array(
        'lastmod', 'viewcount', 'numberofwatchingusers',
        );


Change to

Code:

<?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

Quote:

Originally Posted by leonnix (Post 1646120)
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

Quote:

Originally Posted by Dexter_kcd (Post 1682727)
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:

Quote:

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?


All times are GMT. The time now is 02:09 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01897 seconds
  • Memory Usage 1,850KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete