
## Author Notes: IMPORTANT
## Requires Zarath's Item Shop Mod, the Points Mod & my original
## usable items mod (see other files in zip).
ilpil wrote: theanimewizard:
I added Class and Level to my viewtopic.php by doing this:
That should work, I dunno if this causes extreme load on the server, it doesn't look that badCode: Select all
Open viewtopic.php [ - FIND - ] $poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : ''; [ - BEFORE, ADD - ] $poster_level = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? '' . $postrow[$i]['user_statlevel'] : ''; $poster_class = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? '' . $postrow[$i]['user_class'] : ''; [ - FIND - ] 'POSTER_FROM' => $poster_from, [ - BEFORE, ADD - ] 'POSTER_CLASS' => $poster_class, 'POSTER_LEVEL' => $poster_level, Open templates/subSilver/viewtopic_body.tpl Add this wherever you want: {postrow.POSTER_LEVEL} {postrow.POSTER_CLASS} And the class-image: <img src="shop/uses/arena/arena_player_{postrow.POSTER_CLASS}2.gif">
I think you can follow the same pattern to include victories/defeats/HP/MP and so on.
Earthk wrote:## Author Notes: IMPORTANT
## Requires Zarath's Item Shop Mod, the Points Mod & my original
## usable items mod (see other files in zip).
Opps, I miss that one![]()
Moogie, it'll be cool if you can change all the php_ into variables cause
I've to change all of them in all the .php files while installing. The
installer.php also will need to do that too. Not urgent, but will be nice to
have.
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_id,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.user_id,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
u.user_class,u.user_statlevel,
#
#-----[ FIND ]------------------------------------------
#
//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
//
for($i = 0; $i < $total_posts; $i++)
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
$poster_class = $postrow[$i]['user_class'];
$poster_statlevel = $postrow[$i]['user_statlevel'];
#
#-----[ FIND ]------------------------------------------
#
'POSTER_RANK' => $poster_rank,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'POSTER_CLASS' => $poster_class,
'POSTER_LEVEL' => $poster_statlevel,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ ADD (wherever you want the HQ link) ]------------------------------------------
#
{postrow.POSTER_CLASS}
{postrow.POSTER_LEVEL}
#
#-----[ SAVE/CLOSE/UPLOAD ALL FILES ]------------------------------------------
#
# EoM
Code: Select all
ALTER TABLE pokem_shopitems ADD battle_effect tinyint(3) unsigned NOT NULL default '0'
+++ Error: Table 'pokevall_site3.pokem_shopitems' doesn't exist
ALTER TABLE pokem_shopitems ADD mp_cost tinyint(3) unsigned NOT NULL default '0'
+++ Error: Table 'pokevall_site3.pokem_shopitems' doesn't exist
ALTER TABLE pokem_shopitems ADD type varchar(32) NOT NULL default ''
+++ Error: Table 'pokevall_site3.pokem_shopitems' doesn't exist
ALTER TABLE pokem_shopitems ADD class text NOT NULL default ''
+++ Error: Table 'pokevall_site3.pokem_shopitems' doesn't exist