vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBExternal v1.6 (https://vborg.vbsupport.ru/showthread.php?t=83005)

FightRice.com 09-10-2005 03:35 PM

Quote:

Originally Posted by Kru
On my homepage : www.mirzone.net I am running vbexternal 1.6 https://vborg.vbsupport.ru/showthread.php?t=83005

Now, I wanted to run VB Login on a Non-VB Page vB3 RC3: https://vborg.vbsupport.ru/showthread.php?t=61112 from there, too.

I already got this hack succesfully to run on a test page, too: http://www.mirzone.net/testing.htm

However I don't get to run both hacks together.

The problem is that vbexternal want this code at the top:

PHP Code:

<?php
chdir
("/.../.../.../mirzone.net/html/forum/");
include(
'./vBExternal.php'); 
?>

and VB Login:

PHP Code:

<?php
  chdir
("/.../.../.../mirzone.net/html/forum/");
require(
'./global.php');  
chdir("/.../.../.../mirzone.net/html/"); 
?>

If I try to run both codes (above) I always get the following error message:

PHP Code:

Fatal errorCannot redeclare class vbulletinhook in /var/www/vhosts/mirzone.net/httpdocs/forum/includes/class_hook.php on line 29 

Have anybody an idea how I can fix this, please?


can you post the code you are using in your page you want that on

jesus likes pie 09-12-2005 11:19 AM

So what does this do exactly....anybody have a link to their site with it? Pictures?

BamaStangGuy 09-12-2005 03:34 PM

Quote:

Originally Posted by jesus likes pie
So what does this do exactly....anybody have a link to their site with it? Pictures?

http://www.conflictingviews.com

The news in the middle is pulled from a forum

BamaStangGuy 09-12-2005 06:02 PM

Quote:

Originally Posted by BrentWilson
anyway to show the contents of the quote tags on the mainpage news?


Also IMG tags would be nice... hell all of bbcode haha

http://www.conflictingviews.com/foru.../orange/14.gif

^ Smilies do not work on the manpage either. When I use a smilie in the post I get this on the mainpage but it shows correctly within the forum

jesus likes pie 09-12-2005 06:14 PM

Quote:

Originally Posted by BrentWilson
http://www.conflictingviews.com

The news in the middle is pulled from a forum


So its kinda like vBAdvanced?

Bad Bunny 09-12-2005 06:44 PM

Quote:

Originally Posted by jesus likes pie
So its kinda like vBAdvanced?

No, it's not a portal or cms. It is a tool for grabbing info from your forum and displaying it on your normal site pages.

BamaStangGuy 09-14-2005 11:46 PM

Any kind of help with the smilies?

mark99 09-20-2005 09:03 AM

Useful little script, well done to the author =).

Now there's a couple of things I'd like to see/do.

1. How can I output the START DATE for the 'Latest Threads'?

2. Is it possible to save the 'Latest Threads' output to an external file. I already tried the following and it simply returned a 0 byte file. It seems since the data is already collected and requested that it should be possible, but I'm clearly missing something:

PHP Code:

$result output_NewestThreads(5,"1,2,3");
$fp fopen("atest.txt""w");
fwrite($fp$result);
fclose($fp); 

PHP isn't my strong point =).

mark99 09-20-2005 04:56 PM

More or less solved no.2 myself with a simple 'ob'. For the benefit of anybody else that likes to cache data and save database/php load:

PHP Code:

<?php

require_once('./vBExternal.php');

ob_start();

output_NewestThreads(5,"1,2,3");

$html_file_contents ob_get_contents();
ob_end_flush();

$result $html_file_contents;
$fp fopen("a1.html""w");
fwrite($fp$result);
fclose($fp);

?>

Only problem left is the fact that this 'save' script is simply a process for storing the data, I don't want it to output the information as well. Is there anyway to hide the public output of "output_NewestThreads(5,"1,2,3");", so that the script simply loads, processes and saves without outputting the threads summary when it's loaded?

I also still need to find a way of displaying the START DATES (i.e. No.1 in post above) for the threads. It should just be a matter of adding an extra call like "'postuserid' => $Thread['postuserid'],", but I can't remember what to use for date?

TYorke 09-25-2005 10:57 PM

I am getting this error

Fatal error: Call to a member function on a non-object in /home/cchla/public_html/forums/vBExternal.php on line 433


any ideas?

EDIT: I fixed my problem ... I did this by using

<?php
require_once('./vBExternal.php');
output_UsersOnline();
?>

Where I wanted my 'Users Online' to appear instead of at the top of the file as per the instructions ;)


All times are GMT. The time now is 12:11 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.01444 seconds
  • Memory Usage 1,758KB
  • 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
  • (5)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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