vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Advanced Warning System (Beta Version) (https://vborg.vbsupport.ru/showthread.php?t=95921)

Delphiprogrammi 03-30-2006 07:17 PM

Quote:

Originally Posted by hornstar1337
Okay I understand the part about going to /includes/functions_warning.php
but which function needs to be changed to SendPmAws is it semdpm() or just the sendpm part?

And what are all the calls? and where are they? which files?


Thanks

files that need to be modified
  • Warn.php
  • /includes/cron/kill_warns.php
  • includes/functions_warning.php
  • /admincp/admin_warn.php(this has also the function declaration you need to change it there)

also check the used plugins ...

Hornstar 03-31-2006 06:06 AM

What is the function declaration?

you also said something about the calls? I'm not sure what that is.

and in those files you stated what needs to be changed, can you give me a little example, so i dont stuff anything up lol

is it this.

semdpm() needs to be changed to SendPmAws()

i think that looks correct, but im really not sure what the calls are, and what would i need to search in the pugins, and what would need to be changed there.

Thanks for your help.

Nathan2006 03-31-2006 07:56 AM

Hello,

IS there anyway to move this warnign sign cos it looks wrong where it is now :(

I have added a screen shot so you know what I mean

Thanks for any help :)

Delphiprogrammi 03-31-2006 09:44 AM

Quote:

Originally Posted by hornstar1337
What is the function declaration?

you also said something about the calls? I'm not sure what that is.

and in those files you stated what needs to be changed, can you give me a little example, so i dont stuff anything up lol

is it this.

semdpm() needs to be changed to SendPmAws()

i think that looks correct, but im really not sure what the calls are, and what would i need to search in the pugins, and what would need to be changed there.

Thanks for your help.

PHP Code:

function SendPM($message,$title,$to,$from)
{
    global 
$db;
    
//#################################################
    // Permssions Crap XD your getting a damn PM!! XD
    // Parse It Out
    //#################################################
    
$title addslashes(htmlspecialchars_uni(fetch_censored_text($title)));
    
$message addslashes(fetch_censored_text($message));
    
$to=$db->query_first("SELECT * FROM ".TABLE_PREFIX."user WHERE userid='{$to}'");  // Grab Member Its Going TO
    
$from=$db->query_first("SELECT * FROM ".TABLE_PREFIX."user WHERE userid='{$from}'"); // Grab Member Its Coming FROM
    
    // Insert The Message
    
$to_string["$to[userid]"] = $to['username'];
    
$now=time();
    
$db->query_write("INSERT INTO ".TABLE_PREFIX."pmtext (fromuserid,fromusername,title,message,touserarray,iconid,dateline,showsignature  ,allowsmilie) VALUES ('{$from['userid']}','".addslashes($from['username'])."','{$title}','{$message}','".addslashes(serialize($to_string))."','4','{$now}','1','1')");
    
// id thingy
    
$db->query_write("INSERT INTO ".TABLE_PREFIX."pm (pmtextid, userid) VALUES (".$db->insert_id().", '{$to['userid']}')");
    
    if (
$to['pmpopup'])
    {
        
$db->shutdown_query("UPDATE " TABLE_PREFIX "user SET pmtotal=pmtotal+1, pmunread=pmunread+1, pmpopup=2 WHERE userid='{$to['userid']}'");
    }
    else
    {
        
$db->shutdown_query("UPDATE ".TABLE_PREFIX."user SET pmtotal=pmtotal+'1',pmunread=pmunread+'1' WHERE userid='{$to['userid']}'");
    }

    
    
// Update pm count
    


change that to

PHP Code:

function SendPMAws($message,$title,$to,$from)
{
    global 
$db;
    
//#################################################
    // Permssions Crap XD your getting a damn PM!! XD
    // Parse It Out
    //#################################################
    
$title addslashes(htmlspecialchars_uni(fetch_censored_text($title)));
    
$message addslashes(fetch_censored_text($message));
    
$to=$db->query_first("SELECT * FROM ".TABLE_PREFIX."user WHERE userid='{$to}'");  // Grab Member Its Going TO
    
$from=$db->query_first("SELECT * FROM ".TABLE_PREFIX."user WHERE userid='{$from}'"); // Grab Member Its Coming FROM
    
    // Insert The Message
    
$to_string["$to[userid]"] = $to['username'];
    
$now=time();
    
$db->query_write("INSERT INTO ".TABLE_PREFIX."pmtext (fromuserid,fromusername,title,message,touserarray,iconid,dateline,showsignature  ,allowsmilie) VALUES ('{$from['userid']}','".addslashes($from['username'])."','{$title}','{$message}','".addslashes(serialize($to_string))."','4','{$now}','1','1')");
    
// id thingy
    
$db->query_write("INSERT INTO ".TABLE_PREFIX."pm (pmtextid, userid) VALUES (".$db->insert_id().", '{$to['userid']}')");
    
    if (
$to['pmpopup'])
    {
        
$db->shutdown_query("UPDATE " TABLE_PREFIX "user SET pmtotal=pmtotal+1, pmunread=pmunread+1, pmpopup=2 WHERE userid='{$to['userid']}'");
    }
    else
    {
        
$db->shutdown_query("UPDATE ".TABLE_PREFIX."user SET pmtotal=pmtotal+'1',pmunread=pmunread+'1' WHERE userid='{$to['userid']}'");
    }

    
    
// Update pm count
    


carefull with upper / lowercase in functionames ...

in the files i posted before you would call your new function like this

PHP Code:

SendPMAws($message,$title,$to,$from); 

every occourance used will need to be replaced or you'll get errors

Delphiprogrammi 03-31-2006 10:18 AM

Quote:

Originally Posted by Nathan2006
Hello,

IS there anyway to move this warnign sign cos it looks wrong where it is now :(

I have added a screen shot so you know what I mean

Thanks for any help :)

offcource open your template postbit_legacy and find

HTML Code:

$post[iplogged]
 

below add
HTML Code:

<if condition="THIS_SCRIPT=='showthread'">
                                <if condition="$showwarnsignmgm==1">
                                      <!-- Mgm can click on the stop sign to see the warnings -->
                                      <A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
                                </if>
                               
                                <if condition="$showwarnsign==1">
                                      <!-- Simple Users can only see the warn sign but not the warnings -->
                                      <img src="images/misc/warn.gif" border=0>
                                </if>
                        </if>
                        <!-- End of show warned sign -->

and offcource remove the same code from the original spot otherwise it would show the warned sign two times

Nathan2006 03-31-2006 10:26 AM

Hi Erik thank you for replying.

I have added the code and removed the other code from postbit_lagacy.

The only problem its not showing up in the postbit :(

Here is all the code that I have in there.

HTML Code:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
        $spacer_open
        <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
        <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>       
</if>


<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead" $post[scrolltothis]>
                <div class="normal" style="float:$stylevar[right]">
                        &nbsp;
<!-- checks for warning system -->
  <if condition="THIS_SCRIPT=='showthread' AND $buttons=='Text'">
        <if condition="$showwarnlink==1">
        <if condition="$vboptions['warn_allownotes']==1">
  <a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'>Add Note for $post[username]</a>&nbsp;</if>
                <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a>&nbsp;
        </if>
        <if condition="$showviewwarnlink==1">
                <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a>&nbsp;
        </if>
        <if condition="$showviewyourslink==1">
                <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> &nbsp;
        </if>
  </if>
  <if condition="THIS_SCRIPT=='showthread' AND $buttons=='Buttons'">
        <if condition="$showwarnlink==1">
        <if condition="$vboptions['warn_allownotes']==1">
        <a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Add Note for $post[username]" accesskey="n" onClick="window.location='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
        </if>
                <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
        </if>
        <if condition="$showviewwarnlink==1">
                <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></a>&nbsp;
        </if>
        <if condition="$showviewyourslink==1">
                <a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a>&nbsp;
        </if>
  </if>
  <!-- end of warning system -->
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> &nbsp;</if>
                        <if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> &nbsp;</if>
                        <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> &nbsp;</if>
                        $post[iplogged]
<if condition="THIS_SCRIPT=='showthread'">
                                <if condition="$showwarnsignmgm==1">
                                      <!-- Mgm can click on the stop sign to see the warnings -->
                                      <A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
                                </if>
                               
                                <if condition="$showwarnsign==1">
                                      <!-- Simple Users can only see the warn sign but not the warnings -->
                                      <img src="images/misc/warn.gif" border=0>
                                </if>
                        </if>
                        <!-- End of show warned sign -->
                        <if condition="$show['inlinemod']">
                        <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
                        </if>
                </div>
               
                <div class="normal">
                        <!-- status icon and date -->
                        <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
                        <if condition="!$show['announcement']">
                                $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        <else />
                                <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                        </if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->
                </div>
        </td>
</tr>
<tr>
        <td class="alt2" style="padding:0px">
                <!-- user info -->
                <table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
                <tr>
                        <if condition="$show['avatar']  AND (($avatarthress>0 AND $post[warning_level]<=$avatarthress) OR $avatarthress==0)"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
                        <td nowrap="nowrap">
                       
                                <!-- vbPlaza start -->
<div id="postmenu_$post[postid]" <if condition="$post['namestyle']">style="$post[namestyle]"</if>>
<!-- vbPlaza end -->
                                        <if condition="$show['profile']">
                                        <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><!-- v3 Arcade --> <if condition="$post['arcadeawards']"><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><img src="$vboptions[arcadeimages]/trophy.gif" align="absmiddle" alt="$vbphrase[arcade_champion]" border="0" /></a></if>
<!-- /v3 Arcade -->
                                        $post[onlinestatus]
                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        $post[musername]
                                        </if>
                                </div>
                               
                                <!-- vbPlaza start -->
<if condition="$post['usertitle']"><div class="smallfont" <if condition="$post['titlestyle']">style="$post[titlestyle]"</if>>$post[usertitle]</div></if>
<!-- vbPlaza end -->
                                <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></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>
                        </td>
                        <td width="100%">&nbsp;</td>
<!-- Show warned sign -->
  <if condition="THIS_SCRIPT=='showthread'">

  <if condition="$showwarnsignmgm==1">
      <!-- Mgm can click on the stop sign to see the warnings -->
      <td><A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a></td>
  </if>

  <if condition="$showwarnsign==1">
      <!-- Simple Users can only see the warn sign but not the warnings -->
      <td><img src="images/misc/warn.gif" border=0></td>
  </if>
  </if>

  <!-- End of show warned sign -->
                        <td valign="top" nowrap="nowrap">
                               
                                <div class="smallfont">
                                        <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                                        <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                        <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

                                        <div>
                                                $vbphrase[posts]: $post[posts]
<!-- vbPlaza start -->
<if condition="$vboptions['vbbux_enabled']"><br />
$vbphrase[vbbux_points]: $post[points]<br />

<a href="vbplaza.php?do=donate&amp;userid=$post[userid]">$vbphrase[vbplaza_donate]</a><br />
</if>
<!-- vbPlaza end -->
                                        </div>
                                        <if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
<!-- Show warning points -->
  <if condition="$showpoints==1">
  <if condition="$post[alerts]>0">
  <font color="#ff0000">
  <BR>Alerts: $post[alerts]
  <font color="#000000">
  </if>
  <if condition="$post[warnings]>0">
  <font color="#ff0000">
  <BR>Warnings: $post[warnings]
  <font color="#000000">
  </if>
  <if condition="$post[warning_level]>0">
  <font color="#ff0000">
  <BR>Warnings Level: $post[warning_level]
  <font color="#000000">
  </if>
  <if condition="$post[warning_bans]>0">
  <font color="#ff0000">
  <BR>Number of bans: $post[warning_bans]
  <font color="#000000">
  </if>
  </if>
  <!-- End of show warning points -->
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
<if condition="$show['sports_icons']"><div>$post[sportsicons]</div><br /></if>
<!-- vbPlaza start -->
                                <if condition="$post['giftsdisplay']"><div class="smallfont">$post[giftsdisplay]</div></if>
                                <if condition="$post['ribbonsdisplay']"><div class="smallfont">$post[ribbonsdisplay]</div></if>
<!-- vbPlaza end -->                               
</div>
                               
                        </td>
                </tr>
<if condition="$pnotes!='' AND $vboptions['warn_allownotes']==1">
        <tr>
        <td colspan="5">
        <table border="1" width="100%" align="center">
        <tr>
        <td align="center" class="thead" colspan="4">
        <div class="smallfont">The following notes have been entered for this user</div>
        </td>
        </tr>
        <tr>
        <td align="center" class="smallfont" width="10%">
        Moderator
        </td>
        <td align="center" class="smallfont" width="15%">
        Time
        </td>
        <td align="center" class="smallfont">
        Moderator Note
        </td>
        <td width="5%" class='smallfont' align='center'>
        Remove
        </td>
        </tr>
        $pnotes
        </table>
        </td>
        </tr>
        </if>
                </table>
                <!-- / user info -->
        </td>
<tr>
        <td class="alt1" id="td_post_$post[postid]">
        <!-- message, attachments, sig -->
       
                <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'] OR (THIS_SCRIPT=='showthread' AND $showwarnsignmgm==1) OR (THIS_SCRIPT=='showthread' AND $showwarnsign==1)">
                <TABLE width=100%><TR>
                        <TD width=90%>
                        <!-- 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>
                        <!-- / icon and title -->
                        </td>
                        <TD width=10% align="$stylevar[right]">
                        <!-- Show warned sign -->
                        <if condition="THIS_SCRIPT=='showthread'">
                                <if condition="$showwarnsignmgm==1">
                                      <!-- Mgm can click on the stop sign to see the warnings -->
                                      <A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
                                </if>
                               
                                <if condition="$showwarnsign==1">
                                      <!-- Simple Users can only see the warn sign but not the warnings -->
                                      <img src="images/misc/warn.gif" border=0>
                                </if>
                        </if>
                        <!-- End of show warned sign -->
                        </td>
                </tr></table>
                <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
        </if>
               
                <!-- message -->
                <div id="post_message_$post[postid]">$post[message]</div>
                <!-- / message -->
        <if condition="$show['unhiddenattachment']">
               
    <div style="padding:$stylevar[formspacer]px">

        $post[unhiddenattachments]
    </div>

</if>
               
<if condition="$show['hiddenattachment']">

    <div style="padding:$stylevar[formspacer]px">
        $post[hiddenattachments]
    </div>

</if>
                <if condition="$show['attachments']">
                <!-- attachments -->
                        <div style="padding:$stylevar[cellpadding]px">
                       
                        <if condition="$show['thumbnailattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_thumbnails]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[thumbnailattachments]
                                        </div>
                                </fieldset>
                        </if>
               
                        <if condition="$show['imageattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[imageattachments]
                                        </div>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['imageattachmentlink']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[imageattachmentlinks]
                                        </table>
                                        </fieldset>
                        </if>
                       
                        <if condition="$show['otherattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_files]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[otherattachments]
                                        </table>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['moderatedattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attachments_pending_approval]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[moderatedattachments]
                                        </table>
                                </fieldset>               
                        </if>
                       
                        </div>
                <!-- / attachments -->
                </if>
               
                <if condition="$post['signature'] AND (($sigthress>0 AND $post[warning_level]<=$sigthress) OR $sigthress==0)">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>
               
                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                                <em>
                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>
       
                <div align="$stylevar[right]">
                        <!-- controls -->
                        <if condition="$post['editlink']">
                                <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
                        </if>
                        <if condition="$post['forwardlink']">
                                <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
                        </if>
                        <if condition="$post['replylink']">
                                <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                        </if>
                        <if condition="$show['quickreply'] AND !$show['threadedmode']">
                                <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
                        </if>
                        <if condition="$show['moderated']">
                                <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
                        </if>
                        <!-- / controls -->
                </div>
               
        <!-- message, attachments, sig -->
       
        </td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>
        <if condition="$show['pmlink']">
                <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['emaillink']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['homepage']">
                <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
        </if>
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if> <if condition="$show['btu_canban']">
 <if condition="!isset($btu[$post[threadid]][$post[userid]])">
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_ban]</a></td></tr>
 <else />
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_unban]</a></td></tr>
 </if>
</if>
<!-- v3 Arcade -->
        <if condition="$post['arcadeawards']">
        <tr><td class="thead"><phrase 1="$post[username]">$vbphrase[xs_arcade_awards]</phrase></a></td></tr>
        $post[arcadeawards]
        </if>
        <if condition="($post['arcadeoptions'] & 1) AND $post['userid']!=$bbuserinfo['userid']">
        <tr><td class="thead">$vbphrase[arcade]</a></td></tr>
        <tr><td class="vbmenu_option"><a href="arcade.php?do=newchallenge&userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[challenge_x_in_the_arcade]</phrase></td></tr></if>
<!-- /v3 Arcade -->
        </table>
</div>
<!-- / post $post[postid] popup menu -->




<if condition="$show['spacer']">
        </div>
        $spacer_close
</if>
<!-- / post #$post[postid] -->


Borisch 03-31-2006 10:38 AM

This works for me now. The problem is quite embarrasing. I was simply looking for errors in the wrong database. There were missing column, specifically the modifications to the user table, but everything else was there in the correct database. As I found this out, I simply manually added the columns to the user table and now it's working fine.

A feature request for future revisions however: Please implement the usage of phrases. I've translated most of this hack to my needs, but using phrases had been a lot easier =)

Anyway, seems to work great now, thanks for the help!

Delphiprogrammi 03-31-2006 10:48 AM

Quote:

Originally Posted by Nathan2006
Hi Erik thank you for replying.

I have added the code and removed the other code from postbit_lagacy.

The only problem its not showing up in the postbit :(

Here is all the code that I have in there.

HTML Code:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
        $spacer_open
        <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
        <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>       
</if>


<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead" $post[scrolltothis]>
                <div class="normal" style="float:$stylevar[right]">
                        &nbsp;
<!-- checks for warning system -->
  <if condition="THIS_SCRIPT=='showthread' AND $buttons=='Text'">
        <if condition="$showwarnlink==1">
        <if condition="$vboptions['warn_allownotes']==1">
  <a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'>Add Note for $post[username]</a>&nbsp;</if>
                <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a>&nbsp;
        </if>
        <if condition="$showviewwarnlink==1">
                <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a>&nbsp;
        </if>
        <if condition="$showviewyourslink==1">
                <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> &nbsp;
        </if>
  </if>
  <if condition="THIS_SCRIPT=='showthread' AND $buttons=='Buttons'">
        <if condition="$showwarnlink==1">
        <if condition="$vboptions['warn_allownotes']==1">
        <a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Add Note for $post[username]" accesskey="n" onClick="window.location='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
        </if>
                <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
        </if>
        <if condition="$showviewwarnlink==1">
                <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></a>&nbsp;
        </if>
        <if condition="$showviewyourslink==1">
                <a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a>&nbsp;
        </if>
  </if>
  <!-- end of warning system -->
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> &nbsp;</if>
                        <if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> &nbsp;</if>
                        <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> &nbsp;</if>
                        $post[iplogged]
<if condition="THIS_SCRIPT=='showthread'">
                                <if condition="$showwarnsignmgm==1">
                                      <!-- Mgm can click on the stop sign to see the warnings -->
                                      <A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
                                </if>
                               
                                <if condition="$showwarnsign==1">
                                      <!-- Simple Users can only see the warn sign but not the warnings -->
                                      <img src="images/misc/warn.gif" border=0>
                                </if>
                        </if>
                        <!-- End of show warned sign -->
                        <if condition="$show['inlinemod']">
                        <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
                        </if>
                </div>
               
                <div class="normal">
                        <!-- status icon and date -->
                        <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
                        <if condition="!$show['announcement']">
                                $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        <else />
                                <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                        </if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->
                </div>
        </td>
</tr>
<tr>
        <td class="alt2" style="padding:0px">
                <!-- user info -->
                <table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
                <tr>
                        <if condition="$show['avatar']  AND (($avatarthress>0 AND $post[warning_level]<=$avatarthress) OR $avatarthress==0)"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
                        <td nowrap="nowrap">
                       
                                <!-- vbPlaza start -->
<div id="postmenu_$post[postid]" <if condition="$post['namestyle']">style="$post[namestyle]"</if>>
<!-- vbPlaza end -->
                                        <if condition="$show['profile']">
                                        <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><!-- v3 Arcade --> <if condition="$post['arcadeawards']"><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><img src="$vboptions[arcadeimages]/trophy.gif" align="absmiddle" alt="$vbphrase[arcade_champion]" border="0" /></a></if>
<!-- /v3 Arcade -->
                                        $post[onlinestatus]
                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        $post[musername]
                                        </if>
                                </div>
                               
                                <!-- vbPlaza start -->
<if condition="$post['usertitle']"><div class="smallfont" <if condition="$post['titlestyle']">style="$post[titlestyle]"</if>>$post[usertitle]</div></if>
<!-- vbPlaza end -->
                                <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></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>
                        </td>
                        <td width="100%">&nbsp;</td>
<!-- Show warned sign -->
  <if condition="THIS_SCRIPT=='showthread'">

  <if condition="$showwarnsignmgm==1">
      <!-- Mgm can click on the stop sign to see the warnings -->
      <td><A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a></td>
  </if>

  <if condition="$showwarnsign==1">
      <!-- Simple Users can only see the warn sign but not the warnings -->
      <td><img src="images/misc/warn.gif" border=0></td>
  </if>
  </if>

  <!-- End of show warned sign -->
                        <td valign="top" nowrap="nowrap">
                               
                                <div class="smallfont">
                                        <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                                        <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                        <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

                                        <div>
                                                $vbphrase[posts]: $post[posts]
<!-- vbPlaza start -->
<if condition="$vboptions['vbbux_enabled']"><br />
$vbphrase[vbbux_points]: $post[points]<br />

<a href="vbplaza.php?do=donate&amp;userid=$post[userid]">$vbphrase[vbplaza_donate]</a><br />
</if>
<!-- vbPlaza end -->
                                        </div>
                                        <if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
<!-- Show warning points -->
  <if condition="$showpoints==1">
  <if condition="$post[alerts]>0">
  <font color="#ff0000">
  <BR>Alerts: $post[alerts]
  <font color="#000000">
  </if>
  <if condition="$post[warnings]>0">
  <font color="#ff0000">
  <BR>Warnings: $post[warnings]
  <font color="#000000">
  </if>
  <if condition="$post[warning_level]>0">
  <font color="#ff0000">
  <BR>Warnings Level: $post[warning_level]
  <font color="#000000">
  </if>
  <if condition="$post[warning_bans]>0">
  <font color="#ff0000">
  <BR>Number of bans: $post[warning_bans]
  <font color="#000000">
  </if>
  </if>
  <!-- End of show warning points -->
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
<if condition="$show['sports_icons']"><div>$post[sportsicons]</div><br /></if>
<!-- vbPlaza start -->
                                <if condition="$post['giftsdisplay']"><div class="smallfont">$post[giftsdisplay]</div></if>
                                <if condition="$post['ribbonsdisplay']"><div class="smallfont">$post[ribbonsdisplay]</div></if>
<!-- vbPlaza end -->                               
</div>
                               
                        </td>
                </tr>
<if condition="$pnotes!='' AND $vboptions['warn_allownotes']==1">
        <tr>
        <td colspan="5">
        <table border="1" width="100%" align="center">
        <tr>
        <td align="center" class="thead" colspan="4">
        <div class="smallfont">The following notes have been entered for this user</div>
        </td>
        </tr>
        <tr>
        <td align="center" class="smallfont" width="10%">
        Moderator
        </td>
        <td align="center" class="smallfont" width="15%">
        Time
        </td>
        <td align="center" class="smallfont">
        Moderator Note
        </td>
        <td width="5%" class='smallfont' align='center'>
        Remove
        </td>
        </tr>
        $pnotes
        </table>
        </td>
        </tr>
        </if>
                </table>
                <!-- / user info -->
        </td>
<tr>
        <td class="alt1" id="td_post_$post[postid]">
        <!-- message, attachments, sig -->
       
                <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'] OR (THIS_SCRIPT=='showthread' AND $showwarnsignmgm==1) OR (THIS_SCRIPT=='showthread' AND $showwarnsign==1)">
                <TABLE width=100%><TR>
                        <TD width=90%>
                        <!-- 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>
                        <!-- / icon and title -->
                        </td>
                        <TD width=10% align="$stylevar[right]">
                        <!-- Show warned sign -->
                        <if condition="THIS_SCRIPT=='showthread'">
                                <if condition="$showwarnsignmgm==1">
                                      <!-- Mgm can click on the stop sign to see the warnings -->
                                      <A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
                                </if>
                               
                                <if condition="$showwarnsign==1">
                                      <!-- Simple Users can only see the warn sign but not the warnings -->
                                      <img src="images/misc/warn.gif" border=0>
                                </if>
                        </if>
                        <!-- End of show warned sign -->
                        </td>
                </tr></table>
                <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
        </if>
               
                <!-- message -->
                <div id="post_message_$post[postid]">$post[message]</div>
                <!-- / message -->
        <if condition="$show['unhiddenattachment']">
               
    <div style="padding:$stylevar[formspacer]px">

        $post[unhiddenattachments]
    </div>

</if>
               
<if condition="$show['hiddenattachment']">

    <div style="padding:$stylevar[formspacer]px">
        $post[hiddenattachments]
    </div>

</if>
                <if condition="$show['attachments']">
                <!-- attachments -->
                        <div style="padding:$stylevar[cellpadding]px">
                       
                        <if condition="$show['thumbnailattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_thumbnails]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[thumbnailattachments]
                                        </div>
                                </fieldset>
                        </if>
               
                        <if condition="$show['imageattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[imageattachments]
                                        </div>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['imageattachmentlink']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[imageattachmentlinks]
                                        </table>
                                        </fieldset>
                        </if>
                       
                        <if condition="$show['otherattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_files]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[otherattachments]
                                        </table>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['moderatedattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attachments_pending_approval]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[moderatedattachments]
                                        </table>
                                </fieldset>               
                        </if>
                       
                        </div>
                <!-- / attachments -->
                </if>
               
                <if condition="$post['signature'] AND (($sigthress>0 AND $post[warning_level]<=$sigthress) OR $sigthress==0)">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>
               
                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                                <em>
                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>
       
                <div align="$stylevar[right]">
                        <!-- controls -->
                        <if condition="$post['editlink']">
                                <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
                        </if>
                        <if condition="$post['forwardlink']">
                                <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
                        </if>
                        <if condition="$post['replylink']">
                                <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                        </if>
                        <if condition="$show['quickreply'] AND !$show['threadedmode']">
                                <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
                        </if>
                        <if condition="$show['moderated']">
                                <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
                        </if>
                        <!-- / controls -->
                </div>
               
        <!-- message, attachments, sig -->
       
        </td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>
        <if condition="$show['pmlink']">
                <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['emaillink']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['homepage']">
                <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
        </if>
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if> <if condition="$show['btu_canban']">
 <if condition="!isset($btu[$post[threadid]][$post[userid]])">
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_ban]</a></td></tr>
 <else />
    <tr><td class="vbmenu_option"><a href="postings.php?$session[sessionurl]do=btu_ban&amp;t=$post[threadid]&amp;u=$post[userid]">$vbphrase[btu_unban]</a></td></tr>
 </if>
</if>
<!-- v3 Arcade -->
        <if condition="$post['arcadeawards']">
        <tr><td class="thead"><phrase 1="$post[username]">$vbphrase[xs_arcade_awards]</phrase></a></td></tr>
        $post[arcadeawards]
        </if>
        <if condition="($post['arcadeoptions'] & 1) AND $post['userid']!=$bbuserinfo['userid']">
        <tr><td class="thead">$vbphrase[arcade]</a></td></tr>
        <tr><td class="vbmenu_option"><a href="arcade.php?do=newchallenge&userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[challenge_x_in_the_arcade]</phrase></td></tr></if>
<!-- /v3 Arcade -->
        </table>
</div>
<!-- / post $post[postid] popup menu -->




<if condition="$show['spacer']">
        </div>
        $spacer_close
</if>
<!-- / post #$post[postid] -->


you will need to play a little with it to find a spot to put the warn sign that fit your needs you have some other hacks installed like vbpizza and vbarcade i don't use them.While searching for a good spot to put the warning sign keep a note what's above it then try something like

HTML Code:

<b><h1>testing this stuff</b></h1>
if that works ok you can insert de code for the warn sign

Nathan2006 03-31-2006 07:33 PM

Quote:

Originally Posted by Delphiprogrammi
you will need to play a little with it to find a spot to put the warn sign that fit your needs you have some other hacks installed like vbpizza and vbarcade i don't use them.While searching for a good spot to put the warning sign keep a note what's above it then try something like

HTML Code:

<b><h1>testing this stuff</b></h1>
if that works ok you can insert de code for the warn sign

Hi Erik,

I have figured it out lol:D

I have it the same as your attachment above, but is there a way to knock it down 1 level?

I am not a coder but I have tried <p></p> to try and knock it down but I cannot figure it out :(

I have added a screen shot to the place I wanted the warn sign :)

Delphiprogrammi 03-31-2006 07:56 PM

Quote:

Originally Posted by Nathan2006
Hi Erik,

I have figured it out lol:D

I have it the same as your attachment above, but is there a way to knock it down 1 level?

I am not a coder but I have tried <p></p> to try and knock it down but I cannot figure it out :(

I have added a screen shot to the place I wanted the warn sign :)

before this

HTML Code:

<!-- Show warned sign -->
add

HTML Code:

<br /> <br />
that will force to show the warn sign on a "new" line


All times are GMT. The time now is 11:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02966 seconds
  • Memory Usage 2,251KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_html_printable
  • (3)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete