PDA

View Full Version : Which Template Is This In..?



Vile
Wed 9th Apr '03, 1:29pm
Hi guys,

Ok, I recently downloaded a style, but it does not have the "(users browsing this forum)" up top.
I guess the person just got rid of it, so my question is, which code would I place to get this back, and into which template?

I had a look in at forumdisplay_forumbit_level1_post and forumdisplay_forumbit_level2_post templates, but didn't have much luck.

TIA :)

UHN_ED
Wed 9th Apr '03, 1:33pm
It is usually on the bottom anyway...

Okay well the forumhome calls to the $loggedinusers in its template.

Make sure there is still the who's online template, then just add that refrence to it back in forumhome.

So open forumhome and put in $loggedinusers - to get it at the top, place it above $forumbits - BUT - you will need to make a new table for it

<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
$loggedinusers
</table>

There are 2 tables above $forumbits - put this IN BETWEEN THEM. That should do it.

Vile
Wed 9th Apr '03, 6:10pm
It is usually on the bottom anyway...

Okay well the forumhome calls to the $loggedinusers in its template.



Really? I thought by default it was up top?

Anyway, thanks for your reply, I'll try it out :)

Vile
Wed 9th Apr '03, 6:48pm
OK, tried out your advice UHN_ED, and it worked, but its not what I was looking for :p
Your bit of code above is for "Whos Online" and dispays all users currently online, but what I was reffering to is the part that shows users currently browsing each forum.

When you browse a forum it says "Moderated By: x" and right below it, it displays "(Users Browsing This Forum: x)"

That's the part I'm looking for, becuase this style is missing it.

(screenshot posted above)

Thanks again :)

UHN_ED
Wed 9th Apr '03, 9:04pm
AHHHH I misread the problem. Sorry about that. This one is even simpler.

Go to forumdisplay_loggedinusers and it should say
<br>(Users Browsing this Forum: $browsers) That is all that is there in there by default, make sure it is at the top in that template.

Vile
Wed 9th Apr '03, 9:36pm
AHHHH I misread the problem. Sorry about that. This one is even simpler.

Go to forumdisplay_loggedinusers and it should say
<br>(Users Browsing this Forum: $browsers) That is all that is there in there by default, make sure it is at the top in that template.

Thanks again :)

Strange, because that template had the same code you posted above (not modidied) but it still doesnt show up for some reason.

I'll try to fiddle with it some more.

Thanks again for your help.

UHN_ED
Wed 9th Apr '03, 9:50pm
Okay then it is definately this (I hope). Go to Forum Display Templates then forumdisplay.

The forumdisplay must make a call to that template. Here is the what mine looks like. DO NOT COPY AND PASTE or else you may mess up your template. Just look at what I have bolded and paste it in the correct spot in yout template.

{htmldoctype}
<html>
<head>
<title>$bbtitle - $foruminfo[title]</title>
$headinclude
</head>
<body>
$header
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td valign="top">$navbar</td>
</tr></table>
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td width="100%" align="left">
<smallfont>$onlineusers</smallfont></td>
<td valign="middle" align="right" rowspan="2"><smallfont>$newthreadlink&nbsp;</smallfont></td>
</tr>
<tr>
<form name="jump">
<script>
function jumpMenu(){
location=document.jump.menu.options[document.jump.menu.selectedIndex].value;
}
</script>
<td width="100%" align="left"><smallfont>$moderatedby</smallfont></td>
</form></tr>
</table

Vile
Wed 9th Apr '03, 10:08pm
Okay then it is definately this (I hope). Go to Forum Display Templates then forumdisplay.

The forumdisplay must make a call to that template. Here is the what mine looks like. DO NOT COPY AND PASTE or else you may mess up your template. Just look at what I have bolded and paste it in the correct spot in yout template
Worked like a charm :)

Thank you very much for all of your help :)

UHN_ED
Wed 9th Apr '03, 10:12pm
No problem. :D