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)
-   -   Add Who's Online locations from Admin CP (https://vborg.vbsupport.ru/showthread.php?t=32849)

DarkReaper 12-02-2001 03:25 PM

Worked :)

Admin 12-02-2001 03:29 PM

Yeah but it creates a major bug.

Please undo the change I gave you, and follow step 3 in the first post again. :)

Hooper 12-02-2001 04:20 PM

[QUOTE]Originally posted by FireFly
I'm going to split all posts from Hooper and Crinos in a bit, I'm as well already confused. :)
https://vborg.vbsupport.ru/showthread.php?s=&threadid=32879
Tell me if the title of the thread is not appropriate. :)


Does this work ok or not?
I want to release it as soon as possible, but I want to make sure it works perfect first! :D

Dark Blaze 12-02-2001 04:55 PM

Very nice Chen, well done :)

Hooper 12-03-2001 06:01 PM

Well,

I have all the links I need insatalled currently and have found that they all show up correctly in the WOL. I don't know if the hash statement is necessary or not with this hack but if not I really don't have any more ideas for it. It seems to be doing what it should be doing. :D


Haven't found any quirks. Might want to release this one if no one has any more suggestions.

Admin 12-04-2001 11:59 AM

Thanks Hooper, these are great news. :D
Thank you all for testing this hack, I'll be releasing it soon. :)

Hooper 12-04-2001 12:14 PM

Welcome. :)

Bedhead 12-04-2001 12:59 PM

Hello all.

I thought that I would jump on the bandwagon and test this out.
Everything appears to be working fine here with 2.2.1.

Great job.

CrazyJohn 12-05-2001 04:33 PM

Just confirming - works perfectly in 2.2.1.

CJ

Dark Blaze 12-05-2001 06:45 PM

[QUOTE]Originally posted by CrazyJohn
Just confirming - works perfectly in 2.2.1.

CJ

KuraFire 12-10-2001 01:44 PM

I have a suggestion: explain to use how to incorporate home-made files that reside in the directory of vbulletin.


For instance:

http://www.kurafire.com/files/thecouch/portal2.php

http://www.kurafire.com/files/thecouch/ is the directory of my board, and the portal2.php is a home-made portal page that lists 50 threads that have last had a reply in (excluding threads from a private forum). (oh, and portal.php lists 250 instead of 50).

Now, can we just list portal2.php in the input panel of this hack and it'll work already? That's all I want to know, how to make that work :)

(I read it already works, with some editing, for the vbstats hack)

Admin 12-10-2001 02:26 PM

If portal2.php requires global.php, then yes you can simply list it using the hack. :)

KuraFire 12-10-2001 02:45 PM

No, it doesn't use global.php. It only creates an opening to the forum's database, runs one query and creates an output of that.

How would I go and include global.php for it? I want to know that because I want to use some of the global functions in the new version of the portal2.php page (which will actually LOOK like something, unlike now).

Admin 12-10-2001 02:52 PM

PHP Code:

require('./global.php'); 

just add it to the file and it'll act just like any other vB file.

KuraFire 12-10-2001 03:03 PM

Great, thanks :)

So what exactly does it allow me to use in my code with that?

KuraFire 12-10-2001 03:06 PM

While I'm at it: how did you do that awesome "user is away" script ???? That's awesome! :eek:

Edit: nm, I see the hack already. :)

Admin 12-10-2001 03:11 PM

The major advantage is using the sessions vBulletin provides.
Other than that, checking for permission becomes easier, and also templates. You can use templates with that.

KuraFire 12-10-2001 03:30 PM

Ooh, permissions, THAT I like very much! ^_^

KuraFire 12-11-2001 08:00 AM

[QUOTE]Originally posted by FireFly
PHP Code:

require('./global.php'); 

just add it to the file and it'll act just like any other vB file.

Admin 12-11-2001 08:07 AM

What are the exact warnings?

KuraFire 12-11-2001 08:15 AM

Quote:

Warning: Undefined index: HTTP_POST_VARS in ./global.php on line 85

Warning: Undefined index: action in ./global.php on line 85

Warning: Undefined index: action in ./global.php on line 88

Also, how would I go and make my portal2.php adjusted so that it will include the Header and Footer of my default style?? Would that take up a LOT of work?

KuraFire 12-15-2001 09:22 PM

Any word yet on how I can fix this??

Hooper 12-15-2001 10:17 PM

[QUOTE]Originally posted by KuraFire
Any word yet on how I can fix this??

The Realist 12-16-2001 12:25 AM

I have installed it at my end and Im getting the 404 error. I can add a who's online location just fine and also deleted it, this all works 100%.

If I click on the file underfilename it goes to the 404 error page:

http://www.skytronic-forums.com/testbest?

Uploaded the admin_online.php from the top post and the one a few posts down and none work.

Am I doing something wrong or is there something Im missing?

Running: 2.2.1

Thanks.

;)

Hooper 12-16-2001 12:30 AM

[QUOTE]Originally posted by The Realist
I have installed it at my end and Im getting the 404 error. I can add a who's online location just fine and also deleted it, this all works 100%.

If I click on the file underfilename it goes to the 404 error page:

http://www.skytronic-forums.com/testbest?

Uploaded the admin_online.php from the top post and the one a few posts down and none work.

Am I doing something wrong or is there something Im missing?

Running: 2.2.1

Thanks.

;)

The Realist 12-16-2001 12:38 AM

Nothing is showing whats so ever within the box. Tell me......... what does this enable you to do?

Hooper 12-16-2001 12:43 AM

[QUOTE]Originally posted by The Realist
Nothing is showing whats so ever within the box. Tell me......... what does this enable you to do?

The Realist 12-16-2001 02:06 AM

Thank you :)

Very well explained and I know now were Im going wrong.

Thanks.

;)

Hooper 12-16-2001 02:14 AM

[QUOTE]Originally posted by The Realist
Thank you :)

Very well explained and I know now were Im going wrong.

Thanks.

;)

KuraFire 12-16-2001 02:38 PM

[QUOTE]Originally posted by Hooper
<snippets>

Just add the necessary changes.

Hooper 12-16-2001 05:08 PM

Chen,

I haven't found any problems. Added several outside pages and everything seems to be doing super. I've even managed to pull in a news script that ends up using various files and it works super. Ready for release as far as I can see. Thank you for the super hack. :)

JJR512 12-17-2001 02:54 AM

[QUOTE]Originally posted by FireFly
The major advantage is using the sessions vBulletin provides.
Other than that, checking for permission becomes easier, and also templates. You can use templates with that.

Hooper 12-17-2001 02:56 AM

I couldn't get it to work that way either JJR. It works properly without including the sessionhash as far as I can see. The only thing I did different is I added the sessionhash to all of my links in the forum. So SiteNews.php has a link with the sessionhash included. In other words I didn't add the sessionhash to the link in the hack, I added the sessionhash to the link in the forums that takes you to that page.

Hope this helps... :)

KuraFire 12-17-2001 07:23 AM

Erm, but isn't everyone's sessionhash unique etc. etc. ?

Anyway, Hooper do you have the global.php script required at the start of all of those pages (listed in your attached ready.gif above) ??

:)

Dontom 12-17-2001 07:30 AM

Easy to install, works perfekt with external pages!
:D
Thanks a lot!
Tom

Hooper 12-17-2001 07:57 AM

[QUOTE]Originally posted by KuraFire
Erm, but isn't everyone's sessionhash unique etc. etc. ?

Anyway, Hooper do you have the global.php script required at the start of all of those pages (listed in your attached ready.gif above) ??

:)

KuraFire 12-17-2001 09:27 AM

*nods*

But I still don't know how to fix the three errors I get when I include global.php on a page.. :(

(see posts #59 and #61 in this thread, for the details)

Hooper 12-17-2001 11:48 AM

[QUOTE]Originally posted by KuraFire
*nods*

But I still don't know how to fix the three errors I get when I include global.php on a page.. :(

(see posts #59 and #61 in this thread, for the details)

KuraFire 12-17-2001 03:03 PM

My global.php (I assume this is the one in the root directory, not the ./admin/ directory) is untouched (never edited it), and my external files are in the very same directory. I keep all my external pages that extract data from my vB-database in the same directory, cos yes that's a lot easier for everything. :D

Anyway, no, I doubt it's a path error. The two lines (85 and 88) in my global.php are:


if ($HTTP_GET_VARS['HTTP_POST_VARS']['action'] ==
$HTTP_POST_VARS['action']) {
unset($HTTP_POST_VARS['action']);
}
$HTTP_POST_VARS['action'] = trim($HTTP_POST_VARS['action']);


(with the second line as 85, and the last line as 88)

Maybe I ought to try this online instead of on my own computer (set up as apache+php+mysql) - that might be it?

Hooper 12-17-2001 03:09 PM

[QUOTE]Originally posted by KuraFire
My global.php (I assume this is the one in the root directory, not the ./admin/ directory) is untouched (never edited it), and my external files are in the very same directory. I keep all my external pages that extract data from my vB-database in the same directory, cos yes that's a lot easier for everything. :D

Anyway, no, I doubt it's a path error. The two lines (85 and 88) in my global.php are:


if ($HTTP_GET_VARS['HTTP_POST_VARS']['action'] ==
$HTTP_POST_VARS['action']) {
unset($HTTP_POST_VARS['action']);
}
$HTTP_POST_VARS['action'] = trim($HTTP_POST_VARS['action']);


(with the second line as 85, and the last line as 88)

Maybe I ought to try this online instead of on my own computer (set up as apache+php+mysql) - that might be it?


All times are GMT. The time now is 04:17 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.01394 seconds
  • Memory Usage 1,811KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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