View Full Version: [S] Bleh! Simple Machines!

RPG-Directory > Solved Support Topics > [S] Bleh! Simple Machines!



Title: [S] Bleh! Simple Machines!
Description: It's so difficult to work with! ><


Kesra - June 28, 2008 12:39 AM (GMT)
Okay I am trying to figure out how to do a few things with Simple Machines.

-I have no idea how to change the news header
-I can't figure out how to add a links rotation
-I'm starting to wonder if Simple Machines was a great idea after all....

Cal - June 28, 2008 01:32 AM (GMT)
Simple Machines is a terrific forum system, it just takes a little more nuts and bolts than InvisionFree does (since there's a lot more freedom).

By 'news' header, do you mean you want to add news, turn it off entirely, or rename the thing that says 'News:' itself? To add more news options, go to admin -> main -> news and edit what's in there. To turn it off, go to admin -> configuration -> current theme and uncheck 'enable news'. To change the label, you'll need to edit lang.english.php within the Theme folder of whatever theme you're using (if you're using 1.1.5).

Define 'links rotation', please? Like a display of affiliates and so forth? You'll need to add an extra div for it in the index.template.php of your theme. You get to that via admin -> configuration -> current theme -> modify the main template. You can edit absolutely everything about your Theme from there.

Kesra - June 28, 2008 02:21 AM (GMT)
I suppose then I just don't know how to use this new found freedom. And all I wanted to do was edit what the news was.

As for link rotation

Yes I'm wanting to be able to add a links rotation to probably the bottom (at least) of the screen for Affiliates and such.

Cal - June 28, 2008 02:31 AM (GMT)
Yeah, editing the news is the first option I mentioned, admin -> main -> news -> and follow the directions there. :)

Where you put the links section depends on your skin. I have mine at the bottom (please click the Three Wishes or Silvermoon buttons to see what I mean), and to do this I just added a new div to the very beginning of template_body_below.

CODE
function template_body_below()
{
  global $context, $settings, $options, $scripturl, $txt;

       echo '
     <div id="infobar">
           <div class="infobox" style="width:796px; height: 105px; text-align: center">
                 <div class="boxtitle" style="text-align: center">Links & Affiliates</div>
                 <p style="margin: 2px 0 0 0;">
                           ~~~ blah blah blah affiliates in here blah blah ~~~
                 </p>
           </div>
     </div>
     <div style="clear: both"></div>

Kesra - June 28, 2008 02:41 AM (GMT)
About the news, thank you very much. I just now finished kicking myself over how stupidly easy that actually was.


As for the links, so in 1.1.5 it has of course the differant boxes when I go to edit the template (I'm just using a different colored default template) labled 'beginning on line #' on the index.template.php file

-Is this the page I will be adding the script to?
-And which box?


Thank you for being so patient. I'm such a Newb when it comes to the nuts and bolts of a forum like this (First access to php EVER!) o.O

Cal - June 28, 2008 07:35 AM (GMT)
Yeah, SMF sections it out by function so it's easier to find it. I'm running 2.0, and the function name changed -- in 1.1.5, it's function template_main_below(). Just search for that on the page and it will find it for you in whatever skin you're using. Depending on what skin you're using you'll need divs or just to add a new table row; without seeing it I can't really tell you which to do more specifically. Looking at my 1.1.5 board, it'd be another <tr><td> right before the first closing table tag in template_main_below -- you can use just plain HTML in there, though be careful to escape any apostrophes (it\'s rather than it's).

Kesra - June 28, 2008 08:04 AM (GMT)
Alright thank you for your help.

Someone wound up directing me to a mod that adds a place I can edit a header and a footer using basic html. I think I'm just a little too dense for PHP

Thank you once again for you time and I'm going to save the information you gave me in case I need it again.




Hosted for free by InvisionFree