Page 1 of 1

Simple portal clock block addon

Posted: 21 Aug 2010, 16:12
by Steve
Description:
Adds a flash clock block to your simple portal,you must have this portal mod installed here : viewtopic.php?f=8&t=354

upload this sidemenuclock.swf to both prosilver and subsilver2 theme/images folder.
download:
sidemenuclock.zip
Open language/en/mods/simple_portal.php
find:

Code: Select all

   'PORTAL_HEADLINE'			=> 'Portal',
add before:

Code: Select all

   'DATE_TIME'                  => 'DATE & TIME', 
prosilver instructions
Open styles/prosilver/template/simpleportal_body.html
find:

Code: Select all

<!-- Start User Menu -->
add after:

Code: Select all

<div class="forabg">
	<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt>{L_DATE_TIME}</dt>
				</dl>
			</li>
		</ul>
    <div class="sidemenu_custom">
		<ul class="topiclist forums">	
		    <li><div style="text-align: center;">
			<object type="application/x-shockwave-flash" data="{T_THEME_PATH}/images/sidemenuclock.swf" width="180" height="180">
				<param name="wmode" value="transparent" />
				<param name="movie" value="{T_THEME_PATH}/images/sidemenuclock.swf" />
			</object>         
	        </div></li>
  		</ul>
	</div>
	<span class="corners-bottom"><span></span></span></div>
</div>
Refresh template in admin control panel >> styles >> for prsilver.
pic:
simple-pro.PNG
subsilver2 instructions
Open styles/subsilver2/template/simpleportal_body.html
find:

Code: Select all

<!-- Start User Menu -->
add after:

Code: Select all

<table class="tablebg" width="100%" cellspacing="1" style="table-layout: fixed;">
   <tr>
    <th>{L_DATE_TIME}</th>
	</tr>
	<tr>
        <td class="cat"></td>
    </tr>
    <tr>
        <td class="row1" width="100%" valign="middle">
		<div class="username" style="text-align: center;">
			<object type="application/x-shockwave-flash" data="{T_THEME_PATH}/images/sidemenuclock.swf" width="100%" height="180">
				<param name="wmode" value="transparent" />
				<param name="movie" value="{T_THEME_PATH}/images/sidemenuclock.swf" />
			</object> 
	    </div>
		</td>
    </tr>
</table>
Refresh template in admin control panel >> styles >> for subsilver2.
pic:
subp.PNG

Re: Simple portal clock block addon

Posted: 21 Aug 2010, 23:44
by Stoker
Cool :)

Re: Simple portal clock block addon

Posted: 22 Aug 2010, 10:54
by Steve
portal.php where is it :D

Re: Simple portal clock block addon

Posted: 22 Aug 2010, 12:18
by Stoker
Its cool, but I am not into this flash thing.
But I no other people like and use it ;)