UBB.Dev
Posted By: Nardus Move menu - 10/25/2006 1:34 PM
Hi,

Is it possible to move the menu just above the forums (the one with Portal Page, Forum List, My Stuff, User List etc.) to a post island - and how do I do it?

Best reagards,

Kristian
Posted By: Gizmo Re: Move menu - 10/26/2006 12:43 AM
delete it out of the header.tpl file, and make a custom island with those links in it instead...
Posted By: Nardus Re: Move menu - 10/26/2006 3:43 PM
Hmm, if I'm trying that-I get an error when building the "Custom Island".

Example: I want to move

{if $user_list}
{$lang.USER_LIST}      
{/if}

to a custom island. When copying the code into the custom island I get an error.

Am I doing it wrong?

Kristian
Posted By: Gizmo Re: Move menu - 10/27/2006 12:37 AM
I don't know if the custom islands read smarty code; in fact, I don't even really understand it much so I'm not much help...

You likely will have to fashion the URL's as they appear to a browser (non-wordletalized and all that fun stuff)

So where it would be:
Code
{if $user_list}
<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}showmembers">{$lang.USER_LIST}</a>      
{/if}

It will be:
Code
<a href="http://www.yoursite.tld/forum/path/ubbthreads.php/ubb/showmembers">User List</a>
Posted By: Nardus Re: Move menu - 10/27/2006 12:58 PM
But then the userlist will show up eventhough it has been disabled in the admin for non-registrered users. Does anyone have any idea of how to deal with that?
Posted By: Gizmo Re: Move menu - 10/28/2006 11:13 PM
You could try something like this (in the PHP section)
Code
<?php if(isset($user_list)) { echo("<a href=\"http://www.yoursite.tld/forum/path/ubbthreads.php/ubb/showmembers\">User List</a>"); } ?>

It's completely untested, and I doubt it'll work lol
Posted By: Nardus Re: Move menu - 10/31/2006 6:49 PM
Hmm, it didn't work but I don't get any errormessages.

I think I have to put something in the body-part but I don't know what.
© UBB.Developers