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
Problem when installing... Details »»
Problem when installing...
Version: , by CrimsonGT CrimsonGT is offline
Developer Last Online: Jul 2009 Show Printable Version Email this Page

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

Okay, I am a tad bit upset because I just bought my VBulletin forums and this was the first hack I chose to install. I get to the very end and I am almost done and everythings looking great then this happens...

Code:
2. MEMBERINFO TEMPLATE

In your MEMBERINFO template, find:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
$headinclude
</head>
<body>
$header
$navbar

<!-- main info - avatar, profilepic etc. -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
and so on and so on, its a big block of code...

and then it says replace it with another big block. When I do this, I get the following error when I try to save it.

Quote:
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 /home/nightmar/public_html/forum/includes/adminfunctions_template.php(3096) : eval()'d code on line 132

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.
Im so close to finishing and for some reason I am getting this error when I try and save the edited MEMBERINFO template...please help?

Show Your Support

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

Comments
  #2  
Old 04-19-2005, 09:51 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Double check your edit.
  #3  
Old 04-19-2005, 10:37 AM
CrimsonGT CrimsonGT is offline
 
Join Date: Apr 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, took me 4 times before I finally did it right. Its all installed and appears to work correctly except for one problem...

if you try to view a member's public profile, I get this...
Quote:
Parse error: parse error, unexpected ')' in /home/nightmar/public_html/forum/member.php on line 625
and if you try to go to the private message area...
Quote:
Parse error: parse error, unexpected T_ELSE in /home/nightmar/public_html/forum/private.php on line 949
Any idea why its doing that?
  #4  
Old 04-19-2005, 12:14 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Show me what you have about 10 lines before line 625 and 10 lines after in member.php.

Same thing with private.php, show me what you have a little before and a little after that line (949).

Rgds
  #5  
Old 04-19-2005, 05:01 PM
CrimsonGT CrimsonGT is offline
 
Join Date: Apr 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway to determine what line you are looking at rather than counting from the top? I have usually just counted but 600 and 900+ are a long ways to count.
  #6  
Old 04-19-2005, 05:05 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For God's name, what editor are you using? Notepad? Please, do yourself a favor and don't use that crap.

Every decent editor should tell you, at which line you are at. Try downloading Crimson Editor or some other decent one.

Rgds
  #7  
Old 04-19-2005, 05:10 PM
j_86 j_86 is offline
 
Join Date: May 2003
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Notepad tells you what line you're on.

When you're on a line, do Edit > GoTo

or, View > Status Bar

  #8  
Old 04-19-2005, 05:13 PM
CrimsonGT CrimsonGT is offline
 
Join Date: Apr 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in member...

Code:
// Shall we show the warn/view warns/view your warnings links?

		if ($hierarchical==0)
		{
			if ($postadmin!=1 AND $postmod!=1 AND $postsmod!=1 AND ($useradmin==1 OR $usersmod==1 OR  $usermod==1))
			{
				$showwarnlink=1;
				$showviewwarnlink=1;
			}
			if ($userinfo[userid]==$bbuserinfo[userid] AND $useradmin!=1 AND $usersmod!=1 AND $usermod!=1 AND  ($userinfo[warning_level]>0 OR $userinfo[warnings]>0 OR $userinfo[alerts]>0)))
			{
				$showviewyourslink=1;
			}
		}
		
		if ($hierarchical==1)
		{
			if (($postadmin!=1 AND $postmod!=1 AND $postsmod!=1 AND ($useradmin==1 OR $usersmod==1 OR  $usermod==1)) OR ($postmod==1 AND $usersmod==1) OR ($useradmin==1 AND $postadmin!=1))	
			{
				$showwarnlink=1;
				$showviewwarnlink=1;
			}
			if ($post[userid]==$bbuserinfo[userid] AND $postadmin!=1 AND ($post[warning_level]>0 OR  $post[warnings]>0 OR $post[alerts]>0))
			{
				$showviewyourslink=1;
			}
		}
and in private...

Code:
if (!$collector=='' AND (vbstrtolower($recipient)==vbstrtolower($warner) OR  vbstrtolower($recipient)==vbstrtolower($autowarner)))
				{
					$recipient=$collector;
				if ($recipient != '')
				{
					$recipients["$recipient"] = addslashes(htmlspecialchars_uni($recipient));
				}
			}
		}
		// just a single user
		else
		{
			if (!$collector=='' AND (vbstrtolower($pm['recipients'])==vbstrtolower($warner) OR  vbstrtolower($pm['recipients'])==vbstrtolower($autowarner)))
			{
				$pm['recipients']=$collector;
			}
			
			$recipients[] = addslashes(htmlspecialchars_uni($pm['recipients']));
		}
		// query recipients
Thanks Jimps but I have been using wordpad, as notepad tends to make my code go to crap sometimes when I open or save a file. I just downloaded that Crimson Editor and its very nice, thanks for the link.
  #9  
Old 04-19-2005, 07:35 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In this line:

PHP Code:
if ($userinfo[userid]==$bbuserinfo[userid] AND $useradmin!=AND $usersmod!=AND $usermod!=AND  ($userinfo[warning_level]>OR $userinfo[warnings]>OR $userinfo[alerts]>0))) 
delete one of the parenthesis at the end.

In private.php, find:

PHP Code:
$recipient=$collector
Add a } after that line.

Rgds
  #10  
Old 04-20-2005, 02:25 AM
CrimsonGT CrimsonGT is offline
 
Join Date: Apr 2005
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, that fixed it, quick support too :nervous:

I found one more bug with it, New Thread doesn't work either.

the error-
Code:
Parse error: parse error, unexpected T_ELSE in /home/nightmar/public_html/forum/newthread.php on line 188
the block of code-
Code:
			// End of automated warnings things
		{
			$url = "showthread.php?$session[sessionurl]p=$newpost[postid]#post$newpost[postid]";
		}
		else
		{
			$_REQUEST['forceredirect'] = 1;
			$url = "forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]";
		}
		eval(print_standard_redirect('redirect_postthanks'));
	} // end if
}
The problematic line is where it says else, but I cant seem to find anything wrong with it?
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 05:24 AM.


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.04752 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (5)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete