Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
[ITech] vBExternal Lite Details »»
[ITech] vBExternal Lite
Version: 1.00, by Inferno Tech Inferno Tech is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.x Rating:
Released: 05-15-2007 Last Update: Never Installs: 141
Additional Files  
No support by the author.

PLEASE REFER TO THE FOLLOWING THREAD FOR HELP/SUPPORT: https://vborg.vbsupport.ru/showthread.php?t=166791

----------------------------------
[ITech] vBExternal Lite
Created By Inferno Technologies (http://www.infernotechnologies.net)
Copyright 2004-2007
All rights reserved
Project Development Team: Zero Tolerance, Acid Burn
Project Lead: Iain "Decado" Kidd
----------------------------------

Ported from vBExternal 1.6 created by Zero Tolerance to work with vBulletin 3.6.x

Features:
  • Easy integration with your existing php scripts
  • No coding experiance needed to make it work
  • Full parsing for bbtags and emoticons/smilies + auto URL correction (no red-x's)
  • Lets you put forum information on your homepage/webpage
  • Users online
  • Latest Threads w/preview
  • More Information *Here*

Installation Information:
  • Template modifications: 0
  • Database changes: 0
  • Files added: 5
  • Files modified: 1 (website page)
  • Installation difficulty: 2/5
Installation Instructions:
1) Unzip the folder and upload the contents of UPLOAD into your root directory
2) Read Useage instructions.txt and then you are done

Version History:
None so far.

Frequently Asked Questions:
Q: So does this able you to put like phrases and stuff in external sites?
A: At the moment it allows you to Display Newest Members, Top Posters, Newest Threads, Newest Replies, News and Users Online onto a page outside of your vbulletin directory.

Q: I have a problem. My page is located at root/cms and my forum at root/forum. It's isn't possible for me to locate the forum in a subfolder of /cms.
Is there any solution for this problem?

A:Yes there is a solution try this piece of code instead of the one that the instructions says to use:
Code:
<?php
chdir('../VB');
require_once('vBExternal.php');
?>
Q: How would i do this if theres 2 different domains involved
A: If the two domains are on both the same server and the same domain account then call you need to do is chdir out of your current account folder (www/public_html/testsite/) to the other domain folder (www/public_html/site2/)

Screenshot:
https://vborg.vbsupport.ru/attachmen...4&d=1118677511
(Thanks to C.Birch)


Acid Burn - Inferno Technologies Developer

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
lange

Comments
  #102  
Old 09-29-2007, 07:08 PM
JtChurch925 JtChurch925 is offline
 
Join Date: Sep 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<sigh>

...bupkis, nothing, nada...

I assume this must have something to do with the fact that I am trying to display the information on the same page as the forum -and so you'd be right about it be a linkage (or directory) problem.

I also have a main page built in Joomla, and it will display there ok.
-of course the head code for that page is:
<?php
chdir('./forum');
require_once('./vBExternal.php');
?>

because it's a different directory.
but I drop in the php output code on that page and it works just fine.

but nothin' doin' on http://n81street.com/forum/index.php
hrmmm...
  #103  
Old 09-29-2007, 10:59 PM
Koroku Koroku is offline
 
Join Date: Oct 2006
Location: Minnesota, USA
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm no master, but I don't think you need the chdir at all if you're including vBExternal.php in the same directory.
  #104  
Old 09-30-2007, 03:39 PM
steveneff steveneff is offline
 
Join Date: Sep 2007
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got this working in a nuke module.

in modules/mymodule/index.php

PHP Code:
chdir('./forum'); 
require_once(
'./vBExternal.php'); 
output_NewestThreads(5,'1,2,3');
chdir('../'); 

in vBExternal.php change each instance of $db to $vbdb

Not sure if this is the right thing to do but it works

Anyone know how to list a preview of each tread?
  #105  
Old 09-30-2007, 10:25 PM
JtChurch925 JtChurch925 is offline
 
Join Date: Sep 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Koroku View Post
I'm no master, but I don't think you need the chdir at all if you're including vBExternal.php in the same directory.
Yep, if you check my posts you'll see I removed chdir for the forum page. Added it for the J!hompage.

Congrats on getting it working steveneff, I'm jealous, tried changing the $db to $vbdb and that didnt seem to help either.

  #106  
Old 10-01-2007, 02:51 PM
steveneff steveneff is offline
 
Join Date: Sep 2007
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've managed to get the post text displayed with the code below but would now like to add the parent forum.

PHP Code:
    // ---------------------------------------------------
    // FUNCTION: output_NewestThreads
    // DETAIL:   Outputs X newest threads ordered by
        //           start date descending. $a
    //           specifies amount to show (Default 5)
        //           and $f can specify certain forums
    //           to grab from (1,3,4), by default it pulls
        //           from all forums.
    // ---------------------------------------------------

    
function output_NewestThreads($a 5,$f ""){
    global 
$db$Data$vbulletin;
    
    
// Define amount to show
    
$Amount = ($a)? intval($a) : 5;

    
// Define Forum(s) To Pull From
    
$Forums = ($f)? $f'';
    
$SQL    '';

        if(
$Forums){
        
$SQL " where forumid in({$Forums})";
        }

    
// Load Template
    
$Template LoadTemplate("newest_threads.html");

//     Collect Data
        
$NewestThreads $db->query("
            select t.*,p.pagetext
            from "
.TABLE_PREFIX."thread t
            left join "
.TABLE_PREFIX."post p on(p.postid=t.firstpostid)
            
{$SQL} 
            order by dateline desc
            limit 0,
$Amount");

        
$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());

        while(
$Thread $db->fetch_array($NewestThreads)){
        
$Data .= ParseTemplate($Template,
                            array(
                                
'threadid'     => $Thread['threadid'],
                                
'threadname'   => $Thread['title'],
                                
'postuserid'   => $Thread['postuserid'],
                                
'postusername' => $Thread['postusername'],
                                
'post'         => $bbcode_parser->parse(unhtmlspecialchars
                                
(substr ($Thread['pagetext'],0,101)), $f), 

                                
'replies'      => vb_number_format($Thread['replycount']),
                                
'views'        => vb_number_format($Thread['views']),
                                
'lastposter'   => $Thread['lastposter'],
                            )
            );
        }

    
doOutput();
    } 

Anyone done this already?
  #107  
Old 10-01-2007, 05:40 PM
bangthebook bangthebook is offline
 
Join Date: Jan 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What has to be edited to control the length of the thread title? I dont see an option and I havent seen it pointed out.

Also anyone get this working with VBSEO?
  #108  
Old 10-01-2007, 09:40 PM
steveneff steveneff is offline
 
Join Date: Sep 2007
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bangthebook View Post
What has to be edited to control the length of the thread title? I dont see an option and I havent seen it pointed out.
Try this, where 100 = amount of characters

PHP Code:
'threadname'   => (substr ($Thread['title'],0,100)) 
  #109  
Old 11-04-2007, 08:25 PM
Stratto's Avatar
Stratto Stratto is offline
 
Join Date: Jun 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I liked this, its really good! And easy to code, thanks ^^

Oh I don't know if anyone else has posted but I added a printable option and to reply to the post.

Add reply
Code:
<a href='{url}/newreply.php?do=newreply&noquote=1&p={threadid}'>
Comments: {comments}</a>
Print Article
Code:
<a href='{url}/printthread.php?t={threadid}' target='_new'> <small>Print Article</small></a>
Once again, thanks I've been looking for this since..forever XD
  #110  
Old 11-08-2007, 01:12 PM
SilentNoise's Avatar
SilentNoise SilentNoise is offline
 
Join Date: Jan 2003
Location: Edmonton, Alberta, Canada
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dude! You just made my year with this hack!

Goodbye vBAdvanced!.... you boxy, boooooring POS!
  #111  
Old 11-09-2007, 07:16 AM
rwoscott rwoscott is offline
 
Join Date: Jan 2007
Location: Melbourne
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Finally got it to work, thanks mate.
Closed Thread


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 02:48 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.04708 seconds
  • Memory Usage 2,344KB
  • 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
  • (3)bbcode_code
  • (3)bbcode_php
  • (2)bbcode_quote
  • (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
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete