Log in

View Full Version : Whats going on


j1mmy
06-11-2006, 02:49 AM
When I click on the title of a sub-forum, it takes me to a separate page with that forum only on there. However, at the bottom, the ‘what’s going on?’ box doesn’t appear. How would I make it appear?

j1mmy
06-14-2006, 05:44 PM
bump

Eq4bits
06-14-2006, 06:19 PM
not really sure, but I bet you could copy that section of the code from the FORUMHOME template and paste it into the FORUMDISPLAY template and it would work....

j1mmy
06-14-2006, 06:34 PM
Yep thats what i think you have to do.

But what do you have to copy?

tgreer
06-14-2006, 06:36 PM
Exactly. Go to your AdminCP, Style Manager, Edit Templates, and search for:

<!-- what's going on box -->

copy everything from that to:

<!-- end what's going on box -->

It isn't a separate template, stored in a variable, so you'd have to copy and paste that code segment to where you wanted it. It looks like you want it in FORUMDISPLAY.

I realize it's probably not my place to say, but I think very few users would want that much clutter on that page. Perhaps you only want this for YOU? Then, you could wrap it in a conditional, only running the code for your user id.

Eq4bits
06-14-2006, 06:54 PM
When you open FORUMHOME template for editing:
FIND:<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
</tr>
</thead>
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
<a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div>
$vbphrase[threads]: $totalthreads,
$vbphrase[posts]: $totalposts,
$vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
<span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
</if>
</div>
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
</div>
</td>
</tr>
</tbody>
<if condition="$show['birthdays']">
<!-- today's birthdays -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
$vbphrase[todays_birthdays]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
<tr>
<td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
</tr>
</tbody>
<!-- end today's birthdays -->
</if>
<if condition="$show['upcomingevents']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
<tr>
<td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
</if>
</table>
<br />
<!-- end what's going on box -->

Use your mouse to hi-lite that section of the code, right click 'copy', then open a txt (notepad/wordpad/etc) editor and paste the code there;
Next Open template FORUMDISPLAY
FIND:<!-- / forum search menu -->
</if>

<!-- icon key -->
then hi-lite and copy the code you put in txt editor and paste it AFTER the </if> in the above section of code
OR wherever you want it to show up
in the above case it puts it below the forum display options and above the icon legend
HOWEVER
not all the information (i.e. newest member name etc) isn't showing up when I did this in my test forum, so there must be something else that would need to be done/added.....
(suggest doing it this way incase you have edited it for other mods)

j1mmy
06-14-2006, 07:00 PM
Thanks,

If this is possible, why is vB support telling me it isnt.

Eq4bits, i understand that i have to copy code from the forumhome to the forumdisplay. but whats the second part for?

I do this and let you know how i get on with it.

tgreer
06-14-2006, 07:02 PM
Because vb support doesn't support plugins/tempate changes, etc. They send everyone here for that, and if it breaks your forum, it's pretty much your problem.

Eq4bits
06-14-2006, 07:05 PM
:D that's why you're supposed to back everything up before you make changes heehee

j1mmy
06-14-2006, 07:09 PM
By the way, where about am i supposed to copy the code in the forumdisplay?

Eq4bits
06-14-2006, 07:41 PM
Next Open template FORUMDISPLAY
FIND:<!-- / forum search menu -->
</if>

<!-- icon key -->
then hi-lite and copy the code you put in txt editor and paste it AFTER the </if> in the above section of code
OR wherever you want it to show up
in the above case it puts it below the forum display options and above the icon legend


already addressed this previous post and quoted here

j1mmy
06-14-2006, 08:17 PM
oh yeah, i did this, but there are no numbers. Its blank for thread no, members, post no. etc..theres nothing.

Eq4bits
06-15-2006, 03:48 PM
you may also need to remove that code from it's original location in the template....

amykhar
06-15-2006, 04:28 PM
you can't copy the code from forumhome to forumdisplay because the code that makes it work on forumhome isn't in forumdisplay.php

Eq4bits
06-15-2006, 06:42 PM
heh, knew there was something :D

j1mmy
06-15-2006, 06:55 PM
So is it completely impossible then? Cant i just add it in?

Eq4bits
06-15-2006, 07:18 PM
not unless a coder can tell you what to add/change to make it work,
which I'm not :p~

amykhar
06-15-2006, 09:48 PM
j1mmy, I have a mod that lets you split the forums onto multiple pages. This puts the what's going on box on each page. The downside is that you would no longer have the ability to list all forums on one page out of the box.

Brad
06-15-2006, 10:00 PM
You can use index.php to do this, here is an example:

https://vborg.vbsupport.ru/index.php?f=1

May need to toy with the templates to make it fit though. :)

j1mmy
06-16-2006, 06:48 PM
j1mmy, I have a mod that lets you split the forums onto multiple pages. This puts the what's going on box on each page. The downside is that you would no longer have the ability to list all forums on one page out of the box.

Well thats what im planing to do, thats why i wanted to put the box on the seperate pages.
But I would also like to use that box when all the forums are listed on one as normal.

Marco van Herwaarden
06-17-2006, 11:54 AM
j1mmy, could you give us a link to a page, so we can see what you are trying. It might help getting a better answer.

j1mmy
06-17-2006, 02:25 PM
I dont really have a link, i could take you to my website, but that wouldnt really solve anything.

Im just trying to get the whats going on box on each seperate forum page AND at the same time keep it on the index page.