Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBExternal v1.6 Details »»
vBExternal v1.6
Version: 1.6, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 05-23-2005 Last Update: 05-24-2005 Installs: 145
 
No support by the author.

Alright, the people waiting for the quiz hack are gonna kill me for making this while i'm supposed to be developing v2.. heh.

Anyway, welcome to vBExternal, the answer to all your questions of "how can i get this to show on my website from my forum?"
vBExternal provides you the user with the availability to include several forms of information from your own forum, on your own website, with minimal work required!

UPDATE - 1.5:
This update provides more stability, the vBExternal file will only call 1 query for $vboptions and 1 query for the action, a maximum potential of 2 queries (some may execute 3 dependant on functionality used)

UPDATE - 1.6:
Several minor bugs fixed, 2 main one's were users online (repeating names) and emoticons (being red x's).
Also using vBExternal is completely different as to before (the download contains instructions on how to set up vBExternal the new way)

To update: Re-upload vBExternal.php

Features:
  • Newest Members
    • Description: Outputs X members onto your website, ordered by newest first
    • Available Parameters/Options: Change amount shown (default is 5)
  • Top Posters
    • Description: Outputs X members onto your website, ordered by # of posts
    • Available Parameters/Options: Change amount shown (default is 5)
  • Newest Threads
    • Description: Outputs X threads onto your website, ordered by post date
    • Available Parameters/Options: Choose all/1/several forums to pick from (default is all forums), Change Amount shown (default is 5)
  • Newest Replies
    • Description: Outputs X threads onto your website, ordered by newest reply
    • Available Parameters/Options: Choose all/1/several forums to pick from (default is all forums), Change Amount shown (default is 5)
  • News
    • Description: Outputs X posts onto your website, from a specific forum, ordered by post date
    • Available Parameters/Options: Choose which forum news is pulled from, Change Amount shown (default is 5)
  • Users Online
    • Description: Outputs all your users online on your forum, onto your webpage
    • Available Parameters/Options: N/A

Installation:
All you have to do is upload a few files, no running an installer, no file edits, no template additions/edits, nothing!!

Resources:
The system uses the default 1 vB queries onload, and then only ONE additional query (if action is successful)

Using vBExternal:
First of all, your site will have to be php, if your site is say .htm/.html, no worries, just rename the file type to .php, it will all be the same. Then read 'Usage Instructions' contained within the download to see how to set it up


Customizing HTML Output:
Go inside yourforumdir/vBExternal/
You'll find a few HTML files, these files are the template "structure" for each action, you can change the HTML to your own liking, however leave in the macro's --> {bla} (These are swapped with data called from your forum)

I think that's it really, really simple, really easy to use, so there ya go

PS: Feel free to send me any donations, my paypal is: webmaster@gzevolution.net

Enjoy,

- Zero Tolerance

Show Your Support

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

Comments
  #72  
Old 06-17-2005, 04:34 AM
Stangsta's Avatar
Stangsta Stangsta is offline
 
Join Date: Aug 2004
Location: Virginia
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work on 3.0.3?
Reply With Quote
  #73  
Old 06-17-2005, 06:47 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I made a little mod to it that I hope ZT approves and some may like.

I just wanted to display a certain number of characters from the post on my news page, so I made this modification.

UPDATED: Updated text file to include "...read more." link
Reply With Quote
  #74  
Old 06-17-2005, 07:01 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find this:
Code:
'threadname'     => $News['title'],
And replace with this:
Code:
'threadname'     => substr($News['title'],0,15),
Reply With Quote
  #75  
Old 06-18-2005, 02:10 AM
SupremeWeapon SupremeWeapon is offline
 
Join Date: Jan 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SupremeWeapon
ok fixed that.. it was the ./vBExternal.php in the code that did it....


but now i have this issue

There was an error while processing vBExternal:
System was unable to find the template 'vBExternal/news.html'



ideas?

still need help with this
Reply With Quote
  #76  
Old 06-19-2005, 10:59 PM
Liqid Touch Liqid Touch is offline
 
Join Date: Jan 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok here what i got
Warning: chdir(): No such file or directory (errno 2) in /home/virtual/clubexl/public_html/liqid/indexindex.php on line 2

in the file i change
chdir('./forums');

to

chdir('./vb');
because my root folder for my vb is called 'vb'

so whats wrong here?

also i changed

require_once('./vBExternal.php');
to
require_once('http://clubexl.com/vb/vBExternal.php');

Could this be the culprate?
Reply With Quote
  #77  
Old 06-19-2005, 11:51 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

YES

Don't change:

PHP Code:
require_once('./vBExternal.php'); 
Reply With Quote
  #78  
Old 06-20-2005, 02:50 PM
dethfire dethfire is offline
 
Join Date: Feb 2003
Posts: 441
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fatal error: Call to a member function on a non-object in /htdocs/www/vBExternal.php on line 235
Reply With Quote
  #79  
Old 06-20-2005, 04:27 PM
Liqid Touch Liqid Touch is offline
 
Join Date: Jan 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how often does this refresh the info?
i set it up on a test page and it shows nicely however
i went and posted a new thread
also posted a new message
and the information showing did not change....


also
when the info displays it says

Thread: Big Morillo Fan!!!Thread Starter: ILUVMORILLO
Replies: 2
Views: 9
Last Post: clubexl ?


-----------
what can i change in the array to have it NOT display the following

Replies: 2
Views: 9
Last Post: clubexl ?

and only display
NEW THREAD
Thread: Big Morillo Fan!!!


you can see this in use as a test here www.clubexl.com/maintest.php
Reply With Quote
  #80  
Old 06-20-2005, 05:06 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Liqid Touch
when the info displays it says

Thread: Big Morillo Fan!!!Thread Starter: ILUVMORILLO
Replies: 2
Views: 9
Last Post: clubexl ?


-----------
what can i change in the array to have it NOT display the following

Replies: 2
Views: 9
Last Post: clubexl ?

and only display
NEW THREAD
Thread: Big Morillo Fan!!!
In newest_threads.html Change this:
HTML Code:
<fieldset>
<legend>Thread: <a href='{url}/showthread.php?t={threadid}'>{threadname}</a></legend>
<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td width='1%' style='white-space:nowrap'><b>Thread Starter:</b></td>
<td width='1%' style='white-space:nowrap'><a href='{url}/member.php?u={postuserid}'>{postusername}</a></td>
</tr>
<tr>
<td width='1%' style='white-space:nowrap'><b>Replies:</b></td>
<td width='1%' style='white-space:nowrap'>{replies}</td>
</tr>
<tr>
<td width='1%' style='white-space:nowrap'><b>Views:</b></td>
<td width='1%' style='white-space:nowrap'>{views}</td>
</tr>
<tr>
<td width='1%' style='white-space:nowrap'><b>Last Post:</b></td>
<td width='1%' style='white-space:nowrap'><a href='{url}/member.php?find=lastposter&t={threadid}'>{lastposter}</a> <a href='{url}/showthread.php?t={threadid}&goto=lastpost' title='Go To Last Post'>?</a></td>
</tr>
</table>
</fieldset>
To This:

HTML Code:
<tr>
<td><font color='Blue'>Thread: <a href='{url}/showthread.php?t={threadid}'>{threadname}</a></td>
</tr>
Then in vBExternal.php Change this:

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;

    
// 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 * 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'],
                            )
            );
        }

    
doOutput();
    } 
To This:
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;

    
// 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");
    
$Data .= "<fieldset><legend>New Threads</legend><table cellpadding='0' cellspacing='0' border='0'>";

    
// Collect Data
    
$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'],
                            )
            );
        }
    
$Data .= "</table></fieldset>";
    
doOutput();
    } 
Reply With Quote
  #81  
Old 06-20-2005, 05:53 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Am I missing something here:

I want to create a function called:

PHP Code:
output_Login() 
I have created this in the vBExternal.php:

PHP Code:
    // ---------------------------------------------------
    // FUNCTION: output_Login
    // DETAIL:   Outputs Login Box
    // ---------------------------------------------------

    
function output_Login(){
    global 
$DB$Data;
    
$Template LoadTemplate("login_form.html");
    if (
$bbuserinfo['userid'] == || $bbuserinfo['userid'] == -1) {
    
$Data .= ParseTemplate($Template);
    } else {
        echo 
"Welcome Back,<br>".$bbuserinfo['username'];
    }
    
doOutput();
    } 
and created this template: as login_form.html

HTML Code:
<fieldset>
<legend>Login :</legend>
		<form action="{url}/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
		<script type="text/javascript" src="{url}/clientscript/vbulletin_md5.js"></script>
		<table cellpadding="0" cellspacing="3" border="0">
		<tr>
			<td>UN: </td>
			<td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td>
			<td colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />Remember Me?</label></td>
		</tr>
		<tr>
			<td>PWD: </td>
			<td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td>
			<td><input type="submit" class="button" value="Log in" tabindex="4" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" /></td>
		</tr>
		</table>
		<input type="hidden" name="s" value="" />
		<input type="hidden" name="do" value="login" />
		<input type="hidden" name="forceredirect" value="1" />			
		<input type="hidden" name="vb_login_md5password" />
		</form>
</fieldset>
What include or required file am I missing that is preventing this from working properly.

It is not displaying the username or anything. Additionally, I want to add a conditional to one of the functions for an admin sub-function by determining the usergroupid membership and that too does not work.

HELP ZT HEEEELP!!!!
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 05: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.13256 seconds
  • Memory Usage 2,380KB
  • 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
  • (2)bbcode_code
  • (3)bbcode_html
  • (5)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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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