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?

Ruth 08-02-2001 12:46 AM

the hack is not working with me, i am trying to use the header in non vB pages, when i upload open.php and add the line, nothing seems to change in the page.

any idea?

Devels 08-02-2001 06:09 AM

Quote:

Originally posted by Ruth
the hack is not working with me, i am trying to use the header in non vB pages, when i upload open.php and add the line, nothing seems to change in the page.
any idea?

1. Check again --> all instruction you make?
2. Write in nonVb page this string (w/o backspaces).
PHP Code:

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

You must write this string ONLY in *.php files!
In other files (as SSI) in make in this time (full help instructions).

Pilot 08-02-2001 07:13 AM

Great, what we need are some working sample HTML and PHP pages in the zip file.

Does your code disconnect from the database afterwards, I have seen some hacks that leave the connection hanging which seems a bad idea to me?

Ruth 08-02-2001 07:37 AM

Thanks Devels, but i don't think it is working with 2.0.3

Pilot 08-15-2001 02:55 PM

Any news on the documentation for this?

I tried it and found that it gave really odd results on a non-VB page - UNLESS the user had a cookie stored with VB login information.

So a new user coming along and displaying this non-VB page with SSI - would generate the VB login prompt instead of the required SSI information.

This hack does not work properly unless you are already logged in (or cookied).

My site requires login for all access - can this hack be changed so it can used on a home page where the user may not even have registered yet (let alone logged in!)?

Slave 08-22-2001 08:18 AM

Any news on this?

I'm having a play with it and I don't see to be able to get it to work .. so a zip file with some help/example pages would be good ..

:)

Seby 05-05-2002 03:41 PM

Hi there,

I have some problems with the stats on my page. I made a template with the following stuff in it:
PHP Code:

<font color=#A7A7A5>Forum Stats:<br>
Members: <b>$numbermembers</b><br>
Total Posts: <b>$totalposts</b><br>
Total Threads: <b>$totalthreads</b></font

Look at it here: http://www.cscentral.com/forums/open...pl=forum_stats

it doesn't seem to work, anybody know what's wrong with it?

Thanks,
Sebasian

SHalliday 05-06-2002 12:39 AM

Any way to make the path to VB ABSOLUTE?

vbpath =="/forums"

This because if the include is called OUTSIDE the VB directory some functions wont work.

portalguy 02-08-2003 07:43 PM

Quote:

Originally posted by SHalliday
Any way to make the path to VB ABSOLUTE?

vbpath =="/forums"

This because if the include is called OUTSIDE the VB directory some functions wont work.

Where do you do that??


All times are GMT. The time now is 04:47 PM.

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.01391 seconds
  • Memory Usage 1,832KB
  • 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
  • (34)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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