 |
| |
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
uffe Site Admin

 |
Posted: Mon Jan 21, 2008 8:26 pm Post subject: MOD Title: Points in header mod |
 |
|
| Code: | ########################################################
## MOD Title: Points in header mod
## MOD Author: volf < volf78@gmail.com > (N/A) http://www.18v.biz/portal.html
## MOD Description: This mod will display your points in the header of your site. A point mod is required
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 1 Minutes
##
## Files To Edit: 2
## includes/page_header.php
## templates/subSilver/overall_header.tpl
##
## Included Files: n/a
##
##############################################################
## Author Notes:
## This mod will display: (Welcome "yourname", you have : xxxx coins) in the header
## In final version (1.0.0) the credits go to aUsTiN who's advice solved all known problems,
## thats another one i owe you, thanks bud
##
## The variables used in overall_header.tpl can be used anywhere on the site.
##
##############################################################
## Version 1.0.0 ( 5/01/05 )
## Final release
## Fix Unneeded query deleted
## Fix The mod will now ignore guests
##
## Version 0.0.1 ( 5/01/05 )
## First public release
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
//
// Obtain number of new private messages
// if user is logged in
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// Start Points in header mod by volf
//
if ($userdata['user_id'] != ANONYMOUS)
{
$template->assign_block_vars('point', array(
'USERNAME' => $userdata['username'],
'NAME' => ($board_config['points_name']) ? $board_config['points_name'] : 'coins',
'POINTS' => $userdata['user_points'])
);
}
//
// End points in header mod
//
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
#at the bottom of the file,, replace "coins" with whatewer you call your points on your site
<br />
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN point -->
<p align="center">
<span class="genmed">Welcome {point.USERNAME}, you have : {point.POINTS} {point.NAME}</span>
</p>
<!-- END point -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM |
|
|
| |
|
|
|
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
|  |