[IMPROVMENT] Added option to link transaction-ids to transaction on blockchainwebsite
This commit is contained in:
parent
b2ac77d9a5
commit
3b980cbf5d
@ -76,6 +76,20 @@ $aSettings['website'][] = array(
|
||||
'name' => 'website_blockexplorer_disabled', 'value' => $setting->getValue('website_blockexplorer_disabled'),
|
||||
'tooltip' => 'Enabled or disable the blockexplorer URL feature. Will remove any links using the blockexplorer URL.'
|
||||
);
|
||||
$aSettings['website'][] = array(
|
||||
'display' => 'Transactionexplorer URL', 'type' => 'text',
|
||||
'size' => 50,
|
||||
'default' => 'http://explorer.litecoin.net/tx/',
|
||||
'name' => 'website_transactionexplorer_url', 'value' => $setting->getValue('website_transactionexplorer_url'),
|
||||
'tooltip' => 'URL to the transactionexplorer website for your blockchain. Will append the transactionid to the URL. Leave empty to disabled this.'
|
||||
);
|
||||
$aSettings['website'][] = array(
|
||||
'display' => 'Disable Transactionexplorer', 'type' => 'select',
|
||||
'options' => array( 0 => 'No', 1 => 'Yes' ),
|
||||
'default' => 0,
|
||||
'name' => 'website_transactionexplorer_disabled', 'value' => $setting->getValue('website_transactionexplorer_disabled'),
|
||||
'tooltip' => 'Enabled or disable the transactionexplorer URL feature. Will remove any links using the transactionexplorer URL.'
|
||||
);
|
||||
$aSettings['website'][] = array(
|
||||
'display' => 'Chaininfo URL', 'type' => 'text',
|
||||
'size' => 50,
|
||||
@ -351,4 +365,3 @@ $aSettings['monitoring'][] = array(
|
||||
'tooltip' => 'Create per-monitor API keys and save them here to propagate your uptime statistics.'
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
@ -95,10 +95,12 @@ $aGlobal['website']['slogan'] = $setting->getValue('website_slogan');
|
||||
$aGlobal['website']['email'] = $setting->getValue('website_email');
|
||||
$aGlobal['website']['api']['disabled'] = $setting->getValue('disable_api');
|
||||
$aGlobal['website']['blockexplorer']['disabled'] = $setting->getValue('website_blockexplorer_disabled');
|
||||
$aGlobal['website']['transactionexplorer']['disabled'] = $setting->getValue('website_transactionexplorer_disabled');
|
||||
$aGlobal['website']['chaininfo']['disabled'] = $setting->getValue('website_chaininfo_disabled');
|
||||
$aGlobal['website']['donors']['disabled'] = $setting->getValue('disable_donors');
|
||||
$aGlobal['website']['about']['disabled'] = $setting->getValue('disable_about');
|
||||
$setting->getValue('website_blockexplorer_url') ? $aGlobal['website']['blockexplorer']['url'] = $setting->getValue('website_blockexplorer_url') : $aGlobal['website']['blockexplorer']['url'] = 'http://explorer.litecoin.net/block/';
|
||||
$setting->getValue('website_transactionexplorer_url') ? $aGlobal['website']['transactionexplorer']['url'] = $setting->getValue('website_transactionexplorer_url') : $aGlobal['website']['transactionexplorer']['url'] = 'http://explorer.litecoin.net/tx/';
|
||||
$setting->getValue('website_chaininfo_url') ? $aGlobal['website']['chaininfo']['url'] = $setting->getValue('website_chaininfo_url') : $aGlobal['website']['chaininfo']['url'] = 'http://allchains.info';
|
||||
|
||||
// Google Analytics
|
||||
|
||||
@ -95,7 +95,11 @@
|
||||
{else}<span class="unconfirmed">Unconfirmed</span>{/if}
|
||||
</td>
|
||||
<td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].coin_address|escape}')">{$TRANSACTIONS[transaction].coin_address|truncate:20:"...":true:true}</a></td>
|
||||
<td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].txid|escape}')">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td>
|
||||
{if ! $GLOBAL.website.transactionexplorer.disabled}
|
||||
<td><a href="{$GLOBAL.website.transactionexplorer.url}{$TRANSACTIONS[transaction].txid|escape}" title="{$TRANSACTIONS[transaction].txid|escape}">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td>
|
||||
{else}
|
||||
<td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].txid|escape}')" title="{$TRANSACTIONS[transaction].txid|escape}">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td>
|
||||
{/if}
|
||||
<td>{if $TRANSACTIONS[transaction].height == 0}n/a{else}<a href="{$smarty.server.PHP_SELF}?page=statistics&action=round&height={$TRANSACTIONS[transaction].height}">{$TRANSACTIONS[transaction].height}</a>{/if}</td>
|
||||
<td><font color="{if $TRANSACTIONS[transaction].type == 'Credit' or $TRANSACTIONS[transaction].type == 'Credit_PPS' or $TRANSACTIONS[transaction].type == 'Bonus'}green{else}red{/if}">{$TRANSACTIONS[transaction].amount|number_format:"8"}</td>
|
||||
</tr>
|
||||
|
||||
@ -102,7 +102,11 @@
|
||||
{else}<span class="unconfirmed">Unconfirmed</span>{/if}
|
||||
</td>
|
||||
<td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].coin_address|escape}')">{$TRANSACTIONS[transaction].coin_address|truncate:20:"...":true:true}</a></td>
|
||||
<td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].txid|escape}')">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td>
|
||||
{if ! $GLOBAL.website.transactionexplorer.disabled}
|
||||
<td><a href="{$GLOBAL.website.transactionexplorer.url}{$TRANSACTIONS[transaction].txid|escape}" title="{$TRANSACTIONS[transaction].txid|escape}">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td>
|
||||
{else}
|
||||
<td><a href="#" onClick="alert('{$TRANSACTIONS[transaction].txid|escape}')" title="{$TRANSACTIONS[transaction].txid|escape}">{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}</a></td>
|
||||
{/if}
|
||||
<td>{if $TRANSACTIONS[transaction].height == 0}n/a{else}<a href="{$smarty.server.PHP_SELF}?page=statistics&action=round&height={$TRANSACTIONS[transaction].height}">{/if}{$TRANSACTIONS[transaction].height}</a></td>
|
||||
<td><font color="{if $TRANSACTIONS[transaction].type == 'Credit' or $TRANSACTIONS[transaction].type == 'Credit_PPS' or $TRANSACTIONS[transaction].type == 'Bonus'}green{else}red{/if}">{$TRANSACTIONS[transaction].amount|number_format:"8"}</td>
|
||||
</tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user