vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Advanced Warning System (AWS) (https://vborg.vbsupport.ru/forumdisplay.php?f=105)
-   -   I have a problem (https://vborg.vbsupport.ru/showthread.php?t=78334)

RsX 03-18-2005 03:46 PM

I have a problem
 
Every time i warn someone i get this error

Quote:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/pccjuvj/public_html/forum/includes/functions_warning.php(472) : eval()'d code on line 19
but the user is warned
and everything else runs smoothly excpet: when the user checks out the pm, the title is there saying you have been warned but everythign in it is empty.. it DOES work when u remove the warn tho...

Without changing, just looking and attempting to save the warn_pm template

Quote:

vBulletin Message
The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_STRING, expecting ']' in /home/pccjuvj/public_html/forum/includes/adminfunctions_template.php(3096) : eval()'d code on line 5

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

sv1cec 03-19-2005 05:33 AM

I do not have this problem, here is the warn_pm template as I have it:

Code:

Dear $user[username],

You have been warned for one of your posts, which violated $vboptions[bbtitle] Rules. The reason you have been warned is because:

$warn_type[warn_desc]
(Warning Type = $warn_type[warn_name])

For this violation, you have been given : $warn_type[warn_points] point(s).
The point(s) will remain in your account for $warn_type[warn_maturity] days.
After that, they will be removed automatically.

The post for which you are warned can be seen here:

$thread1

The admin/moderator who warned you, entered this comment:

=======================================
$_POST[comment]
=======================================

Your total Warning Level at the moment is: $level point(s).

If you reach the maximum of $vboptions[warn_points_before_banned], you will be banned from the Forums, for $peruserbanlimit days.

To see details about all the warnings you have received, until now, please click here.

Please reply back if you have a dispute.

Rgds

RsX 03-19-2005 07:19 AM

thanks sv1ec, that worked... but now i discovered another bug :S when i send someone a pm that i write (or anyone sends to anyone), it only shows the title but not the body..

A moderator from my site sent me something and i could only see the title, btu no content... (i can even see the sig) but still not the body. i tested it out to see if it wasnt just this once.... but it isnt.. i dont know what to do.. how can i fix this?

but when i warn someone, or take off a post, (anything from the templates), the body shows (dontent and everything)... but when u write a new one to send, it doesnt work.. i went over the private.php file, uploaded the backup and redid the edits but no luck..

how do i fix this?

sv1cec 03-19-2005 10:17 AM

Is this a new installation? It must be, because there was an ommission in the new installation instructions. Find:



PHP Code:

// End of automated warnings things 

And right below that, add:

$message=$pm_message;

I hope this helps.

RsX 03-19-2005 11:30 AM

Ok Ill Try It As Soon As I Get To My Pc.. Thanks Alot For Ur Help Man :)
(using Caps Coz I Aint On My Pc.. Using Grandmas And Cba To Switch Languages Always Lol)


All times are GMT. The time now is 10:30 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.01127 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete