vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/showthread.php?t=71992)

sv1cec 01-09-2005 11:54 AM

Quote:

Originally Posted by Dennis B
sv1cec,

If I may, here's an alternative idea for the postbit_legacy layout, where the warn sign gets displayed in the left box, where the username, avatar and other icons are.

Revert postbit_legacy to its default text concerning the warn sign part (post above by sv1cec).

Then find:
Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
And right above it insert:

Code:

<!-- AWS stop sign hack -->
<if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0">
<br />
<div>
<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>
</div>
</if>
<!-- hack end -->


Dennis,

Thanks for that link, that is what I have done (mostly). But for the name of God, I couldn't remember where that was in the standard vB. I guess it is a general setting, applicable to all users, all posts. Thanks for the heads-up though, appreciated.

As for your alternative position for the Warn Sign (I have to come up with a better name for it), it's fine with me, users can easily move that around, wherever they want, I just have too many things in that part of the legacy template (warning links, user away info etc), so I thought I'd place it there. But of course, users can move it wherever they see fit.

Again, thanks and rgds

Dennis B 01-09-2005 12:04 PM

no problem, and thank you for such great support on this hack. :up:

sv1cec 01-09-2005 03:54 PM

Quote:

Originally Posted by Dennis B
no problem, and thank you for such great support on this hack. :up:

Doing my best Dennis, doing my best.

Rgds

j_86 01-09-2005 04:00 PM

sv1cec you should ask for your own Premium forum.

sajjid 01-09-2005 04:33 PM

i have edited all the files but have not run the install script because i cannot figure the following:
in your instructions it says
In the same template find:(postbit)
Code:

<if condition="$show['reputation']">$post[reputationdisplay]</if>
closes i can find in the templete is
Code:

<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
Also

3. NAVBAR TEMPLATE
In your navbar template, find:
Code:

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
i can only find this in header tamplete please shed some light.
i am using vb 3.0.5

ok i have installed it but now i get pharse error if i replace this code in the ./includes/functions_newpost.php
Code:

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $_REQUEST;
to this
Code:

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $newpostid, $_REQUEST
but if i dont make this change everything is ok i think

sv1cec 01-09-2005 07:01 PM

Quote:

Originally Posted by sajjid
i have edited all the files but have not run the install script because i cannot figure the following:
in your instructions it says
In the same template find:(postbit)
Code:

<if condition="$show['reputation']">$post[reputationdisplay]</if>
closes i can find in the templete is
Code:

<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
Also

3. NAVBAR TEMPLATE
In your navbar template, find:
Code:

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
i can only find this in header tamplete please shed some light.
i am using vb 3.0.5

ok i have installed it but now i get pharse error if i replace this code in the ./includes/functions_newpost.php
Code:

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $_REQUEST;
to this
Code:

global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $newpostid, $_REQUEST
but if i dont make this change everything is ok i think

The installation instructions were all based on vB 3.0.3, so expect to find some differences. I just upgraded to 3.0.5 too, so I didn't have the time to redo them for this release.

First point, yeah that looks ok to use as the closest equivalent to my instructions.

In the NAVBAR template, if you check the Quick Links menu, it should say something like "Miscellaneous". I am not sure, but I do not think NAVBAR was changed from 3.0.3 to 3.0.5. Check where it has the drop down menus.

As for the last issue, you have to make that change. And that statement is not responsible for any parse error, unless you didn't put the semi-colon at the end. Maybe I forgot to put the semicolon in the instructions? No, it's there, but I do not see it in the code you posted. Check that there is a semicolor at the end of that statement, when you change it.

Rgds

sv1cec 01-09-2005 07:05 PM

Quote:

Originally Posted by JimpsEd
sv1cec you should ask for your own Premium forum.

I am not sure I even know what a premium forum is, my friend.

Rgds

sajjid 01-09-2005 07:10 PM

Quote:

Originally Posted by sv1cec
The installation instructions were all based on vB 3.0.3, so expect to find some differences. I just upgraded to 3.0.5 too, so I didn't have the time to redo them for this release.

First point, yeah that looks ok to use as the closest equivalent to my instructions.

In the NAVBAR template, if you check the Quick Links menu, it should say something like "Miscellaneous". I am not sure, but I do not think NAVBAR was changed from 3.0.3 to 3.0.5. Check where it has the drop down menus.

As for the last issue, you have to make that change. And that statement is not responsible for any parse error, unless you didn't put the semi-colon at the end. Maybe I forgot to put the semicolon in the instructions? No, it's there, but I do not see it in the code you posted. Check that there is a semicolor at the end of that statement, when you change it.

Rgds

yes it was the semi-colon me maybe sleepy thanks well spotted also Quick Links menu is in the header
thanks

Delphiprogrammi 01-09-2005 08:43 PM

Quote:

Originally Posted by sv1cec
Delphiporogrammer: Stop Sign: Did you upload the image in your images/misc directory? It looks as if you have it named Warn.gif. I think it should be warn.gif (caps are critical in a Unix system, I do not know what you are running your server on).
Rgds

yes i uploaded that images and true caps is a critical thing on a unix system but if that was the reason why it would result in a death image i don't see *anything* in the postbit besides the red line with the warning level.

gonna check one more time i'm sure i did something wrong :)


my server runs on fedora (redhat ) linux

rh2004 01-09-2005 11:06 PM

Hey how do I show the Warnings: (level) to everyone that is displayed in postbit...

Just the Warning: (level)

Not how many times banned


All times are GMT. The time now is 08:36 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.02033 seconds
  • Memory Usage 1,754KB
  • 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
  • (12)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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