Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
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: 05-09-2001 Last Update: Never Installs: 2
 
No support by the author.

Here is an easy setup to put a lot of Vbull content onto another page. You can use it to make an easy index page with some quick modification or just to access information quickly...

I realize that there are already a lot of similar hacks out there, but I felt like sharing.

You can see an example of this script here:
http://www.onandoffroad.com/GVCP/

You can get the files by downing them from the posts later in this thread where I have them in an attatched zip.

( I used to have the code posted here, but it has grown enough since then as to not fit as posted code anymore. )

Show Your Support

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

Comments
  #62  
Old 05-15-2001, 05:00 PM
Juan Juan is offline
 
Join Date: Nov 2001
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, it does.
Reply With Quote
  #63  
Old 05-15-2001, 05:03 PM
Imperitus
Guest
 
Posts: n/a
Default

It's a cookie issue... check to make sure the php files in your GVCP folder have

error_reporting(0);

set near the top. Expesialy side.php and index.php

If that doesn't solve it a temporaty fix would be to remove the welcome back part of the side.php. If you have to do that let me know so I can try and find a fix that keeps that functionality...
Reply With Quote
  #64  
Old 05-15-2001, 05:26 PM
Juan Juan is offline
 
Join Date: Nov 2001
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems not to work one way or another, the error is still present when I log out.
Reply With Quote
  #65  
Old 05-15-2001, 06:33 PM
Imperitus
Guest
 
Posts: n/a
Default

here, try putting this file inside the forums directory that your vbull is in. Let me know if it runs without error. call it something like test.php
---------------

<?php
error_reporting(0);
require("global.php");

mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable toconnect to database");
mysql_select_db("$DBName") or die("Unable to access the News");

$namequery = "SELECT username FROM user WHERE userid = $bbuserid";
$namegrab = mysql_query($namequery);
$name = mysql_result($namegrab,"username");

if ($bbuserid != 0)
{ print "Welcome back, <b>$name</b>"; }
else
{ print "Welcome <b>guest</b>"; }

?>

---------------

If it works the solution should be fairly easy but will require a seperate file... I'll get on that as soon as you can tell me if it functions.
Reply With Quote
  #66  
Old 05-15-2001, 07:21 PM
Juan Juan is offline
 
Join Date: Nov 2001
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the test file is located at:

Here

I doesn't report any errors
Reply With Quote
  #67  
Old 05-15-2001, 07:56 PM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was thinking of going ahead with incorporating the login to my main page. Now that you have seen what direction I am taking with this I was hoping you could help me with incorporating the login. Would I go ahead and set up the forms for this on the index.shtml? I also noticed the login.php has a few variables that would have to be changed I'm sure. Maybe,

gettemplate

if ($url!="" and $url!="index.php" and $url!=$HTTP_REFERER) {

eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"../gtnews/\");");

Not sure exactly what I need to do to get the login to the front page. Help appreciated.

Thanks
Hooper
Reply With Quote
  #68  
Old 05-15-2001, 09:09 PM
Imperitus
Guest
 
Posts: n/a
Default

Juan,

Is that the php file I just posted? the error I see when hitting that url is:

Unable to access the News

which is nowhere in that script...

Hooper,

Are you looking for a login like I had in side.php or something different? ( the login stuff is the most problematic of the stuff I've done thus as you can see from Juan's problems. )
Reply With Quote
  #69  
Old 05-15-2001, 09:18 PM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Imp,

Ya basically what you already have, just on the front page of my site. I can deal with getting the looks and everything. I didn't realize that this was the most problematic. If this is going to take to much for you to check into for a site integration like mine, (completely off the keep it simple plan), I understand. I was hoping to somehow SSI the login into the index.shtml as I have with the other portions of the script. I saw how you did the .html within the side.php, I was thinking in terms of taking the code from the side.php for loggin out and just have it called into the index. Don't know if this makes sense, but doing the same thing I have done with the other parts of the script with just the loggin code.

Dunno.
Thanks Imperitus,
Reply With Quote
  #70  
Old 05-15-2001, 09:24 PM
Juan Juan is offline
 
Join Date: Nov 2001
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for looking into it. The front page is:

Here

That file, I've added to the forums main directory.
Reply With Quote
  #71  
Old 05-16-2001, 01:23 AM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Scrap what I wrote above. That would be nice to figure out, but I found something much more important. I emailed you about it.

Donka.....
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 11:39 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.05435 seconds
  • Memory Usage 2,293KB
  • 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)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
  • (4)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
  • (7)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