Previous Thread
Next Thread
Print Thread
Hop To
#228528 08/21/2009 5:03 PM
Joined: Jun 2006
Posts: 287
enthusiast
enthusiast
Joined: Jun 2006
Posts: 287
I decided to add some of my forum islands onto my site's main page. I copied the code from the external use page and put it in the main page and checked the "Always Use" box. The content shows on the front page, the content shows but the formatting like the test formatting and the wrapper is missing. The path to the CSS files is correct. Is the formatting and wrapper supposed to show as well or do I need to edit my code to add it? This is not a big deal but I ASSUMED that inserting an island directly from the forums would show up exactly like it does in the forums.


Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Somewhere here is a post on this. will have to try to find it.
Memory says if using a wrapper then you need to add something.
Also some Islands will not work.
So what type of Island are you using.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
LOL, Are you ready for this!
You asked the same question in 2008 and Rick responded.
HERE is the post


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 287
enthusiast
enthusiast
Joined: Jun 2006
Posts: 287
Originally Posted by Ruben
LOL, Are you ready for this!

Ohhhhh no. blush

Thank you my friend. This shows me two things; one, I have too much going on that I don't finish with things by leaving them in open ends and two, I WAS going to use the search - so why didn't I? mad

I now know what I must do...


Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Don't fret.
I knew I read this before but it took a while to re-find it.
But to be honest the answer was not really clear to me.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 287
enthusiast
enthusiast
Joined: Jun 2006
Posts: 287
Originally Posted by Ruben
But to be honest the answer was not really clear to me.

Actually it makes perfect sense, well, to me it does. My wrapper is based on a design I made to wrap my menu in. I created the images for the top, sides and bottom and inserted them into a table that forms a box with the middle of the box intended for the conetent. It naturally fit into my UBB wrapper as luck would have it.

As per Ricks reply all I have to do is place the island code from the forum into the center of the table code and I have my islands wrapped. Unfortunately the content not being formatted properly destroys the look. THis is why I probably abandoned the problem last year... forgot about it and tried this again today... ended up with the same issue.

I would think an island would look the way it does in the forum when it is used externally on the same site. Perhaps my expectations exceed what is possible right now.

Thanx again.


Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2
Joined: Feb 2007
Posts: 1,294
Likes: 2
Veteran
Veteran
Joined: Feb 2007
Posts: 1,294
Likes: 2
I have found that even if you do not use a wrapper it still does not show like in the forum. No color, table lines, nothing. Pretty much the reason I personally do not have pages out side of my forum as those boxes will not appear as they do in the forum without tons of work.

Joined: Jun 2006
Posts: 287
enthusiast
enthusiast
Joined: Jun 2006
Posts: 287
I still would like to be able to have this work. Fortunately I was able to blend the look of my web site with my forums. I don't need to put any forum island content on my main web site, but it would be nice to if I could make look right.

When I redesigned my web site over a year ago I took a concept and applied it to the main site, then I adapted it to the forums which was pretty easy. I was also able to take elements from the site and create left side islands that duplicate the left side of the main site. That is an easy way to maintain a seamless look as long as you begin the process with that in mind.


Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
One thing you need to do when using these externally is to copy a couple of your classes into your webpage stylesheet. You'll need to copy the tdheader and alt-1 class. So, basically you can open up your actual stylesheet.css file, find those 2 classes and then copy them into your website .css file.

Definitely need to make this easier, but that should make the island so it has the same look as if it was in your forum.

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
I have read that note in the control panel probably a dozen times and never paid much attention to it. Now I will.
But I am still not clear on how to insert a wrapper for external islands.
I guess I just need to see a real working code example.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Currently wrappers aren't handled, so you'd need to manually insert it. So, the default code for external islands looks something like:

PHP Code


<?php
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
echo "<table width=\"100%\">";
include("/path/public_html/forums/languages/english/portal_islands.php");
include("/path/public_html/forums/languages/english/generic.php");
include("/path/ubbcentral.com/public_html/forums/cache/search.php");
echo "</table>";
?>



For example, here I'd have to do something like (basically copying the opening closing table wrappers):

PHP Code


<?php
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
echo <<<EOF
<table style="margin-bottom: 5px;" border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="3"><img src="https://www.ubbcentral.com/forums/styles/images/drop_shadow_wrapper/top_left.gif" width="3" height="2" /></td>
<td width="100%" style="background-image: url(https://www.ubbcentral.com/forums/styles/images/drop_shadow_wrapper/top_middle.gif); background-repeat: repeat-x;"><img src="https://www.ubbcentral.com/forums/styles/images/drop_shadow_wrapper/top_middle.gif" width="3" height="2" /></td>
<td width="3"><img src="https://www.ubbcentral.com/forums/styles/images/drop_shadow_wrapper/top_right.gif" width="3" height="2" /></td>
</tr>
<tr>
<td valign="top" style="background-image: url(https://www.ubbcentral.com/forums/styles/images/drop_shadow_wrapper/left_side.gif); background-repeat: repeat-y;"><img src="https://www.ubbcentral.com/forums/styles/images/drop_shadow_wrapper/left_side.gif" width="3" height="10" /></td>
<td><table width="100%" cellpadding="0" cellspacing="0" class="t_outer">
<tr>
<td><table width="100%" cellpadding="0" cellspacing="1" class="t_inner">
EOF;

include("/path/public_html/forums/languages/english/portal_islands.php");
include("/path/public_html/forums/languages/english/generic.php");
include("/path/ubbcentral.com/public_html/forums/cache/search.php");

echo <<<EOF
</table>
</td>
</tr>
</table>
?>



So as you can see, quite a bit of manual work is needed to duplicate the exact forum style. In version 8, hopefully we'll clean this up and make it easier to duplicate.

Last edited by Rick; 08/22/2009 9:09 PM.

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
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 834 guests, and 246 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)