Eagle Creek
06-11-2006, 07:38 PM
Hi!
I have two questions (and maybe it's one).
I have customized my postbit_legacy templated and changes it to this:
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
**********************
<if condition="$post['rank']"><div id="rank_popup_$post[postid]" style="cursor: pointer;"><a href="">$post[rank]</a> <script type="text/javascript"> vbmenu_register("rank_popup_$post[postid]", true); </script></div>
<div class="vbmenu_popup" id="rank_popup_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0" width="270">
<tr><td class="thead" colspan="2">Classificatie</td></tr>
<tr><td class="alt1">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td><img src="images/aangepast/pip_1.gif"></td><td>20 - 99 berichten</td></tr>
<tr><td><img src="images/aangepast/pip_2.gif"></td><td>100 - 499 berichten</td></tr>
<tr><td><img src="images/aangepast/pip_3.gif"></td><td>500 - 999 berichten</td></tr>
<tr><td><img src="images/aangepast/pip_4.gif"></td><td>1000 - 4999 berichten</td></tr>
<tr><td><img src="images/aangepast/pip_5.gif"></td><td>5000 - 9999 berichten</td></tr>
<tr><td><img src="images/aangepast/pip_6.gif"></td><td>10000 - 14999 berichten</td></tr>
<tr><td><img src="images/aangepast/pip_7.gif"></td><td>> > dan 15000 berichten</td></tr>
</table>
</td><tr></table></div></if>
**********************
**********************
<if condition="$post['field6'] == 'Ja' AND is_member_of($bbuserinfo, 5,6,7,9,17)"><img border="0" src="http://img167.imageshack.us/img167/6940/blacklist25yo.gif" width="16" height="16"> <a target="_blank" href="usernote.php?u=$post[userid]"><strong>User Blacklisted</strong></a></if>
**********************
<if condition="$post['isstaffrank']">
<div class="smallfont">
<if condition="$post['staffrank_opentag']">$post[staffrank_opentag]</if>
<if condition="$post['staffrank']">$post[staffrank]</if>
<if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if>
</div>
</if>
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
**********************
<div class="smallfont">
<if condition="$post['field3']">$vbphrase[os]<br> $post[field3]</if><br>
<if condition="$post['field5']">$vbphrase[exp] $post[field5]</if>
<div>
**********************
$vbphrase[posts]: $post[posts]
</div>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>
</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>
As you can see, the things between ******* are editted.
But when I upgrade my board, I have to make those changes again and again..
Is there any possibility to make hook for these modifications?
I have two questions (and maybe it's one).
I have customized my postbit_legacy templated and changes it to this:
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
**********************
<if condition="$post['rank']"><div id="rank_popup_$post[postid]" style="cursor: pointer;"><a href="">$post[rank]</a> <script type="text/javascript"> vbmenu_register("rank_popup_$post[postid]", true); </script></div>
<div class="vbmenu_popup" id="rank_popup_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0" width="270">
<tr><td class="thead" colspan="2">Classificatie</td></tr>
<tr><td class="alt1">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td><img src="images/aangepast/pip_1.gif"></td><td>20 - 99 berichten</td></tr>
<tr><td><img src="images/aangepast/pip_2.gif"></td><td>100 - 499 berichten</td></tr>
<tr><td><img src="images/aangepast/pip_3.gif"></td><td>500 - 999 berichten</td></tr>
<tr><td><img src="images/aangepast/pip_4.gif"></td><td>1000 - 4999 berichten</td></tr>
<tr><td><img src="images/aangepast/pip_5.gif"></td><td>5000 - 9999 berichten</td></tr>
<tr><td><img src="images/aangepast/pip_6.gif"></td><td>10000 - 14999 berichten</td></tr>
<tr><td><img src="images/aangepast/pip_7.gif"></td><td>> > dan 15000 berichten</td></tr>
</table>
</td><tr></table></div></if>
**********************
**********************
<if condition="$post['field6'] == 'Ja' AND is_member_of($bbuserinfo, 5,6,7,9,17)"><img border="0" src="http://img167.imageshack.us/img167/6940/blacklist25yo.gif" width="16" height="16"> <a target="_blank" href="usernote.php?u=$post[userid]"><strong>User Blacklisted</strong></a></if>
**********************
<if condition="$post['isstaffrank']">
<div class="smallfont">
<if condition="$post['staffrank_opentag']">$post[staffrank_opentag]</if>
<if condition="$post['staffrank']">$post[staffrank]</if>
<if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if>
</div>
</if>
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
**********************
<div class="smallfont">
<if condition="$post['field3']">$vbphrase[os]<br> $post[field3]</if><br>
<if condition="$post['field5']">$vbphrase[exp] $post[field5]</if>
<div>
**********************
$vbphrase[posts]: $post[posts]
</div>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>
</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>
As you can see, the things between ******* are editted.
But when I upgrade my board, I have to make those changes again and again..
Is there any possibility to make hook for these modifications?