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)

Xplorer4x4 03-25-2006 12:24 AM

I think upgrade isntructions are in the zip file.

As far as the drop down list for usergroups, it's nice and all but surley there is soem way to have it read what groups you have set up on your board. What you did only covers the basics.

Also is it possible for sv1 to upload all the up to date scripts into on proper zip file. There are so many scripts in this thread it's ahrd to know what been changed and what hasn;t. Would an update email be possible to? :)

Great work you guys.

Delphiprogrammi 03-25-2006 07:39 AM

Quote:

Originally Posted by GoTTi
question: this is upgradeable from 3.0.x correct?

if yes, whats the details on that for upgrading.

if no, what should i do about the current version of aws on my 308?

1)yes
2)follow instructions in UpgradeToLatestVersion.txt
3)you need to download this file instructions are within the zip

Delphiprogrammi 03-25-2006 11:07 AM

Quote:

Originally Posted by Borisch
Thanks for putting effort into helping me. However, I'm sad to admit that I don't get any error messages. At least not immediat errors. Are these errors supposed to show while your installing or in some log? The installation just looks as previously, ie. as it's supposed to look I presume.

MySQL errors are sepose to be showen in your browser window when you import the product althrough vbulletin can be configuerd to log all errors this is not enabled by default

i'm taking a wild guess here that you are using an out of date MySQL version ?

Delphiprogrammi 03-25-2006 11:25 AM

people,

I think i found a bug.... in admin_warn.php.Set "Maintain Historical Records?" to no submit the form you'll see a confirmation form choose no there and in here i get a white blank page when i submit the confirmation form that's unexspected behavior

already fixed however i'm getting an annoying empty vbulletin messagebox telling me nothing

Borisch 03-25-2006 03:20 PM

Quote:

Originally Posted by Delphiprogrammi
i'm taking a wild guess here that you are using an out of date MySQL version ?

We're running MySQL 4.1.15. Any database errors should be sent to my email, but I don't get anything on the import page nor in my email. I just don't know what might be wrong. Executing all the SQL statements manually works fine and creates all the necessary tables and what not, but the hack doesn't seem to use them anyway. Even if I add warning types, the table is empty when looking at it with phpMyAdmin.

It's all very strange.

Delphiprogrammi 03-25-2006 07:39 PM

Quote:

Originally Posted by Delphiprogrammi
people,

I think i found a bug.... in admin_warn.php.Set "Maintain Historical Records?" to no submit the form you'll see a confirmation form choose no there and in here i get a white blank page when i submit the confirmation form that's unexspected behavior

already fixed however i'm getting an annoying empty vbulletin messagebox telling me nothing

fixed working as it should now one more problem sorted out :D

Delphiprogrammi 03-25-2006 07:44 PM

Quote:

Originally Posted by Borisch
We're running MySQL 4.1.15. Any database errors should be sent to my email, but I don't get anything on the import page nor in my email. I just don't know what might be wrong. Executing all the SQL statements manually works fine and creates all the necessary tables and what not, but the hack doesn't seem to use them anyway. Even if I add warning types, the table is empty when looking at it with phpMyAdmin.

It's all very strange.

you only get emails about database problems if
  • $config['Database']['technicalemail'] = "tech@mysite.com";(config.php)
  • the setting in vbulletin options (error handeling & logging section) is not set to yes
  • you do not use thirdy party hacks that might interfere with this

the problem you are having is verry odd.Your MySQL is not a problem i was wrong there

Borisch 03-25-2006 09:03 PM

Yeah I know, I've set up vBulletin to send an email when db errors occur. It's very odd indeed. By the looks of it, everything is fine, until I actually try to warn anybody or access the "warnings by user" statistics page. At least I think it was that page. In those cases, I DO get an email saying things made a booboo. Those errors are the ones I posted before. However, that is all, the rest looks just fine.

Well, if you disregard the fact that warning_types is empty when it quite clearly shouldn't be empty.

GoTTi 03-26-2006 06:33 AM

Quote:

Originally Posted by Delphiprogrammi
1)yes
2)follow instructions in UpgradeToLatestVersion.txt
3)you need to download this file instructions are within the zip

wait, those instructons is for vb 3.0.x AWS upgrading. im on 3.5.x now and i want to upgrade from the older version.

those instructions dont explain that to me.

sv1cec 03-29-2006 03:34 PM

Now, you all understand why I am reluctant to do any work on this?

Gotti is asking a question, and I have no answer. Because I didn't do the initial packaging and because I have no idea how vb 3.5 handles these issues.

Gotti, my answer would be, just follow the installation instructions. It shouldn't harm your tables, so you won't loose any information and the installation script will install the plugins etc. Then all you may have to do manually, is upload the php files.

Delphi, can you post here all the files you have changed so that I can upload them in the hack's area instead of being in every post in here?

Sorry guys, I explained to you in the past, this is NOT easy for me, and I understand your frustration, but there is nothing much I can do.

Delphiprogrammi 03-29-2006 04:02 PM

Quote:

Originally Posted by GoTTi
wait, those instructons is for vb 3.0.x AWS upgrading. im on 3.5.x now and i want to upgrade from the older version.

those instructions dont explain that to me.

then you would simply import the product XML and upload the files to there appriciate locations that will install the needed plugins and such .......

Delphiprogrammi 03-29-2006 04:05 PM

Quote:

Originally Posted by sv1cec
Now, you all understand why I am reluctant to do any work on this?

Gotti is asking a question, and I have no answer. Because I didn't do the initial packaging and because I have no idea how vb 3.5 handles these issues.

Gotti, my answer would be, just follow the installation instructions. It shouldn't harm your tables, so you won't loose any information and the installation script will install the plugins etc. Then all you may have to do manually, is upload the php files.

Delphi, can you post here all the files you have changed so that I can upload them in the hack's area instead of being in every post in here?

Sorry guys, I explained to you in the past, this is NOT easy for me, and I understand your frustration, but there is nothing much I can do.

i didn't change anything to /includes/functions_warning.php and showcomment.php

maharajah 03-29-2006 08:28 PM

Too complicated
too many issues with installation and upgrading from 3.0.x to 3.5.x

No Instructions to upgrade.
I think i will try out Infernos.

Its a pity coz the AWS has much more features.

.

Hornstar 03-29-2006 11:30 PM

Hey John are you still using the test board I let you use?

also just wondering on one thing I get this error when trying to install the RPG inferno because of a problem with AWS i've been told, what do I need to do to make the aws work with the RPG

Code:


Fatal error: Cannot redeclare sendpm() (previously declared in /*/*/*forums/inferno.php:572) in /*/*/*/forums/includes/functions_warning.php on line 23


I have noticed there has been an update, what things have been fixed in the update, and what are the upgrade instructions?

THanks

GoTTi 03-30-2006 11:21 AM

ok so i uploaded everything, did the import, and get this error:

Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:

INSERT INTO setting
(varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
VALUES
(
'warn_version',
'version',
'3.4.16',
'3.5.0',
'free',
'',
1,
0,
1,
'aws'
);

MySQL Error : Duplicate entry 'warn_version' for key 1
Error Number : 1062
Date : Thursday, March 30th 2006 @ 05:20:04 AM
Script : http://www.site.com/forums/admincp/plugin.php
Referrer : http://www.site.com/forums/admincp/p...?do=productadd
IP Address : 70.35.43.105
Username : GoTTi
Classname : vb_database

Delphiprogrammi 03-30-2006 11:37 AM

Quote:

Originally Posted by hornstar1337
Hey John are you still using the test board I let you use?

also just wondering on one thing I get this error when trying to install the RPG inferno because of a problem with AWS i've been told, what do I need to do to make the aws work with the RPG

Code:


Fatal error: Cannot redeclare sendpm() (previously declared in /*/*/*forums/inferno.php:572) in /*/*/*/forums/includes/functions_warning.php on line 23


I have noticed there has been an update, what things have been fixed in the update, and what are the upgrade instructions?

THanks

are you by any chance using inferno hacks ? if yes that's the reason why you get this error you could open /includes/functions_warning.php and change the function to SendPmAws or something but then you must change all calls to the changed function

Delphiprogrammi 03-30-2006 11:39 AM

Quote:

Originally Posted by GoTTi
ok so i uploaded everything, did the import, and get this error:

that's normal .... you need to backup your aws tables then if you have a backup delete them (DROP) when that's done you could do the import and no errors should appaer when all is working allright you can restore your warnings table and warning_types etc etc

GoTTi 03-30-2006 11:56 AM

i goto import now, and i get settings table errors.

i look in settings and search for warn, and get the tables in the pic attached

when i drop them and rerun the install i get the same error.

Delphiprogrammi 03-30-2006 04:22 PM

Quote:

Originally Posted by GoTTi
i goto import now, and i get settings table errors.

i look in settings and search for warn, and get the tables in the pic attached

when i drop them and rerun the install i get the same error.

okay .. be carefull with this

PHP Code:

SELECT FROM  TABLE_PREFIX setting WHERE varname LIKE 'warn_%'

that should show you all settings from the systems (just to give you an overview) finally

PHP Code:

DELETE FROM TABLE_PREFIX setting WHERE varname LIKE 'warn_%'

that should delete all the settings from used by the system after that uninstall the product XML and reinstall it

Hornstar 03-30-2006 06:55 PM

Quote:

Originally Posted by Delphiprogrammi
are you by any chance using inferno hacks ? if yes that's the reason why you get this error you could open /includes/functions_warning.php and change the function to SendPmAws or something but then you must change all calls to the changed function


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


And is this the only function that needs to be changed?

Thanks

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

sv1cec 04-01-2006 08:34 AM

OK here are some answers:

General: Sorry if I do not drop by often and check your messages, for some reason vB is not sending me notifications. Maybe because I bad-mouth version 3.5.xx??

To hornstar1337: yes, I am using it whenever I can find time to correct issues that members bring up here. Thanks!

Users of Inferno hacks: Can someone who has installed the Inferno hacks check if that routine, which conflicts with AWS routine (sendPM) is the same in the two hacks? If the code is the same, then there is no reason to rename one or the other.

General: I'll upload the files that Delphi posted. What you should do, is replace the files that get installed by the hack, with these files.

Nathan2006 04-01-2006 03:08 PM

Hi,

I have reinstalled my board and started a fresh.

On the install there is the aws35.zip file and all the other files for the update.

As I'm starting off as new do I install the aws35.zip files and then the updates after that?:cross-eyed:

Thanks for any help :)

sv1cec 04-01-2006 03:48 PM

Yes, install per the zip instructions, and then copy over the single files included in the hack, in the proper directories.

Sorry for the confusion.

Delphi, any idea on how to create a new installation file?

Nathan2006 04-01-2006 04:05 PM

Quote:

Originally Posted by sv1cec
Yes, install per the zip instructions, and then copy over the single files included in the hack, in the proper directories.

Sorry for the confusion.

Delphi, any idea on how to create a new installation file?

Thanks for your reply John :)

Do I also have to add all the code from the warn_notes_update_instructions.txt file too?

I have added all the info from the other text file from the aws.zip file

Delphiprogrammi 04-01-2006 04:30 PM

Quote:

Originally Posted by Nathan2006
Thanks for your reply John :)

Do I also have to add all the code from the warn_notes_update_instructions.txt file too?

I have added all the info from the other text file from the aws.zip file

you will only need warn_notes_updates_instructions if you want the "warn notes" feature that existed on 3.4.16 (vb 3) if you want that on 3.5.x then you need that yes

Delphiprogrammi 04-01-2006 04:33 PM

Quote:

Originally Posted by sv1cec
Yes, install per the zip instructions, and then copy over the single files included in the hack, in the proper directories.

Sorry for the confusion.

Delphi, any idea on how to create a new installation file?

if you changed anything in the plugins / templates / phrases and such you need to export the product goto plugin system =>manage products => aws and in the drop down choose export now vbulletin creates a file product-aws.xml that's it ... (hopefully)

Nathan2006 04-01-2006 05:43 PM

Thank you John & Erik

Its all working great!:D

I will try not to ask anymore questions lol;)

Delphiprogrammi 04-02-2006 03:46 PM

hi people,

those 'warn_notes' do not work for me. i mean i edit all files and templates like the ".txt" says but it doesn't show me anything in my postbit_legacy all i see is a button called "add a note" when i click it nothing is displayed even the navbits array is empty is this 3.5.x acting strange again ????

Ziki 04-02-2006 04:23 PM

sv1cec how long will it be in BETA?

It doesn't look as it is in BETA....;)

MThornback 04-03-2006 02:44 PM

Quote:

Originally Posted by Delphiprogrammi
hi people,

those 'warn_notes' do not work for me. i mean i edit all files and templates like the ".txt" says but it doesn't show me anything in my postbit_legacy all i see is a button called "add a note" when i click it nothing is displayed even the navbits array is empty is this 3.5.x acting strange again ????

That happened to me...and I reimported the product because the add note template was missing. See if doing that fixes it for you :)


All times are GMT. The time now is 05:03 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.03191 seconds
  • Memory Usage 2,368KB
  • 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
  • (2)bbcode_code_printable
  • (8)bbcode_html_printable
  • (5)bbcode_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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