View Full Version : vBExternal v1.6
Zero Tolerance
05-23-2005, 10:00 PM
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 :p
Enjoy,
- Zero Tolerance
Brent H
05-24-2005, 07:15 AM
Awesome work man!
Nice one.. Might have a use for this! :nervous:
emtee
05-24-2005, 07:38 AM
No offense, but is this hack really a MAJOR ADDITION? IMHO, it's not...
Zero Tolerance
05-24-2005, 07:40 AM
No offense, but is this hack really a MAJOR ADDITION? IMHO, it's not...
Point out another category that fit's well, because i couldn't think of any other which would suit better.
- Zero Tolerance
No offense, but is this hack really a MAJOR ADDITION? IMHO, it's not...
It's absolutely major...I've waited years for this.
Until this moment I had to play with rss addons to include something outside of VB...
Suggestion:
Please include events/calendar includes to next version if possible...
Great hack. Thank You!
DAMMIT!!!!
I was working on something just like this to release as my first MOD.
/me sits in a corner ...but installs anyway.
Thanks ...
Zero Tolerance
05-24-2005, 12:07 PM
DAMMIT!!!!
I was working on something just like this to release as my first MOD.
* jugo sits in a corner ...but installs anyway.
Thanks ...
Sorry man, if i'd of known i wouldn't of made it, i just saw someone wanting a similar thing in the service requests forum and thought i'd make it. My appologies.
v1.5 will be released shortly, the system is stable however the default VB queries do NOT need to be executed, so i'm cutting it from 6/7 queries to 1 (per include) :)
- Zero Tolerance
Corriewf
05-24-2005, 12:38 PM
Zt Your A Pimp!
TCattitude
05-24-2005, 12:56 PM
Nice!
Like an SDK.
Jelsoft must consider to release an SDK (like the competitor). Is VERY useful for us: the people with no php skills :)
Zero Tolerance
05-24-2005, 01:04 PM
Yeah i guess you could call it a software development kit (that is what SDK means right....? :p)
And yeah, i'm surprised jelsoft havn't, their competitors IPB have had SDK around since IPB 1.2 (not sure about 1.0/1.1)
- Zero Tolerance
Zero Tolerance
05-24-2005, 01:45 PM
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)
- Zero Tolerance
Vaelen
05-24-2005, 01:55 PM
It's giving me the PHP error saying the file isn't there, lol, even though I'm 100% sure it is. I'm also positive the syntax is correct, i use includes on my site already and I basically just copied the code.
Says failed to open stream
Zero Tolerance
05-24-2005, 01:57 PM
Did you put the correct path to the vBExternal.php? So if your forums directory was: vbulletin/, and you were calling from the parent directory of that, it would be:
include('vbulletin/vBExternal.php?bla');
- Zero Tolerance
Vaelen
05-24-2005, 01:58 PM
Could it be the fact that I'm using the include on a page that I include to begin with?
index.php includes content.php ->> I wanted to include VBexternal.php on content.php
and yes, the path is correct
Vaelen
05-24-2005, 02:02 PM
for includes i always have to use the full path, which is
/home2/vaelen/public_html/forum/vBExternal.php?blah
Zero Tolerance
05-24-2005, 02:10 PM
Well you can either keep doing that or:
chdir('./')
Should work, but php and directories really do my nut in :p
- Zero Tolerance
Marky
05-24-2005, 02:12 PM
Awesome hack... will definatly use when I get my site up ^_^
Nice work :)
Vaelen
05-24-2005, 02:14 PM
I'm at work right now.. I'll play with it a bit later when I get home, I'm sure I can get it working. Whether I can or can't, awesome script anyway. Been looking for one to do this over the past few weeks with this type of functionality ^^
JohnBee
05-24-2005, 03:25 PM
Any chance to get most users online in this?!?!?
I have been trying to no end to get that single function to work out of vbulletin
but so far 0 success :(
Allan
05-24-2005, 03:37 PM
screen please ?
Vaelen
05-24-2005, 04:49 PM
Hmm.. same thing still ;\
Warning: main(forum/vBExternal.php?do=users_online): failed to open stream: No such file or directory in /index.php on line 504
Warning: main(forum/vBExternal.php?do=users_online): failed to open stream: No such file or directory in /index.php on line 504
Warning: main(): Failed opening 'forum/vBExternal.php?do=users_online' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /index.php on line 504
screen please ?
Of what ?
This is a function...
* Polo is mad at Zero Tolerance for working on this instead of vbquiz v2! :ermm:
he he thanks Zero Tolerance for releasing this :)
lala29
05-24-2005, 08:08 PM
It works fine.
thanks
bigcurt
05-25-2005, 04:30 AM
Not quite sure what this is but a screenshot would help me :).
Zero Tolerance
05-25-2005, 04:32 AM
Screenshots wouldn't apply since its adding stuff to your site from your forum, heres the best description i can give which is in the main post:
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!
If you want an example, go to my site: http://gzevolution.net - Look at the left menu bar, you will see a list of all users online, this is done using vBExternal :)
- Zero Tolerance
s1l3NCER
05-25-2005, 04:42 AM
this what I have being lookin for. for the longest time man thanks a lot.
Zero Tolerance
05-25-2005, 06:42 AM
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)
The new way of setting up vBExternal will eradicate include() problems which some php installations have, where direct url's cannot be used, and include throws a HTTP error back, or an error because of the '?' being used with a directory path.
The download contains information now how to use vBExternal, it's easier and uses less resources than before! :)
- Zero Tolerance
s1l3NCER
05-25-2005, 06:57 AM
Yeah it works now very good. Thanks forthe help on messenger.
UPDATE - 1.6:
Calendar event option...please please please :cry:
Zero Tolerance
05-25-2005, 09:38 AM
Calendar event option...please please please :cry:
Yeah sorry goyo, the updates at the moment are not to add additional functionality, just to clear up problems/bugs and reduce resources used :)
v2 will include a lot more information to externaly put on your website :)
- Zero Tolerance
Yeah sorry goyo, the updates at the moment are not to add additional functionality, just to clear up problems/bugs and reduce resources used :)
v2 will include a lot more information to externaly put on your website :)
- Zero Tolerance
Thank You...Great hack...it should be a VB standard (as IB has it for a long time...)
Vaelen
05-25-2005, 02:33 PM
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)
The new way of setting up vBExternal will eradicate include() problems which some php installations have, where direct url's cannot be used, and include throws a HTTP error back, or an error because of the '?' being used with a directory path.
The download contains information now how to use vBExternal, it's easier and uses less resources than before! :)
- Zero Tolerance
Yay! <3
Fixed it. Very awesome. Rate up :D
Zero Tolerance
05-25-2005, 02:55 PM
Excellent, glad it's working for you.
Enjoy :)
- Zero Tolerance
Phalynx
05-25-2005, 08:08 PM
Great, thanks! :)
bigcurt
05-25-2005, 08:57 PM
Oh, Ive got i now ;). I am just a little slow ZT. Yea, I smell HOTM :).
trainer
05-26-2005, 01:44 AM
how do i change it up some - one area i want to pull all replies from forumid=1 another area of the web site i want to pull all replies from forumid=2
how can i set that up?
Zero Tolerance
05-26-2005, 12:35 PM
trainer - The text file explains how to use it, for newest replies:
output_NewestReplies(5,"FORUM-IDS");
FORUM-IDs can be one or multiple id's, if multiple seperated by a comma, so to pull from forum id 2:
<?php
output_NewestReplies(5,"2");
?>
:)
- Zero Tolerance
Snake
05-26-2005, 02:41 PM
Nice hack you're making man! :D Thanks.
aloha
05-27-2005, 08:29 AM
DAMMIT!!!!
I was working on something just like this to release as my first MOD.
* jugo sits in a corner ...but installs anyway.
Thanks ...
lmao @ jugo
Right on tolerance.
Rambo
05-28-2005, 02:57 AM
You arn't on msn so i'll post here :D,
Great mod! wondering if/how can i implement a login system to work with vB so users can login from main website, also how can i truncate thread titles in the latest threads feature!.
Thanks
cmiller1014
05-28-2005, 04:57 AM
Do this only work on the same website, or could I somehow pull info from my forum onto another site with this? I have a network and want to get my latest posts and polls shown on ever site......
Zero Tolerance
05-28-2005, 07:52 AM
@ Rambo - Login/Your Logged In As: xxx is currently not a feature.
@ cmiller1014 - Aslong as the forums are on the same server you can do it, though it would require some modifications to stop the samer functions been re-defined. I'm afraid to say that i will only support it as-is, to pull data from 1 forum.
- Zero Tolerance
cmiller1014
05-28-2005, 06:10 PM
Hrmm I see. How do so many people share their VB data across a network of sites I wonder? Must take a lot of custom work.
Black_Widow
05-30-2005, 09:07 AM
Excuse me but what's the difference with export.php integrated syndication system?
Thanks
Zero Tolerance
05-30-2005, 11:23 AM
I havn't used export.php myself, but i do believe that it exports data as an RSS feed? This does not, it outputs in HTML, and the template for the HTML output can be changed very easily :)
- Zero Tolerance
Nick0r
06-02-2005, 04:12 PM
I'd like to include a similar thing to $upcomingevents, but display more events than what I have specified for the homepage on another vb powered page.
Could this be integrated?
paul41598
06-03-2005, 12:27 AM
This sounds what I might be looking for. However, before install, is there a way to pull a mini calendar as well on here? Maybe even just say "there are 2 users and 3 guests online" instead of listing all of the usernames?
So far, seems promising though. Hopefully you can add those two though...
lange
06-03-2005, 07:17 AM
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!
What do you mean by "on your own website" ? On a non-vb page ? On an external website ?
paul41598
06-03-2005, 12:37 PM
Warning: mysql_query(): 5 is not a valid MySQL-Link resource in /home/cmich/public_html/testboard/vbforums/includes/db_mysql.php on line 212
Zero Tolerance
06-05-2005, 01:28 AM
@ lange - Yes
@ paul - What code did you enter on your website page?
- Zero Tolerance
JWalker05
06-06-2005, 06:41 AM
Awesome. Installing now.
EDIT: Just installed. Works like a charm. :)
optradin
06-06-2005, 05:32 PM
Hi (my first post here),
I just noticed that you can easily place this content on any page in any file.
For example:
you want to keep your .html extension on your page - you can use javascript.
go into the vBExternal directory and open the newest_threads.html file.
add this to every line (has to be every line or it won't work)
document.write(" [all the code that was on that line] ");
then make a dummy externalcontent.php file to call the vBExternal.php content and put the code:
<?php
require_once('./vBExternal.php');
output_NewestThreads(5);
?>
now go into your .html file and use this code:
<script language="javascript" src="http://www.yoursite.com/externalcontent.php"></script>
this code can be placed on any page in any number of instances anywhere on your site that supports javascript (uses the simple document.write in javascript similar to the print function in php)
this can be applied to any of the templates in the hack
be careful with the syntax of the javascript and be careful with quotes. If you use quotes other than the ones for the document.write you have to escape them with \
yoyoyoyo
06-06-2005, 08:42 PM
awesome! great work ZT!
PRadden
06-07-2005, 04:10 PM
Hey Zero Tolerance, how do i make it to where it only displays the first 15 character's of the Thread Names, insted of the entire thread name?
thanks
check it out here to see what i am talking about www.AutomotiveStreetSports.com
Booth
06-07-2005, 10:20 PM
FANTASTIC hack. Thankyou. Clicks install and here it is running at my site: www.pleasedsheep.com (http://www.pleasedsheep.com/)
Any chance we could call up recent galleries/comments from photopost? That would be cool!
:classic: :classic: :classic: :classic:
PRadden
06-08-2005, 04:50 AM
Hey Zero Tolerance, how do i make it to where it only displays the first 15 character's of the Thread Names, insted of the entire thread name?
thanks
check it out here to see what i am talking about www.AutomotiveStreetSports.com
Zero Tolerance where you at???
NxTek
06-09-2005, 08:43 PM
Can this be used to output variables such as $bbuserinfo['username'] ?
MrToasty
06-12-2005, 10:59 AM
Anyone tried this on 3.5, as yet? I tried but get a dB error... I think I might be on 3.07 for some time until 3.5 is stable, and so are most hacks i use :P
Marco van Herwaarden
06-12-2005, 02:57 PM
Anyone tried this on 3.5, as yet? I tried but get a dB error... I think I might be on 3.07 for some time until 3.5 is stable, and so are most hacks i use :PUnless you know very good what you are doing, you should NEVER try a vB3.0 hack on 3.5.
yoyoyoyo
06-12-2005, 03:11 PM
great hack! thanks for sharing.
PRadden
06-13-2005, 03:38 PM
Hey Zero Tolerance, how do i make it to where it only displays the first 15 character's of the Thread Names, insted of the entire thread name?
thanks
check it out here to see what i am talking about www.AutomotiveStreetSports.com
COULD SOMEONE PLEASE HELP ME WITH THIS ???
Divokymuz
06-14-2005, 08:45 AM
great hack, surely.
now i have one question.
i want to show some content of one forum on more then one external page.
p.E. a FAQ should be shown on domain 1, domain 2 and domain 3. they are in different accounts on the server.
it would it make realy easier for me, to update content, because i only have to change it then in one forum.
SupremeWeapon
06-14-2005, 11:32 AM
Fatal error: main(): Failed opening required './vBExternal.php' (include_path='.:/usr/local/lib/php') in /homepages/5/d120911218/htdocs/index.php on line 3
used exactly how the txt file said to... files there.... everythings edited th eway it shoul dbe.. ideas?
Marco van Herwaarden
06-14-2005, 11:39 AM
Are you sure you uploaded the file in your forumhome directory, permissions allow reading by all, and that it is not uploaded in all lower or upper case?
SupremeWeapon
06-14-2005, 11:47 AM
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?
David_R
06-15-2005, 11:11 PM
Will this hack work proper with template based systems like mambo or Sub Dreamer ?
I have couple of portal systems working on same
Thanks.
Stangsta
06-17-2005, 04:34 AM
does this work on 3.0.3?
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
Find this:
'threadname' => $News['title'],
And replace with this:
'threadname' => substr($News['title'],0,15),
SupremeWeapon
06-18-2005, 02:10 AM
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
Liqid Touch
06-19-2005, 10:59 PM
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?
YES
Don't change:
require_once('./vBExternal.php');
dethfire
06-20-2005, 02:50 PM
Fatal error: Call to a member function on a non-object in /htdocs/www/vBExternal.php on line 235
Liqid Touch
06-20-2005, 04:27 PM
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.... :rolleyes:
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
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:
<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:
<tr>
<td><font color='Blue'>Thread: <a href='{url}/showthread.php?t={threadid}'>{threadname}</a></td>
</tr>
Then in vBExternal.php Change this:
// ---------------------------------------------------
// 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:
// ---------------------------------------------------
// 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();
}
Am I missing something here:
I want to create a function called:
output_Login()
I have created this in the vBExternal.php:
// ---------------------------------------------------
// FUNCTION: output_Login
// DETAIL: Outputs Login Box
// ---------------------------------------------------
function output_Login(){
global $DB, $Data;
$Template = LoadTemplate("login_form.html");
if ($bbuserinfo['userid'] == 0 || $bbuserinfo['userid'] == -1) {
$Data .= ParseTemplate($Template);
} else {
echo "Welcome Back,<br>".$bbuserinfo['username'];
}
doOutput();
}
and created this template: as login_form.html
<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!!!!
Booth
06-20-2005, 06:21 PM
Is there any way that in the members online info, we could also have the total number of users (including guests)?
Yes...After I sort out my dealie p there, I'll write the function for you.
Sovereign
06-21-2005, 02:33 AM
Thank you thank you thank you! Now I don't have to hack PHP-Nuke/vB, just use vB External and PHP-Nuke blocks to make the site look "integrated"...
dmatthams
06-21-2005, 07:30 PM
this is an excellent hack + exactly what I have been searching for. Just one thing i really need is to have the users avatar next to the news post. Is there a way to do this?
if you look on my test index site http://www.varilla.co.uk/indextest.php you can see the previous news system i wrote simply in php (the top post), and under it the vbexternal posts.
I will kiss whoever can help me out!
AutomatikStudio
06-23-2005, 10:39 PM
Could someone possibly update this to make a version for 3.5?
<a href="https://vborg.vbsupport.ru/showthread.php?t=83005&highlight=vbexternal" target="_blank">https://vborg.vbsupport.ru/showt...ght=vbexternal</a>
tscbh
06-25-2005, 03:56 AM
I got this error message:
Fatal error: Call to a member function query() on a non-object in www\forum\vBExternal.php on line 204
How can I fix this?
tscbh
06-25-2005, 04:21 AM
I got another question, sound stupid :(
Upload the "contents" of the "UPLOAD" folder to your forums root directory.
which one of the following is forums root directory:
www.yoursite.com
OR
www.yoursite.com/forum
Booth
06-25-2005, 11:46 AM
Is there any way that in the members online info, we could also have the total number of users (including guests)?
Still waiting for this :nervous: Anyone know how??? :ninja:
www.yoursite.com/forum
That One.
Seanie
06-29-2005, 02:34 PM
is it possible to make the whos online bit adopt the forums permissions, cause at the moment everyone can see that users that have elected themselves as invisible... :(
Anatole
07-01-2005, 10:05 PM
Oh, yes! If you could only make an optional query for a last photo from PhotoPost database intergrated with vB :)
from jugo : https://vborg.vbsupport.ru/showpost.php?p=668446&postcount=72
i have a question:
i want to show all new forums to display.
is there any way to to this?
# news from (must be set - only 1 forum id allowed)
bhxtyrant
07-06-2005, 11:34 AM
Hey guys,Im kinda really new to VB and had a question.I manages to sucessfully install and set up VB external and everything is working great however it seems to be lacking a few things i would like so i was wondering if someone could tell me what i have to add/edit in order to get them.
1.)I would like to have a time/date stamp on the news item next to the postusername.Can this be done?I've actually seen it done at this site http://www.the-horror.com/ if anyone can help it would be appreciated.
2.)Also can be seen at the site i linked above.I would like to have a "post comments" and "view comments" link next to the comment number.How would i go about adding this?
Thanks in advance any help would be greatly appreciated.
bhxtyrant
07-08-2005, 12:18 AM
Hmm no one at all?In that case if this isnt possible does anyone know of another similar hack to this one that has the features i need?Thanks
Cheertobi
07-08-2005, 06:07 PM
Hi,
# Displaying Newest Threads
<?php
output_NewestThreads(5,"1,2,3");
?>
# Change '5' to the amount you want to show
# Change '1,2,3' to the forum ids you want to pull
# news from (leave blank to pull from all forums)
just one question Zero! Does ALL really means all forums or only "all" public forums? What about privat forums a guest cannot see/access!
Regards,
Tobi
Confusion
07-10-2005, 09:16 PM
Is there a way to limit the outputs to a certain amount of characters?
Ex: I have a table that's 255px wide and I don't want the title of a thread to break a line to continue... I'd rather it look like this:
This is the name of the thread...
by Gee - 18 replies
Thanks.
BillyD
07-15-2005, 04:40 AM
Hi,
just one question Zero! Does ALL really means all forums or only "all" public forums? What about privat forums a guest cannot see/access!
Regards,
Tobi
This is a good point. This script pulls up posts from private forums. What can we do about it, without having to type in all the forums we want minus the private ones? Thanks in advance. And I will click install once this is resolved. :)
BillyD
07-15-2005, 06:00 AM
So ideal additions to this would be:
- Private forum exclusion
- Ability to include post-icons
- Ability to include number of members and guests online in addition to simply naming the members
That would be great. Thanks again.
worMatty
07-17-2005, 11:41 PM
Morning, all.
I doubt you'll see this, ZT, but thanks very much for such an outstanding mod. It's such a simple thing, I'm surprised this was released on the 24th May. You've made it very customisable, but I too would like to know how to put the date and time of the news threads into my pages along with the articles.
Does anyone have any idea how this could be done? I'll continue to experiment and make inquiries in the meantime and if I find the answer I'll post it here.
from jugo : https://vborg.vbsupport.ru/showpost.php?p=668446&postcount=72
i have a question:
i want to show all new forums to display.
is there any way to to this?
I'll hook this up for you......i'll PM you and post it here.
bhxtyrant
07-19-2005, 03:29 PM
Morning, all.
I doubt you'll see this, ZT, but thanks very much for such an outstanding mod. It's such a simple thing, I'm surprised this was released on the 24th May. You've made it very customisable, but I too would like to know how to put the date and time of the news threads into my pages along with the articles.
Does anyone have any idea how this could be done? I'll continue to experiment and make enquiries in the meantime and if I find the answer I'll post it here.
Hey worMatty,
I actually spoke to ZT a while ago,He said this feature may be avalible in a future release of his hack so there are hopes.Unfortunatly he isn't exactly sure when this new version will be released so if you do happen to find out how to include the time/date using vBexternal please let me know :D
GetGamer.com
07-19-2005, 04:25 PM
I'm having trouble getting this mod to work.
I uploaded per the instructions to my forums root (http://www.bigblueball.com/forums/) and I've made the following edits to this page: http://www.bigblueball.com/im/msn/indexnew.php<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
...
<h2>MSN Messenger News</h2>
<?php
output_News(5,147);
?>
...
but when I load the page -- it's completely blank. It seems like there is a path problem, but I can't figure out what it is. Any suggestions?
bhxtyrant
07-19-2005, 05:56 PM
Hello Getgamer.com,
I had a similar problem and the solution is rather simple.you had to edit the following code with the correct server root paths to the correct files.for example you currently have this
chdir('./forums');
require_once('./vBExternal.php');
you should have something like this..
chdir('/home/servername/public_html/forums');
require_once('/home/servername/public_html/forums'/vBExternal.php');
this should solve your problem :)
also not sure if this really matters but move that line of code underneath of the code "</head>" this is how i have it set on my page and it works great :)
GetGamer.com
07-19-2005, 06:21 PM
Hello Getgamer.com,
I had a similar problem and the solution is rather simple.you had to edit the following code with the correct server root paths to the correct files.for example you currently have this
chdir('./forums');
require_once('./vBExternal.php');
you should have something like this..
chdir('/home/servername/public_html/forums');
require_once('/home/servername/public_html/forums'/vBExternal.php');
this should solve your problem :)
also not sure if this really matters but move that line of code underneath of the code "</head>" this is how i have it set on my page and it works great :)Thanks, that did the trick. Strange that the other doesn't work though...
worMatty
07-19-2005, 06:34 PM
Hey worMatty,
I actually spoke to ZT a while ago,He said this feature may be avalible in a future release of his hack so there are hopes.Unfortunatly he isn't exactly sure when this new version will be released so if you do happen to find out how to include the time/date using vBexternal please let me know :D
Thanks, bhxtyrant. I'll remember to.
User's avatar would be a nice feature, too... *goes away and thinks*
GetGamer.com
07-19-2005, 08:22 PM
This is a great mod! I'm glad I ran across it.
I have a few suggestions:
Allow the selection of multiple forums for news.
Include the post date for news.
Allow an optional image associated with the forumid (similar to what you see at www.neowin.net (http://www.neowin.net))
Include the "news_bit" mod (https://vborg.vbsupport.ru/showpost.php?p=668446&postcount=72) by Jugo
Allow a starting number for your news array.
Why a starting number? Well...
I would love to have the most recent news story in full at the top of a page, followed by the next five (2-6) articles using the news_bit, followed by the next 10 articles (7-16) using just titles only. It's a great way to show a lot of information on a page without cluttering it up. Very similar to what you see at Dave's iPAQ (http://davesipaq.com/).
Obviously, it would be nice to automatically exclude private forums, but in addition to that, I've found another but that crops up with you use the news_bit modification. If you limit the characters, you could end up with unclosed tags and unpredictable formatting (especially with things like lists).
EDIT: I believe I'm on track to modify this to do the different ranges. I found this reference in the MySQL Reference Manual (http://dev.mysql.com/doc/mysql/en/select.html):The LIMIT clause can be used to constrain the number of rows returned by the SELECT statement. LIMIT takes one or two numeric arguments, which must be integer constants.
With two arguments, the first argument specifies the offset of the first row to return, and the second specifies the maximum number of rows to return. The offset of the initial row is 0 (not 1):
mysql> SELECT * FROM table LIMIT 5,10; # Retrieve rows 6-15 So I can add a parameter that specifies the starting row. The next step is to parameterize the html "template" that is used. Then I can call the function three times and achieve something akin to what I mentioned above.
csidlernet
07-20-2005, 08:15 AM
/me thanks for allowing me to install it
Mithras
07-21-2005, 04:44 PM
Very happy I found this script, it has made my life easier but there are a couple of things that need to be fixed and added.
1. Bug: Trouble with images.
It appears that if you wish to show an image using the img tags and said image is located at a url that has /images/ in it, it inserts the url to the forums image directory within the original url. This means that the thumbnail doesn't show up in the news.
2. Addition: Displaying the Date
Is it possible to export the date of the news post so that we can display it on the main page?
bhxtyrant
07-21-2005, 05:13 PM
I am trying to find a way to do this as well (add the date) but sadly i know nothing about how vB is coded so i dont know where to begin to try and add this fuction.
The Guardian
07-22-2005, 06:13 PM
I haven't updated to vB 3 yet, that's a project for me this week, but I'd like to use this for news on my website.
Can it be set to show only the first post in each thread, in order, and link to it, so you can have discussion on the threads which doesn't show up on the news page?
Thanks
worMatty
07-23-2005, 08:42 PM
Can it be set to show only the first post in each thread, in order, and link to it, so you can have discussion on the threads which doesn't show up on the news page?
Yes, The Guardian, it can. It shows the initial post of a thread as the 'article' and links to 'comments' (the replies in that thread). It displays articles in descending date order, and doesn't change the order they are displayed if a thread is bumped.
I've just installed this mod at http://www.habbohut.com - check it out, you'll see what I mean.
TylerL
07-23-2005, 11:46 PM
I need some slight help with this mod, nothing too big. I want to display the newest threads (5 of them) and I want every 2nd thread to display with a different background color.
Thread 1 info
Thread 2 info
Thread 3 info
Thread 4 info
Thread 5 info
Can anyone help?
10sion
07-26-2005, 02:42 AM
quick question....... is it possible to have news show up on domain1 and the forum in on domain2 ?
k figured it out
with - cause both sites are hosted on same server <?php
chdir('/home/user/public_html/');
require_once('/home/user/public_html/vBExternal.php');
?>
:squareeyed:
HolyCircle
08-05-2005, 09:55 PM
Does this mod work with 3.0.8?
Also, I've noticed that a lot of sites people posted here have their home pages sort of in html style. How could I also make a page in html, and make a frame for the news using this portal? I'm very new to websign so please excuse my stupidity. Also, if I do make it in a html sort of homepage, how do I limit amount of news that appear on the page so let's say only 5 recent news appear and at the bottom it says click to read all news.
HolyCircle
08-06-2005, 02:11 AM
Sooo.... Can anyone help me? Eh?
Marco van Herwaarden
08-06-2005, 06:22 AM
Sooo.... Can anyone help me? Eh?
Please wait 24 hours before bumping your question, thank you.
yoyoyoyo
08-06-2005, 01:01 PM
Does this mod work with 3.0.8?
Also, I've noticed that a lot of sites people posted here have their home pages sort of in html style. How could I also make a page in html, and make a frame for the news using this portal? I'm very new to websign so please excuse my stupidity. Also, if I do make it in a html sort of homepage, how do I limit amount of news that appear on the page so let's say only 5 recent news appear and at the bottom it says click to read all news.Yes it works with 3.0.8, and just read the well-written "Usage Instructions" that came with the zip file since it answers your questions regarding the amount of news articles, etc..
TCattitude
08-06-2005, 05:33 PM
Am I missing something here:
I want to create a function called:
output_Login()
I have created this in the vBExternal.php:
// ---------------------------------------------------
// FUNCTION: output_Login
// DETAIL: Outputs Login Box
// ---------------------------------------------------
function output_Login(){
global $DB, $Data;
$Template = LoadTemplate("login_form.html");
if ($bbuserinfo['userid'] == 0 || $bbuserinfo['userid'] == -1) {
$Data .= ParseTemplate($Template);
} else {
echo "Welcome Back,<br>".$bbuserinfo['username'];
}
doOutput();
}
and created this template: as login_form.html
<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!!!!
A function like that would be interesting.
Show if the user is logged in or not. Diferent templates for guest and registered, and meaby based on usergroupsid.
ZT, where are you?
HolyCircle
08-07-2005, 04:56 AM
I have another question. I read Installation and Usage Instructions, but I'm still unclear on how to code my main page so it shows news in a specific part of the site, for example like this site has http://www.varilla.co.uk/indextest.php that only a certain portion has the news. I'm new at webdesign, so yea... :/ So how can I set it that it shows the news in the middle part of the page, sort of like this site I provided, but in the middle... :(
juanchi
08-12-2005, 01:15 AM
This is just great, Zero Tolarance this hack should be consider a contender for hack of month. The only I will like to see is an option to put polls in other pages, can this be done?
great hack, works flawless...
BUT, is it possible to force CSS style on the output?
If anyone can advise, please do.
Thanks for the hack!
sorted my problem now
edited:
Screenshots wouldn't apply since its adding stuff to your site from your forum, heres the best description i can give which is in the main post:
If you want an example, go to my site: http://gzevolution.net - Look at the left menu bar, you will see a list of all users online, this is done using vBExternal :)
- Zero Tolerance
Hi i notice you made it into a good looking table
everytime i try add a table it messes up
How can i make a good table for the newest members
a table just like top X stats
well not the vb style but the table sizes and stuff
please let me no
Chris_D
08-28-2005, 04:14 PM
Love your work Zero Tolerance, but I have limited space in my menu bar and it looks as though your hack extends my menu bar too big.
Any chance you can maybe release a new version that will limit the output to a certain width, to save it from stretching the page or menu it sits on?
EDIT: Using the online users on my home page now so I've clicked install ;)
Chris_D
08-28-2005, 05:19 PM
Just thought I'd let you know I made a small modification to the vBExternal.php file... I wanted it to display a message if no users were online so I've changed:unset($cache);
doOutput();
}
To: unset($cache);
if( $Data ) {
doOutput();
} else {
echo "No Users Online";
}
}
skogen
09-02-2005, 08:55 AM
If I use the BB-code for images (the img tag) I get the picture with the script.
But on one forum I have I'm allowing html and when I try to post images it dosen't show up with vBexternal.
vBexternal just paste the html... is it a bug?
/Fredrik - that really loves vBexternal
Milez
09-05-2005, 06:51 PM
I think this hack had great potential as many of us wanted to start building external pages. It's really a shame ZT has abandoned the hack as it was really close to being quite usable. Maybe some of us can get the features we want coded in ourselves...
Im trying to display news items as well as many of us and displaying the date is really essential to a news posting. I mean without a date its really pointless displaying news items.
I wasted about 3 hours trying to format the date properly. I managed to pull the data from the 'dateline' field but when trying to format it with vbdate() is just doesn't do anything. The output is whitespace. Here is the change I made to vbExternal.php:
while($News = $DB->fetch_array($NewestNews)){
$Data .= ParseTemplate($Template,
array(
'threadid' => $News['threadid'],
'threadname' => $News['title'],
'postuserid' => $News['postuserid'],
'postusername' => $News['postusername'],
'post' => parse_bbcode2($News['pagetext'], 0, 1, 1, 1),
'comments' => vb_number_format($News['replycount']),
'date' => vbdate($vboptions['dateformat'], $News['dateline']),
)
);
}
I added the line in color above. If you add the variable {date} to your news.html template you should see the properly formatted date...But you don't. I wish I knew what I was missing here.
If you leave the line as just:
'date' => $News['dateline']),
you will see the data is in fact in the array but it looks like a unix timestamp (kinda): 1125843563
Secondly images posted in articles do not work which for my applications really make the hack unusable.
I think if these 2 issues were cleaned up this hack would be the best and only one of its kind...And extremely useful for many of us. Not sure why the author is releasing the same hack for vb3.5 with these rather minor yet glaring issues but I sure hope someone is willing to pick up the reigns.
Milez
09-05-2005, 08:55 PM
Did not really want to have to take this road because using vbdate() will keep in mind the users time location options BUT as a work around you can use this line:
'date' => date("d M Y h:i a" ,$News['dateline']),
Ok now who is going to tackle the rest?
bhxtyrant
09-08-2005, 12:54 AM
Has anyone tested this version of this hack with vB 3.5?Just wondering because this hack will be an essential part of my site and i am thinking on upgrading to 3.5.Thanks to anyone who can answer this question for me :)
psoexplorer
09-09-2005, 09:19 PM
This looks like just what I need (and it took me long enough to find it!!) but will it work for me? I know it has to be a php page, but you say nothing about .cgi pages.... my main page is .cgi - will this work or not?
psoexplorer
09-09-2005, 09:47 PM
Well I just tried it and it doesnt seem to be working.
Let me explain how my site is set up: It's basically all HTML all linked up through a main .cgi page. This main cgi page has different sections all over the same page that are actually seperate html files - so I thought it would be as easy as changing one of the HTML files to PHP, but it doesnt load the PHP! I know the PHP works cause I loaded the page seperately and it works like a dream, but when the cgi page tries to load the php file on in itself, everything BUT the php shows up.
Any ideas? Maybe convert the PHP to PERL so it loads? I dont know how to do that though..
mod2000
09-10-2005, 08:32 AM
Hi,
I need a solution to show all posts auf a thread with the quick replay field at the bottom of the page.
It is possible to ad this to the hack ?
jellybaby
09-11-2005, 07:48 AM
Does anyone have this working with mambo, and if so, where do I place this code:-
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
Thanks :classic:
monstermunch
09-12-2005, 09:36 AM
Is it possible to on the "show latest threads page" to also show the thread description , as well as just the title?
jesus likes pie
09-12-2005, 11:14 AM
Umm...ok, this will sound very stupid but what exactly does this do...
Does anyone that has it, would you mind linking me to it so I can see what it is exactly?
EDIT: crap. This is 3.0.x.....I knw there's one for 3.5 so umm yeah... :ermm:
Umm...ok, this will sound very stupid but what exactly does this do...
Does anyone that has it, would you mind linking me to it so I can see what it is exactly?
EDIT: crap. This is 3.0.x.....I knw there's one for 3.5 so umm yeah... :ermm:
Yes there is a 3.5 version. Check this out:
http://www.freaks-network.com
All the Latest Posts and the News that are powered by the forums are posted on that front page using vBExternal.php.
I made some modifications to the templates to achieve the custom look, but that's basically it... A way to get you content published in a non-vb Page.
jellybaby
09-13-2005, 08:23 PM
Anyone?
troykristoffer
09-13-2005, 10:09 PM
My god! I've been searching for this feature for 20 years! (okay...maybe not) You're a life saver Zt!
I had a quick question about it which isnt very appropriate for this thread, so I PMed it to you. :)
Troy
jellybaby
09-22-2005, 10:20 AM
Does anyone know if this works with mambo and if so where does the code go?
Thanks
brendonm
09-23-2005, 01:07 AM
I have been looking into getting this to work with Mambo. I currently have my vBulletin and Mambo in separate databases though so think I may have to merge them. Mambo has got some php bots and I think this'd be the way to do it.
I am currently using vBExternal to show new members and members online in my bridged Coppermine gallery install at www.skylinesdownunder.com/gallery/
TYorke
09-26-2005, 12:44 AM
Fatal error: Call to a member function on a non-object in /htdocs/www/vBExternal.php on line 235
I have the same error (except on line 433) can any please help?
solokron
09-26-2005, 05:15 AM
I noticed if a thread title is long it really stretches out this fieldset. Is it possible to set a length set to truncate?
Peace_Hope
10-03-2005, 01:47 AM
This is amazing!! Thanks a ton
bhxtyrant
10-04-2005, 01:34 PM
Yes there is a 3.5 version. Check this out:
http://www.freaks-network.com
All the Latest Posts and the News that are powered by the forums are posted on that front page using vBExternal.php.
I made some modifications to the templates to achieve the custom look, but that's basically it... A way to get you content published in a non-vb Page.
Hey man,Just wondering i've been looking for where to download the 3.5.0 version of this mod.Can someone link me as i can't seem to find it?Thanks
solokron
10-06-2005, 08:21 AM
It's been hosed in 3.5 since gold.
https://vborg.vbsupport.ru/showthread.php?t=83005
Hey man,Just wondering i've been looking for where to download the 3.5.0 version of this mod.Can someone link me as i can't seem to find it?Thanks
ReadOrDie
12-27-2005, 12:50 AM
what does it do? i read features, but what does this do?
gamesxposed
01-18-2006, 10:43 PM
Is there any known way of getting it to show images on the external page? I tried enabling HTML posting for admins and putting the images in via HTML, but they still don't show.
If I don't get an answer I will work it out later on and post it.
nhnutrition
01-26-2006, 09:12 PM
can u help, I keep getting this error
Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in /home/nhnutr2/public_html/forums/vBExternal.php on line 67
Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nhnutr2/public_html/forums/vBExternal.php on line 67
Thanks
atosoup
01-28-2006, 07:09 PM
can u help, I keep getting this error
Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in /home/nhnutr2/public_html/forums/vBExternal.php on line 67
Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nhnutr2/public_html/forums/vBExternal.php on line 67
Thanks
I get the same error.. I have tried evry path and absolute possible all give same error.. Please please help Im desprate to use thiis
atosoup
01-29-2006, 10:59 AM
All fixed now.. Just a couple of small probs with edditing the hyperlinks in the online users as I have it in an iframe and how can I add the guests online to the box with the users online?
atosoup
01-30-2006, 02:46 PM
Sorted the hyperlinks but still have no idea how to show number of guests online in this page... Is it possible?
mkoerner
02-20-2006, 01:51 PM
this is what i have been looking for. I do have one problem im using php4. Can you tell me what I need to change in the files to get it to work correctly?
i keep getting page can not be found. I think its just a pathing issue. I just dont know what to change.
Webs007
03-24-2006, 12:40 PM
This works well if the external file - is on the same server as the forum...
What if I wanted to pull the news onto another website - not located on the vb server?
i.e i have www.vbinstallion.org/forum/ and I actually want to pull the headlines so they appear on www.news-site.org ? (these forums are examples not my actual fsites) - how does this work with vBExternal? - is it even possible?
Webs
boduzapho
03-26-2006, 04:44 PM
Sorry i am new to VB, :)
running vb 3.5.4
Installed ok..
following error message:
Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in C:\xxxxxxxxxxx\forum\vBExternal.php on line 67
Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.;c:\php4\pear') in C:\xxxxxxxxxx\forum\vBExternal.php on line 67
--------------------------------------------------------------------
it seems the file '/includes/db_mysql.php' is not even in the install of vb 3.5.4 , any suggestions?
Thanks in advance.
Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in /home/******/public_html/mdbwforums/vBExternal.php on line 67
Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/******/public_html/mdbwforums/vBExternal.php on line 67
I got this error message, but I followed all instructions.
Here is my code for the page:
<?php
chdir('./mdbwforums');
require_once('./vBExternal.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<?php
output_NewestReplies(30);
?>
</body>
</html>
looks like the guy above me had the same error.
troykristoffer
06-16-2006, 07:59 PM
I have a quick question. I've been using this for months without problem and I love it. However I just posted in my forum with an image (linking the full path of the image, as I dont believe vBulletin allows otherwise...for ex: http:www.mywebsite.com/images/filename.jpg...) When the vBExternal script parses my front page of the website (Non VB page...) it does it beatifully, all the text is there, links and formating and colors are correct, except them image doesnt load. It TRIES to load, but after a second or so the image loading indicator (basically a clear box) simply vanishes. The image shows up fine in the actual forum post.
I looked at the SOURCE of the rendered page, and found that the HTML renders incorrectly. The image src tag says this:
<img src="http://www.mywebsite.com/http://www.mywebsite.com/forum/images/correctfilename.jpg...>
Obviously this isnt what I want. But theres two problems that puzzle me.
1. Why, when the image path is directly entered as http://www.mywebsite.com/images/correctfilename.jpg it basically throws that out the window, not only doubling up on the website URL, but adding the forum directory in there, and then
2. deciding... hey, I've screwed it up enough, after the forum directory, I will attempt to use the correct filename now. (images/correcfilename.jpg). What I am puzzled by is that would make sense if I had embedded the image in my post as "/images/filename.jpg" but I didnt. Somehow the script decided to insert "http://www.pinkjams.com/forum" in the middle of the correct url.
I've tried using "../images/filename.jpg" but VB doesnt allow that.
I'm imagining that there is something in the vBExternal script that I can edit to make it stop looking in the forum directory, but I dont know what, since Im simply a novice coder. Anyone got any suggestions?
PS: If you want to see the behavior Im talking about, visit www.pinkjams.com . The front page has the script running, and the second post down has an image imbedded in the middle of it... for the first second or so that the page is loading you will see the loading placeholder and then it will vanish as if theres no image there at all.
Angeleyes
06-18-2006, 10:16 PM
I have a problem. My homepage is article live by interspire and it uses several templates for all of the information. How can I add this into one of the templates to display the requested information. I'm desperate at this point... I've tried everything I could think of... but I am pretty new at this stuff.
Thank you so much for your time!
Tannerman
06-30-2006, 08:05 PM
I've been able to get this to work (example (http://steveandamysly.tannerworld.com)). It took a lot of fiddling.
In any case, I was wondering if anyone has been successful in pulling information from MORE THAN ONE forum when using the News include. The instructions state:############################################ #######
# Displaying News
<?php
output_News(5,4);
?>
# Change '5' to the amount you want to show
# Change '4' to the forum id you want to pull
# news from (must be set - only 1 forum id allowed)
################################################## #Just curious if anyone has been able to modify vBExternal so that more than 1 forum ID can be included here.
lightwave
07-12-2006, 02:39 AM
my forum and site are located in different subdomains.
for example
site.domain.com
forum.domain.com
how do i still make the file work?
Tannerman
07-12-2006, 12:54 PM
my forum and site are located in different subdomains.
for example
site.domain.com
forum.domain.com
how do i still make the file work?I had the same scenario (site (http://steveandamysly.tannerworld.com/) vs. forum (http://forums.tannerworld.com/)). I believe the solution lies in how you setup the call on every page from your non-forum subdomain. For example, to include the content on the non-forum site pages, I put something like this at the top:<?php
chdir('/home/domainname/public_html/forums');
require_once('/home/domainname/public_html/forums/vBExternal.php');
?>I think if you can figure out the proper reference here for your case, that should solve your issue.
I don't think the new version of VBulletin has the file /includes/db_mysql.php and that's why I'm getting the error message:
Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in /home/*****/public_html/mdbwforums/vBExternal.php on line 67
Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*****/public_html/mdbwforums/vBExternal.php on line 67
I checked and that file is not in my includes folder. So, what do I do? Thanks in advance to anyone who can help me. I need to get the latest replies on my index page!
mardavikia
07-31-2006, 04:24 PM
Same problem :/
Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in c:\programmi\easyphp1-8\www\forum\vBExternal.php on line 67
Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.;C:\PROGRA~1\EASYPH~1\\php\pear\') in c:\programmi\easyphp1-8\www\forum\vBExternal.php on line 67
Porky
08-06-2006, 01:52 AM
anyone know how to make it work for 3.6 or know a similar script?
Eagle Creek
08-08-2006, 03:14 PM
Is there a 3.6 version of this hack?
Fuzzy Logic
08-20-2006, 11:45 AM
Hi guys
I've just installed this and it's fantastic!
Did anybody figure out how to overcome the issue of invisible users showing up on the user list?
Thanks. :)
keefe
09-03-2006, 01:13 PM
Anyone know where I can turn for help with this?
http://www.campusblues.com/test-last-5.php
pumpiniron
09-29-2006, 11:07 PM
Does this hack allow you to have a user login panel if they are logged out and a User CP that displays their name and stuff if they are logged in?
pumpiniron
10-01-2006, 07:19 PM
I really wish this hack would work for 3.6.1
Tannerman
10-03-2006, 04:40 PM
Are we saying that it does not work for 3.6 or 3.6.1?
For those of you who have had this hack working on 3.5 and then upgraded to 3.6, how did the transition go?
aisais
10-11-2006, 04:30 PM
I really wish this hack would work for 3.6.2.
mhamdi
11-22-2006, 10:41 PM
I really wish this hack would work for 3.6.3.
TYorke
11-23-2006, 07:25 PM
To those saying that this doesn't work in version 3.6 then read and re-read all the posts in this thread. I am running version 3.6.3 and it works perfectly fine.
Milez
11-23-2006, 08:42 PM
To those saying that this doesn't work in version 3.6 then read and re-read all the posts in this thread. I am running version 3.6.3 and it works perfectly fine.
..>Except it does not parse quote, img or pull posts from more than 1 forum. Would one of the above possters please show us their modified version that handles this? I have been checking every day for an update to this issue.
Thanks!
TYorke
11-23-2006, 10:47 PM
..>Except it does not parse quote, img or pull posts from more than 1 forum. Would one of the above possters please show us their modified version that handles this? I have been checking every day for an update to this issue.
Thanks!
Pulling posts from more than one forum (I'm assuming you are talking about the news part) is fairly easy. It requires one simple modification to the SQL statement and what do you know, the code is found within this thread.
Now I'll give you the part about QUOTE IMG tags and the like but to say that it flat out does not work with version 3.6 it's an outright misconception.
Consequently, if someone figures out the way to parse BBCODE then post it here :D
Milez
11-24-2006, 06:46 AM
It does work in 3.6.x as I am using that now HOWEVER I just went through every post in this thread again and NO there is no mention of the SQL to get this to pull from more than 1 forum. A few requests for it however. Can you help with that?
Also if you give us the code to allow parsing of IMG and QUOTE I am sure many here will be thankful.
TYorke
11-24-2006, 03:26 PM
Hey worMatty,
I actually spoke to ZT a while ago,He said this feature may be avalible in a future release of his hack so there are hopes.Unfortunatly he isn't exactly sure when this new version will be released so if you do happen to find out how to include the time/date using vBexternal please let me know :D
This is an easy thing to add:
global $db, $Data, $vbulletin;
That's the variable missing for the time/date to work.
Then in the array just add the customary lines:
'date' => vbdate($vbulletin->options['dateformat'], $News['dateline']),
'time' => vbdate($vbulletin->options['timeformat'], $News['dateline']),
Also the fact that this hack is in two forums makes it complicated to keep all fixes together. I knew I had seen the 'fix' for multiple news forums. Jugo came up with it in the v3.5 thread (https://vborg.vbsupport.ru/showthread.php?t=83005)
Unfortunately, I can't get the images to work. I am not too versed in vB programming to crack that one.
Milez
11-25-2006, 10:33 AM
I knew I had seen the 'fix' for multiple news forums. Jugo came up with it in the v3.5 thread (https://vborg.vbsupport.ru/showthread.php?t=83005)
Actually jugo goes ever pulling data into the array for multiple forums but only with the output_NewestThreads function. What many of us are requesting is that the function output_News be modified to pull from more than 1 forum ID. I have tried and failed to get this to work.
Processing QUOTE tags would be nice too.
Unfortunately, I can't get the images to work. I am not too versed in vB programming to crack that one.
For this I commented out this line but as I'm sure you know this disables smilies from working and will only process [img] tags not attachements, which was an okay trade off for me:
// $Data = str_replace('images/',"{$vbulletin->options[bburl]}/images/",$Data);
Jugo: Are you out there ;) ?
Tannerman
11-27-2006, 08:54 PM
Actually jugo goes ever pulling data into the array for multiple forums but only with the output_NewestThreads function. What many of us are requesting is that the function output_News be modified to pull from more than 1 forum ID. I have tried and failed to get this to work.
Agreed. Still looking for a multiforum solution for the news stories themselves, not just the thread titles.
TYorke
12-04-2006, 01:53 PM
Check the other thread. Neil came up with a workaround for the QUOTE issue. As for the 'other forums' from Output_news, it definitely works. Post your copy of the PHP code for the block, see if I spot something out of place there.
jags2ooo
03-18-2007, 02:25 PM
How would i make it so the users avatar shows up also
skepticality
04-05-2007, 02:24 PM
My issue seems that when I try this my pages go all blank where I try it. I don't even get an error... :|
Is there something I am missing?
captainron19
04-19-2007, 02:44 PM
OK I am using VB 3.6.5 and never been really any good with PHP I created a PHP file called test2.php and uploaded it to www.disneytrivia.net (Where I want the external data to appear)
My forums are located at www.disney-forums.com/forums
I uploaded the folder and VB External file to www.disney-forums.com/forums
I changed the top portion of the new php file (maybe where I went wrong) to
<?php
chdir('http://www.disney-forums.com/forums');
require_once('http://www.disney-forums.com/forums/vBExternal.php');
?>
when I go to the php file I reeive the following error..
Warning: chdir(): No such file or directory (errno 2) in /home/disneytr/public_html/test2.php on line 2
Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in /home/disney-f/public_html/forums/vBExternal.php on line 67
Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.:/usr/local/lib/php') in /home/disney-f/public_html/forums/vBExternal.php on line 67
################################################## # # Displaying Newest Members
Fatal error: Call to undefined function: output_newestmembers() in /home/disneytr/public_html/test2.php on line 10
snaku
05-19-2007, 11:50 AM
This is awsome, I've been looking for something like this for a long time, then a friend of mine found this link :)
Is there any way to make pictures in the post appear on the website when you use the "Displaying News"? Somehow they don't seem to show, Youtube videos and smilies turn out just fine.
snaku
05-23-2007, 03:08 PM
Okay forget my last post, that was a spupid setting.
But I have a question, vBExternal doesn't seem to work if it's not in the root directorie.
Is is possible to change this so that it's easy to organize it all?
snaku
05-23-2007, 03:11 PM
My issue seems that when I try this my pages go all blank where I try it. I don't even get an error... :|
Is there something I am missing?
This is what happens to me when I don't put the file in the root directory. There should really be a way to fix this.
Is there a way to display online users like this:
Active Users: 226
33 members and 193 guests
Most users ever online was 1393, 11-30-2006 at 06:50 PM.
Any help would be greatly appreciated!:)
Thanks!
Is there a way to display online users like this:
Active Users: 226
33 members and 193 guests
Most users ever online was 1393, 11-30-2006 at 06:50 PM.
Any help would be greatly appreciated!:)
Thanks!
yes i would like to know this also... posted on the other similar hack thread for 3.6.x here: https://vborg.vbsupport.ru/showthread.php?t=147344&page=4
Arrangements
07-23-2007, 11:32 PM
How can I get this to work on v 3.6.7 i read this whole thread and still no answer! I get this problem:
Fatal error: main() [function.require]: Failed opening required './includes/db_mysql.php'
Obviously there is no file named db_mysql.php so it must be from an old version.
TYorke said that it works, well his post from a year ago so I doubt it still works.
Pm me if you find a solution or a another mod that can do the same thing but works with v3.6.7
Found solution: https://vborg.vbsupport.ru/showthread.php?t=147344
kevinpowertv
01-24-2008, 03:04 PM
Is there a way to add attachments to this? I want to attach an image to a post and have it show up externally on my PHP website. Thanks!
Tannerman
01-24-2008, 04:28 PM
Is there a way to add attachments to this? I want to attach an image to a post and have it show up externally on my PHP website. Thanks!
What I do is just park the image elsewhere and use IMG tags to include it in a post.
kevinpowertv
01-24-2008, 04:40 PM
The problem with that is, I use the Front Page Slideshow plugin which utilizes the attachment. It's to redundant to use both ways of including an image. I really want vbexternal to show a post with a related image next to it. It's more of an issue of formating as well. The post in vbulletin will look different from the post as an "article" on my home page.
nima6
06-12-2008, 02:24 AM
im getting the following error. Can someone help me out?
Warning: main(./includes/db_mysql.php) [function.main]: failed to open stream: No such file or directory in /home/nima/public_html/hookahlounge/shisha-forum/vBExternal.php on line 67
Fatal error: main() [function.require]: Failed opening required './includes/db_mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nima/public_html/hookahlounge/shisha-forum/vBExternal.php on line 67
FatalCure
06-14-2008, 01:04 PM
How do I add post date to the news template? Please be specific, I don't know how to fetch that data from the database, I've tried adding another line in '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'],
)
with postdate, that didn't do anything though I could have just done it wrong. Cheers.
nima6
06-15-2008, 09:46 PM
im willing to pay someone if they can fix my problem.
Please get back with me if you can. Thanks (the problem is posted in two posts above)
Manji
08-04-2008, 10:56 AM
Is there a option to show the last 5 replies to a specific thread on the hompage.
For example: http://www.4players.de/4players.php/spielinfonews/PC-CDROM/3926/1817048/4Players.html
Scroll down to "Kommentare zum Thema"
clr_75
10-02-2008, 05:21 AM
How would I go about hiding banned members for the TopPosters query?
Thanks!
msnhockey
01-02-2009, 10:11 PM
has anyone got this to work with 3.7.2
I can't get this script to do anything at all
DPtheGod
01-21-2009, 02:46 AM
I am in the same boat. I really want something like this to work. Anyone still using this mod?
DPtheGod
01-21-2009, 03:44 AM
Hey, I have found a way to get this to work with vb3.7. Now, I am only interested in using this to pull a specific thread, showing the entire first post, with this script.
Anyone know if this can be done?
Kezei
01-26-2009, 10:05 PM
How'd you get it to work?
Davey-UK
02-04-2009, 05:50 PM
Hey, I have found a way to get this to work with vb3.7. Now, I am only interested in using this to pull a specific thread, showing the entire first post, with this script.
Anyone know if this can be done?
How did you get past the
db_mysql.php part in vBExternal.php, as the file doesnt exist anymore?
Please post your findings.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.