|
Joined: May 2007
Posts: 48
journeyman
|
journeyman
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
|
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.
|
|
|
|
Joined: May 2007
Posts: 48
journeyman
|
journeyman
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
journeyman
|
journeyman
Joined: May 2007
Posts: 48 |
or is that what you're explaining?
|
|
|
|
Joined: Jun 2006
Posts: 16,292 Likes: 116
|
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: {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.
|
|
|
|
Joined: May 2007
Posts: 48
journeyman
|
journeyman
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
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
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
|
Joined: Jun 2006
Posts: 16,292 Likes: 116 |
simple yes or no huh? "yes": /* PHP CODE HERE */
/* BODY HERE */
$body = <<<EOF
<div align="center">
<img src="http://www.mysite.tld/image.gif" />
</div>
EOF;
|
|
|
|
Joined: May 2007
Posts: 48
journeyman
|
journeyman
Joined: May 2007
Posts: 48 |
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
|
Joined: Jun 2006
Posts: 16,292 Likes: 116 |
:sniff: mines more fun :'(
|
|
|
|
Joined: May 2007
Posts: 48
journeyman
|
journeyman
Joined: May 2007
Posts: 48 |
Yours is good too, dudes is just more simple for the simple minded, like me
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
hehe, i was hoping you'd like it ty!
|
|
|
|
|