Previous Thread
Next Thread
Print Thread
Hop To
#175275 01/23/2007 12:26 PM
Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
Hi,

I must be doing something wrong....

I am trying to use the portal boxes elsewhere on my site - i.e. in affect external use - but actually within my own footer.

These are not working.

First of all it says 'external use' - but the code produced seems to have all local links - I am not sure how this could be used on another site like this?

Secondly when I put the code into the footer.tpl it fails miserably - so something is not correct. How can I include the code in footer.tpl? I have tried tweaking the code, but without joy...

Any clues here?

Thanks.

Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
whatever code I put in - killed my server LOL tables all locked and the posts database corrupted again....

oh well...

would still love to know how to use these smile

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
This should probably be clarified. External basically means external from the forums but still on the same domain. There isn't an option to use these outside of the domain at this time.

Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
sorry - thought external meant external wink

Ok - whilst that is very disappointing - I can live with that for a while. smile

However any clues as to why they will not work in footer.tpl - or is there a way to get them to work on the main forum pages.

Any clues?


Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Are you putting them in the footer.tpl file or in the Default Footer section of the HTML Includes? I use them on my personal site in the default footer section.

Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
footer.tpl

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
You know, I think some documentation on using external islands needs to be made lol


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!
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
Originally Posted by Gizmo
You know, I think some documentation on using external islands needs to be made lol


...and we expect that from you by tomorrow. wink


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,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
I would, but I've never used them before lol


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!
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Originally Posted by Gizmo
I would, but I've never used them before lol

Can you say eek


So who is the resident expert on using them ?

Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
I am trying - but so far without luck...

I think the word external needs altering, as I incorrectly beleived it to mean external to the site and not the portal.

I am trying to put 5 of them into a table within footer.tpl - but it is not having it.

Has anyone got any suggestions as to how to make it work. I have tried altering the code using { - but without joy.

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Not sure but wasn't BellaOnline or someone else doing it already ?

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
rick, allen, ian... anyone who's used them lol


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!
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Thought maybe you'd used them before with all the sites and admin work you do.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Originally Posted by ntdoc
Thought maybe you'd used them before with all the sites and admin work you do.
havent been commissioned to do so frown...

I may look into it over the weekend though


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!
Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
well still can't get them to work in footer.tpl frown

will have to experiment on another temporary site - can't risk working live LOL

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
What is the exact code you're inserting into footer.tpl?


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!
Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
essentially it was the exported code obtained via the external use link, and then enclosing this within a table. It must go into a cell within a table, as I was going to have 4 or 5 across the page.

I have tried modifying the code without joy.

For example I wanted the calendar at the foot - so exported...
Code
<?php
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
echo "<table width=\"100%\">";
include("/path/forums/languages/uk-english/generic.php");
include("/path/forums/cache/public_calendar.php");
echo "</table>";
?> 

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
so just the calendar; or all?

I'll play with your settings tomorrow night when i get in, the wife wants to spend the day downtown...


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!
Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
LOL no worries.... I was going to put 5 down there - if I can get one working, the others will as well....

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
any reasons for not using the footer incude section of the control panel?


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!
Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
None really - I just wanted to merge them in tighter. If need be, I will use that - was just curious as to how to get it working in the footer.tpl - if something then fails, I like to know why LOL

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
lol ok i'll fiddle when I have more time (probably tonight or tomorrow as i'm going to bed, and when i get up i'm leaving town for the day)


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!
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
The .tpl files will not handle php code directly that way. They are meant to handle HTML and smarty tags. So, instead of wrapping the php code with the standard opening and closing php tags you need to wrap them in the smarty php tags, like this:

Code
{php}
$foo = $bar;
{/php}

Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
Thanks - I had tried { but had not put php in them.

Will have a go - thanks.

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
lol i figured as much on that Rick wink... if he can't figure out the coding tonight I'll make him something to use; should be as simple as replacing the phpopen/close though.


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!
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Ian, try:
Code
{php}
$style_side="";$tbopen="";$tbclose="";
echo "<table width=\"100%\">";
include("/path/forums/languages/uk-english/generic.php");
include("/path/forums/cache/public_calendar.php");
echo "</table>";
{/php}


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!
Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
Thanks I know (Rick already posted above wink ) - just haven't had a chance to do it yet.

Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
Thanks guys - have used the code - but none of the boxes are appearing - nor are the language files - it appears to be just raw data. (I have tried the calendar, who's online and Newest Members)

So I have put it into the generic footer (not my prefered option, as I might use forum footer, and wish to avoid having to remember the data)

Now I am seeing the language strings, but still no surrounding boxes - it looks like the styles are not being carried over - or the boxes are just not included. Any clues on the code to include the boxes if that is the case, as they look a tad odd without boxes in the forum style around them.

http://www.fansfocus.com

The info can be seen towards the foot of the page.


Joined: Dec 2006
Posts: 184
member
member
Joined: Dec 2006
Posts: 184
Can't you simply put html around the code to show the boxes ?

Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
sure - but I can't figure out how to make the box identical to the one in the sidebar - especially as it needs to change depending upon the stylesheet used.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
This is what I'm using for my default footer html on my personal site.

PHP Code


<?php
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";

$wrapper_id = $style_array['wrappers'];				 

$tbopen = $wrappers[$wrapper_id]['open'];
$tbclose = $wrappers[$wrapper_id]['close'];   

echo <<<EOF
<table border="0" width="800" align="center">
<tr>
<td width="33%" valign="top">
EOF;
include("/***/***/***/languages/english/generic.php");
include("/***/***/***/cache/online_now.php");
echo <<<EOF
</td>
<td width="33%" valign="top">
EOF;
include("/***/***/***/cache/forum_stats.php");
echo <<<EOF
</td>
<td width="33%" valign="top">
EOF;
include("/***/***/***/cache/new_users.php");
echo <<<EOF
</td>
</tr>
</table>
EOF;
?>



Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837


The exported code on forum stats on mine is
Code
<?php
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
echo "<table width=\"100%\">";
include("/xxx/forums/languages/uk-english/generic.php");
include("/xxx/forums/cache/forum_stats.php");
echo "</table>";
?> 

which is somewhat different to the code you have posted.

Code
$wrapper_id = $style_array['wrappers'];                 

$tbopen = $wrappers[$wrapper_id]['open'];
$tbclose = $wrappers[$wrapper_id]['close'];
for example is missing along with other code. So not sure what I should be using.

Joined: Dec 2006
Posts: 184
member
member
Joined: Dec 2006
Posts: 184
Originally Posted by Ian
sure - but I can't figure out how to make the box identical to the one in the sidebar - especially as it needs to change depending upon the stylesheet used.

Ah, of course.

smile

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Well, it's a bit of a hack to make it work that way Ian. Normally we assume if you're going to use a portal box on an external page, it's outside of the forums and probably doesn't quite look the same as the forums. And if someone is using a different style on the forums, the wrappers might not go with the website at all.

So, what I posted is what I'm using in the footer section that you can see on my personal website.

Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
no problem - I'm never normal wink LOL

Joined: Jun 2006
Posts: 3,837
I
Ian
Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
Just returning to this....

Looks like something was fixed in 7.1b5 smile Many thanks - all appearing nice now - okay still in the generic footer, rather than footer.tpl, but as it is working in one I will have a fiddle further up now smile


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
1 members (Nightcrawler), 552 guests, and 173 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)