|
Joined: Oct 2007
Posts: 10
Newbie
|
Newbie
Joined: Oct 2007
Posts: 10 |
This is probably a simple newbie question, but how can I make a custom island in the middle row for UBB.Threads? I want to place a chart, or graphic, in the middle between a couple of category islands, but cannot seem to figure out how.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
In the middle column, or row? For the portal page or somewhere else?
|
|
|
|
Joined: Oct 2007
Posts: 10
Newbie
|
Newbie
Joined: Oct 2007
Posts: 10 |
Sorry, I meant in the middle COLUMN. I would use this on either the portal page, or on the main page for non-logged in users (i.e. forum list).
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
There is a post in the templates forum covering this
|
|
|
|
Joined: Oct 2007
Posts: 10
Newbie
|
Newbie
Joined: Oct 2007
Posts: 10 |
Gizmo,
I read through the template areas, and I didn't see the post that you mention. It could be my lack of understanding, but which posts mentions how to put a custom island in the middle column?
Thanks.
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Odd, my post isn' where I left it...
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
follow this it covers placing a content island into the center section of your forum.
|
|
|
|
Joined: Oct 2007
Posts: 10
Newbie
|
Newbie
Joined: Oct 2007
Posts: 10 |
Great, I'll give it a try. Thanks!
|
|
|
|
Joined: Oct 2007
Posts: 10
Newbie
|
Newbie
Joined: Oct 2007
Posts: 10 |
Gizmo,
Can't seem to make this work, but I certainly can be doing something wrong. Couple of questions:
1. Does this work for v7.2.2 of UBB.Threads? 2. What is "WOL"?
Thx!
|
|
|
|
Joined: Nov 2003
Posts: 482
Enthusiast
|
Enthusiast
Joined: Nov 2003
Posts: 482 |
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
As SD said, it will work with any version of threads (as the code you tae from the external link will be from your version) and WOL is Who's Online.
|
|
|
|
Joined: Oct 2007
Posts: 10
Newbie
|
Newbie
Joined: Oct 2007
Posts: 10 |
I followed the example that Gizmo gave me, no luck. I got the external use paths from the portal layout, and put them in the crfm.tpl file after the "{if $introtitle}" line, but don't see the Who's Online (just trying this for an example. Here's an excerpt (the first 30 lines or so) of the cfrm.tpl file with the additional code: {* Script Version 7.2.2 *}
{if $introtitle} {$tbopen} <tr> <td class="tdheader"> {$introtitle} <?php if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1); $style_side="";$tbopen="";$tbclose=""; echo "<table width=\"100%\">"; include("/home/content/p/e/n/pennyprofilers/html/forum/languages/english/portal_islands.php"); include("/home/content/p/e/n/pennyprofilers/html/forum/languages/english/generic.php"); include("/home/content/p/e/n/pennyprofilers/html/forum/cache/online_now.php"); echo "</table>"; ?> </td> </tr> <tr> <td class="alt-1"> {$introbody} </td> </tr> {$tbclose} {/if}
{section name="cats" loop=$catrow} {$tbopen} <thead> What am I doing incorrectly?
Last edited by Gizmo; 12/04/2007 9:30 PM. Reason: Added [code] tags.
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
You can't use PHP tags in smarty, instead change your to {/php}
|
|
|
|
Joined: Oct 2007
Posts: 10
Newbie
|
Newbie
Joined: Oct 2007
Posts: 10 |
Thanks, makes sense. However, I tried this and it didn't seem to change anything, i.e., the WoL didn't appear at the top of the forum list as I would expect. Here's the current code: {* Script Version 7.2.2 *}
{if $introtitle} {php} if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1); $style_side="";$tbopen="";$tbclose=""; echo "<table width=\"100%\">"; include("/home/content/p/e/n/pennyprofilers/html/forum/languages/english/portal_islands.php"); include("/home/content/p/e/n/pennyprofilers/html/forum/languages/english/generic.php"); include("/home/content/p/e/n/pennyprofilers/html/forum/cache/online_now.php"); echo "</table>"; {/php} {$tbopen} <tr> <td class="tdheader"> {$introtitle} </td> </tr> <tr> <td class="alt-1"> {$introbody} </td> </tr> {$tbclose} {/if}
{section name="cats" loop=$catrow} {$tbopen}
Anything else I'm missing?
|
|
|
|
Joined: Oct 2007
Posts: 10
Newbie
|
Newbie
Joined: Oct 2007
Posts: 10 |
Still trying to do this, but no luck. Any new ideas? Thanks in advance.
|
|
|
|
Joined: Dec 2003
Posts: 49
User
|
User
Joined: Dec 2003
Posts: 49 |
Move it to this - {* Script Version 7.2.2 *}
{if $introtitle} {$tbopen} <tr> <td class="tdheader"> {$introtitle} </td> </tr> <tr> <td class="alt-1"> {$introbody} </td> </tr> {$tbclose} {/if}
{php} if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1); $style_side="";$tbopen="";$tbclose=""; echo "<table width=\"100%\">"; include("/home/content/p/e/n/pennyprofilers/html/forum/languages/english/portal_islands.php"); include("/home/content/p/e/n/pennyprofilers/html/forum/languages/english/generic.php"); include("/home/content/p/e/n/pennyprofilers/html/forum/cache/online_now.php"); echo "</table>"; {/php}
{section name="cats" loop=$catrow} {$tbopen}
That's how mine works.
|
|
|
|
Joined: Oct 2007
Posts: 10
Newbie
|
Newbie
Joined: Oct 2007
Posts: 10 |
Thanks! That did it. I appreciate the help from all.
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Sorry for not getting around to posting; basically what was happening was that you where saying for the code to only apply when the intro was enabled. Thanks to Night for posting a fix for mishter 
|
|
|
|
Joined: Sep 2003
Posts: 1
Lurker
|
Lurker
Joined: Sep 2003
Posts: 1 |
I used your code to place addon chat in a middle island, it worked like a charm except anytime my page refreshes it logs me out of addon chat.
any ideas on what causes that?
|
|
|
|
Joined: Jan 2008
Posts: 7
Lurker
|
Lurker
Joined: Jan 2008
Posts: 7 |
Would this work in 7.4.2 (or 7.4.1) I have tried it several ways now with a custom island and it didn't work at all. EDIT got it to work, but lost my whole right sidebar. LOL what am I doing wrong should I set to be say 80% instead so that it doesn't take out the sidebars? Dunny
Last edited by Dunny; 01/21/2009 9:52 AM.
|
|
|
|
Joined: Jan 2008
Posts: 7
Lurker
|
Lurker
Joined: Jan 2008
Posts: 7 |
Oh it works  That is why you don't let beginners play with code  . Anyway, it works like a charm! Thanks
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
You're welcome 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|