Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-26-2000 Last Update: Never Installs: 0
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-21-2000, 04:46 AM
Guest
 
Posts: n/a
Default

You can set up Apache to parse any number of files for PHP code, it is well documented on http://www.apache.org.
Reply With Quote
  #13  
Old 08-21-2000, 05:05 AM
Guest
 
Posts: n/a
Default

I finally got it working. I was having an issue though because I use the main.php3 page (This is our home page) as the template for all the other pages like news which is (main.php3?id=news). I was running into a parsing error because when I tried to goto the news page, it said the news include file could not be found. This obvious because the chdir has changed it postition for me. Now I am new to php so I tried all sorts of linking to get it to that damn file and what ended up working was this

<?php
include($DOCUMENT_ROOT . "/drumnbasscc/" . "$id.inc");
?>

Not sure if this helps anyone but just thought I would post this hoe. Also I had to do my chdir wierd. I have a feeling it is due to the cukie server layout but this was the only for me not get parse errors

<?php
chdir("../forum");
require("../forum/global.php3");
?>

If someone could maybe help me on organizing the code I would love the help. But at least this is working now.

Kode
http://www.drumnbass.cc
Reply With Quote
  #14  
Old 08-21-2000, 05:16 AM
Guest
 
Posts: n/a
Default

Correct me if I'm wrong, but couldn't you put the code in a file.php, then include it in the .shtml file?

P.S. Hi Mano! *waves*

[Edited by WebStyles on 08-21-2000 at 02:17 AM]
Reply With Quote
  #15  
Old 08-21-2000, 05:25 AM
Guest
 
Posts: n/a
Default

well i got tired of trying to include bits of info on non vb pages... so i included the entire frontpage via SSI lol

http://www.animeboards.net/
Reply With Quote
  #16  
Old 08-23-2000, 12:54 PM
Guest
 
Posts: n/a
Default

well i am trying the including of vb info on a non vb page at http://animeboards.net/index2.php3 but can't seem to format the welcome back user output to the same font type and size as the below 3 text links on that page...

also how do i display

total threads | total posts
total registered members :
and newest member on this page ?
Reply With Quote
  #17  
Old 09-15-2000, 03:36 PM
Guest
 
Posts: n/a
Default

I also need to get this infomation

total threads | total posts
total registered members :
Reply With Quote
  #18  
Old 09-15-2000, 03:50 PM
Guest
 
Posts: n/a
Default

hehe again it's all in one post

http://www.vbulletin.com/forum/showt...?threadid=2658
Reply With Quote
  #19  
Old 11-19-2000, 09:54 AM
Guest
 
Posts: n/a
Default

How would I go about using the user defined vB header and footer fields on a non vB page ? I am going to set up a forum related page, and would like it to have the standard forum appearance...

Sorry if this is answered elsewhere, but I couldn't find anything by browsing or searching...
Reply With Quote
  #20  
Old 04-03-2001, 11:21 AM
Guest
 
Posts: n/a
Default

if the file is in the same directory as the forum is that the correct code?

Code:
<?php
require($DOCUMENT_ROOT . "global.php");
?>
Reply With Quote
  #21  
Old 04-03-2001, 04:25 PM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Craig,
On a non php page (html document) you would use the include command: <!-- #include virtual="file name" -->

On a php page, you need to use a require command like this:

<?PHP
require( "global.php" );
?>
Reply With Quote
Reply


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 10:37 AM.


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.04463 seconds
  • Memory Usage 2,272KB
  • Queries Executed 25 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_onlinestatus
  • (11)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete