Welcome on custom page

Download and support for PhpBB3 Welcome On Index
Locked
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Welcome on custom page

Post by martin123456 »

I have just created a custom page and would like the welcome mod on it here is what i done so far

i took the the code for styles/prosilver/template/index_body.html (the install code)

Code: Select all

<!-- IF not S_IS_BOT -->
<div class="forabg">
         <div class="inner"><span class="corners-top"><span></span></span>
         <ul class="topiclist">
            <li class="header">
               <dl class="icon">
                  <dt>{L_WELCOME_TO_MOD} {SITENAME}</dt>
                                              </dl>
            </li>
         </ul>
         <ul class="topiclist forums">
         <li>
            <dl>
               <dd style="padding:5px; text-align: center; border:none;">
               <!-- IF USER_AVATAR -->{USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="" /><!-- ENDIF -->
               </dd>
               <dd class="lastpost" style="padding:5px; width:40%;">
               <p>{S_WELCOME}</p>
               <span><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<br />{CURRENT_TIME}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --><!-- IF S_USER_LOGGED_IN --><br /><br />{S_JOINED_DATE}<br />{MEMBER_FOR}<!-- ENDIF --></span>
               </dd>
               <dd class="lastpost" style="padding:5px; width:36%;"><span>{TOTAL_POSTS} &bull; {TOTAL_TOPICS}<br />{TOTAL_USERS}<br />{NEWEST_USER}
               <!-- IF S_DISPLAY_ONLINE_LIST --><br /><br />{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<!-- ENDIF --></span>
               </dd>
            </dl>
         </li>
         </ul>
<span class="corners-bottom"><span></span></span></div></div>
<!-- ENDIF -->
and placed it on my custom page html file and it works to a point but i cant get it to pull the rest of the data that is needed any hints in the right direction would be cool i guess it would be easy to do if there was files that come with the welcome mod but it dont so thats that lol

here is how it looks right now
mod test.png
and here is how it should look
tests 2.png
take a peek here http://phpbbcodes.dyndns.org/ its only where i play with mods
Last edited by martin123456 on 01 Nov 2011, 14:43, edited 1 time in total.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3573
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Welcome on custom page

Post by Stoker »

You need to take a peek on index.php and steal some code from it.
The greatest achievement in life is to inspire others
Board rules! No PM support
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Welcome on custom page

Post by martin123456 »

Thanx stoker il did have a glance and some thing told me to steal from there :D the funny thing is i already did this once when i had a music site up and running but then i got told to close :D so deleted the lot
User avatar
Stoker
Site Admin
Site Admin
Posts: 3573
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Welcome on custom page

Post by Stoker »

I will write up a portal addon for this mod.
Then You can use that to add it on your custom page.
The greatest achievement in life is to inspire others
Board rules! No PM support
User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 765
Joined: 25 Jul 2011, 13:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!
Contact:

Welcome on custom page

Post by martin123456 »

Thanx stoker as of yet i have not had the time to play with it as the wife as got me laying floor tiles all over the house lmao
Locked