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 Sommerfeld (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

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

It seems to me vbulletin has only static support.
(meaning you can not include the script on a different page / gateway)

Has anyone produced this hack yet for 2.01.? I have so far produced a hack for glossermans links 2.0, matts calendar and imagefolio for dynamic support. Djgateway.com/v3 you can view some scripts in action. <beta site>

The harder part about hacking this script seems to lack even the most basic global variables.
Such as: Full url paths. vbulletin only produces to the static local directories.
i.e.: "images/blah.jpg"
i.e.: "forum.php?foo=boo"
(IF) lets say I want include the script in a gateway i.e.:
Code:
<?
global $QUERY_STRING,$loc;
if ($inc=="forum"){
               btable (yes,Forums,forums);
               if($loc){$er=1;loc($loc);}
               if(!$er){include("/home/sites/site46/web/v3/forums/index.php");}
               etable ();
}
function loc($page){
include ("/home/sites/site46/web/v3/forums/".$page.$QUERY_STRING");
}
?>
Too enable this feature: I would have to pass my own variables to activate the process. Original urls that look like i.e.:
Code:
<a href="forumdisplay.php?s=foobar&forumid=foobar">
will have to change to:
Code:
$urlhack="http://djgateway.com/v3.index.php?";
<a href=\"".$urlhack."inc=forum&loc=forumdisplay.php&s=foobar&forumid=foobar\">
The problem? vbulletin is a bitch, does not even touch dynamic support.
My conclusion: vbulletin was created for stand alone use! ie: people who do not have dynamic layouts.
Any help producing this hack would be very nice. Thanks, -php developer

Show Your Support

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

Comments
  #2  
Old 07-21-2001, 11:05 PM
BradC
Guest
 
Posts: n/a
Default

Hey Al.. (refering to username on ImageFolio)

This would be a little coding.. some of us have a little bit of it, but not all that much.. I use it from time.. thanks to your advice and solutions for image folio, I have applied it to a couple of things
Reply With Quote
  #3  
Old 07-21-2001, 11:14 PM
Sommerfeld
Guest
 
Posts: n/a
Default

wow brad, didnt expect to see you here. hehe..
I just got this script couple of days ago.

I have not read or looked at the many posts or hacks for the scipt, so I'm not as you can say "uptodate"
what begining codes do you have?

I have yet to get / understand the basic structure of the script.
Reply With Quote
  #4  
Old 07-22-2001, 02:24 PM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Eva from IF UBB here

Al aren't you the guy who did the cgi to php hack for IF to work ?
Reply With Quote
  #5  
Old 07-22-2001, 04:58 PM
Sommerfeld
Guest
 
Posts: n/a
Default

yep, and I'm 1/2 way done already on this script. }
Its nice to see the same webmasters community.
Reply With Quote
  #6  
Old 07-22-2001, 05:03 PM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Sommerfeld
yep, and I'm 1/2 way done already on this script. }
well hi then
Reply With Quote
  #7  
Old 07-23-2001, 07:10 AM
Sommerfeld
Guest
 
Posts: n/a
Default

you guys first are gona have to change every template.. ugh!!! I'm still in the process.. what a +++++

but you know what, this is going to work! which is the good thing.. I'm gona need bug support soon
Reply With Quote
  #8  
Old 07-23-2001, 09:11 AM
Sommerfeld
Guest
 
Posts: n/a
Default

http://www.djgateway.com/v3/data/test.php
go look at a preview gateway
using:

Code:
<?
if(!$inc){
echo "<b>error:</b> no \$inc to enable forum<br>\n";
echo "Try this link <a href=\"http://djgateway.com/v3/data/test.php?inc=forum\">http://djgateway.com/v3/data/test.php?inc=forum</a>\n";
}
echo "<br>phpinfo for debug<br><br>\n";
echo "known problem -1, VB scripts that output important headers<br>\n";
echo "<i>(ie.. pages that redirect your browser to certian pages from the headers)</i><br>\n";
echo "<i>(This problem is my major concern at the moment, any ideas?)</i><br>\n";
echo "known problem -2, VB scripts that post vars<br>\n";
echo "<i>(this maybe a issue, i belive i have a working solution but untested)</i><br>\n";
echo "known problem -3, VB scripts that echo self made href's not included in templates<br>\n";
echo "<i>(fixed them but have not uploaded for other reasons)</i><br>\n";
echo "known problem -4, I'm far from editing all the templates to work dynamicly<br>\n";
echo "Email me alex@djgateway.com, I hope to complete soon<br>\n";
phpinfo();
$f_url="http://djgateway.com/v3/forums/";

if($inc=="forum"){
  if($page){$er=1;loc($page);}
  if(!$er){include($f_url."index.php");}
 }

function loc($page){
  global $QUERY_STRING,$f_url;
  include ($f_url.$page."?".$QUERY_STRING);
 }
?>
Like it says above I have a concern for headrer information. I was thinking about outputing the header information to a file in vb. then have the gateway read the hearder info. This idea turns out bad. you already activated the gateway before vb is included. so plain inclusion will not work, it would only include past headers that vb left behind. Another Idea? How about catching the information? Have a time laps, make sure vb is full loaded then output the info you need?

I need help as you can see? and 2cents are very much welomce!
Reply With Quote
  #9  
Old 07-23-2001, 12:34 PM
BradC
Guest
 
Posts: n/a
Default

Al, it does look like what you want to get done will be ALOT of coding.. and manipulation from the original don't ya think... but if it all gets done, it will run really NICELY

I cannot be as of much help yet, cause I am still learning php and going through vb to see where everything goes and how everything ties together

that and I am only inside a few hours a day (besides sleeping) to get any work done. It is just too nice outside
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:57 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.03941 seconds
  • Memory Usage 2,271KB
  • Queries Executed 22 (?)
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
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (2)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete