Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 01-06-2003, 03:22 AM
!!!cyr0n_k0r !!!cyr0n_k0r is offline
 
Join Date: Apr 2002
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 01-06-2003, 07:00 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #3  
Old 01-06-2003, 08:04 PM
!!!cyr0n_k0r !!!cyr0n_k0r is offline
 
Join Date: Apr 2002
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, option 2 sounds easier.

Does a script like this exist?
Reply With Quote
  #4  
Old 01-07-2003, 12:45 AM
Darth Cow's Avatar
Darth Cow Darth Cow is offline
 
Join Date: Nov 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #5  
Old 01-07-2003, 04:25 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 01-08-2003, 05:02 AM
!!!cyr0n_k0r !!!cyr0n_k0r is offline
 
Join Date: Apr 2002
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A little more indepth instructions would help xenon.!
Reply With Quote
  #7  
Old 01-08-2003, 04:06 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 01-08-2003, 09:21 PM
!!!cyr0n_k0r !!!cyr0n_k0r is offline
 
Join Date: Apr 2002
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 01-09-2003, 11:35 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

but if it ist, yes, you can do so easyily
Reply With Quote
  #10  
Old 01-09-2003, 08:40 PM
!!!cyr0n_k0r !!!cyr0n_k0r is offline
 
Join Date: Apr 2002
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04163 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete