Previous Thread
Next Thread
Print Thread
Hop To
#229080 09/08/2009 8:56 AM
Joined: Sep 2009
Posts: 48
S
newbie
newbie
S Offline
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
S
newbie
newbie
S Offline
Joined: Sep 2009
Posts: 48
Just FYI the post (referenced above) was deleted....

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
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?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #229085 09/08/2009 9:20 AM
Joined: Sep 2009
Posts: 48
S
newbie
newbie
S Offline
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
UBB.threads Developer
UBB.threads Developer
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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #229089 09/08/2009 10:44 AM
Joined: Sep 2009
Posts: 48
S
newbie
newbie
S Offline
Joined: Sep 2009
Posts: 48
Hopefully this is what you are looking for (please note that I am not using this particular item):

Code
 <?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> 

Stephen #229091 09/08/2009 10:51 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
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:
Code
/* 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...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #229096 09/08/2009 4:02 PM
Joined: Sep 2009
Posts: 48
S
newbie
newbie
S Offline
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
UBB.threads Developer
UBB.threads Developer
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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #229099 09/08/2009 8:50 PM
Joined: Sep 2009
Posts: 48
S
newbie
newbie
S Offline
Joined: Sep 2009
Posts: 48
Perfect! Thanks!! As mentioned previously php ain't my bag, baby (sorry was channeling Austin Powers for a minute)!!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
2 members (Gizmo, Nightcrawler), 791 guests, and 189 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)