Previous Thread
Next Thread
Print Thread
Hop To
Joined: May 2007
Posts: 48
A
journeyman
journeyman
A Offline
Joined: May 2007
Posts: 48
First things first, I used to have a custom insert that displayed on the portal page, and when we updated our forums that insert just sort of "poofed," and I can't figure out how to put a new one up.

Second, do forum/portal inserts support images?

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Custom Islands are where you create custom islands (what a huge leap!), to put them in forums, you'd edit the forum and select that custom island as your ad island (well, it's not called that, but what it was made for).

As for on each forum, you'd do this as a custom insert, however this is done purely through the forum settings.


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: May 2007
Posts: 48
A
journeyman
journeyman
A Offline
Joined: May 2007
Posts: 48
I don't want a custom island, or a post island, I want an html insert for the portal page.

Such as if i were to go to: CP> General Discussion (details)> custom inserts> Forum Introduction Body

By doing all that, I get a little box that displays everything I type in the "forum introduction body" box above the threads in the general discussion forum... I want one of those on the portal page to display above the "portal posts."

Last edited by Atticus[New]; 09/04/2007 7:29 PM.
Joined: May 2007
Posts: 48
A
journeyman
journeyman
A Offline
Joined: May 2007
Posts: 48
or is that what you're explaining?

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Ahh, I was thinking (since you said forum/post page) that you didn't want it on the portal page...

to do this, you need to actually hack the portal template and insert code manually (in which case, I'd use a custom insert and the "external use" code so it's easy to update vs having just static content that you'd have to go in and edit manually)...

what you'd want to do is open templates/default/portal.tpl and at about line 3, insert the external use code for the appropriate custom island, it must use smarty capable php tags however (found on the external use link in the portal settings); it'd look similar to:
Code
{php}
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
echo "<table width=\"100%\">";
include("/home/undergroundnews/public_html/forum/languages/english/portal_islands.php");
include("/home/undergroundnews/public_html/forum/languages/english/generic.php");
include("/home/undergroundnews/public_html/forum/cache/gallery_island_34.php");
echo "</table>";
{/php}

Your paths will definitely be different than mine, i posted this meerely as an example, the code will not work as a mere drop in, you must use your paths and indicate the proper custom island.

If you're adamat that you don't want to use a custom island, then you can just insert plain html in this area, however whenever you want to update it you'll have to hack the template.

also, be sure to clear your cache once you update.


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: May 2007
Posts: 48
A
journeyman
journeyman
A Offline
Joined: May 2007
Posts: 48
ok, thanks, that's a big help.

And do custom inserts support images? I've been trying to add them, but havn't had any luck. A simple yes or no should do for now wink

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
i've done it a different way.

1. i have my 'news forums' feeding the portal page.
2. i created one forum that has only ONE post in it.
3. the forum is only writeable by admin, readable by all.
4. that post is pure html and is essentially, the custom insert with images and all that.
5. i order the custom insert forum first, so it always appears 1st.

so no coding req'd.

different ways to skin a cat

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
simple yes or no huh? "yes":
Code
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
<div align="center">
<img src="http://www.mysite.tld/image.gif" />
</div>
EOF;


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: May 2007
Posts: 48
A
journeyman
journeyman
A Offline
Joined: May 2007
Posts: 48
Originally Posted by Sirdude
i've done it a different way.

1. i have my 'news forums' feeding the portal page.
2. i created one forum that has only ONE post in it.
3. the forum is only writeable by admin, readable by all.
4. that post is pure html and is essentially, the custom insert with images and all that.
5. i order the custom insert forum first, so it always appears 1st.

so no coding req'd.

different ways to skin a cat

... Where have you been all my life?

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
:sniff: mines more fun :'(


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: May 2007
Posts: 48
A
journeyman
journeyman
A Offline
Joined: May 2007
Posts: 48
Yours is good too, dudes is just more simple for the simple minded, like me wink

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
hehe, i was hoping you'd like it wink ty!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 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)