Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Advanced Warning System (Beta Version) Details »»
Advanced Warning System (Beta Version)
Version: 3.5.0, by sv1cec sv1cec is offline
Developer Last Online: Mar 2022 Show Printable Version Email this Page

Version: 3.5.0 RC3 Rating:
Released: 09-08-2005 Last Update: 05-30-2006 Installs: 221
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

Advanced Warning System


IF YOU ARE RUNNING vB 3.6, THERE IS A NEW THREAD FOR THIS HACK UNDER THAT VERSION. vB 3.6 USERS GO HERE:

https://vborg.vbsupport.ru/showthread.php?t=124477


This is a direct port of the Advanced Warning System, as it was implemented in vB 3.0.x. This port has all the features of AWS version 3.4.16, except the Notes.

For a complete description of AWS capabilities, please refer to the following thread:

https://vborg.vbsupport.ru/showthread.php?p=574374

The vB 3.5 compliant version of AWS includes:

1 Product XML (17 Plugins, 107 Phrases, 26 Templates, 43 Settings)
1 ACP Navigation XML
1 PHP Functions File
3 Images
2 PHP Frontend Files
1 PHP Admin CP File
1 PHP Mod CP File
3 PHP Cronjob Files

This port would not be possible, without the help of KirbyDE, to whom I am greatful. KirbyDE will also be responsible for supporting you here, with questions related to this particular release. Also, this port would not have been possible, without the help of Juan P hernandez, who offered me a free test system, in which the porting was performed.

The hack has been tested and it is believed to be bug-free, however since this is a major hack, I release it today (September 9th 2005) as beta.

I hope you all enjoy it.

History (Productversion)
3.5.b
Initial Version

3.5.b1
Fixed a typo that caused Errors in User Datamanager.
Fixed a wrong object reference in functions_warning.php

3.5.b2
Fixed a Bug that caused PHP Error Messages.
Fixed a Typo in the Install Code that causes mySQL Errors.
Updated the Template Edit instructions to be (hopefully) compatible with RC3

3.5.b3
Fixed User not showing up in automatic warning PMs
Fixed 2 missing Phrases
Fixed Hidden Warner being Used for Automatic Warnings
Fixed "View x's Warnings" Button in Usermanager not working

3.5.b4
Removed one unsued Phrase, added one missing Phrase
Fixed a Typo that caused PHP Errors when sending PMs
Fixed a Typo that caused PHP Errors upon Installation
Changed Product ID for Admin CP Navigation XML from vbulletin to aws, so it won't show up any longer if AWS is uninstalled/disabled.

A bug was found which didn't allow you to delete an entered Warning Type. Bug fixed in the current distribution file.

If you found a Bug, please report it at http://bugs.kirbydemos.ath.cx

This helps to keep issues organized, which can't be guaranteed if it's only posted in the Thread.
Thank you.

P.S.1: After you install the hack per the instructions, please update your installation with the separate files listed. They are newer files not included in the zip.

P.S.2: If you want to use the Notes feature, as it existed in AWS 3.4.16, please install AWS per the instructions in the zip file, and THEN follow the instructions included in the warn_notes_update_instructions.txt.

IMPORTANT NOTE: Please keep in mind that this hack is not supported. What this means is that I have no obligation to support it. The reason for that, is because I have no access to a vB 3.5 system any more, so I can't work on this hack any more. Andreas (or KirbyDE) who undertook the support of this version of the AWS hack in the beginning, is obviously too busy to support it. So you are on your own, at least as far as the interaction with vB is concerned. If you have an issue with the hack files themselves, I'll do my best to solve it, but without a test environment, it is not easy. So users of vB 3.5 beware!

P.S. May 31st 2006: The zip file uploaded today, should contain all the debugging done by Delphi, so it should be fine as it is. You do not need the other files listed at the right, only the zip. Download it and follow the instructions in it, for installing the hack. I leave the other files there, just in case some one needs them, they will be deleted later.

SV1CEC

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #822  
Old 03-30-2006, 07:17 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ...
Reply With Quote
  #823  
Old 03-31-2006, 06:06 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #824  
Old 03-31-2006, 07:56 AM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #825  
Old 03-31-2006, 09:44 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #826  
Old 03-31-2006, 10:18 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #827  
Old 03-31-2006, 10:26 AM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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] -->
Reply With Quote
  #828  
Old 03-31-2006, 10:38 AM
Borisch Borisch is offline
 
Join Date: Mar 2002
Location: Sweden
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #829  
Old 03-31-2006, 10:48 AM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #830  
Old 03-31-2006, 07:33 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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
Reply With Quote
  #831  
Old 03-31-2006, 07:56 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nathan2006
Hi Erik,

I have figured it out lol

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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:30 PM.


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.05773 seconds
  • Memory Usage 2,598KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_html
  • (3)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete