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)

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 ?


All times are GMT. The time now is 05:48 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.01829 seconds
  • Memory Usage 1,765KB
  • 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_php_printable
  • (5)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