![]() |
Quick wink to JimF... and trying to follow his standard =P
I would like to be able to great my visitors on the front page of my site as well, using the info already gathered in vbulletin. Is there a way that I can call the Name, Last Visit, Number of registered users, and other such items from the VB front page and use it on my sites front page? Can I update the last visited date if they visit the site front page OR the vb front page? Any help would be great! |
thease are one of the things i will be adding to my board if i deside to go to this board. I can just make a small snip of a script that does this, but it might be a while before i get it done.
|
Nevermind all your helpfull people... I figured it out!! Took some more digging and a little playing but I got it.
I would post the way to do it, but it seems that no one is interested. If you are, then go ahead and reply. |
I have to admit to being interested.. if no one else is you can feel free to email it to me, Id love to know
|
I'd have a use to do this too... please feel free to post the steps if it isn't too much trouble.
Thanks, -Chris |
Well,
What you'd have to do is follow the style that VB does with their other PHP files... Create a PHP file, and put in it: Code:
<?PHP However, if this PHP file is outside of your VB directory you must make sure that you put the path to global.php in the require( ) function call or it will fail. Example: Your VB directory is here: /home/httpd/www/boards/vb Your PHP file is located here: /home/httpd/www/boards Code:
<?PHP |
I almost have to laugh. I make a request and no one responds or states that they are interested in it either. When I say that I figured it out, I get 2 requests from others that are interested and then someone posts how to do it FOR me.
Where were you people when I needed you BEFORE I figured it out?!?!?!? :) Anyway... thanks mrogish for posting that. Saves me some typing. When I did the above the first time it worked until the global.php required the admin/config.php which is puked on. So to fix that I did the below: Code:
chdir("/path/to/boards"); Hope that helps if you have the same problem as I do. Next time, speak up if you want a similar feature... it encourages the hackers to respond more then if it's just a single person :) |
Aaron,
Sorry about that -- the large number of posts that the hack forum gets tends to push things to the bottom of the page, hence loss of exposure, etc., especially when there is a lot of talk about big things like PM and such. Glad to help though! :) |
I am bringning this thread as it is what I am trying to do (display the members/threads/posts numbers on a non vb page)
now... I did what was explained above with no success. Also... I believe this hack displays the information on a PHP file right? What about displaying the info on a non php file (shtml) Thanks in advance if you can explain me the steps. |
Yes you have to use a .php file to use php code, unless you know of some way to execute .php from a .shtml file
Anyway this is what I did to get it to work using a .php file. PHP can give you fits with the right path and such so you have to do a chdir. Without the $DOCUMENT_ROOT, the require will fail. Code:
<?php Then just use the vb Variables, i.e. like this for example Code:
<?php |
All times are GMT. The time now is 09:19 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|