Author Topic: [Tutorial] Add a new table (like who's online) in your frontpage  (Read 5639 times)

0 Members and 1 Guest are viewing this topic.

Offline senloel

  • Full Member
  • ***
  • Posts: 196
    • View Profile
[Tutorial] Add a new table (like who's online) in your frontpage
« on: September 12, 2013, 06:59:38 PM »
Hey,

this is just a little Tutorial (MOD) which explains how to add a new table in your frontpage.
It will look like the who's online-table and you can fill it with your content.


Let's start.
Please make a backup first!

Step 1 :arrow: open home.html in your template folder (your-website/templates/your-template/home.html)

Step 2 :arrow: add this whereever you want:


                 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <
tr>
                      <
td class="head1">
                        <
table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <
tr>
                            <
td class="head1" valign="top">{lang_your_headline}</td>
                          </
tr>
                        </
table>
                      </
td>
                    </
tr>
                    <
tr>
                      <
td class="head1">
                       
yourcontent
                      
</td>
                    </
tr>
                  </
table><br>


Step 3 :arrow: replace yourcontent with a text, image or whatever ;)

Step 4 :arrow: open main.php in your language folder (your-website/lang/your-language/main.php)

Step 5 :arrow: find
?>

and add this above:

$lang['your_headline'] = "Name of your headline";

To change the name of the headline, replace Name of your headline with your text.


Examples:
If you want to add the new table below the categories section:

Example Step 6 :arrow: find

                            
<td class="row2" valign="top">{categories}</td>
                          </
tr>
                         </
table>
                        </
td>
                      </
tr>
                    </
table>


and add the same as explained in Step 2 below.

That's it!


Regards,
Patrick


Rembrandt

  • Guest
Re: [Tutorial] Add a new table (like who's online) in your frontpage
« Reply #1 on: September 12, 2013, 07:42:49 PM »
Thank You!  :)

mfg Andi