Posts: 5,525
Threads: 73
Joined: Feb 2012
Reputation:
582
2012-03-17, 04:46 PM
(This post was last modified: 2012-03-17, 04:46 PM by Destroy666.)
Posts: 349
Threads: 89
Joined: Aug 2010
Reputation:
0
2012-03-17, 06:03 PM
I don't have a program to extract 7z files, so if I upload it to my cpanel will cpanel be able to open it?
Thanks!
Posts: 10,063
Threads: 311
Joined: Oct 2008
Reputation:
457
2012-03-17, 06:06 PM
I don't think so. If you're on Windows just get 7-Zip.
Posts: 19
Threads: 12
Joined: Mar 2012
Reputation:
0
2012-03-18, 10:34 PM
When I put it in my plugin folder I get this line
"Warning [2] require_once(/Applications/XAMPP/xamppfiles/htdocs/inc/plugins/phptpl.php) [function.require-once]: failed to open stream: Permission denied - Line: 477 - File: admin/modules/config/plugins.php PHP 5.3.1 (Darwin)"
How can I fix this?
Posts: 1
Threads: 0
Joined: May 2012
Reputation:
0
2012-05-09, 09:38 AM
<if {$navbit['name']}=="forums" then>
test
</if>
This is not working
Posts: 81
Threads: 18
Joined: May 2012
Reputation:
0
2012-05-22, 05:26 AM
(This post was last modified: 2012-05-22, 05:42 AM by Cyberuben.)
I am trying to use PHP to call something from the database, find a SteamID, search this in another table and put it out.
This is my current code:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tbody>
<tr>
<td class="tcat">
<div class="float_left smalltext">
{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
</div>
{$post['posturl']}
</td>
</tr>
<tr>
<td class="trow1 {$unapaproved_shade}">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
{$post['useravatar']}
</td>
<td class="post_author">
<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
</span>
</td>
<td class="smalltext post_author_info" width="165">
{$post['user_details']}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="trow2 post_content {$unapproved_shade}">
<span class="smalltext"><strong>{$post['subject']} | {$GLOBALS['threadfields']['b_reason_short']}<br />{$post['subject_extra']}</strong></span>
<div class="post_body" id="pid_{$post['pid']}">
<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tr>
<td class="trow1" valign="top" width="25%"><strong>Name: </strong></td><td class="trow1" valign="top" width="75%">{$post['subject']}</td>
</tr>
<tr>
<td class="trow2" valign="top" width="25%"><strong>SteamID: </strong></td><td class="trow2" valign="top" width="75%">{$GLOBALS['threadfields']['b_steamid']}</td>
</tr>
<tr>
<td class="trow1" valign="top" width="25%"><strong>Reason to be banned (short): </strong></td><td class="trow1" valign="top" width="75%">{$GLOBALS['threadfields']['b_reason_short']}</td>
</tr>
<tr>
<td class="trow2" valign="top" width="25%"><strong>Reason to be banned: </strong></td><td class="trow2" valign="top" width="75%">{$GLOBALS['threadfields']['b_reason']}</td>
</tr>
<tr>
<td class="trow1" valign="top" width="25%"><strong>Evidence: </strong></td><td class="trow1" valign="top" width="75%">{$GLOBALS['threadfields']['b_evidence']}</td>
</tr>
<tr>
<td class="trow2" valign="top" width="25%"><strong>Note to moderator: </strong></td><td class="trow2" valign="top" width="75%">{$GLOBALS['threadfields']['b_note']}</td>
</tr>
<tr>
<td class="trow1" valign="top" width="25%"><strong>Previous bans: </strong></td><td class="trow1" valign="top" width="75%">
<?php
$SQLquery =
"
SELECT
b_steamid
FROM
mybb_threadfields_date
WHERE
tid = '" . mysql_real_escape_string($_GET['tid']) . "'
";
$resultaat = mysql_query($SQLquery) or die(mysql_error());
if(mysql_num_rows($resultaat) == 1)
{
$SQLquery =
"
SELECT
CONCAT('toggle[ban_', banid, ']') AS db_banid,
name,
steamid,
banlength
FROM
excl_bans
WHERE
steamid = '" . mysql_result($resultaat, 0, 'b_steam_id') . "'
";
$resultaat = mysql_query($SQLquery) or die(mysql_error());
if(mysql_num_rows($resultaat) > 0)
{
?>
<div id="banlist">
<div>
<table width="100%" cellspacing="0" cellpadding="0" align="center" class="listtable">
<tr>
<td width="14%" height="16" class="listtable_top" align="center"><b>Date</b></td>
<td height="16" class="listtable_top"><b>Name</b></td>
<td width="20%" height="16" class="listtable_top"><b>Admin</b></td>
<td width="10%" height="16" class="listtable_top" align="center"><b>Length</b></td>
</tr>
</table>
</div>
<?php
while ($rows = mysql_fetch_assoc($resultaat))
{
echo "<a href=\"#\" rel=\"". $rows['db_banid'] . "\"><div>\n";
echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"listtable\">\n";
echo "<tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo "<td width=\"14%\" height=\"16\" align=\"center\" class=\"listtable_1\">". $rows['banlength'] . "</td>\n";
echo "<td height=\"16\" class=\"listtable_1\">". $rows['name'] . "</td>\n";
echo "<td width=\"20%\" height=\"16\" class=\"listtable_1\">Excl</td>\n";
echo "<td width=\"10%\" height=\"16\" align=\"center\" class=\"listtable_1\">". $rows['banlength'] . "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div></a>\n";
echo "<div id=\"ban_". $rows['banid'] . "\" align=\"center\">\n";
echo "<table width=\"80%\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"listtable\">\n";
echo "<tr>\n";
echo "<td width=\"100%\" height=\"16\" class=\"listtable_top\" align=\"center\" colspan=\"2\"><strong>Ban Details</strong></td>\n";
echo "</tr>\n";
echo "<tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo "<td height=\"16\" width=\"20%\" class=\"listtable_1\">Name</td><td width=\"80%\" class=\"listtable_1\">". $rows['name'] . "</td>\n";
echo " </tr>\n";
echo " <tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo "<td height=\"16\" width=\"20%\" class=\"listtable_1\">SteamID</td><td width=\"80%\" class=\"listtable_1\">". $rows['steamid'] . "</td>\n";
echo " </tr>\n";
echo " <tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo " <td height=\"16\" width=\"20%\" class=\"listtable_1\">CommunityID</td><td width=\"80%\" class=\"listtable_1\">546354321354</td>\n";
echo " </tr>\n";
echo " <tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo "<td height=\"16\" width=\"20%\" class=\"listtable_1\">Banlength</td><td width=\"80%\" class=\"listtable_1\">". $rows['banlength'] . "</td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "</div>\n";
}
}
}
?>
</td>
</tr>
</table>
</div>
<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
</td>
</tr>
<tr>
<td class="trow1 post_buttons {$unapproved_shade}">
<div class="author_buttons float_left">
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}
</div>
<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</td>
</tr>
</tbody>
</table>
For some reason the PHP doesn't work.
I get these errors:
Parse error: syntax error, unexpected $end in /home/casualbananas.com/public_html/inc/functions_post.php(645) : eval()'d code(102) : eval()'d code on line 34
Parse error: syntax error, unexpected '}' in /home/casualbananas.com/public_html/inc/functions_post.php(645) : eval()'d code(153) : eval()'d code on line 34
What am I doing wrong?
http://puu.sh/w1gJ
This is what SHOULD happen, one or multiple records (Previous bans field)
Posts: 151
Threads: 17
Joined: Jun 2009
Reputation:
1
2012-05-22, 04:39 PM
(2012-05-22, 05:26 AM)Cyberuben Wrote: I am trying to use PHP to call something from the database, find a SteamID, search this in another table and put it out.
This is my current code:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tbody>
<tr>
<td class="tcat">
<div class="float_left smalltext">
{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
</div>
{$post['posturl']}
</td>
</tr>
<tr>
<td class="trow1 {$unapaproved_shade}">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
{$post['useravatar']}
</td>
<td class="post_author">
<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
</span>
</td>
<td class="smalltext post_author_info" width="165">
{$post['user_details']}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="trow2 post_content {$unapproved_shade}">
<span class="smalltext"><strong>{$post['subject']} | {$GLOBALS['threadfields']['b_reason_short']}<br />{$post['subject_extra']}</strong></span>
<div class="post_body" id="pid_{$post['pid']}">
<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tr>
<td class="trow1" valign="top" width="25%"><strong>Name: </strong></td><td class="trow1" valign="top" width="75%">{$post['subject']}</td>
</tr>
<tr>
<td class="trow2" valign="top" width="25%"><strong>SteamID: </strong></td><td class="trow2" valign="top" width="75%">{$GLOBALS['threadfields']['b_steamid']}</td>
</tr>
<tr>
<td class="trow1" valign="top" width="25%"><strong>Reason to be banned (short): </strong></td><td class="trow1" valign="top" width="75%">{$GLOBALS['threadfields']['b_reason_short']}</td>
</tr>
<tr>
<td class="trow2" valign="top" width="25%"><strong>Reason to be banned: </strong></td><td class="trow2" valign="top" width="75%">{$GLOBALS['threadfields']['b_reason']}</td>
</tr>
<tr>
<td class="trow1" valign="top" width="25%"><strong>Evidence: </strong></td><td class="trow1" valign="top" width="75%">{$GLOBALS['threadfields']['b_evidence']}</td>
</tr>
<tr>
<td class="trow2" valign="top" width="25%"><strong>Note to moderator: </strong></td><td class="trow2" valign="top" width="75%">{$GLOBALS['threadfields']['b_note']}</td>
</tr>
<tr>
<td class="trow1" valign="top" width="25%"><strong>Previous bans: </strong></td><td class="trow1" valign="top" width="75%">
<?php
$SQLquery =
"
SELECT
b_steamid
FROM
mybb_threadfields_date
WHERE
tid = '" . mysql_real_escape_string($_GET['tid']) . "'
";
$resultaat = mysql_query($SQLquery) or die(mysql_error());
if(mysql_num_rows($resultaat) == 1)
{
$SQLquery =
"
SELECT
CONCAT('toggle[ban_', banid, ']') AS db_banid,
name,
steamid,
banlength
FROM
excl_bans
WHERE
steamid = '" . mysql_result($resultaat, 0, 'b_steam_id') . "'
";
$resultaat = mysql_query($SQLquery) or die(mysql_error());
if(mysql_num_rows($resultaat) > 0)
{
?>
<div id="banlist">
<div>
<table width="100%" cellspacing="0" cellpadding="0" align="center" class="listtable">
<tr>
<td width="14%" height="16" class="listtable_top" align="center"><b>Date</b></td>
<td height="16" class="listtable_top"><b>Name</b></td>
<td width="20%" height="16" class="listtable_top"><b>Admin</b></td>
<td width="10%" height="16" class="listtable_top" align="center"><b>Length</b></td>
</tr>
</table>
</div>
<?php
while ($rows = mysql_fetch_assoc($resultaat))
{
echo "<a href=\"#\" rel=\"". $rows['db_banid'] . "\"><div>\n";
echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"listtable\">\n";
echo "<tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo "<td width=\"14%\" height=\"16\" align=\"center\" class=\"listtable_1\">". $rows['banlength'] . "</td>\n";
echo "<td height=\"16\" class=\"listtable_1\">". $rows['name'] . "</td>\n";
echo "<td width=\"20%\" height=\"16\" class=\"listtable_1\">Excl</td>\n";
echo "<td width=\"10%\" height=\"16\" align=\"center\" class=\"listtable_1\">". $rows['banlength'] . "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div></a>\n";
echo "<div id=\"ban_". $rows['banid'] . "\" align=\"center\">\n";
echo "<table width=\"80%\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"listtable\">\n";
echo "<tr>\n";
echo "<td width=\"100%\" height=\"16\" class=\"listtable_top\" align=\"center\" colspan=\"2\"><strong>Ban Details</strong></td>\n";
echo "</tr>\n";
echo "<tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo "<td height=\"16\" width=\"20%\" class=\"listtable_1\">Name</td><td width=\"80%\" class=\"listtable_1\">". $rows['name'] . "</td>\n";
echo " </tr>\n";
echo " <tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo "<td height=\"16\" width=\"20%\" class=\"listtable_1\">SteamID</td><td width=\"80%\" class=\"listtable_1\">". $rows['steamid'] . "</td>\n";
echo " </tr>\n";
echo " <tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo " <td height=\"16\" width=\"20%\" class=\"listtable_1\">CommunityID</td><td width=\"80%\" class=\"listtable_1\">546354321354</td>\n";
echo " </tr>\n";
echo " <tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo "<td height=\"16\" width=\"20%\" class=\"listtable_1\">Banlength</td><td width=\"80%\" class=\"listtable_1\">". $rows['banlength'] . "</td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "</div>\n";
}
}
}
?>
</td>
</tr>
</table>
</div>
<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
</td>
</tr>
<tr>
<td class="trow1 post_buttons {$unapproved_shade}">
<div class="author_buttons float_left">
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}
</div>
<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</td>
</tr>
</tbody>
</table> For some reason the PHP doesn't work.
I get these errors:
Parse error: syntax error, unexpected $end in /home/casualbananas.com/public_html/inc/functions_post.php(645) : eval()'d code(102) : eval()'d code on line 34
Parse error: syntax error, unexpected '}' in /home/casualbananas.com/public_html/inc/functions_post.php(645) : eval()'d code(153) : eval()'d code on line 34
What am I doing wrong?
http://puu.sh/w1gJ
This is what SHOULD happen, one or multiple records (Previous bans field)
First error means you forgot a ; so check all your lines of code, make sure they are on the same line and don't have an ENTER pressed in the middle.
Second error means just remove one of your } at the end of all your PHP, you just have 1 too many.
Posts: 81
Threads: 18
Joined: May 2012
Reputation:
0
2012-05-22, 08:38 PM
(2012-05-22, 04:39 PM)Steve Moore Wrote: (2012-05-22, 05:26 AM)Cyberuben Wrote: I am trying to use PHP to call something from the database, find a SteamID, search this in another table and put it out.
This is my current code:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tbody>
<tr>
<td class="tcat">
<div class="float_left smalltext">
{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
</div>
{$post['posturl']}
</td>
</tr>
<tr>
<td class="trow1 {$unapaproved_shade}">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
{$post['useravatar']}
</td>
<td class="post_author">
<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
</span>
</td>
<td class="smalltext post_author_info" width="165">
{$post['user_details']}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="trow2 post_content {$unapproved_shade}">
<span class="smalltext"><strong>{$post['subject']} | {$GLOBALS['threadfields']['b_reason_short']}<br />{$post['subject_extra']}</strong></span>
<div class="post_body" id="pid_{$post['pid']}">
<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tr>
<td class="trow1" valign="top" width="25%"><strong>Name: </strong></td><td class="trow1" valign="top" width="75%">{$post['subject']}</td>
</tr>
<tr>
<td class="trow2" valign="top" width="25%"><strong>SteamID: </strong></td><td class="trow2" valign="top" width="75%">{$GLOBALS['threadfields']['b_steamid']}</td>
</tr>
<tr>
<td class="trow1" valign="top" width="25%"><strong>Reason to be banned (short): </strong></td><td class="trow1" valign="top" width="75%">{$GLOBALS['threadfields']['b_reason_short']}</td>
</tr>
<tr>
<td class="trow2" valign="top" width="25%"><strong>Reason to be banned: </strong></td><td class="trow2" valign="top" width="75%">{$GLOBALS['threadfields']['b_reason']}</td>
</tr>
<tr>
<td class="trow1" valign="top" width="25%"><strong>Evidence: </strong></td><td class="trow1" valign="top" width="75%">{$GLOBALS['threadfields']['b_evidence']}</td>
</tr>
<tr>
<td class="trow2" valign="top" width="25%"><strong>Note to moderator: </strong></td><td class="trow2" valign="top" width="75%">{$GLOBALS['threadfields']['b_note']}</td>
</tr>
<tr>
<td class="trow1" valign="top" width="25%"><strong>Previous bans: </strong></td><td class="trow1" valign="top" width="75%">
<?php
$SQLquery =
"
SELECT
b_steamid
FROM
mybb_threadfields_date
WHERE
tid = '" . mysql_real_escape_string($_GET['tid']) . "'
";
$resultaat = mysql_query($SQLquery) or die(mysql_error());
if(mysql_num_rows($resultaat) == 1)
{
$SQLquery =
"
SELECT
CONCAT('toggle[ban_', banid, ']') AS db_banid,
name,
steamid,
banlength
FROM
excl_bans
WHERE
steamid = '" . mysql_result($resultaat, 0, 'b_steam_id') . "'
";
$resultaat = mysql_query($SQLquery) or die(mysql_error());
if(mysql_num_rows($resultaat) > 0)
{
?>
<div id="banlist">
<div>
<table width="100%" cellspacing="0" cellpadding="0" align="center" class="listtable">
<tr>
<td width="14%" height="16" class="listtable_top" align="center"><b>Date</b></td>
<td height="16" class="listtable_top"><b>Name</b></td>
<td width="20%" height="16" class="listtable_top"><b>Admin</b></td>
<td width="10%" height="16" class="listtable_top" align="center"><b>Length</b></td>
</tr>
</table>
</div>
<?php
while ($rows = mysql_fetch_assoc($resultaat))
{
echo "<a href=\"#\" rel=\"". $rows['db_banid'] . "\"><div>\n";
echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"listtable\">\n";
echo "<tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo "<td width=\"14%\" height=\"16\" align=\"center\" class=\"listtable_1\">". $rows['banlength'] . "</td>\n";
echo "<td height=\"16\" class=\"listtable_1\">". $rows['name'] . "</td>\n";
echo "<td width=\"20%\" height=\"16\" class=\"listtable_1\">Excl</td>\n";
echo "<td width=\"10%\" height=\"16\" align=\"center\" class=\"listtable_1\">". $rows['banlength'] . "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</div></a>\n";
echo "<div id=\"ban_". $rows['banid'] . "\" align=\"center\">\n";
echo "<table width=\"80%\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"listtable\">\n";
echo "<tr>\n";
echo "<td width=\"100%\" height=\"16\" class=\"listtable_top\" align=\"center\" colspan=\"2\"><strong>Ban Details</strong></td>\n";
echo "</tr>\n";
echo "<tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo "<td height=\"16\" width=\"20%\" class=\"listtable_1\">Name</td><td width=\"80%\" class=\"listtable_1\">". $rows['name'] . "</td>\n";
echo " </tr>\n";
echo " <tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo "<td height=\"16\" width=\"20%\" class=\"listtable_1\">SteamID</td><td width=\"80%\" class=\"listtable_1\">". $rows['steamid'] . "</td>\n";
echo " </tr>\n";
echo " <tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo " <td height=\"16\" width=\"20%\" class=\"listtable_1\">CommunityID</td><td width=\"80%\" class=\"listtable_1\">546354321354</td>\n";
echo " </tr>\n";
echo " <tr class=\"tbl_out\" onmouseout=\"this.className='tbl_out'\" onmouseover=\"this.className='tbl_hover'\">\n";
echo "<td height=\"16\" width=\"20%\" class=\"listtable_1\">Banlength</td><td width=\"80%\" class=\"listtable_1\">". $rows['banlength'] . "</td>\n";
echo " </tr>\n";
echo "</table>\n";
echo "</div>\n";
}
}
}
?>
</td>
</tr>
</table>
</div>
<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
</td>
</tr>
<tr>
<td class="trow1 post_buttons {$unapproved_shade}">
<div class="author_buttons float_left">
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}
</div>
<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</td>
</tr>
</tbody>
</table> For some reason the PHP doesn't work.
I get these errors:
Parse error: syntax error, unexpected $end in /home/casualbananas.com/public_html/inc/functions_post.php(645) : eval()'d code(102) : eval()'d code on line 34
Parse error: syntax error, unexpected '}' in /home/casualbananas.com/public_html/inc/functions_post.php(645) : eval()'d code(153) : eval()'d code on line 34
What am I doing wrong?
http://puu.sh/w1gJ
This is what SHOULD happen, one or multiple records (Previous bans field)
First error means you forgot a ; so check all your lines of code, make sure they are on the same line and don't have an ENTER pressed in the middle.
Second error means just remove one of your } at the end of all your PHP, you just have 1 too many.
I already found out, it was something different.
I closed the PHP tag within a { so I interupted a closed '{}' with opening and closing PHP.
Posts: 3,420
Threads: 100
Joined: Aug 2011
Reputation:
157
2012-09-19, 04:18 PM
(2012-05-09, 09:38 AM)selvin_009 Wrote: <if {$navbit['name']}=="forums" then>
test
</if>
This is not working
Use this code
<if $navbit['name']}=="forums" then>
test
</if>
Posts: 20
Threads: 1
Joined: May 2012
Reputation:
1
2012-10-08, 03:23 AM
(This post was last modified: 2012-10-08, 03:25 AM by Glitch.)
Sorry for raising an old thread but I just have one question related to the plugin.
On my board, I have a custom profile field in the (classic) postbit and want to replace the content inside the div with something else for just one usergroup/user. I've tried using elseif to achieve this but I either return PHP errors or nothing's changed.
Thread in which I'm using: http://www.vaulthunters.com/showthread.php?19-Howdy
Here's my postbit_author_user template:
<div class="statpost">{$lang->postbit_posts} {$post['postnum']}</div>
<div class="statpost">{$lang->postbit_joined} {$post['userregdate']}</div>
<if $post['fid7'] then><div class="statpost">Class: {$post['fid7']}</div><elseif $post['usergroup] == "21" then><div class="statpost">Vendor: </div><else><div class="statpost">Group: {$usergroup['title']}</div></if>
<if $post['usergroup'] == "21" then><div class="statpost">Vendor: {$usergroup['title']}</div></if>
<div class="statpost">{$post['replink']}</div>
{$post['warninglevel']}<br />
<if $post['fid4'] then><div class="statpost">PSN: {$post['fid4']}</div></if>
<if $post['fid5'] then><div class="statpost">XBL: {$post['fid5']}</div></if>
<if $post['fid6'] then><div class="statpost">Steam ID: <a href="http://steamcommunity.com/id/{$post['fid6']}" target="_blank" rel="nofollow">{$post['fid6']}</a></div></if>
I put a second if statement to see if the code was correct. It is. It's the elseif statement giving me guff. :/
|