vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   VBstatistics on non vb pages (https://vborg.vbsupport.ru/showthread.php?t=23389)

07-21-2001 10:00 PM

On this forum I saw much more scripts, which show on non vb pages information about vb. But all of these marketed as additive to vb, use their own configuration files and consequently need for additional adjustment. Want to offer script, which all data takes from vb, including style, template, can move necessary template and function from vb and show other (non vb) of the page through vb interface

Devels 07-22-2001 10:49 PM

Installation:
1. Download attached file(statistics.zip).
2. Unzip file (finish as open.php file)
3. Put this file on your vbulletin directory
4. Sit back and relax, while Win... (Oh, it is not good :D ), ok, next..

Included functions or "As I can use it?"
1. If you want to see any template on your page write in non vb page (must is *.php page)
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? tpl=needed_template"; ?>

  • full.server.address = server address, where you install this script.
  • vbdirectory = directory, where you install vb on this server
  • needed_template = name template what you want see.
2. If you want to see header with included style and meta (all header) vb you must write
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=header"; ?>

optional you can write title on this page as
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=header&vbtitle=your_title"; ?>

  • your_title = words, what you want view on title
3. If you want to see footer on non vb pages you must write
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=footer"; ?>

4. If you want to see logincode, you must write
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=login"; ?>

Note: This output not included in < table > tag (have view as < tr >..... < / tr >) you must include it itself
Example : < table >code include here < / table >
5. If you want to see forum jump select box you write
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=forumjump"; ?>

Note: you must create in directory, where you want include this function new directory "images" (or other name, as name vb forum images directory) and copy from vb images directory file "go.gif" in this new created directory.
6. If you want to see code buttons, smilies or icons for use this code on other pages (example guestbook and other), you must write
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=code"; ?>
<? include "http://full.server.address/vbdirectory/open.php? ac=smilies"; ?>
<? include "http://full.server.address/vbdirectory/open.php? ac=icons"; ?>

7. If you want to see sample style for include it on non vb pages, you must write
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=style"; ?>

8. If you want to see last posted messages on your non vb page, write plz
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=lastpost"; ?>

Note: Default numper last messages is 5, for change it number write:
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=lastpost&limit=your_number"; ?>

  • your_number = number messages to view on this include
Note: Default width table is 100%, plz insert this include in other table which assign necessary parameters.
All view as table: [poster name(as link to this post)][post data]
9. If you want to see last active threads on your non vb page, write plz
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=lastthread"; ?>

Note: Default numper last messages is 5, for change it number write:
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=lastthread&limit=your_number"; ?>

  • your_number = number threads to view on this include
Note: Default width table is 100%, plz insert this include in other table which assign necessary parameters
All view as table: [title thread(as link to this thread)][post data, name poster, image to last post]
Note: you must create in directory, where you want include this function new directory "images" (or other name, as name vb forum images directory) and copy from vb images directory file "lastpost.gif" in this new created directory.
10. If you want to see the most active writers on your non vb page, write plz
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=maxactive"; ?>

Note: Default numper last messages is 5, for change it number write:
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=maxactive&limit=your_number"; ?>

  • your_number = number writers to view on this include
Note: Default width table is 100%, plz insert this include in other table which assign necessary parameters.
All view as table: [poster name(as link to him info)][number sended post, him activity]
11. If you want to see other, non vb page in full vb style(header, footer, style), write plz
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? in=your_page"; ?>

  • your_page = name your page
Note: You can include sub directories as:
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? in=your_dir/your_page"; ?>

  • your_page = name your page
  • your_dir = name your directory
Note: not include as your_dir/your_file.php, script make ".php" itself!!!
Note: not probe include pages from other sites!! your_dir is directory on YOUR server!!!
Quote:


Want good luck.
P.S Forgive for my english, my native language is php :confused:

Kengan 07-23-2001 01:31 AM

Quote:

Originally posted by Devels
Installation:
1. Download attached file(statistics.zip).
2. Unzip file (finish as open.php file)
3. Put this file on your vbulletin directory
4. Sit back and relax, while Win... (Oh, it is not good :D ), ok, next..

Included functions or "As I can use it?"
1. If you want to see any template on your page write in non vb page (must is *.php page)
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? tpl=needed_template"; ?>

  • full.server.address = server address, where you install this script.
  • vbdirectory = directory, where you install vb on this server
  • needed_template = name template what you want see.
2. If you want to see header with included style and meta (all header) vb you must write
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=header"; ?>

optional you can write title on this page as
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=header&vbtitle=your_title"; ?>

  • your_title = words, what you want view on title
3. If you want to see footer on non vb pages you must write
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=footer"; ?>

4. If you want to see logincode, you must write
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=login"; ?>

Note: This output not included in < table > tag (have view as < tr >..... < / tr >) you must include it itself
Example : < table >code include here < / table >
5. If you want to see forum jump select box you write
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=forumjump"; ?>

Note: you must create in directory, where you want include this function new directory "images" (or other name, as name vb forum images directory) and copy from vb images directory file "go.gif" in this new created directory.
6. If you want to see code buttons, smilies or icons for use this code on other pages (example guestbook and other), you must write
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=code"; ?>
<? include "http://full.server.address/vbdirectory/open.php? ac=smilies"; ?>
<? include "http://full.server.address/vbdirectory/open.php? ac=icons"; ?>

7. If you want to see sample style for include it on non vb pages, you must write
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=style"; ?>

8. If you want to see last posted messages on your non vb page, write plz
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=lastpost"; ?>

Note: Default numper last messages is 5, for change it number write:
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=lastpost&limit=your_number"; ?>

  • your_number = number messages to view on this include
Note: Default width table is 100%, plz insert this include in other table which assign necessary parameters.
All view as table: [poster name(as link to this post)][post data]
9. If you want to see last active threads on your non vb page, write plz
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=lastthread"; ?>

Note: Default numper last messages is 5, for change it number write:
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=lastthread&limit=your_number"; ?>

  • your_number = number threads to view on this include
Note: Default width table is 100%, plz insert this include in other table which assign necessary parameters
All view as table: [title thread(as link to this thread)][post data, name poster, image to last post]
Note: you must create in directory, where you want include this function new directory "images" (or other name, as name vb forum images directory) and copy from vb images directory file "lastpost.gif" in this new created directory.
10. If you want to see the most active writers on your non vb page, write plz
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=maxactive"; ?>

Note: Default numper last messages is 5, for change it number write:
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? ac=maxactive&limit=your_number"; ?>

  • your_number = number writers to view on this include
Note: Default width table is 100%, plz insert this include in other table which assign necessary parameters.
All view as table: [poster name(as link to him info)][number sended post, him activity]
11. If you want to see other, non vb page in full vb style(header, footer, style), write plz
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? in=your_page"; ?>

  • your_page = name your page
Note: You can include sub directories as:
PHP Code:

<? include "http://full.server.address/vbdirectory/open.php? in=your_dir/your_page"; ?>

  • your_page = name your page
  • your_dir = name your directory
Note: not include as your_dir/your_file.php, script make ".php" itself!!!
Note: not probe include pages from other sites!! your_dir is directory on YOUR server!!!

Want good luck.
P.S Forgive for my english, my native language is php :confused:

Looks cool ! let me try ! thanks !! :cool: :confused: :rolleyes: ;)

orca 07-23-2001 06:18 AM

Kengan, don't quote big messages. It's not very readable.

dost 07-23-2001 08:10 AM

Nice hack I'll try it.[QUOTE]P.S Forgive for my english, my native language is php

Devels 07-27-2001 04:57 AM

See this script in action on arabic page ;).

RobAC 07-27-2001 09:53 AM

Quote:

Originally posted by Devels
See this script in action on arabic page ;).
Unfortunately, because the page is in Arabic, there's no way for non-Arabic users to really see this hack in action.

the_sisko 07-27-2001 10:54 AM

Sounds great and usefull. It's a great idea and esay to use. Will try it at home later.

Thx

ArabicFox 08-01-2001 09:34 AM

great

Pilot 08-01-2001 08:30 PM

Looks good, can you put the documentation in the zip and include an example php page and also how to make it work in a HTML page with SSI please?


All times are GMT. The time now is 05:59 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.01324 seconds
  • Memory Usage 1,807KB
  • 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
  • (32)bbcode_php_printable
  • (3)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