Version: , by CrimsonGT
Developer Last Online: Jul 2009
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.
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.
// 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.
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)))