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)

Zachery 04-24-2006 05:39 PM

Try reversing the include, not sure if that will help.

Jay... 04-24-2006 05:45 PM

tried that and get a totally different error

Quote:

Fatal error: Cannot instantiate non-existent class: vb_registry in /home/donkedne/public_html/forums/vBExternal.php on line 66

chrisjp88 04-24-2006 06:29 PM

Useful hack, but I've got a big problem. It isn't showing stuff with QUOTE tags. I would like to know how to fix this please :)

Thanks

Spinball 04-27-2006 06:58 PM

Couple of pre-install questions to those guys on this thread (since Zero Tolerance hasn't been around for 3 months). First, I need to display the contents of one specific thread (via the thread id) as an 'include' type function on a different website on the same server. And possibly on a different website on a different server.
Will vBexternal do this? If not is there a hack which can?
The reason I ask is because I want to integrate my forum into a new website (or two) and use it for discussing specific reviews. So those specific threads are displayed on a page below the review.

And secondly since Zero Tolerance isn't around any more, is it 'safe' to install this hack if it, indeed is appropriate for my needs?
Thanks

SupremeWeapon 04-30-2006 03:51 AM

Quote:

There seems to have been a problem with the database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.

We apologise for any inconvenience.

I get that anytime i add the includes and chdir to the php pages.

Phlex 05-02-2006 04:11 PM

Quote:

Originally Posted by SupremeWeapon
I get that anytime i add the includes and chdir to the php pages.

same problem :(

Dave-ahfb 05-02-2006 08:26 PM

I am going to take another look at the include issue tonight, I will let you all know if I come up with anything. I did manage to solve the issue of date and time on threads and replies incase there is any interest.

Dave

Phlex 05-04-2006 12:21 PM

would be nice thx

Dave-ahfb 05-04-2006 04:48 PM

I had a couple of things I wanted to try so that global.php would include properly, none of my ideas worked.

In regards to date and time

find
Code:

        function output_NewestThreads($a = 5,$f = ""){
        global $db, $Data;

replace with
Code:

        function output_NewestThreads($a = 5,$f = ""){
        global $db, $Data, $vbulletin;

find
Code:

        $NewestThreads = $db->query("select * from ".TABLE_PREFIX."thread{$SQL} order by dateline desc limit 0,$Amount");

                while($Thread = $db->fetch_array($NewestThreads)){
                $Data .= ParseTemplate($Template,
                                                        array(
                                                                'threadid'    => $Thread['threadid'],
                                                                'threadname'  => $Thread['title'],
                                                                'postuserid'  => $Thread['postuserid'],
                                                                'postusername' => $Thread['postusername'],
                                                                'replies'      => vb_number_format($Thread['replycount']),
                                                                'views'        => vb_number_format($Thread['views']),
                                                                'lastposter'  => $Thread['lastposter'],

replace with
Code:

        $NewestThreads = $db->query("select * from ".TABLE_PREFIX."thread{$SQL} order by dateline desc limit 0,$Amount");

                while($Thread = $db->fetch_array($NewestThreads)){
                $Data .= ParseTemplate($Template,
                                                        array(
                                                                'threadid'    => $Thread['threadid'],
                                                                'threadname'  => substr($Thread['title'],0,100),
                                                                'postuserid'  => $Thread['postuserid'],
                                                                'postusername' => $Thread['postusername'],
                                                                'replies'      => vb_number_format($Thread['replycount']),
                                                                'views'        => vb_number_format($Thread['views']),
                                                                'lastposter'  => $Thread['lastposter'], 
                                                                                                                                     
'date'    => vbdate($vbulletin->options['dateformat'], $Thread['dateline']),
                                                                                                                                       
'time'    => vbdate($vbulletin->options['timeformat'], $Thread['dateline']),


This obviously is for the new thread section. For newest replies it looks (but untested) like the first edit is the same and the second just add the date and time lines to the correct section.

Dave

Dave-ahfb 05-04-2006 05:08 PM

I forgot to add that you must open the template and include
Code:

{date}
{time}



All times are GMT. The time now is 06:26 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.01577 seconds
  • Memory Usage 1,753KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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