|
Joined: May 2007
Posts: 48
journeyman
|
journeyman
Joined: May 2007
Posts: 48 |
Howdy.
I'm playing around with designing a website that uses UBBthreads and I'm trying to display one of my post islands on the front page of the html site.
I see the directions in the "external use" menu for the island, but I'm just not getting it.
I have 0 knowledge of php, which is probably the problem. Is there anyone around that could help me out?
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Well, your pages MUST be PHP to use a PHP Include; so you'll likely want to read up a bit to at least be somewat proficient to be able to use it...
basically php is structured html, so your current html will work fine in a .php page; you'd insert the php include where you wish for the island to be displayed.
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Hi there I'm trying to do this. But can't get it working. The code I have been given by the admin page is: <?php if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1); $style_side="";$tbopen="";$tbclose=""; echo "<table width=\"100%\">"; include("/home/sites/www.site-the-forums-are-on.com/web/languages/english/portal_islands.php"); include("/home/sites/www.site-the-forums-are-on.com/web/languages/english/generic.php"); include("/home/sites/www.site-the-forums-are-on.com/web/cache/gallery_island_25.php"); echo "</table>"; ?> but it is not working, the image does not appear http://www.site-i-want-it-displaying-on.com/gallery/17/thumbs/16.jpg - but that doesn't exist and the link also goes to the wrong place http://www.site-i-want-it-displayin-on.com/ubbthreads.php?ubb=showgallery&Number=254358so it seems I need to adjust the URL or something in the code so that it goes to the forums domain name rather than the domain name of the site I am trying to post it on. Anyone able to help? Thank you
|
|
|
|
Joined: Feb 2007
Posts: 678
old hand
|
old hand
Joined: Feb 2007
Posts: 678 |
Anyone able to help here? It's another of those head-scratchers with no light at the end of the tunnel! Thanks
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
I have no clue on the Galley Islands; I'll see if I can give it a shot and give some advice this weekend however.
|
|
|
|
Joined: Dec 2003
Posts: 70
journeyman
|
journeyman
Joined: Dec 2003
Posts: 70 |
I have the same problem as well. Go to www.apologetics.tv and you'll see my attempts at getting this external island working. Please help.
|
|
|
|
Joined: Dec 2003
Posts: 70
journeyman
|
journeyman
Joined: Dec 2003
Posts: 70 |
Here's the code that I put on my php enabled page:
<?php if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1); $style_side="";$tbopen="";$tbclose=""; echo "<table width=\"100%\">"; include("/client/home/apologetics/docs/forums/languages/english/portal_islands.php"); include("/client/home/apologetics/docs/forums/languages/english/generic.php"); include("/client/home/apologetics/docs/forums/cache/post_island_11.php"); echo "</table>"; ?>
My guess is that in the "include" part, I'm not pointing to the right directory. You see, I'm experimenting with trying to connect the board, which is hosted elsewhere to my up and coming site which is hosted separately. Is this an issue?
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
I'm no expert, but to clarify, both of you are trying to include something from Threads on another domain name and/or server entirely?
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Dec 2003
Posts: 70
journeyman
|
journeyman
Joined: Dec 2003
Posts: 70 |
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Last I tried it, I wasn't able to figure it out, cuz the include paths are obviously calling the same server. Wish I knew, actually! Is it possible to use full URLs? Probably not, but I haven't tried it, either... but a solution would be great for me, too, as I have a couple dozen domains and it would be nice to *share* amongst them
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Dec 2003
Posts: 70
journeyman
|
journeyman
Joined: Dec 2003
Posts: 70 |
jgeoff, I tried using full URLs, but that didn't work. I know this can work because it used to when we were using classic back then. Anyone?
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
.Classic used Javascript includes like this:
<SCRIPT src="http://www.gangsterbb.net/ubb/ContentIslands/1/html.js"
language="Javascript1.3" type="text/javascript"></SCRIPT> and worked fine on other domains...
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Classic used JS includes, threads does not (currently)
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Didn't I just say that?
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
You skirted the answer, I posted it direct as "no" lol
|
|
|
2 members (ArsivTR, Morgan),
593
guests, and
136
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|