vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Checking number of posts from different website? (https://vborg.vbsupport.ru/showthread.php?t=47426)

!!!cyr0n_k0r 01-06-2003 03:22 AM

Checking number of posts from different website?
 
Ok, heres what I want to do.
I mod or own, or help mod on many different boards. And I have my own personal start page that is stored locally on my HD.

Is there a way to integreate the portion of the welcome panel hack that says "there have been so and so number of posts since your last visit" into my personal start page?

So I can essentianly check all the boards at once for new content/save bandwith by not having to visit the entire board to see if there have been new posts.

Xenon 01-06-2003 07:00 AM

well you need

a) Acces to all DB's yourself and run the right queries
or
b) Install a small script on every of your Boards which can be included into your startpage...

!!!cyr0n_k0r 01-06-2003 08:04 PM

ok, option 2 sounds easier.

Does a script like this exist?

Darth Cow 01-07-2003 12:45 AM

Quote:

Originally posted by !!!cyr0n_k0r
ok, option 2 sounds easier.

Does a script like this exist?

Not to my knowledge, but it will be definately included in vBulletin 3.0 :).

Xenon 01-07-2003 04:25 PM

it would be just like this:
PHP Code:

<?
require('global.php');
$userid = xx;
$userinfo=$DB_site->query_first("SELECT lastvisit FROM user WHERE userid=$userid");
$newposts=$DB_site->query_first("SELECT COUNT(*) AS total FROM post WHERE dateline>$userinfo[lastvisit]");
$newthreads=$DB_site->query_first("SELECT COUNT(*) AS total FROM thread WHERE lastpost>$userinfo[lastvisit]");

echo "New Posts: ".$newposts[total]." in  ".$newthreads[total]." updated threads!<br>";
?>

just save this on every forum server and include it from within your startpagescript :)

be sure you enter the correct userid ;)

!!!cyr0n_k0r 01-08-2003 05:02 AM

A little more indepth instructions would help xenon.! :D

Xenon 01-08-2003 04:06 PM

huh, more instructions?

well, save the code i gave you as for example new.php

then upload new.php into all root directories of your forums (be sure to use your userid ;))

after that, your startpage (which has to be on a server (or localhost if you have installed php)) would look like that for example:

Code:

Private Startpage of cyron...<br><br>.......
change it into:
Code:

Private Startpage of cyron...<br>New posts:<br>
On www.vbulletin.org: <?php include('http://www.vbulletin.org/new.php); ?>.......

then upload the file again (it must have a php extension :)

!!!cyr0n_k0r 01-08-2003 09:21 PM

ok, thanks. Do I have to have php installed on my local machine? If I do I can just upload the php file to a website that is close to me and that will work correct?

Xenon 01-09-2003 11:35 AM

i don't know if you have installed php on your local machine..

but if it ist, yes, you can do so easyily

!!!cyr0n_k0r 01-09-2003 08:40 PM

No, what I said was. DO I have to have php installed. As in, am I required to install it on my local machine?


All times are GMT. The time now is 06:22 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.01091 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete