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
Postbit legacy Problem Details »»
Postbit legacy Problem
Version: , by mavrick mavrick is offline
Developer Last Online: Sep 2005 Show Printable Version Email this Page

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

I have everything else working but the text that should say warn membername does no show up....

Here is the if statement:

Code:
<!-- checks for warning system -->
<if condition="THIS_SCRIPT=='showthread' AND ($buttons=='Text' OR $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]'>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" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></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" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></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" onClick="window.location='Warn.php?do=ViewMyWarnings'"></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" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></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" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></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" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a> ?
	</if>
</if>
</if>
<!-- end of warning system -->
Any ideas?

Show Your Support

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

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

Quote:
Originally Posted by mavrick
I have everything else working but the text that should say warn membername does no show up....

Here is the if statement:

Code:
<!-- checks for warning system -->
<if condition="THIS_SCRIPT=='showthread' AND ($buttons=='Text' OR $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]'>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" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></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" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></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" onClick="window.location='Warn.php?do=ViewMyWarnings'"></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" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></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" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></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" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a> ?
	</if>
</if>
</if>
<!-- end of warning system -->
Any ideas?
Have you selected if you will use text or buttons for those links? Check your Warning Options.

Rgds
  #3  
Old 02-11-2005, 03:44 PM
mavrick mavrick is offline
 
Join Date: Dec 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just noticed the warning options are not saving into the database.

The warning types are though.

Any ideas?

Ok I have the solution........

The install script never put any data into that table. This line gets an error:

$install[]="INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','3.1.5', 'No', 'No','No','No','','','','7','10','10','8','','','8 ','','No','3','0','All','No',' No','No','No','No','No','No','15','Text', 'All')";

I fixed it by inputing the data manually and everything works now.
  #4  
Old 02-11-2005, 06:27 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mavrick
I just noticed the warning options are not saving into the database.

The warning types are though.

Any ideas?

Ok I have the solution........

The install script never put any data into that table. This line gets an error:

$install[]="INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','3.1.5', 'No', 'No','No','No','','','','7','10','10','8','','','8 ','','No','3','0','All','No','No','No','No','No',' No','No','15','Text', 'All')";

I fixed it by inputing the data manually and everything works now.
Glad you have it solved.

Rgds
  #5  
Old 02-11-2005, 07:02 PM
Battle_Ring Battle_Ring is offline
 
Join Date: Apr 2004
Posts: 584
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what d oyou have to put it manually to fix this issue im havign the same problem
  #6  
Old 02-11-2005, 07:07 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Battle_Ring
what d oyou have to put it manually to fix this issue im havign the same problem
Run this query:

INSERT INTO `".TABLE_PREFIX."warning_options` values ('1','3.1.7', 'No', 'No','No','No','','','','7','10','10','8','','','8 ','','No','3','0','All','No','No','No','No','No',' No','15','Text', 'All')

I have fixed it in the zip too.

rgds
  #7  
Old 02-11-2005, 07:10 PM
Battle_Ring Battle_Ring is offline
 
Join Date: Apr 2004
Posts: 584
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i did that and i got

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'Chris04_Battle." "warning_options' doesn't exist

EDIT

i Think i got it fixed Now

Thanks
  #8  
Old 02-11-2005, 07:22 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Battle_Ring
i did that and i got

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'Chris04_Battle." "warning_options' doesn't exist




EDIT

i Think i got it fixed Now

Thanks
Glad you solved it. In the future, please avoid posting the same question in two different threads, you'll confuse me again.

Rgds
  #9  
Old 02-11-2005, 07:33 PM
Battle_Ring Battle_Ring is offline
 
Join Date: Apr 2004
Posts: 584
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Coudl you please help me my templates are all messed up now

i edited the postbit legacy templates and hit save and i get

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hsphere/local/home/chris046/battle-ring.com/forums/includes/adminfunctions_template.php(3096) : eval()'d code on line 310

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.

If you can please coem to my site and fix this for me as i dotn want to mess anything up more i will grant you admin acess

Pleaseeee :disappointed:
  #10  
Old 02-12-2005, 04:34 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Battle_Ring
Coudl you please help me my templates are all messed up now

i edited the postbit legacy templates and hit save and i get

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hsphere/local/home/chris046/battle-ring.com/forums/includes/adminfunctions_template.php(3096) : eval()'d code on line 310

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.



If you can please coem to my site and fix this for me as i dotn want to mess anything up more i will grant you admin acess

Pleaseeee :disappointed:
You have obviously edited something wrong. Make sure that you have done the changes exactly as suggested by the instructions. At least 130 users have used those templates without a problem. Worst case scenario, revert your template so that you get to the version that came with your vBulletin and start over, but this will mean that you have to reinstall all the hacks that affect that template.

Rgds
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 01:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04968 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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