vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   template stuff (https://vborg.vbsupport.ru/showthread.php?t=32198)

Snake~eyes 11-06-2001 05:30 PM

There's two things I want to do.

1sts. I want to show the private msgs and Who's online in every forum. Not just the index forum page.

I want it to show what avatar they're using, like here. But I am dumb so I don't know. But with this I am still trying to figure out how to get a default avatar?

That's it.

Help is appreciated.

Admin 11-06-2001 05:37 PM

[QUOTE]Originally posted by dhogan444
I want it to show what avatar they're using, like here. But I am dumb so I don't know. But with this I am still trying to figure out how to get a default avatar?

Snake~eyes 11-06-2001 06:03 PM

So say I want to call that variable on a non vb page. How would i do that?

LuBi 11-16-2001 04:42 AM

Quote:

Originally posted by FireFly

For this see this thread:
https://vborg.vbsupport.ru/showthrea...threadid=32153

As for Who's Online and PM stats on each page, doing this will add some decent queries to each page (since you're putting this in the header), so I don't know of any easy way of doing this.

This is what I have for the "xx online users" on this site.
I added this in global.php:
Code:

// get online users
$datecut=time()-$cookietimeout;
$headerguests=$DB_site->query_first("SELECT COUNT(*) AS count FROM session WHERE userid=0 AND lastactivity>$datecut");
$headerusers=$DB_site->query_first("SELECT COUNT(DISTINCT(userid)) AS count FROM session WHERE session.userid>0 AND session.lastactivity>$datecut");
$headeronline=$headerguests[count]+$headerusers[count];

right before this:
Code:

$header='';
$footer='';

Now I use $headeronline in my header template to show the number.

So is this the code you used on this page? at the top left? If not, let's start a release for that one :D

Admin 11-16-2001 11:16 AM

[QUOTE]Originally posted by LuBi
So is this the code you used on this page? at the top left? If not, let's start a release for that one :D

LuBi 11-16-2001 05:26 PM

All I can say is love brotha, your amazing! Thanks!

Will you be upgrading to 2.2.1?

Admin 11-16-2001 06:06 PM

Yeah, I'm doing it as we speak. :)

LuBi 11-16-2001 06:14 PM

Quote:

Originally posted by FireFly
Yeah, I'm doing it as we speak. :)
Well if your doing it I think I'm going to do it, I didn't know because of all my hacks but I guess I can give it a try.


All times are GMT. The time now is 10:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00970 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete