Advertisement:

Author Topic: SMF Curve for Mediawiki theme release  (Read 1082783 times)

Offline Illori

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 33,933
Re: SMF Curve for Mediawiki theme release
« Reply #20 on: July 09, 2013, 05:26:39 AM »
but the person was asking for the forums menu to show on the theme, on our current theme the forum menu does not show at all, just our custom menu at the top of the page.

thanks for catching that extra code, i have removed it.

Offline Illori

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 33,933
Re: SMF Curve for Mediawiki theme release
« Reply #21 on: July 09, 2013, 07:43:49 AM »
i did some research and it is possible to easily add the forums menu to the wiki skin

smfcurve.php
Code: (find) [Select]
echo '
<div id="wrapper">
<div id="header">
<div class="frame">
<div id="top_section">
</div>

Code: (replace) [Select]
require("path/to/SSI.php");

echo '
<div id="wrapper">
<div id="header">
<div class="frame">
<div id="top_section">
', ssi_menubar(), '

</div>

in main.css

Code: (find) [Select]
#top_section
{
min-height: 65px;
overflow: hidden;
margin-bottom: 3px;
}

Code: (replace) [Select]
#top_section
{
min-height: 65px;
margin-bottom: 3px;
}

this is with the newest version that is on github that has the site_menu removed

[edit] new version on github has above changes and comments for adding SSI.php and the menu
« Last Edit: July 09, 2013, 08:07:50 AM by Illori »

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: SMF Curve for Mediawiki theme release
« Reply #22 on: July 09, 2013, 04:24:06 PM »
thanks for trying to helping me out.

but the changes in the code not working... :'(

Offline Illori

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 33,933
Re: SMF Curve for Mediawiki theme release
« Reply #23 on: July 09, 2013, 04:25:54 PM »
did you put in the correct path to your SSI.php? i tested it and it worked fine for me.

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: SMF Curve for Mediawiki theme release
« Reply #24 on: July 09, 2013, 04:35:47 PM »
i think so...

(using XAMPP for testing purposes)

require("F:\xampp\htdocs\aktuell\SSI.php");

Offline Illori

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 33,933
Re: SMF Curve for Mediawiki theme release
« Reply #25 on: July 09, 2013, 04:37:58 PM »
that should work as long as the file is actually there. i tested on wamp this morning and it worked fine.

i think if you have further questions about this you should open a separate thread in the coding board and see if others can help you out.

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: SMF Curve for Mediawiki theme release
« Reply #26 on: July 09, 2013, 04:43:52 PM »
OK.

thank you so much!

Offline Liam_michael

  • SMF Hero
  • ******
  • Posts: 2,197
    • Free Homework Help
Re: SMF Curve for Mediawiki theme release
« Reply #27 on: July 09, 2013, 08:34:08 PM »
Is this a standalone theme or does SMF need to be bridged to it?

Edit: Just tried it, it looks really nice!

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: SMF Curve for Mediawiki theme release
« Reply #28 on: July 16, 2013, 08:41:56 PM »
I`m using the Default SMF2 Theme "Curve".

Can help this posting:
http://www.simplemachines.org/community/index.php?topic=490111.msg3434829#msg3434829

that the wiki looks like the other Forum-Pages?

If yes, where exactly i need to edit the "smfcurve.php" ???

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: SMF Curve for Mediawiki theme release
« Reply #29 on: July 17, 2013, 09:41:37 AM »
The answer is: yes...!

I was able to fix almost all the problems alone, calling the SSI.php (WOW!!!)

after:
Code: [Select]
$this->html('headelement');
in the file smfcurve.php i add:

Code: [Select]
require_once("..\SSI.php");
 template_html_above();
  template_body_above();

Only when i click inside the wiki => Edit Page, the Icons for page-editing from the wiki (bold, italic,...) appear directly under the Forum-main-menu.

That looks a little ... ugly

Please, can somebody have a look?



Offline Kindred

  • Project Manager
  • SMF Master
  • *
  • Posts: 37,663
  • Gender: Male
  • Red Sox WIN!
    • wagner999 on Facebook
    • www.linkedin.com/in/wdwagner/ on LinkedIn
    • @Kindred_999 on Twitter
Re: SMF Curve for Mediawiki theme release
« Reply #30 on: July 17, 2013, 09:55:29 AM »
probably conflicting CSS
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support forums.  Thank you.

Offline Illori

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 33,933
Re: SMF Curve for Mediawiki theme release
« Reply #31 on: July 17, 2013, 10:17:07 AM »
i tested again the code i posted and it works fine without anything else added. you dont need the above or below html templates to make this work and that is what is causing your problems.

if you need further help with ssi please open a separate thread this thread is not for support.

Offline Draffi

  • Jr. Member
  • **
  • Posts: 268
Re: SMF Curve for Mediawiki theme release
« Reply #32 on: October 14, 2013, 02:54:44 PM »
I see now, there are no Footerlinks inside, where i need to put this?

http://www.mediawiki.org/wiki/Manual:Footer

Offline Illori

  • Doc Coordinator
  • SMF Master
  • *
  • Posts: 33,933
Re: SMF Curve for Mediawiki theme release
« Reply #33 on: October 14, 2013, 03:42:18 PM »
you would be best asking mediawiki for support, we are just providing the theme as is.

Offline emanuele

  • Language Moderator
  • SMF Super Hero
  • *
  • Posts: 14,070
  • Gender: Male
  • THERE'S JUST ME
Re: SMF Curve for Mediawiki theme release
« Reply #34 on: October 14, 2013, 06:15:38 PM »
I see now, there are no Footerlinks inside, where i need to put this?

http://www.mediawiki.org/wiki/Manual:Footer
Looking at MonoBook, I think you may have to add something like this:
Code: [Select]
<?php
$validFooterIcons $this->getFooterIcons"icononly" );
$validFooterLinks $this->getFooterLinks"flat" ); // Additional footer links

if ( count$validFooterIcons ) + count$validFooterLinks ) > ) { ?>

<div id="footer"<?php $this->html('userlangattributes'?>>
<?php
$footerEnd '</div>';
} else {
$footerEnd '';
}
foreach ( $validFooterIcons as $blockName => $footerIcons ) { ?>

<div id="f-<?php echo htmlspecialchars($blockName); ?>ico">
<?php foreach ( $footerIcons as $icon ) { ?>
<?php echo $this->getSkin()->makeFooterIcon$icon ); ?>

<?php }
?>

</div>
<?php }

if ( count$validFooterLinks ) > ) {
?>
<ul id="f-list">
<?php
foreach( $validFooterLinks as $aLink ) { ?>

<li id="<?php echo $aLink ?>"><?php $this->html($aLink?></li>
<?php
}
?>

</ul>
<?php }
echo 
$footerEnd;
?>

Where?...well, good question...
You may try just before:
Code: [Select]
', $this->html('bottomscripts') /* JS call to runBodyOnloadHook */ , 'Pay attention to php opening and closing tags and echo statements. ;)
Do you want to discover what I'm doing? Here it is!



Hai bisogno di supporto in Italiano?

* emanuele dislikes "like" and alike

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

It has been reported to me that I'm being snarky, feel free to be offended by my comments, I'm probably doing it on purpose...or not.

Offline kikwan

  • Semi-Newbie
  • *
  • Posts: 43
  • Gender: Male
Re: SMF Curve for Mediawiki theme release
« Reply #35 on: December 24, 2013, 08:59:41 AM »
Thank you Illori   :D :D

Offline dan4ever

  • Semi-Newbie
  • *
  • Posts: 58
  • SMF 2.0.7
Re: SMF Curve for Mediawiki theme release
« Reply #36 on: January 31, 2014, 05:23:17 PM »
Hi

My logo dispersed when installing this thema .

Any idé how I can get it back  :)

/Dan
« Last Edit: February 02, 2014, 06:16:53 AM by dan4ever »
/Dan Ohlsson, Admin at http://www.guldforum.se