PDA

View Full Version : usercp links visble in forum


floleb7
09-12-2001, 02:58 AM
if someone is logged does it possible to show the usercp navlinks (file in attachement) in each page of the vb ?

Steve Machol
09-12-2001, 03:22 AM
You could add the appropriate code to the header template.

floleb7
09-12-2001, 03:42 AM
no i want to add the table juste above the forum like the who's online in my forum

Steve Machol
09-12-2001, 03:44 AM
I don't understand why adding the code to the header template wouldn't do exactly that. Perhaps I'm not understanding what it is you want. :confused:

floleb7
09-12-2001, 03:48 AM
if i add this in header this will appear at most above the links Forum > Sub forum > Topic

Steve Machol
09-12-2001, 03:52 AM
[Edit: My original response was completely wrong - Steve]

floleb7
09-12-2001, 03:56 AM
how i can check if the user is logged or not for display the cpnavig ?

Steve Machol
09-12-2001, 03:58 AM
Oops - scratch my previous response. I'm not thinking too clearly today. The forumhome template will only display of forumhome of course.

Frankly I don't know how to do what you're asking. Sorry.

floleb7
09-12-2001, 04:33 AM
need to be improve but it's the idea

screenshot here (http://triade1.free.fr/img/test.jpg)

Admin
09-13-2001, 05:08 PM
Your best way to do so is creating a new template, named usercpbar, and put the code you need in it.

Then, on global.php add this code:
// draw usercp links for all pages
eval("\$usercpbar = \"".gettemplate('usercpbar')."\";");
right after this

$newpmmsg=1;
eval("\$headnewpm = \"".gettemplate('head_newpm')."\";");
}
now you should be able to use $headnewpm in any of your templates.
I know this is a lot of work, but I think that's your only chance.

floleb7
09-14-2001, 03:32 AM
yes i do the screenshot is the result ;)

floleb7
09-14-2001, 11:08 AM
hum it works in localhost but when i try on my webpage nothing appears

i put

if ($bbuserinfo[userid]==1) {
eval("\$nav_cp = \"".gettemplate("nav_cp")."\";");
}

in global.php

i create a template called nav_cp and i put the usercp_navinside with modifications.
Why nothing works ?

Admin
09-14-2001, 11:18 AM
That's odd.

Maybe you use a style that doesn't have that template, or something like that.
I really have no idea why it worked on your local computer and not on the web server. :confused:

floleb7
09-14-2001, 11:20 AM
no each style have their own template and replacement set
i try on two style with the same code than in local and i have no nav
very strange

i have php 4 on my local and php 3 on my web server but i don't think that it would be this