View Full Version : vBExternal v1.6
EDFMedia
03-14-2006, 04:58 AM
Is there a way to display one of the user profile fields with the newest_members.html? I have an extra field I added (field 5) that is required and I would like to show it on my non vb page using vbexternal in the newest_members
Thanks in advance
hellekim
03-14-2006, 06:44 PM
I must be doing something wrong, but I don't know what so I hope you can help me out. I'm trying to get great a file called newest.php which is located in the root of my forum folder. The newest.php looks like this:
<?php
chdir('/home/paitsio/public_html/Foorumi');
require_once('/home/paitsio/public_html/Foorumi/vBExternal.php');
?>
<?php
output_NewestReplies(5,"1,2,3");
?>
I also tried it And when I try to call it, it gives me this:
There seems to have been a problem with the database.
Please try again by clicking the Refresh button in your web browser.
An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.
We apologise for any inconvenience.
The idea is that I can call newest.php from a page which is located in external page.
beddoe
03-16-2006, 12:11 AM
Is there a way to display one of the user profile fields with the newest_members.html? I have an extra field I added (field 5) that is required and I would like to show it on my non vb page using vbexternal in the newest_members
Thanks in advance
Exactly what I'm trying to do... Thanks in advance...
hitmanuk2k
03-17-2006, 09:09 AM
Anyone else not able to get BB code working on News?
blacklancer
03-17-2006, 05:32 PM
I am gettin the following error:
Fatal error: Call to undefined function output_NewestMembers
what am i doing wrong??? :confused:
BaBa2002
03-18-2006, 02:09 PM
hi can i get it work for the calendar events
djjeffa
03-18-2006, 06:43 PM
is there anyway for me to add this to a difrent website i run?
i have 2 domain names and i want to ad stuff to the other domain.
Webs007
03-22-2006, 02:19 PM
Is this compatible with 3.5.4 ?:banana:
johnn
03-23-2006, 08:04 AM
I commented out
$vbulletin =& new vB_Registry(); // Fake an OOP Object
and
class vBulletinHook { function fetch_hook() { return false; } }
Like I was instructed, and added the Master and Slave port calls, but I got a NEW error
Fatal error: Call to undefined function: dooutput() in /home/animefan/public_html/community/vBExternal.php on line 257
Any ideas on how I might resolve this ( hopfuly my last ) error with this script. I moved from 3.0.7 to 3.5.4 and this scripts been a huge pain lol, but its the perfect one!
Wow..somehow, while I was working on the script half of it was eaten...possibly an error caused by my laptops faulting onboard mouse...anyhow..redownloaded the FULL script, modded it, and now it works perfectly!
Is this compatible with 3.5.4 ?:banana:
Yes it is, i'm running 3.5.4 and it works fine.
Webs007
03-23-2006, 08:34 AM
Can you tell me the mods to get it to work please? I followed the instructions and I get this error.
There seems to have been a problem with the database.
Please try again by clicking the Refresh button in your web browser.
An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.
We apologise for any inconvenience.
The database is fine, so i'm unsure....
I undertsnad this is a modified version of VbExternal for 3.0.7 - but on both mod pages - the zip file is called 1.6.zip ?? I'm certain i'm downloading the wrong version, but i'm getting it from this thread..? Who knows.... how do I get the version that works with 3.5.4 ?
Any assistance - as little as it may be may be a big help to me.
cheers
Webs:banana:
Webs007
03-23-2006, 09:13 AM
Ok.....
I'v got it now to work! WAhoooooo !!:banana: "Banana Dance"
This may not be a bit complicated - but someone super smart may know this...
How would i make it show the thread itself i.e the text (news story) - and have it truncated (cut off) after 200 words?
So we would have:
Title
Story (only show 200 words)
Posted by
Can anyone help me out here?
Webs
webgeek247
03-24-2006, 07:09 AM
I tried using it on my homepage but got the error
Warning: chdir(): No such file or directory (errno 2) in /home/fhlinux190/c/christopher-powell.co.uk/user/htdocs/index.php on line 2
Warning: main(./home/fhlinux190/c/christopher-powell.co.uk/user/htdocs/forum/vBExternal.php): failed to open stream: No such file or directory in /home/fhlinux190/c/christopher-powell.co.uk/user/htdocs/index.php on line 3
Fatal error: main(): Failed opening required './home/fhlinux190/c/christopher-powell.co.uk/user/htdocs/forum/vBExternal.php' (include_path='.:/usr/share/pear') in /home/fhlinux190/c/christopher-powell.co.uk/user/htdocs/index.php on line 3
Ive gone through this whole thread, is there something i missed? their uploaded?? im using 3.5.4 :confused:
Webs007
03-24-2006, 01:44 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
I've got this to work via many mods and changes posted throughout the 18pages. So good work team! keep it up!
I've got a new sugesstion though. Is is posible to have forum stats? Such as 'total posts, total members, total threads' Maybe in the following format?
Total Threads :: 1638
Total Posts :: 35643
Total Members :: 647
Newest Member :: Ashbeard
Any luck?
boduzapho
03-26-2006, 04:15 PM
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?
**** Note was informed by Jel this hack needs to be upgraded for use with 3.5.4
DrewM
03-26-2006, 06:27 PM
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?
**** Note was informed by Jel this hack needs to be upgraded for use with 3.5.4
I'm running 3.5.4 and it's fine! Also it vbexternal doesn't even requrie this! Either you've modded it or I would try re-downoading.
boduzapho
03-26-2006, 08:26 PM
I'm running 3.5.4 and it's fine! Also it vbexternal doesn't even requrie this! Either you've modded it or I would try re-downoading.
really? Ok can you point me to the appropiate Download link?
In the download in this thread the vbexternal.php file containes this:
----------------------------------------------------------------------------------------
<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBExternal v1.6 By Zero Tolerance [http://gzevolution.net] ||
|| # This file may not be redistributed, copied in whole or part ||
|| # without written permission. ||
|| # Copyright (C) 2005 Inferno Technologies. ||
|| ################################################## ################## ||
\*================================================ ======================*/
// ---------------------------------------------------
// Start Set PHP Environment
// ---------------------------------------------------
error_reporting(E_ALL & ~E_NOTICE);
// ---------------------------------------------------
// End Set PHP Environment
// ---------------------------------------------------
// ---------------------------------------------------
// Start Define Important Constants
// ---------------------------------------------------
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'vBExternal');
// ---------------------------------------------------
// End Define Important Constants
// ---------------------------------------------------
// ---------------------------------------------------
// Start Cache Of Any Needed Templates/Phrase's
// ---------------------------------------------------
$phrasegroups = array();
$specialtemplates = array(
'options',
);
$actiontemplates = array();
$globaltemplates = array();
// ---------------------------------------------------
// End Cache Of Any Needed Templates/Phrase's
// ---------------------------------------------------
// ---------------------------------------------------
// Start Call DB & Establish Connection
// ---------------------------------------------------
if(!file_exists('./includes/config.php')){
echo "includes/config.php does not exist. Cannot continue.";
exit;
}
require('./includes/config.php');
define('TABLE_PREFIX', $tableprefix);
define('COOKIE_PREFIX', (empty($cookieprefix)) ? 'bb' : $cookieprefix);
define('DEBUG', 0);
define('DB_EXPLAIN', false);
define('DB_QUERIES', false);
require_once('./includes/db_mysql.php'); <----------- there it is...
----------------------------------------------------------------------------------------
So maybe i need another download link?
DrewM
03-26-2006, 09:02 PM
Re-download that I think was 3.0 I just downloaded from this thread and it does not contain that I would try CTRL-F5
boduzapho
03-26-2006, 09:03 PM
Re-download that I think was 3.0
I did, that was from the link on this page...
do you know another link?
DrewM
03-26-2006, 09:04 PM
I just updated my post try it if it doesn't work I'll PM you the code I have.
boduzapho
03-26-2006, 09:39 PM
I just updated my post try it if it doesn't work I'll PM you the code I have.
Ok i got it to work sort of, found the new code, installed on a FRESH copy of VB 3.5.4, now seeing this:
------------------------------------------------------------------------
There seems to have been a problem with the database.
Please try again by clicking the Refresh button in your web browser.
An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.
We apologise for any inconvenience.
------------------------------------------------------------------------
weird... it is a fresh clean install, weird..
boduzapho
03-27-2006, 08:49 PM
Ok i got it to work sort of, found the new code, installed on a FRESH copy of VB 3.5.4, now seeing this:
------------------------------------------------------------------------
There seems to have been a problem with the database.
Please try again by clicking the Refresh button in your web browser.
An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.
We apologise for any inconvenience.
------------------------------------------------------------------------
weird... it is a fresh clean install, weird..
Ok its working, sort of...
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
<fieldset>
<legend>News Article: <a href='{url}/showthread.php?t={threadid}'>{threadname}</a></legend>
<table cellpadding='0' cellspacing='0' border='0' width='100%'>
<tr>
<td width='100%'>{post}</td>
</tr>
<tr>
<td width='100%' style='white-space:nowrap'><span style='float:right'>[Comments: {comments}]</span>
<b>Posted By:</b> <a href='{url}/member.php?u={postuserid}'>{postusername}</a></td>
</tr>
</table>
</fieldset>
this is the page I am using, but it is not producing any data....
The site is running off of an active forum, there are users, new posts ect...
any suggestions?
boduzapho
03-27-2006, 09:55 PM
Never mind, re did the hack in ASP, works good for me
webgeek247
03-27-2006, 10:05 PM
Ok its working, sort of...
this is the page I am using, but it is not producing any data....
all I get is this
http://63.209.191.131/info.php
The site is running off of an active forum, there are users, new posts ect...
any suggestions?
Firstly create a blank php file and copy this into it
<?php
echo getcwd();
?>
name this path.php, upload it to your webservers root and point your browser at it and this will tell you your servers path.
Now enter that path into chdir and require once also naming the location of your servers root and forum folder
<?php
chdir('/xxx/xxx/x/xxxx/xxxx/forum_root_folder/your_forum_folder');
require_once('/xxx/xxx/x/xxxx/xxxx/forum_root_folder/your_forum_folder/vbexternal.php');
?>
this needs the full path
enter this inbetween
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
chdir('/xxx/xxx/x/xxxx/xxxx/forum_root_folder/your_forum_folder');
require_once('/xxx/xxx/x/xxxx/xxxx/forum_root_folder/your_forum_folder/vbexternal.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<!-- Where output code goes -->
<?php
output_TopPosters(5);
?>
<?php
output_NewestMembers(5);
?>
<!-- etc etc -->
</body>
</html>
the other code you have there has to be in a external .html file within your vbexternal folder
also make sure your vbexternal folder is the same lettercase as your path eg. if its vbexternal name your path that otherwise if its vBexternal (note the capital B, name it like that)
hope that helps :)
blacklancer
03-31-2006, 10:32 PM
ok...i finally got rid of errors, but now, nothing is showing up. my normal html is showing up fine, but none of the php info. i'm completly lost right now.........
i attached my index.php, and my website is www.sclc.net.
someone please help!! https://vborg.vbsupport.ru/external/2006/12/8.gif https://vborg.vbsupport.ru/external/2006/12/8.gif
Paul_Hollibone
04-02-2006, 06:38 AM
Question.
I am running a site which uses vb 3.5.4, and it is also using this script as a login script. <?
if ($vbulletin->userinfo['userid']!=0) {
$username=$vbulletin->userinfo['username'];
print("<align='center'><span class='sectionheader'>Welcome back, $username!<br>"); ?>
<?
} else {
?>
</p>
<form action='/forums/login.php' method='post' class="style46" onsubmit='md5hash(vb_login_password,vb_login_md5pa ssword)'>
<p align="center" class="inbottom">
<script type='text/javascript' src='/forums/clientscript/vbulletin_md5.js'></script>
<span class="style57">Username:</span><span class="style57">
<input type='text' class='button' name='vb_login_username' id='navbar_username' size='15' accesskey='u' tabindex='1' value='' onfocus='if (this.value == 'username="username"') this.value = '';>
<br />
Password:
<input type='password' class='button' name='vb_login_password' size='15' accesskey='p' tabindex='2' />
<br />
<input type='checkbox' name='cookieuser' value='1' tabindex='3' id='cb_cookieuser_navbar' accesskey='c' />
Remember Me</span><br />
<input name="submit" type='submit' class='button' accesskey='s' tabindex='4' title='Log In' value='Log In' />
<input type='hidden' name='do' value='login' />
<input type='hidden' name='forceredirect' value='1' />
<input type='hidden' name='vb_login_md5password' />
</p>
</form>
<div align="left" class="style46">
<div align="center">
<p><a href="/forums/register.php?"><span class="inbottom">Support ThrillHistory.com & Register Today. It only takes two Minutes! </span></a>
<?
}
?>
Which also uses this.
<?php
chdir("forums/");
require('global.php');
chdir("../");
?>
Now I have tried many times to implement a few of these enhancments onto my website, however I am greeted with the Vbulletin DB error page. Any help?
Sean James
04-07-2006, 11:55 AM
i have tried almost everything and for some reason i cant get a stylesheet to work with this, internal or external.
Charmedfan
04-08-2006, 03:33 PM
Is there any solution to show HTML on the external page?
djjeffa
04-08-2006, 05:26 PM
still wonderin if anyone got this to work on a diffrent domain?
is there anyway to make the news output keep stickied threads at the top of the output?
C.Birch
04-17-2006, 08:20 PM
this no longer works with 3.5.4:
just get a page that says:
There seems to have been a problem with the database.
Please try again by clicking the Refresh button in your web browser.
An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.
We apologise for any inconvenience.
and when you view its code it as:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> Database Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
<!--
blockquote { margin-top: 75px; }
p { font: 11px tahoma, verdana, arial, sans-serif; }
-->
</style>
</head>
<body>
<blockquote>
<blockquote>
<p><strong>There seems to have been a problem with the database.</strong><br />
Please try again by clicking the <a href="#" onclick="window.location = window.location;">Refresh</a> button in your web browser.</p>
<p>An E-Mail has been dispatched to our <a href="mailto:">Technical Staff</a>, whom you can also contact if the problem persists.</p>
<p>We apologise for any inconvenience.</p>
<!--
Database error in vBulletin :
mysql_connect(): Access denied for user: '***********@localhost' (Using password: YES)
/home/*******/public_html/includes/class_core.php on line 279
MySQL Error :
Error Number :
Date : Monday, April 17th 2006 @ 09:14:54 PM
Script : http://forums.evo-network.com/topics.php
Referrer :
IP Address : ************
Username :
Classname : vb_database
-->
</blockquote>
</blockquote>
</body>
</html>
C.Birch
04-17-2006, 08:33 PM
ok i fixed it, needed to add:
$config['MasterServer']['port'],
under
$config['MasterServer']['servername'],
in the vBExternal.php file
furst
04-18-2006, 03:06 AM
Can anyone explain to me how I can get this to work with 3.5.4? I want to display newest replies underneath my navbar.
I put this underneath my $navbar in forumhome after uploading all the files but it didn't do anything at all. What am I doing wrong?
<?php
chdir('./');
require_once('./vBExternal.php');
?>
<?php
output_NewestReplies(5,"72,66");
?>
Jay...
04-23-2006, 07:08 PM
Can someone explain how i can get this to work with the external login deluxe system?
<?php
chdir("./forums");
require_once('./vBExternal.php');
require('./global.php');
chdir("../");
there seems to be problems when index.php requires both files. im sure someone must know
?>
Dave-ahfb
04-24-2006, 02:00 AM
Can someone explain how i can get this to work with the external login deluxe system?
<?php
chdir("./forums");
require_once('./vBExternal.php');
require('./global.php');
chdir("../");
there seems to be problems when index.php requires both files. im sure someone must know
?>
I cannot for the life of me figure this out.
Jay...
04-24-2006, 05:37 AM
its got my head done right in!
Zachery
04-24-2006, 04:57 PM
Can someone explain how i can get this to work with the external login deluxe system?
<?php
chdir("./forums");
require_once('./vBExternal.php');
require('./global.php');
chdir("../");
there seems to be problems when index.php requires both files. im sure someone must know
?>
What happens when you require both? I mean errors, nothing? what?
Jay...
04-24-2006, 05:02 PM
What happens when you require both? I mean errors, nothing? what?
Fatal error: Cannot redeclare runerror() in /home/donkedne/public_html/forums/vBExternal.php on line 169
thats the error i have, i have also attached my index page
Zachery
04-24-2006, 05:22 PM
Look and see if and where runerror is declared.
Jay...
04-24-2006, 05:37 PM
heres the vBExternal.php file, i dont know what to look for, im not good with pohp you see
Zachery
04-24-2006, 05:39 PM
Try reversing the include, not sure if that will help.
Jay...
04-24-2006, 05:45 PM
tried that and get a totally different error
Fatal error: Cannot instantiate non-existent class: vb_registry in /home/donkedne/public_html/forums/vBExternal.php on line 66
chrisjp88
04-24-2006, 06:29 PM
Useful hack, but I've got a big problem. It isn't showing stuff with QUOTE tags. I would like to know how to fix this please :)
Thanks
Spinball
04-27-2006, 06:58 PM
Couple of pre-install questions to those guys on this thread (since Zero Tolerance hasn't been around for 3 months). First, I need to display the contents of one specific thread (via the thread id) as an 'include' type function on a different website on the same server. And possibly on a different website on a different server.
Will vBexternal do this? If not is there a hack which can?
The reason I ask is because I want to integrate my forum into a new website (or two) and use it for discussing specific reviews. So those specific threads are displayed on a page below the review.
And secondly since Zero Tolerance isn't around any more, is it 'safe' to install this hack if it, indeed is appropriate for my needs?
Thanks
SupremeWeapon
04-30-2006, 03:51 AM
There seems to have been a problem with the database.
Please try again by clicking the Refresh button in your web browser.
An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.
We apologise for any inconvenience.
I get that anytime i add the includes and chdir to the php pages.
Phlex
05-02-2006, 04:11 PM
I get that anytime i add the includes and chdir to the php pages.
same problem :(
Dave-ahfb
05-02-2006, 08:26 PM
I am going to take another look at the include issue tonight, I will let you all know if I come up with anything. I did manage to solve the issue of date and time on threads and replies incase there is any interest.
Dave
Phlex
05-04-2006, 12:21 PM
would be nice thx
Dave-ahfb
05-04-2006, 04:48 PM
I had a couple of things I wanted to try so that global.php would include properly, none of my ideas worked.
In regards to date and time
find
function output_NewestThreads($a = 5,$f = ""){
global $db, $Data;
replace with
function output_NewestThreads($a = 5,$f = ""){
global $db, $Data, $vbulletin;
find
$NewestThreads = $db->query("select * from ".TABLE_PREFIX."thread{$SQL} order by dateline desc limit 0,$Amount");
while($Thread = $db->fetch_array($NewestThreads)){
$Data .= ParseTemplate($Template,
array(
'threadid' => $Thread['threadid'],
'threadname' => $Thread['title'],
'postuserid' => $Thread['postuserid'],
'postusername' => $Thread['postusername'],
'replies' => vb_number_format($Thread['replycount']),
'views' => vb_number_format($Thread['views']),
'lastposter' => $Thread['lastposter'],
replace with
$NewestThreads = $db->query("select * from ".TABLE_PREFIX."thread{$SQL} order by dateline desc limit 0,$Amount");
while($Thread = $db->fetch_array($NewestThreads)){
$Data .= ParseTemplate($Template,
array(
'threadid' => $Thread['threadid'],
'threadname' => substr($Thread['title'],0,100),
'postuserid' => $Thread['postuserid'],
'postusername' => $Thread['postusername'],
'replies' => vb_number_format($Thread['replycount']),
'views' => vb_number_format($Thread['views']),
'lastposter' => $Thread['lastposter'],
'date' => vbdate($vbulletin->options['dateformat'], $Thread['dateline']),
'time' => vbdate($vbulletin->options['timeformat'], $Thread['dateline']),
This obviously is for the new thread section. For newest replies it looks (but untested) like the first edit is the same and the second just add the date and time lines to the correct section.
Dave
Dave-ahfb
05-04-2006, 05:08 PM
I forgot to add that you must open the template and include
{date}
{time}
GamerJunk.net
05-06-2006, 07:42 PM
Is there any way to have this pull code that displays random profiles or possibly random profile fields?
What I want to do is have it pull one profile field, and it be random for whatever user has it filled out.
skip870
05-14-2006, 08:01 AM
vbexternal problems:
hi! i've installed this mod but it don't work well.. this is my problem:
after i've followed the instrution file (the install.txt and usage.txt) appear:
Warning: chdir(): No such file or directory (errno 2) in /home/mhd-01/www.nomesito.com/htdocs/sito/test.php on line 2
Warning: main(./vBExternal.php): failed to open stream: No such file or directory in /home/mhd-01/www.nomesito.com/htdocs/sito/test.php on line 3
Fatal error: main(): Failed opening required './vBExternal.php' (include_path='./:/usr/local/web/php/lib/pear') in /home/mhd-01/www.nomesito.com/htdocs/sito/test.php on line 3
i've upped in my space all files, changed the php code ./formus with ./vb and after i put this code in the really top of my indexpage.
after that i've used once of the code present in the file usage.txt:
(# Displaying Top Posters )
Codice PHP:
<?php
output_TopPosters(5);
?>
but it dont work....
after i try to connect to the page vBExternal.php: http://www.nomesito.com/vb/vBExternal.php
and appear this:
Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in /home/mhd-01/www.nomesito.com/htdocs/vb/vBExternal.php on line 67
Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='./:/usr/local/web/php/lib/pear') in /home/mhd-01/www.nomesito.com/htdocs/vb/vBExternal.php on line 67
and this is the screen of the files structure on my space:
root:
https://vborg.vbsupport.ru/ (http://img160.imageshack.us/my.php?image=screen18ti.jpg)
./vb:
https://vborg.vbsupport.ru/ (http://img80.imageshack.us/my.php?image=screen4jn.jpg)
the file VBexternal.php is on the bottom of the page.
.vb/VBexternal:
https://vborg.vbsupport.ru/ (http://img160.imageshack.us/my.php?image=screen38du.jpg)
someone can help me?
hidjra
05-15-2006, 02:34 PM
Is there a way to display the logged-in user, os show a login form when there's no one logged in?
Grtz,
Hidjra
randy.
05-17-2006, 04:36 PM
Whats the actual source code needed to put the info on your hompeage
randy.
05-19-2006, 03:11 PM
cant get it to work what do i need to do?
heres my code and it just doesnt work what am i doing wrong
<?php
chdir('./forum');
require_once('./vBExternal.php');
?>
<?php
output_UsersOnline();
?>
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
<a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
</if>
on this all iget is
http://www.globalvibez.com/test.html
code is
<?php
chdir('./forum');
require_once('./vBExternal.php');
?>
<?php
output_NewestMembers(5);
?>
<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td width='1%' style='white-space:nowrap'><b>Username:</b> <a href='/forum/member.php?u={userid}'>{username}</a></td>
<td width='1%' style='white-space:nowrap'><b>Posts:</b> {posts}</td>
</tr>
</table>
<?php
output_NewestMembers(5);
?>
upnorth
05-23-2006, 04:54 PM
For Newest Threads the default pulls from all forums if left blank. Is there a easy way to pull from all forums accept for select ones.
i.e. I want all Newest Threads from all forums accept for number 1 and 5
Any ideas on how to make this happen?
webgeek247
05-23-2006, 11:22 PM
on this all iget is
http://www.globalvibez.com/test.html
code is
<?php
chdir('./forum');
require_once('./vBExternal.php');
?>
<?php
output_NewestMembers(5);
?>
<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td width='1%' style='white-space:nowrap'><b>Username:</b> <a href='/forum/member.php?u={userid}'>{username}</a></td>
<td width='1%' style='white-space:nowrap'><b>Posts:</b> {posts}</td>
</tr>
</table>
<?php
output_NewestMembers(5);
?>
You need to put in your forums path in the
<?php
chdir('./forum');
require_once('./vBExternal.php');
?>
section
create a blank php file and enter this into it
<? print $PATH_TRANSLATED; ?>
name it path.php and upload it to the root of your server
now browse to your path.php file in your web broswer and you will see your servers path, this is what needs to be entered into that section eg:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
chdir('/<server path from path.php file goes here>/forum');
require_once('/<server path from path.php file goes here>/forum/vBExternal.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
Some servers can be case sentive so make sure the file name on the server is in exactly the same lettercase as the code above. also your page needs to have the .php extension, not .html :)
another way is to create a blank php for it - save the file with any name eg: vbexternal_script.php
<?php
chdir('/<server path from path.php file goes here>/forum');
require_once('/<server path from path.php file goes here>/forum/vBExternal.php');
?>
and then insert this into your webpage
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<? include 'vbexternal_script.php'; ?>
<html xmlns="http://www.w3.org/1999/xhtml">
:)
webgeek247
05-23-2006, 11:27 PM
vbexternal problems:
hi! i've installed this mod but it don't work well.. this is my problem:
after i've followed the instrution file (the install.txt and usage.txt) appear:
i've upped in my space all files, changed the php code ./formus with ./vb and after i put this code in the really top of my indexpage.
after that i've used once of the code present in the file usage.txt:
(# Displaying Top Posters )
Codice PHP:
<?php
output_TopPosters(5);
?>
but it dont work....
after i try to connect to the page vBExternal.php: http://www.nomesito.com/vb/vBExternal.php
and appear this:
and this is the screen of the files structure on my space:
root:
http://img160.imageshack.us/img160/1462/screen18ti.th.jpg (http://img160.imageshack.us/my.php?image=screen18ti.jpg)
./vb:
http://img80.imageshack.us/img80/6339/screen4jn.th.jpg (http://img80.imageshack.us/my.php?image=screen4jn.jpg)
the file VBexternal.php is on the bottom of the page.
.vb/VBexternal:
http://img160.imageshack.us/img160/9865/screen38du.th.jpg (http://img160.imageshack.us/my.php?image=screen38du.jpg)
someone can help me?
check your servers path is correct in the method i explained in my last post :)
For Newest Threads the default pulls from all forums if left blank. Is there a easy way to pull from all forums accept for select ones.
i.e. I want all Newest Threads from all forums accept for number 1 and 5
Any ideas on how to make this happen?
Try this (https://vborg.vbsupport.ru/showpost.php?p=756742&postcount=28).
<a href="https://vborg.vbsupport.ru/showthread.php?t=116546" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=116546</a>
see this please
You need to put in your forums path in the
<?php
chdir('./forum');
require_once('./vBExternal.php');
?>
section
create a blank php file and enter this into it
<? print $PATH_TRANSLATED; ?>
name it path.php and upload it to the root of your server
now browse to your path.php file in your web broswer and you will see your servers path, this is what needs to be entered into that section eg:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
chdir('/<server path from path.php file goes here>/forum');
require_once('/<server path from path.php file goes here>/forum/vBExternal.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
Some servers can be case sentive so make sure the file name on the server is in exactly the same lettercase as the code above. also your page needs to have the .php extension, not .html :)
another way is to create a blank php for it - save the file with any name eg: vbexternal_script.php
<?php
chdir('/<server path from path.php file goes here>/forum');
require_once('/<server path from path.php file goes here>/forum/vBExternal.php');
?>
and then insert this into your webpage
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<? include 'vbexternal_script.php'; ?>
<html xmlns="http://www.w3.org/1999/xhtml">
:)
i get DB error from link abuv
I'm getting the same error:
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
This is the code of my file:
<?php
chdir('./mdbwforums');
require_once('./vBExternal.php');
?>
<?php
output_NewestReplies(30);
?>
So what's wrong?
[email protected]
vbmenu_register("postmenu_1000209", true);
06-06-2006, 03:48 PM
Does anyone had make this work with 3.54? is it any updates???
aramik
06-07-2006, 11:29 AM
damn I really need this hack... anything similiar? for displaying latest members, threads, online users etc?
C.Birch
06-08-2006, 04:42 PM
got a error when running on 3.6
any ideas?
Fatal error: Call to undefined function: query_read_slave() in /home/forumls/public_html/includes/class_bbcode.php on line 198
[email protected]
vbmenu_register("postmenu_1002275", true);
06-08-2006, 04:54 PM
got a error when running on 3.6
any ideas?
Fatal error: Call to undefined function: query_read_slave() in /home/forumls/public_html/includes/class_bbcode.php on line 198
was it working on 3.54? if so, can you post what you did or your fixed release?
C.Birch
06-08-2006, 05:29 PM
it was working on 3.5.4 for me and i did not have to edit anything, i only got a prob when updating to 3.6
Jesus05uk
06-08-2006, 05:54 PM
I'm getting a database error.
http://www.gmodcentral.com/gmod/index2.php
I even tried adding
require_once('/home/gmodcent/forums.gmodcentral.com/includes/config.php');
[email protected]
vbmenu_register("postmenu_1002448", true);
06-08-2006, 08:34 PM
Ok, i where able to make it work, however, the problem is pretty strange.
Whenever I try to use the script from withing a PHP function it fails....
example.
test();
function test() {
chdir('../forum');
require_once('./vBExternal.php');
output_News(3,51);
output_NewestThreads(5,'');
chdir('../pages');
}
That does not work and it returns
Fatal error: Call to a member function query() on a non-object in F:\Webz Inicom\Web iniCom\forum\vBExternal.php on line 392
if i run it from a non function, ie on a root of a file it just work fine
anyone can explain why or if there is any workaround?
C.Birch
06-09-2006, 12:12 PM
I dont think its designed to work within other php code
C.Birch
06-09-2006, 05:42 PM
Temp Fix for using with vb 3.6 beta1
In vBExternal.php
Find:
require_once('./includes/class_bbcode.php');
Replace with:
require_once('./includes/class_bbcode2.php');
Next you need to get the file class_bbcode.php from the vb3.5.4 and rename it class_bbcode2.php and then upload to includes folder.
Basicy it just makes this hack read the old bbcode file so that it works.
If on 3.5.4 you get a database error that gives you no idea what the problem is check this
Search for:
// make database connection
$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['MasterServer']['usepconnect'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['SlaveServer']['usepconnect'],
$config['Mysqli']['ini_file']
);
Replace with:
// make database connection
$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['port'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['MasterServer']['usepconnect'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['port'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['SlaveServer']['usepconnect'],
$config['Mysqli']['ini_file']
);
You just need the port added and it should work or I should say it worked for me.
I recently made a modification so you can run multiple forums off of one user table (https://vborg.vbsupport.ru/showthread.php?t=118473). I have now modified the code for vBExternal so that I can have a site that shows recent posts from each site. You can check it out here (http://www.everythingnetwork.com). The site is still kind of rough and I am still working on getting everything the way I want it but you get the idea.
ElliottB
06-21-2006, 06:08 AM
Is there any chance for news grabbing attachments and having them at the end?
aceofspades
06-30-2006, 06:12 PM
can you tell me how to show how many members AND guests there are only. So far i have got the members online working but it would also be nice to show the number of guests.
something like :
Users online: 5
Members: James, Bob
Guests: 3
I made a file called portal.php in my public_html folder which I'm gonna use to set it up and then put it as my main page. I did everything it said on installation instructions and I copied all of the usage instructions codes onto the page with lots of gaps between them
I must have done something wrong, because I get this message when I go on www.lolage.co.uk/portal.php:
Database error
The database has encountered a problem.
--------------------------------------------------------------------------------
Please try the following:
Load the page again by clicking the Refresh button in your web browser.
Open the www.lolage.co.uk home page, then try to open another page.
Click the Back button to try another link.
The www.lolage.co.uk forum technical staff have been notified of the error, though you may contact them if the problem persists.
We apologise for any inconvenience.
I have no clue about php, so could someone help me?
Thanks :)
Tannerman
07-03-2006, 04:47 PM
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.
kidron
07-08-2006, 03:09 PM
If on 3.5.4 you get a database error that gives you no idea what the problem is check this
Search for:
// make database connection
$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['MasterServer']['usepconnect'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['SlaveServer']['usepconnect'],
$config['Mysqli']['ini_file']
);
Replace with:
// make database connection
$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['port'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['MasterServer']['usepconnect'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['port'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['SlaveServer']['usepconnect'],
$config['Mysqli']['ini_file']
);
You just need the port added and it should work or I should say it worked for me.
Thanks a lot! that solved my database error :banana:
saeedh
07-09-2006, 03:41 AM
firstly, thanks e2s for noticing the fix :)
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.
use the show threads option... it's the same thing however just able to do what you want which is pulling the newest 5 items from the array of forum ids
output_NewestThreads(X,"ID1,ID2,ID3,...");
X = number of items
IDx = the forum ids to which you want showing up :)
NeilFawcett
07-14-2006, 11:09 AM
This is a VERY useful plugin. I'm particularly interested in the NEWS feature.
However, I've noticed if the threads have quotes (or code) defined in them, this text does make it out to the NEWS.
Ie: If you post a thread and within it do a quote of some text. When this thread is displayed as a news article, all the text is displayed apart from the quote :(
Any clues?
Tannerman
07-14-2006, 02:31 PM
Use the show threads option... it's the same thing however just able to do what you want which is pulling the newest 5 items from the array of forum ids
output_NewestThreads(X,"ID1,ID2,ID3,...");
X = number of items
IDx = the forum ids to which you want showing up :)Thanks for the suggestion. I'd like to pull data from multiple forums like this, however I'd also like to have the entire post show (like the "News" option), rather than just the thread title (which the "Newest Threads") option uses.
Any suggestion on how to jimmyrig this to pull that off? :)
lightwave
07-14-2006, 04:00 PM
what code do i ened to do if the file is in a different subdomain?
ZombieAndy
07-14-2006, 06:49 PM
i know this has been asked several times and not answered, but it really is quite a problem. quotes, img's and codes dont work. does anyone know how to fix this?
A17roolz
07-16-2006, 09:51 AM
With the correct modifications, this works a treat! Though I'm having trouble with emoticons not appearing...
EDIT: Nevermind, I found that I could get them working by changing the path of the smilies via the ACP from images/smilies/smiley.gif to http://www.domainname.com/bbs/images/smilies/smiley.gif
A17roolz
07-16-2006, 09:02 PM
Sorry to double post, but does anyone know how to restrict the maximum number of characters in the title to 33? If it can leave a trailing ... that'd be a bonus.
chrisjp88
07-16-2006, 11:00 PM
This is a VERY useful plugin. I'm particularly interested in the NEWS feature.
However, I've noticed if the threads have quotes (or code) defined in them, this text does make it out to the NEWS.
Ie: If you post a thread and within it do a quote of some text. When this thread is displayed as a news article, all the text is displayed apart from the quote :(
Any clues?
I need the fix for this too if anybody knows.
NeilFawcett
07-17-2006, 11:17 AM
I need the fix for this too if anybody knows.
So it's not just me then :)
Anyone please? Seems a bit of a problem that you can't put use QUOTE or CODE in any article to be published as news :(
What confuses me is the text in these tags seemingly doesn't even come out of the PHP script in any shape or form? It's just missing... Is it being lost on the way out of the SQL request? I suspect not... So where is it being lost :(
euangel
07-23-2006, 07:02 AM
This mod is exactly what I need, but it's not working correctly for me. :( I'm trying to show the newest replies in the sidebar of a wordpress blog -- a php template. Unfortunately, I'm getting this error:
Fatal error: Call to a member function query() on a non-object in C:\Domains\broncosfreak.com\wwwroot\forum\vBExtern al.php on line 347
Any ideas?
HappyPike
07-24-2006, 02:32 AM
Yes, this still works in 3.5.4.
By the way, a really, really nice additional module for this mod would plop a POLL on any external page (similar to the vBAdvanced poll module). Doable?
That would be wonderful!
HappyPike
07-24-2006, 05:04 AM
Just found a problem... For some reason it doesn't parse vB codes:
I have a custom vB code for IMG tag with align option and it couldn't parse it in the news post.
image url
:(
On the forum the tag works fine.
It also doesn't include stuff inside the [quote] tag.
Is there a fix for this?
chrisjp88
07-25-2006, 04:01 PM
BTW. The maker of this mod hasn't posted since January, 7 months ago. I'm guessing he doesn't have an interest in vb anymore.
:(
I've been spending ages looking at all the files it uses, and can't find anywhere where it says to NOT use QUOTE tags.
The thing is it's such a HUGE flaw. So many news articles contain quotes, it's a must have. Does anybody know of a smilar script without such a flaw?
Tannerman
07-25-2006, 09:05 PM
I've been using HTML blockquote tags combined with a horizontal rule to get around the issue, but then again, you need to have HTML enabled in the forum to make this work.
HappyPike
07-25-2006, 09:15 PM
Yeah, that's the problem. I don't want to enable HTML in a forum where I want members to be able to post comments to the news items. if you don't allow comments, then enabling HTML is not a problem.
This hack is very easy to use but unfortunately it's not supported at all anymore. :(
rollo tamasi
07-25-2006, 09:47 PM
hi, does this work with 3.5.4 at all? i installed this one and the other release and when i create a page feature the php code you gave i get "there is a problem with the db......" error messages
got haggis?
07-27-2006, 12:28 AM
i have the same problem..also using 3.5.4
edit: duh, one page back (23) there is the answer that solved this.
Now, where can i modify <fieldset> so it doesn't span across the entire page.
NeilFawcett
07-27-2006, 05:06 PM
BTW. The maker of this mod hasn't posted since January, 7 months ago. I'm guessing he doesn't have an interest in vb anymore.
:(
I've been spending ages looking at all the files it uses, and can't find anywhere where it says to NOT use QUOTE tags.
The thing is it's such a HUGE flaw. So many news articles contain quotes, it's a must have. Does anybody know of a smilar script without such a flaw?
i have the same problem..also using 3.5.4
edit: duh, one page back (23) there is the answer that solved this.
Now, where can i modify <fieldset> so it doesn't span across the entire page.
Well, the problem is basically that the standard code that calls the BBCode parser and this will handle all the standard tags, but not some of the ones that require a template definitions for a forum. These include QUOTE and CODE.
To be honest this makes sense, as the template you probably use on your forum probably will not match the one you will use on your news page.
What I did was to simply process QUOTE tages (I'm not interested in CODE) ones prior to the BBCode parser call. Viola!
Here's my modified code (Due to BBCodes on these forums cocking stuff up I've changed the stuff below so QUOTE=ETOUQ)
// Load Template
$NewsTemplate = LoadTemplate("news.html");
// Collect Data
$NewestNews = $db->query("
select t.*,p.pagetext
from ".TABLE_PREFIX."thread t
left join ".TABLE_PREFIX."post p on(p.postid=t.firstpostid)
where t.forumid = $Forum
order by dateline desc
limit 0,$Amount");
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
while($News = $db->fetch_array($NewestNews)){
$neils_text = $News['pagetext'];
// Convert QUOTE tag
$convert_from = array("", "",);
$convert_to = array("<DIV CLASS=news-quote>", "</DIV>");
$neils_text = str_replace($convert_from, $convert_to, $neils_text);
// Convert BBCodes
$neils_text = $bbcode_parser->do_parse(unhtmlspecialchars($neils_text), true, true, true);
$Data .= ParseTemplate($NewsTemplate,
array(
'threadid' => $News['threadid'],
'threadname' => $News['title'],
'postusername' => $News['postusername'],
'post' => $neils_text,
'comments' => vb_number_format($News['replycount']),
'postdate' => date( "l j-M-Y", $News['dateline']),
)
);
}
This isn't all my code - I've also put in stuff so I can ignore a thread, and also put a "more break" in so you could post a 10 page story, but put in a "more break" about 12 lines in, so the news page only displays upto that point. I'm also doing an "all news stories" thing as well...
For all my posting no one really helped me, so I hope this helps you!
ps: If you don't want to allow HTML conversion, then I guess you could disable that in the do_parse call, and instead replace the QUOTE tags with something else prior to the do_parse call, and then replace them again back to the HTML format afterwards... Just as long as you don't leave the QUOTE tags in there in their standard BBCode form before the do_parse call you'll be fine :)
I will upload my modified one which parses BBCode on every post no matter what...it even integrates with SEO.
NeilFawcett
07-27-2006, 08:08 PM
I will upload my modified one which parses BBCode on every post no matter what...it even integrates with SEO.
Even Quote & Code tags? How does know which template to use?
chrisjp88
07-29-2006, 12:22 AM
Neil, thanks a lot. Had I spent more time playing with vB rather than IPB I probably could have figured that out, but I didn't. :p
Thanks for sorting that out though, my friend is now happy with the news script.. and I don't have to find an alternative or write my own now :)
NeilFawcett
07-29-2006, 01:40 PM
Neil, thanks a lot. Had I spent more time playing with vB rather than IPB I probably could have figured that out, but I didn't. :p
Thanks for sorting that out though, my friend is now happy with the news script.. and I don't have to find an alternative or write my own now :)
That did the trick for you did it? Excellent...
HappyPike
07-29-2006, 03:25 PM
Can you make it parse more than one BBCode? For example, I have an image tag with align option tag that also doesn't get parsed.
NeilFawcett
07-30-2006, 04:41 PM
Must admit never tried an alignment... Got an example of what's not working? Does it work without the align?
HappyPike
07-30-2006, 05:08 PM
Yeah, the regular img tag works. But when align option is provided, the script doesn't parse the code.
https://vborg.vbsupport.ru/
XtremeCrash
08-01-2006, 11:16 AM
HI I get this error when add the codes:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/crash74/public_html/xtremecrash/right.php on line 104
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/crash74/public_html/xtremecrash/right.php on line 227
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/crash74/public_html/xtremecrash/right.php on line 271
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/crash74/public_html/xtremecrash/right.php on line 308
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/crash74/public_html/xtremecrash/right.php on line 360
Ive been tring for the last few days to get it to and I have searched the forums top to bottom tring to figure this out. Any help will.
NeilFawcett
08-01-2006, 04:15 PM
Yeah, the regular img tag works. But when align option is provided, the script doesn't parse the code.
image_url
That's invalid syntax isn't it?
The closest you can get is?
https://vborg.vbsupport.ru/
Isn't it?
HappyPike
08-01-2006, 07:02 PM
No, I made a custom img tag with align option. See this thread:
https://vborg.vbsupport.ru/showthread.php?t=122660
This way you can align images left or right w/o turning on HTML. :)
NeilFawcett
08-01-2006, 08:31 PM
No, I made a custom img tag with align option. See this thread:
https://vborg.vbsupport.ru/showthread.php?t=122660
This way you can align images left or right w/o turning on HTML. :)
Well, all I can suggest you do it find occurences of and replace that yourself prior to the BBCode call. Obviously where you find an occurence, you'll have to find the next tag to get the URL etc.
Would only take a dozen lines of code or so...
That or don't allow that tag in your news items...
By the way, I've found my home groan "More break marker" very handy... I'll PM you about that!
HappyPike
08-02-2006, 06:10 AM
Thanks again for sharing the find, Neil. :up: Following your example I should be able to parse any BB code the script is not able to.
blankoboy
08-02-2006, 08:04 AM
edit
Xoxideforums
08-04-2006, 01:29 PM
I'm using vBExternal and I've finally got it to the point in which it will pull the data into vbDrupal. When I'm in preview mode it displays the page perfectly. But when I go to submit the page looses the enitire formating.
While viewing source I have noticed it is not pulling the proper header.
It is leaving out my custom theme's CSS file but it is picking up the misc/drupal.css. My logic told me, since i'm using only 1 theme is to copy all my bluemarine CSS into the misc/drupal.css file. This did not work.
So i checked to see that the divs are being labeled with the proper id and class titles. They are.
Here's my setup:
vB 3.5.4
PHP 5
MySQL v??
vbDrupal 4.6.8
vBExternal 1.6
I would give you the link to the page in question but it is a company site and only the employees can view our forum. Any help would be great. Thank You!
Since you can't login, I am willing to supply you with any HTML or CSS markup if you feel that would help. Thanks
Marsupilami
08-05-2006, 09:37 PM
Whatever said, this definately does not work on vb 3.5.4.
Tried it.. Rejected it..
Porky
08-06-2006, 01:53 AM
anyone know how to make it work for 3.6 or know a similar script?
Tannerman
08-08-2006, 01:22 PM
Whatever said, this definately does not work on vb 3.5.4.
Tried it.. Rejected it..Other installations differ with that opinion, but with the lack of support for this hack, I don't blame you for giving up.
Eagle Creek
08-09-2006, 03:03 PM
Nice! Very nice!
wezoo
08-15-2006, 05:35 AM
Anyone get this to work in 3.6 ?
please
irishblacknight
08-15-2006, 05:48 AM
We have it working on one (http://www.irishisptest.com/) of our sites without having to make any extra changes after the upgrade to the latest version of vbulletin
wezoo
08-15-2006, 11:14 AM
Hmmmmm how ?
I get a database error ?
I wish i could get this to work....
wezoo
08-15-2006, 03:36 PM
no matter
I managed to get this working :)
helps if i actualy put it in the root of forum !!! ;)
workRelated
08-17-2006, 04:21 PM
Had problems with this hack for 3.6
the problem was with $db->connect the variables are out of order.
the replace the $db-connect with the following:
$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['usepconnect'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['usepconnect'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['Mysqli']['ini_file']
);
DarioVinci
08-17-2006, 11:20 PM
hi, everybody....this add-on is fantastic..i'm running it on a 3.5 version of vbulletin...can u tell me how can i show the number of the registered users?
ty very much
bye
Aunt Clara
09-01-2006, 03:42 AM
Alright, I've read almost the whole thread and didn't find an answer to what I need: If I want to install this in forumdisplay (using the left-side bar)
Where do I add this:
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>Header or Forumdisplay template?
And second, since it is on the same folder as the page where I'll add it, what should I change the path to (chdir('./forums'); to what?)?
Thanks a lot.
lmongello
09-05-2006, 06:34 PM
Trying to run this on 3.6 and get either database error, or if I make values " '/forums and/vBexternal', I get
Warning: chdir(): No such file or directory (errno 2) in /home/virtual/site1/fst/var/www/html/2.php on line 2
Warning: main(/vBExternal.php): failed to open stream: No such file or directory in /home/virtual/site1/fst/var/www/html/2.php on line 3
Fatal error: main(): Failed opening required '/vBExternal.php' (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site1/fst/var/www/html/2.php on line 3
Xtrm2Matt
09-05-2006, 06:50 PM
Hi,
Running fine on my 3.6.0 as seen here; www.OpticalGaming.com
Regards,
Matt
lmongello
09-05-2006, 06:54 PM
Any idea what I'm doing wrong? (bangs head.. knows it must be something simple)
azn_romeo_4u
09-22-2006, 05:20 AM
can't figure it out either...
azn_romeo_4u
09-22-2006, 06:42 AM
Change this line:
if($Forums){
$SQL = " where forumid in({$Forums})";
}
To this:
if($Forums){
$SQL = " where forumid NOT in({$Forums})";
}
Just tested this and it doesn't work.
Tannerman
10-03-2006, 04:43 PM
For those of you who have had this hack working on 3.5 and then upgraded to 3.6, how did the transition go? Did you need to change anything in your configuration?
Xtrm2Matt
10-03-2006, 05:20 PM
I've been running the same version since early 3.5.0. I've had no problems all through the 3.5.x series, and currently no problems on 3.6.1.
Tannerman
10-03-2006, 05:21 PM
Thanks for the feedback, Xtrm2Matt. Anyone else?
SupremeWeapon
10-09-2006, 05:40 PM
erm yea.
this needs revamped.
Database errors.
set to only be able to read newb directory structures
not coded to work with mysql over 3.23
coding errors in the php file.
Clicking uninstall untill the author fixes this.
lother
10-10-2006, 05:16 PM
Just a small question, is it possible to reverse the newest member list so the newest members are down the list and the oldest are on top??
JamesX4334
11-03-2006, 10:40 AM
Running fine on 3.6.2
ben07
11-10-2006, 08:01 AM
Could someone pos the attachment. This is what I am looking for.
Milez
11-17-2006, 11:34 AM
NeilFawcett: a couple pages back you mention a copy of vbexternal that parses more code and adds a cool [more] tag. I would love to check that out. Could I take a look?
Does anyone know how to make Vbexternal parse IMG tags properly?
mhamdi
11-23-2006, 01:06 AM
Running fine in 3.6.3.
Just replaced:
$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['MasterServer']['usepconnect'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['SlaveServer']['usepconnect'],
$config['Mysqli']['ini_file']
);
with
$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['usepconnect'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['usepconnect'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['Mysqli']['ini_file']
);
Thanks WorkRelated!
Akronica
11-28-2006, 04:05 PM
I am trying to use both vbExternal and UserLogin on non vb pages in the same test.php page.
Both work great separately but when I inlude the following in the test.php page for both then I get an error
<?php
require_once('./vBExternal.php'); // needed by vbExternal
require_once('./global.php'); // needed by logon
?>
error I get
Fatal error: Cannot redeclare class vbulletinhook in /homepages/39/d101533575/htdocs/QDeals/forum/includes/init.php on line 312
can soome help
thanks a lot
Akronica
11-30-2006, 04:27 PM
any help?
mathias
12-04-2006, 06:26 AM
any help?
have a look here
https://vborg.vbsupport.ru/showthread.php?t=132996
Frugal
12-06-2006, 12:49 AM
Well people have been asking this question for the last 18 months with no replies so I doubt I'll fare any better but hey, it's worth a go :)
Does anyone know how to modify this so that it will display the number of logged in users and the number of guests in the output_UsersOnline().
Cheers
Frugal
Atsuko
12-10-2006, 02:43 AM
Hello!
My vBlluetin site is ABC.com, and the site which I want to show the infomation of this mods in ABC.org.
Both site using same server.
Can I use this module?
If so, please advice where I should rewrite.
Thank you.
Hornstar
01-02-2007, 10:08 PM
The error im getting is this
There was an error while processing vBExternal:
System was unable to find the template 'vBExternal/newest_threads.html'
anyone else had this problem, and know a fix for it?
kungfumaster
01-05-2007, 03:33 PM
Gto this working in 5 mins, follow instructions in USAGE file then amend the DB details (as mhamdi said) in the VBExternal.php.
I'm running a clean install of 3.6.4
seidel
01-23-2007, 12:57 AM
Hi! vbexternal says this error:
Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory vBExternal.php on line 67
Fatal error: main(): Failed opening required './includes/db_mysql.php'
Whats wrong?
thanks!
I use 3.6.4
seidel
01-23-2007, 02:43 AM
Running fine in 3.6.3.
Just replaced:
$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['MasterServer']['usepconnect'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['SlaveServer']['usepconnect'],
$config['Mysqli']['ini_file']
);
with
$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['usepconnect'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['usepconnect'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['Mysqli']['ini_file']
);
Thanks WorkRelated!
In what files modified this?
thanks
seidel
01-23-2007, 02:57 AM
My problem was fixed using 2 important items:
1) Download this version https://vborg.vbsupport.ru/attachment.php?attachmentid=27032
The others versions does not work in 3.6.4
2) Use fix from WorkRelated
Regards!
clr_75
01-26-2007, 02:44 PM
Is vbExternal.php available anywhere to include the HTML Markup tags for like the Admins, Super Mods, and Mods? Or does anyone the select statement to do this??? Thanks!
Mysticales
02-18-2007, 02:27 AM
Hey cool! FYI, I just spent the past hour trying to get this and the Deluxe (Or Simple) external login support working together.
https://vborg.vbsupport.ru/showthread.php?t=108026
Well it was said that the login access and the vbexternal would not work together and that no luck figuring it out.
https://vborg.vbsupport.ru/showpost.php?p=1131318&postcount=11
Well.. I just did. Least i dont know if its been posted or not. This is tested on the 3.5.x forums. However, I would believe it should work on 3.6 as well since its including the main files that 3.6 uses.
The modification is this.
In the vBExternal.php file.
Find:
// ---------------------------------------------------
// Start Set PHP Environment
// ---------------------------------------------------
Then scroll down and find:
// ---------------------------------------------------
// End Require Globalized Settings
// ---------------------------------------------------
Highlight everything you just found and the inbetween and delete it.
Your file should start now with just:
// ---------------------------------------------------
// Start Globalized Function - LoadTemplate
// ---------------------------------------------------
(Then the rest of its code below)
What you just did was get rid of the conflict between the login from the user access login and the standalone vbexternal. Now these will work together 100% and "should" be 3.6 safe.
The proof and demo is http://forums.qj.net/portal/
Im still working on alot more atm on that page.. but you can see that its working. Someone tell me if this makes sense the fix or if it works on 3.6 or if I need to explain more. =)
upnorth
02-20-2007, 05:30 PM
I have this running on 3.6.4 but have one question.
I have a forum that all threads are moderated. I'm using vBExternal to show the posts on my home page. Problem is, is that when someone posts to this forum, vBExternal currently shows the thread even though the moderator hasn't approved it yet? How can I get the display of this thread to only occur after the threads have been approved?
futuredood
02-22-2007, 08:36 AM
ah, this would be wonderful but can't get it to work in my Joomla CMS.
upnorth
02-22-2007, 07:20 PM
Anyone have any ideas how to filter out posts that need to be moderated?
I have this running on 3.6.4 but have one question.
I have a forum that all threads are moderated. I'm using vBExternal to show the posts on my home page. Problem is, is that when someone posts to this forum, vBExternal currently shows the thread even though the moderator hasn't approved it yet? How can I get the display of this thread to only occur after the threads have been approved?
zexion
02-28-2007, 05:47 AM
I got this working on the latest ver (after using the solution found here regarding the order of the variables).
Question: Can I display the actual TEXT of the post as opposed to just the thread name?
I see the variables he defied (which he then calls in the template), but I dont see one for the actual TEXT of the post... using the samples below, what would the the variable?
'post' => $News[???????????????????????????????????],
These are some of the ones defined:
'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'],
TheSh@rk
03-11-2007, 11:15 AM
Wow Zero. TNX!
jags2ooo
03-18-2007, 02:25 PM
How would i make it so the users avatar shows up also
Shazz
03-18-2007, 02:30 PM
How would i make it so the users avatar shows up also
You only need to ask it once...
* Shazz notes* its not supported
jags2ooo
03-18-2007, 03:13 PM
Has anyone modified the script so that it can pull users avatars in the new posts? And also Pull the date of when the post was posted
jeramie78
03-24-2007, 09:49 PM
anyone figure out how to truncate the output of newthread??
jeramie78
03-24-2007, 09:55 PM
Can anyone explain how to get this to work? I need my page to truncate the thread titles, but I've tried loadsa ways and I just can't do it :(
change all instaces of
'threadname' => $Thread['title'],
to this
'threadname' => substr($Thread['title'],0,20),
change the 20 to whatever you want.
ro_manuel
03-28-2007, 06:20 AM
Ok, that Usage file. Its the worst instructions ever, how do i use it!? Where do i go to? And
what and where file do i edit!? Hmm, this isnt that great
erinys
03-29-2007, 06:07 AM
I cant get this to work at all, not with filling out the dbase instructions or whatever
I'ts either a blank page or a dbase error, not going to bother anymore ;(
Zizou_SCD
03-29-2007, 10:18 AM
I just can't get this to work.
I have uploaded the folder and the file in my forums root.
Then on the web page I want to use these templates I have this code:
</head>
<body>
<?php
chdir('http://soniccagedome.com/forums');
require_once('./vBExternal.php');
?>
<table bord....
....<td class="bodymiddle" style="height:408px;"><?php
output_NewestMembers(5);
?></td>....
And I am getting this error:
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/soniccag/public_html/dev7/site/index.php on line 157
Warning: main(./vBExternal.php) [function.main]: failed to open stream: No such file or directory in /home/soniccag/public_html/dev7/site/index.php on line 158
Fatal error: main() [function.require]: Failed opening required './vBExternal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/soniccag/public_html/dev7/site/index.php on line 158
This error can be seen @:
http://www.soniccagedome.com/dev7/site/
Can anyone tell me where I am going wrong?
BTW I am using vB Version 3.6.4.
jeramie78
03-30-2007, 03:36 AM
<?php
chdir('http://soniccagedome.com/forums');
require_once('./vBExternal.php');
?>
to
<?php
chdir('/path/to/your/forums');
require_once('./vBExternal.php');
?>
change "/path/to/your/forums/" to whatever is the path to your forums not the URL to your forums
Zizou_SCD
03-30-2007, 09:29 AM
change "/path/to/your/forums/" to whatever is the path to your forums not the URL to your forums
This seems to have worked, however, there is a new problem:
http://www.soniccagedome.com/dev7/site/
It just says 'Database Error', doesn't tell me what it is. Do you think it is because of the forums version difference?
mertron
03-30-2007, 05:33 PM
This seems to have worked, however, there is a new problem:
http://www.soniccagedome.com/dev7/site/
It just says 'Database Error', doesn't tell me what it is. Do you think it is because of the forums version difference?
Running fine in 3.6.5
Open vBExternal.php
find line 96
Just replaced:
$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['MasterServer']['usepconnect'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['SlaveServer']['usepconnect'],
$config['Mysqli']['ini_file']
);
with
$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['usepconnect'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['usepconnect'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['Mysqli']['ini_file']
);
Lord Kirken Mor
03-31-2007, 12:05 AM
Can I Export Forum Stats wit this?
Zizou_SCD
03-31-2007, 10:07 AM
Running fine in 3.6.5
Open vBExternal.php
find line 96
Just replaced:
Nice one. Works a dream!
Now, I want to limit a thread title to a certain amount of characters. Can anyone help me out with this?
Also, how about adding the total users online stat and amount of guests online stat to the users online function
upnorth
04-02-2007, 07:56 PM
Anyone able to help me with this. Seems like it would be an easy fix....just can't get my head around what I need to do to make this happen though. :(
Anyone have any ideas how to filter out posts that need to be moderated?
Lord Kirken Mor
04-02-2007, 10:10 PM
It was just the template i was using. but now a few includes are scrambled randomly around the page.
Zizou_SCD
04-04-2007, 12:52 AM
Has anyone written a piece of code that will limit the length of a result? E.G. Cut the length of a topic title from 50 to 20 characters:
HOT NEWS COMI....
Like that.
jluerken
04-10-2007, 09:11 PM
I am currently fetching the latest 5 threads from my board. This is working fine but I need a small change. How can I chop the thread title to X chars.
It kills the page design if a thread title has a lot of chars.
Is there a way to limit this?
Gryphon
04-11-2007, 05:28 PM
jluerken, scroll up a few posts.
jluerken
04-12-2007, 10:00 AM
jluerken, scroll up a few posts.
Many thanks, this worked directly!
upnorth
04-13-2007, 05:21 PM
I have this running on 3.6.4 but have one question.
I have a forum that all threads are moderated. I'm using vBExternal to show the posts on my home page. Problem is, is that when someone posts to this forum, vBExternal currently shows the thread even though the moderator hasn't approved it yet? How can I get the display of this thread to only occur after the threads have been approved?
WetWired helped me find a solution to this. You can find it in the following post.
https://vborg.vbsupport.ru/showthread.php?p=1226893#post1226893
Chicago_VLNU_4s
05-07-2007, 10:30 PM
I'm getting the following errors
Warning: file_get_contents(./includes/database_error_message.html) [function.file-get-contents (http://www.offthaave.com/new1/function.file-get-contents)]: failed to open stream: No such file or directory in /home/.mojo/*****/******/forums/includes/class_core.php on line 919
Warning: file_get_contents(./includes/database_error_page.html) [function.file-get-contents (http://www.offthaave.com/new1/function.file-get-contents)]: failed to open stream: No such file or directory in /home/.mojo/*****/******/forums/includes/class_core.php on line 943
any ideas?
Inferno Tech
05-15-2007, 11:40 PM
To those looking for an updated version:
https://vborg.vbsupport.ru/showthread.php?p=1248382
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.