4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 18, 2014, 08:24:09 AM

Login with username, password and session length
Search:     Advanced search
Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Templates & Styles (Releases & Support) (Moderator: Rembrandt)
| | |-+  [Tutorial] Add a new table (like who's online) in your frontpage
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
This topic has not yet been rated!
Author Topic: [Tutorial] Add a new table (like who's online) in your frontpage  (Read 2033 times)
senloel
Full Member
***
Offline Offline

Posts: 174

Thank You
-Given: 0
-Receive: 7


View Profile
« 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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
                 <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 Wink

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:

1
$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
1
2
3
4
5
6
                            <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


Follow members gave a thank to your post:
Rembrandt

For this post, 1 member gave a thank you!
Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4098

Thank You
-Given: 108
-Receive: 860

Vienna


View Profile WWW
« Reply #1 on: September 12, 2013, 07:42:49 PM »

Thank You!  Smile

mfg Andi
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.219 seconds with 24 queries.
Post your comments here