Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > Advanced Warning System (AWS)
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
I have a problem Details »»
I have a problem
Version: , by RsX RsX is offline
Developer Last Online: Jul 2011 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-18-2005 Last Update: Never Installs: 0
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-19-2005, 05:33 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #3  
Old 03-19-2005, 07:19 AM
RsX's Avatar
RsX RsX is offline
 
Join Date: Sep 2004
Location: Toronto
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
  #4  
Old 03-19-2005, 10:17 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #5  
Old 03-19-2005, 11:30 AM
RsX's Avatar
RsX RsX is offline
 
Join Date: Sep 2004
Location: Toronto
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:11 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.07870 seconds
  • Memory Usage 2,239KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete