|
Joined: Sep 2009
Posts: 48
newbie
|
newbie
Joined: Sep 2009
Posts: 48 |
Hello all,
This morning I was trying to delete a 'test' post in my Staff Forum and received this message (edited for security purposes):
Parse error: syntax error, unexpected '<' in /xxxxxxxxx/xxxxxxxx/x/x/parkcitiestactical.com/xxxx/ubbthreads/cache_builders/custom/portal_box_1.php on line 3
This is the first time I have seen this however I have deleted 2 or 3 posts that were not in a private Forum.
Thanks.
|
|
|
|
Joined: Sep 2009
Posts: 48
newbie
|
newbie
Joined: Sep 2009
Posts: 48 |
Just FYI the post (referenced above) was deleted....
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Well, the message is telling you that some content in the Portal Box (ID #1) is broken; what's the content of said portal box?
|
|
|
|
Joined: Sep 2009
Posts: 48
newbie
|
newbie
Joined: Sep 2009
Posts: 48 |
Um - if I understand the question (total non-tech-type) you want to know what is in the portal #1? Is this the same as the island(s)?
If you are referring to the portal that is at the top (here at this Forum for example) then that is not active on my site....
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
The "islands" are portal boxes; I'd like to see the full content of portal box #1 wrapped in [code] tags as to troubleshoot why the forum is telling you there is a problem in it.
|
|
|
|
Joined: Sep 2009
Posts: 48
newbie
|
newbie
Joined: Sep 2009
Posts: 48 |
Hopefully this is what you are looking for (please note that I am not using this particular item): <?php
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
echo "<table width=\"100%\">";
include("/services/webpages/p/a/parkcitiestactical.com/public/ubbthreads/languages/english/portal_islands.php");
include("/services/webpages/p/a/parkcitiestactical.com/public/ubbthreads/languages/english/generic.php");
include("/services/webpages/p/a/parkcitiestactical.com/public/ubbthreads/cache/portal_box_1.php");
echo "</table>";
?>
Inserting the code above will insert the following HTML into it's place. As you can see there are 2 CSS classes you'll want to define for the included HTML, those being tdheader and alt-1. You can modify the properties of the table itself in the code above.:
<table width="100%">
<tr>
<td class="tdheader">
Portal Box 1
</td>
</tr>
<tr>
<td class="alt-1">
</td>
</tr>
</table>
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
That looks like template code... I want the content from: CP -> Portal -> Custom Islands -> (Edit Island #1) A blank one would look similar to: /* PHP CODE HERE */
/* BODY HERE */
$body = <<<EOF
EOF; If what you posted truly is your custom island code for island #1 it's grossly malformed and is why you're getting the error...
|
|
|
|
Joined: Sep 2009
Posts: 48
newbie
|
newbie
Joined: Sep 2009
Posts: 48 |
Dang... OK I went there and I see what happened. I inadvertently added a 'widget' there for Amazon.com which was in JS and not PHP... that was probably the error.
I have taken out the script and will try to delete a post here in a minute.
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Well, if it's html it'd go between the 2 "eof" lines; the area between the php and body comments would be strictly for php code.
|
|
|
|
Joined: Sep 2009
Posts: 48
newbie
|
newbie
Joined: Sep 2009
Posts: 48 |
Perfect! Thanks!! As mentioned previously php ain't my bag, baby (sorry was channeling Austin Powers for a minute)!!
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
2 members (Nightcrawler, Ruben),
570
guests, and
156
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|