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)

drumsy 01-09-2005 12:31 AM

I seem to having a template problem when upgrading postbit_legacy. The instructions say to look for this:

Code:

        <td class="alt1">
        <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />

And replace with this:

Code:

        <td class="alt1">
        <TABLE width=100%><TR>
                <TD width=90%><if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
</td><TD width=10% align="$stylevar[right]">
<if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0">
                      <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>
</td></tr></table>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />

However when I do so, and I refresh a thread, the first post looks fine, but the second and so on start nesting inside each other.

Any pointers?

Rhoads 01-09-2005 12:44 AM

Quote:

Originally Posted by drumsy
I seem to having a template problem when upgrading postbit_legacy. The instructions say to look for this:

Code:

        <td class="alt1">
        <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />

And replace with this:

Code:

        <td class="alt1">
        <TABLE width=100%><TR>
                <TD width=90%><if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
</td><TD width=10% align="$stylevar[right]">
<if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0">
                      <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>
</td></tr></table>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />

However when I do so, and I refresh a thread, the first post looks fine, but the second and so on start nesting inside each other.

Any pointers?

I have the same problem :cry:

nubian 01-09-2005 03:57 AM

is this hack 3.0.5 compliant?

sv1cec 01-09-2005 06:04 AM

Answers to all good people who wrote with problems (if I forget someone, it's not intentional, I just got my first sip of coffee):

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).

Others with nested threads: Guys, you are lucky, because your system CAN show you the classic layout, even if it shows it nested! LoL, I think I've screwed up my files somewhere, and even though I select the "Classic" layout, I still do not get it, in my active site. Checking my test site now. Yeap. it does the same, so I think I have to look into it. I need to find which file is creating this problem. Give me some time.

Nubian, yes, it works OK with 3.0.5, apart from the problem with the Classic view.

Rgds

sv1cec 01-09-2005 06:27 AM

Gentlemen,

Those of you who can see the Classic view of your posts, please try the following:

In the postbit.legacy template, I suggested that you make the following change, in order to show the Warn Sign.

HTML Code:

        <td class="alt1">
        <TABLE width=100%><TR>
                <TD width=90%><if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
</td><TD width=10% align="$stylevar[right]">
<if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0">
                      <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>
</td></tr></table>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        <!-- / icon and title -->
                </if>

Please replace that part of the code with the one listed below, and tell me if the nested thingy stopped.

HTML Code:

<td class="alt1">
        <TABLE width=100%><TR>
                <TD width=90%>
                <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']">
                                        <img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" />
                                </if>
                                <if condition="$post['title']">
                                        <strong>$post[title]</strong>
                                </if>
                        </div>
                </if>
                </td>
                <TD width=10% align="$stylevar[right]">
                <if condition="THIS_SCRIPT=='showthread' AND ($bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==7) AND $post[warn_flag]>0">
                      <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>
                </td>
                </tr></table>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        <!-- / icon and title -->

Please let me know if that works, because I can't test it. Both my test and active site, refuse to change from the Modern Look to the Classic one, talk about big time mess!

Rgds

Rhoads 01-09-2005 10:28 AM

Quote:

Originally Posted by sv1cec
Gentlemen,

Please let me know if that works, because I can't test it. Both my test and active site, refuse to change from the Modern Look to the Classic one, talk about big time mess!

Rgds

It's works sv1cec :up:
Thnx you

Dennis B 01-09-2005 10:38 AM

sv1cec,

Just tested the new postbit_legacy above in 3.0.5, working well. :)

Thanks.

sv1cec 01-09-2005 11:14 AM

Quote:

Originally Posted by Dennis B
sv1cec,

Just tested the new postbit_legacy above in 3.0.5, working well. :)

Thanks.

Hey guys,

Let me know something, because after installing all those patches and hacks on my server, I begun loosing control.

From where do you select if a user will use the postbit or the postbit legacy template? In other words, where does a user declares if he wants the modern or the classic layout?

I've re-installed this functionality on my system, I had forgotten to compare a file and it was that single one, where I needed to change something, but this (in my system) was implemented with a hack.

Can you please tell me what is the standard way of doing it?

Rgds

Dennis B 01-09-2005 11:35 AM

sv1cec,

Read this. ;)

Dennis B 01-09-2005 11:42 AM

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 -->



All times are GMT. The time now is 01:31 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.03350 seconds
  • Memory Usage 1,784KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)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