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-25-2005 05:51 PM

Quote:

Originally Posted by Torqued
Hey, John:

When you update the 1st post, can you add the version # so that we can tell where we are w/ what we have installed vs what is posted here?

:)

Thanks!

I always update the 1st post with the most recent version number, it's right at the bottom.

Rgds

Torqued 01-25-2005 05:52 PM

Quote:

Originally Posted by sv1cec
I always update the 1st post with the most recent version number, it's right at the bottom.

Rgds

I mean in the title. :) So I can quickly see how far behind I am. lol.

sv1cec 01-25-2005 05:54 PM

Quote:

Originally Posted by Delphiprogrammi
people,

ALWAYS store a "working" version of the modified files BEFORE you try to upgrade so you can get everything back up and running with a minimum of "no working" time

sv1cec,

in your upgradetolatestversion.txt instructions are two database querys

1) this query updates the AWS version number (obviously)
2) that query will add a column in the warning_options table called textbutoption

i'm not sure since i see other querys here are that all database querys whe need to run to upgrade to the latest version ? i don't use that other system i always used your AWS i'm on 3.1.2 and no we cannot stop butter you with questions but when it's working i'll send you some coffee lol :D

edit

my links in the memberinfo info template disapperd ??

my links in the postbit template are gone to :S

Did you copy the pictures to your web server? If you select the text option, do your links re-appear?

Oh, I wrote in the instructions that there is a new option, which controls the appearance of those links, didn't I? Go into your Warning System Options and check the option before the last. If you haven't set this, then your links will disappear.

Rgds

sv1cec 01-25-2005 06:06 PM

Quote:

Originally Posted by rh2004
Hi...

I have a question

Im goingto upgrade from 3.0.3 this week and was wondering am I going to
loose the info or anything from the users that have warnings

- Upload new files
- Run datebase update
- Download all new mods
- Re-add all mods/check through


I don't have to use upgrade on the mods? just do it as new install?

You got me puzzled here, in the beginning, I though you were upgrading AWS from 3.0.3 to 3.1.3. You are going to upgrade vB from 3.0.3 to the latest, right?

Well, I got some news for you. Don't re-install your hacks. Get Beyond Compare or a similar program and just copy the modifications you have done in the 3.0.3 files to the 3.0.6 version files. Took me about 1 hour to do all of them, and I have about 20 hacks installed in my system.

One thing that will not work after the upgrade, is the Message Tag. For some wierd reason, every time I upgrade the vB software, the Message Tag option disappears. It' s easy to re-install it though, just run the last query from the installation script, which inserts a row in the setting table.

Rgds

sv1cec 01-25-2005 06:07 PM

Quote:

Originally Posted by Torqued
I mean in the title. :) So I can quickly see how far behind I am. lol.

OK, I'll do it, just for you! LoL

sv1cec 01-25-2005 06:11 PM

Quote:

Originally Posted by GoranTornqvist
Allrighty...now it works...must have missed some part in the installation.
But the installationprocedure was no picknick, a lot of messing around in the code :) , and I'm no newbie...it would be great to have a more simple installation. Anyway, thanks for the help.

Well, I wish I knew a better way to do the file and the template updates, but I do not. You see, I am way past my programming days here, at 47. I just do this, because I use this hack in my own site, so I thought I could share the mods I did for myself, with the rest of you. Someone could create a hack which would make the file editing and the templates editing easier, that would be the hack of the year, not of the month, but definitely this is not going to be me.

Sorry :-(

Bolas 01-25-2005 08:36 PM

Quote:

Originally Posted by sv1cec
Someone could create a hack which would make the file editing and the templates editing easier, that would be the hack of the year

vb4? :)

rh2004 01-26-2005 02:51 AM

Get Beyond Compare or a similar program?

Where can I get that?....

(message tag whats the start of the SQL start with)

Also if I was not using that and went through all the mods because I really want to update a few to newer versions do I just re-install the mods after the upgrade of vb to 3.0.6 or do I have to upgrade each mod .. with the updates from the different version numbers to the latest version

sv1cec 01-26-2005 03:55 AM

Quote:

Originally Posted by rh2004
Get Beyond Compare or a similar program?

Where can I get that?....

(message tag whats the start of the SQL start with)



Also if I was not using that and went through all the mods because I really want to update a few to newer versions do I just re-install the mods after the upgrade of vb to 3.0.6 or do I have to upgrade each mod .. with the updates from the different version numbers to the latest version

www.scootersoftware.com

The query for the message tag is this:

PHP Code:

INSERT INTO `".TABLE_PREFIX."setting` (varnamegrouptitlevaluedefaultvalueoptioncodedisplayorderadvancedvolatileVALUES ('messagetag''address''''''''35''0''1'

I've set the volatile to 1, which normally means that vB is not touching this setting when upgrading, still every time I upgrade, this setting is gone. I've posted a bug report, but so far no answer.

Upgrading your vB should better be done off line, or on a test server. You should download the latest vB (that can be a very frequent operation these days), and upload it to your server. Run the upgrade script, so that your forum works with the latest release. Then, start applying your hacks, one by one. Install one and test it. Then move to the next. Always keep a backup of the latest working version of your files and of your database.

Rgds

sv1cec 01-26-2005 09:02 AM

Quote:

Originally Posted by Bolas
vb4? :)

If vB4 has that feature, I'll be really happy. As long as they do not release vB4 within the next month! I am tired of upgrading.

LoL

sv1cec 01-26-2005 09:12 AM

Gentlemen,

it looks as if the messagetag issue was my mistake. The folks at vB told me that if volatile=1, the setting will be removed at the next upgrade, so I have to set it to 0, in order for message tag to remain in the settings after the upgrades.

To rectify this issue, please run the following query:

PHP Code:

update `settingset volatile=0 where varname='messagetag' 

Remember to add any TABLE_PREFIX if you are using one.

The installation instructions have been changed accordingly.

The funny thing was, that at some time in the past, I had suggested to another developer here, to set volatile=0 in his settings, so that they do not get overwritten at the upgrades. However, in my mind, I had it the opposite way! Go figure.

Rgds

Jamsoft 01-26-2005 12:03 PM

Quote:

Originally Posted by rh2004
Get Beyond Compare or a similar program?

Where can I get that?....

You guys should try WinMerge:

http://winmerge.sourceforge.net/

Its free, and it works great. I just used it to upgrade from vb 3.0.3 to 3.0.6.

One of its cool features is it's exclusions. I told it to ignore all lines that started with "||". This way, all dates and version numbers kept in the comments at the TOP and BOTTOM of the files are IGNORED for file comparisons. So when I tell it to only show me different files, it only shows me ones with different CODE changes.

Best of all, its free software. And it works REAL nice.

sifuhall 01-26-2005 02:03 PM

So how do you know if a file difference is due to a hack you have installed (in the case of many hacks) or a change from vbulletin?

Delphiprogrammi 01-26-2005 02:39 PM

that's totally your responsebility if you install hacks you must have a checklist of wich hacks you installed there is no support for it the vbulletin licence cleary sells "your are allowed to modify the orginal source code on your own risk" to answer your question i use the modification log hack from here ...

Delphiprogrammi 01-26-2005 02:42 PM

Quote:

Originally Posted by sv1cec
Did you copy the pictures to your web server? If you select the text option, do your links re-appear?

Oh, I wrote in the instructions that there is a new option, which controls the appearance of those links, didn't I? Go into your Warning System Options and check the option before the last. If you haven't set this, then your links will disappear.

Rgds

yes you did but there wasn't enough coffee in my system yet :p i reverted everything back i'll do the template edits again and activate that option

edit

yup works like a champ

sv1cec 01-26-2005 05:44 PM

Quote:

Originally Posted by sifuhall
So how do you know if a file difference is due to a hack you have installed (in the case of many hacks) or a change from vbulletin?

Typically, when you patch a file for a hack, you add some comments line before and after each hack code, in other words :

// This is AWS modification

code here

// This is the end of AWS modification

In that way, when you check the file, you know which part of code is due to a hack or it's pure vB.

sv1cec 01-26-2005 05:45 PM

Quote:

Originally Posted by Delphiprogrammi
yes you did but there wasn't enough coffee in my system yet :p i reverted everything back i'll do the template edits again and activate that option

edit

yup works like a champ

Glad you made it!

Rgds

docvader 01-27-2005 04:55 AM

I'm curious, but it seems that after I added this hack, I can't use the text message box for private messages, using Netscape Navigator or Firefox. But I can still use it in IE. Very strange. Has anyone experienced this? Any idea why this might be happening?

BTW, the hack is working superbly, without problems. Truly a masterpiece.

rich

Delphiprogrammi 01-27-2005 09:39 AM

well,

i have just tested it with firefox.The textbox for private messages works fine here .carefull with netscape that box uses dhtml is that even supported by netscape ? and netscape itself is that still under development ? didn't use that browser in agers in here that textbox works

jluerken 01-27-2005 05:20 PM

Hi, sv1cec

I have a small problem with the hack now.

When I am logged in I can start a new thread but if not I am getting this error message when I click on 'new thread'.

Fatal error: Call to a member function on a non-object in /PATH/forum/includes/functions.php on line 2070

On line 2070 in functions.php I have this:
PHP Code:

$warn_opts=$DB_site->query_first("select * from ".TABLE_PREFIX."warning_options where oid='1'"); 

I added this:
PHP Code:

<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forum[forumid]"><div class="smallfont">[$vbphrase[new_thread]]</a

to the forumhome_forumbit_level2_post template to be able to create a thread in a forum without the need to enter it.

I am not sure if really AWS is the problem but maybe you can help.

Delphiprogrammi 01-27-2005 05:36 PM

carefull with adding code ....

the error you get is that your script calls an object wich isn't defined open functions.php and make sure you did all

PHP Code:

global $DB_site$vboptions$logincode$url$bbuserinfo$session$stylevar

you are missing a global statement


rgds

jluerken 01-27-2005 05:47 PM

Quote:

Originally Posted by Delphiprogrammi
carefull with adding code ....

the error you get is that your script calls an object wich isn't defined open functions.php and make sure you did all

PHP Code:

global $DB_site$vboptions$logincode$url$bbuserinfo$session$stylevar

you are missing a global statement


rgds

Can you tell me which is the one that makes my newthread addition from above work and where I have to add code?

sv1cec 01-27-2005 05:48 PM

Quote:

Originally Posted by docvader
I'm curious, but it seems that after I added this hack, I can't use the text message box for private messages, using Netscape Navigator or Firefox. But I can still use it in IE. Very strange. Has anyone experienced this? Any idea why this might be happening?

BTW, the hack is working superbly, without problems. Truly a masterpiece.

rich

I've tested the hack with IE, Netscape Communicator 7.2 and Firefox. There is not a hint of a problem with any of them. Please check the mods you made in the private.php file.

Rgds

sv1cec 01-27-2005 06:11 PM

Quote:

Originally Posted by jluerken
Hi, sv1cec

I have a small problem with the hack now.

When I am logged in I can start a new thread but if not I am getting this error message when I click on 'new thread'.

Fatal error: Call to a member function on a non-object in /PATH/forum/includes/functions.php on line 2070

On line 2070 in functions.php I have this:
PHP Code:

$warn_opts=$DB_site->query_first("select * from ".TABLE_PREFIX."warning_options where oid='1'"); 

I added this:
PHP Code:

<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forum[forumid]"><div class="smallfont">[$vbphrase[new_thread]]</a

to the forumhome_forumbit_level2_post template to be able to create a thread in a forum without the need to enter it.

I am not sure if really AWS is the problem but maybe you can help.

I am not sure I understand your problem. Are not-logged-in users allowed to create new threads in your site? I've never tried anything like that, I do not allow non-logged-in users to create threads. Typically, what you should get in this situation is the screen which asks you to log in. If you do not get that, check the modification you did, in functions.php. You probably haven't replaced the globals line correctly.

Rgds

jluerken 01-27-2005 06:28 PM

I think I will solve this with an if condition that does not show those links to guests browsing the board :D

jluerken 01-27-2005 06:33 PM

This is working fine for me
PHP Code:

<if condition="$bbuserinfo['usergroupid'] != 1"><br><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forum[forumid]"><div class="smallfont">[$vbphrase[new_thread]]</a></div></if> 

and quite logic cause why should I show this link when the people are not allowed to make a new post anyway :D

sv1cec 01-27-2005 06:37 PM

Quote:

Originally Posted by jluerken
I think I will solve this with an if condition that does not show those links to guests browsing the board :D

This is not a fix to your problem, the fix is to check that you have made the mods properly. The only case I touched the functions.php file, is to add the special message for banned users. It's only a couple of things to check, the mods in that file, are very straightforward. Do check them out and make sure they are correct.

sv1cec 01-27-2005 06:39 PM

Quote:

Originally Posted by jluerken
This is working fine for me
PHP Code:

<if condition="$bbuserinfo['usergroupid'] != 1"><br><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forum[forumid]"><div class="smallfont">[$vbphrase[new_thread]]</a></div></if> 

and quite logic cause why should I show this link when the people are not allowed to make a new post anyway :D

This will also allow the registered but not yet activated users to see the link.

This is not the fix to your problem, check that you have made the changes in functions.php properly.

Rgds

sv1cec 01-28-2005 08:51 AM

Just to let you know, that I improved on the way the recently added buttons worked. Now they act like real buttons, click on them and they look as if they are pressed. Also, the name of the user appears again on the button, like it does in the textual links.

A few easy changes in your postbit and MEMBERINFO templates.

Rgds

Delphiprogrammi 01-28-2005 10:29 AM

hi,

well i did this updated and instead of those images there are buttons but if you click the button nothing happens ? i'm i missing something here ?

sv1cec 01-28-2005 11:03 AM

Quote:

Originally Posted by Delphiprogrammi
hi,

well i did this updated and instead of those images there are buttons but if you click the button nothing happens ? i'm i missing something here ?

Did you erase only the <img things, or also the <a href ???

rgds

Delphiprogrammi 01-28-2005 11:14 AM

Quote:

Originally Posted by sv1cec
Did you erase only the <img things, or also the <a href ???

rgds

no the a href="" stuff is still there i just replace the img tag and before the "</a>" i add the new code

Code:

<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w"></a>

sv1cec 01-28-2005 11:22 AM

Quote:

Originally Posted by Delphiprogrammi
no the a href="" stuff is still there i just replace the img tag and before the "</a>" i add the new code

Code:

<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w"></a>

OK, here is the code as it is in my template:

HTML Code:

<!-- checks for warning system -->
<if condition="THIS_SCRIPT=='showthread' AND $buttons=='Text'">
<if condition="$hierarchical=='No'">
        <if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
        <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ?
        </if>
        <if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6)">
        <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?
        </if>
        <if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND $post[warning_level]>0">
        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?

        </if>
</if>
<if condition="$hierarchical=='Yes'">
        <if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])) OR ($post[usergroupid]==7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid]) AND $bbuserinfo[usergroupid]==5) OR
        ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)"
>

        <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a> ?
        </if>
        <if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5)) OR ($post[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
        <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View $post[username]'s Warnings</a> ?
        </if>
        <if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[warning_level]>0">
        <a href='Warn.php?do=ViewMyWarnings'>View your Warnings</a> ?
        </if>
</if>
</if>
<if condition="THIS_SCRIPT=='showthread' AND $buttons=='Buttons'">
<if condition="$hierarchical=='No'">
        <if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
        <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"/></a> ?
        </if>
        <if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5 OR $bbuserinfo[usergroupid]==6)">
        <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v"/></a> ?
        </if>
        <if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[usergroupid]!=7 AND $post[usergroupid]!=5 AND $post[warning_level]>0">
        <a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v"/></a> ?
        </if>
</if>
<if condition="$hierarchical=='Yes'">
        <if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])) OR ($post[usergroupid]==7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid]) AND $bbuserinfo[usergroupid]==5) OR
        ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)"
>

<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"/></a> ?
        </if>
        <if condition="($post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND ($bbuserinfo[usergroupid]==7 OR $bbuserinfo[usergroupid]==5)) OR ($post[usergroupid]==7 AND $bbuserinfo[usergroupid]==5) OR ($bbuserinfo[usergroupid]==6 AND $post[usergroupid]!=6)">
        <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View $post[username]'s Warnings" accesskey="v"/></a> ?
        </if>
        <if condition="$post[userid]==$bbuserinfo[userid] AND $post[usergroupid]!=6 AND $post[warning_level]>0">
        <a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View Your Warnings" accesskey="v"/></a> ?
        </if>
</if>
</if>
<!-- end of warning system -->

Rgds

Delphiprogrammi 01-28-2005 12:47 PM

hi sv1cec,

thanks for the code ;) i copy & pasted that in my postbit template but for some reason (don't ask me why i have no idea) nothing is happening when you click that button however i modified the code a little

Code:

<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="javascript:window.location=http://www.yourserver.com/forums/Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]">
then the button works

rgds

sv1cec 01-28-2005 01:12 PM

CAUTION: The latest mod which was implemented with version 3.1.4 DOES NOT WORK with Internet Explorer. Do not install it, until I find the proper solution.

sv1cec 01-28-2005 01:25 PM

Quote:

Originally Posted by Delphiprogrammi
hi sv1cec,

thanks for the code ;) i copy & pasted that in my postbit template but for some reason (don't ask me why i have no idea) nothing is happening when you click that button however i modified the code a little

Code:

<input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="javascript:window.location=http://www.yourserver.com/forums/Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]">
then the button works

rgds

Are you sure it works with this code you attached?

I try it in Internet Explorer and it does not work, with or without that onclick thing.

Delphiprogrammi 01-28-2005 01:59 PM

no now it doesn't work anymore fu** it worked the first time i tryed it

Exernon 01-28-2005 02:02 PM

Quote:

Originally Posted by sv1cec
CAUTION: The latest mod which was implemented with version 3.1.4 DOES NOT WORK with Internet Explorer. Do not install it, until I find the proper solution.

So why not place the 100% working version instead of showing the 3.1.4 to the public?

Bolas 01-28-2005 02:09 PM

because Firefox is The Solution! :)

sv1cec 01-28-2005 02:15 PM

OK, I found it. It now works OK with IE, Firefox and Netscape, so everyone should be happy.

Sorry about that, but I couldn't believe that it would work with Firefox and not work with IE.

I'll upload the corrected files in a few moments.
Rgds


All times are GMT. The time now is 04:57 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.02364 seconds
  • Memory Usage 1,915KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (10)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