Insert Custom Scripts (HTML and Javascript)
|
brijeshb
Joined: 2009-01-19
Posts: 1 |
Posted: Mon, 2009-01-19 09:13
|
|
/* Tags: insert javascript, html code snippets, visitor maps, cluster maps, maps */ I wanted to add visitor map widget from http://whos.amung.us to my gallery2 website. The gallery uses the Carbon theme and here is how I embedded the tags into the sidebar. 1. Open .....themes/carbon/templates/sidebar.tpl 2. After this part of the existing code
<!-- ##### Existing Code in sidebar.tpl ##### -->
<div id="gsSidebar" class="gcBorder1">
{* Show the sidebar blocks chosen for this theme *}
{foreach from=$theme.params.sidebarBlocks item=block}
{g->block type=$block.0 params=$block.1 class="gbBlock"}
{/foreach}
</div>
<!-- #################### -->
Insert the following code from http://whos.amung.us website:
<!-- ##### INSERT THIS ##### -->
<div style="width:148px;text-align:center;margin:0;padding:0;">
<a href="http://whos.amung.us/maps/">Visitor Map!</a>
<br />
<embed src="http://widgets.amung.us/flash/v2map.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" allowScriptAccess="always" allowNetworking="all" type="application/x-shockwave-flash" flashvars="wausitehash=ho45waougr1q&map=night&pin=star-orange&link=no" width="148" height="74" />
<div style="width:148px;height:74px;position:relative;margin:0 auto;margin-top:-74px;">
<a href="http://whos.amung.us/stats/ho45waougr1q/"><img src="http://maps.amung.us/ping/ho45waougr1q.gif" border="0" width="148" height="74" /></a>
</div>
</div>
<!-- #################### -->
and Save the .tpl file. 3. Goto Siteadmin > Maintenance and click Run Now for Delete template cache Here is my gallery http://photos.brijeshbhaskaran.com. Click the sidebar to see the visitor map. About my installation:
|
|
