View Full Version : vBExternal v1.6
Zero Tolerance
06-12-2005, 10:00 PM
Well, this doesn't modify any php, nor use a plugin, so i wasn't sure exactly where to stick it :p
Anyhow, this is a port of the vBExternal for vb 3.0.7, so look at this thread for more information: https://vborg.vbsupport.ru/showthread.php?s=&threadid=81943
Enjoy :)
- Zero Tolerance
C.Birch
06-13-2005, 02:16 PM
and hope have adding basic bbcode support eg url and bold to the news part?
Zero Tolerance
06-13-2005, 02:21 PM
Yup, full parsing for bbtags and emoticons/smilies + auto URL correction (no red-x's) :)
- Zero Tolerance
C.Birch
06-13-2005, 02:46 PM
Thanx was a little unsure has it was not working on my 3.0.7 but i just seen that was my mistake when i was editing the code so it only pulls so much of the text and adds a read more link.
Heres a screen shot for anyone who wants to see what this hack does :)
Janiv
06-14-2005, 02:33 AM
This is very, very nice and easy to use! I'm loving it. It's very well done and getting it to work and look how you want is just editing simple HTML. Thanks!
MrToasty
06-14-2005, 09:50 AM
Is it just me getting database errors? I'll see if I can get the query which is failing on me...
Marco van Herwaarden
06-14-2005, 10:41 AM
MrTosty,
If you want help on your query problem, please post the exact error you are getting.
Zero Tolerance
06-15-2005, 04:00 AM
Is it just me getting database errors? I'll see if I can get the query which is failing on me...
Errors may occur if you have used a function incorrectly, please specify what you have used on your web page, thank you :)
- Zero Tolerance
Kirk Y
06-15-2005, 04:38 AM
I used a smilie in one of my posts, it's not showing the image as its trying to retrieve it from "http://www.example.com/forums/images/smilies/smile.gif". How would I go about changing example.com/forums to fit me? I've looked over the directions several times, but may have missed something.
Zero Tolerance
06-15-2005, 04:58 AM
I used a smilie in one of my posts, it's not showing the image as its trying to retrieve it from "http://www.example.com/forums/images/smilies/smile.gif". How would I go about changing example.com/forums to fit me? I've looked over the directions several times, but may have missed something.
You need to update your vboptions, it uses your setting from there, go to your acp, vb options, site name / url etc..., update the forum url :)
- Zero Tolerance
Charged
06-15-2005, 06:19 AM
I've just installed this and it was just along the lines of what I was looking for
Just wondered if there is an easy way to get the posts to show up just like the posts do in the forum rather than just a boring old box?
And also can it pull the footer from the forums to use on the main news page as well ?
Zero Tolerance
06-15-2005, 06:40 AM
I've just installed this and it was just along the lines of what I was looking for
Just wondered if there is an easy way to get the posts to show up just like the posts do in the forum rather than just a boring old box?
And also can it pull the footer from the forums to use on the main news page as well ?
You can change the template of the output, look at the html files inside the vBExternal/ directory.
As for the forum footer, i'm afraid not, the purpose of this modification is to extract dta to your website, not make it look like your forum.
- Zero Tolerance
MrToasty
06-15-2005, 02:17 PM
I think I've got problems beyond vBexternal... When upgrading my test forum to 3.5.0b1 from 3.0.7, it seemed like some of the updates applied extremely quickly, and i reckon something may have stuffed up... the DB error page isn't recognising my technical email addy, hence not sending the error via email with the query, so i can't seem to find out what specifically is going wrong...
Besides that, the page i'm pulling vBexternal news onto, has many many includes here and there, many of which are pulling data out of vbulletin here and there... on top of that, one of the includes is already calling global.php, which may be my problem?
Either way, i might do a fresh install as my test bed, then go from there. I'll just have to figure it out myself, because i have my own custom shonky coding all over the shop, and it's probably not a vBexternal problem at all, because everyone else seems to have no errors...
Cheers for the help anyways :)
Janiv
06-15-2005, 06:59 PM
Sorry to bother, but I didn't see a function to pull out upcoming events and holidays? Would this be possible to do or is it too complex?
Thanks!
Bad Bunny
06-28-2005, 01:28 AM
Sorry to bother, but I didn't see a function to pull out upcoming events and holidays? Would this be possible to do or is it too complex?
Thanks!
How do you set the number of characters that appear with a news snippet? I would prefer to display the whole piece of news.
is it possible to display the message in the last news ?
maybe like in the last X posts 3.1 ?
and how get i the header to become shorter ?
(this is the header message.... -> this is the ...)
thx a lot for this hack :classic:
subnet_rx
07-23-2005, 03:32 PM
is this mod able to put the next X calendar events on a page? If not, can that be added? I've downloaded mod like that for 3.0.7, but it doesn't work that well. It'd be nice if everything was in one script anyway.
dmatthams
07-23-2005, 07:38 PM
hey there, just installed, and recieve this error
Fatal error: Cannot redeclare class vbulletinhook in /home/varilla/public_html/forum/vBExternal.php on line 119
line 119:
class vBulletinHook { function fetch_hook() { return false; } }
any thoughts? great hack btw ;)
**edit** never mind, my bad, just a conflict **
Sai01
07-24-2005, 03:42 PM
how do i change the templates? the way things look...
Martin64
07-25-2005, 01:03 PM
Sai01: UPLOAD/news.html etc.
Great extension, I'm currently implenting it on one of my sites. :)
ohgenki
07-30-2005, 02:03 PM
is it possible top truncate the news ? sometimes its tooo lengthy. hmm ?
for e.g.:
news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news news
... more
delds
07-30-2005, 02:24 PM
1st I assume this should also work in vb3.5 rc1
2nd if the forums are located on a different site than the page you wish to insert the top threads into...
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
how do you fill this out.
Mimoun
08-02-2005, 10:57 AM
Hi Zero Tolerance I like your script.
Could you add this to your script:
I want to put the small login box that is on the right side inside the navbar on an external page.
Here is a screenshot of what I would like to extract:
https://vborg.vbsupport.ru/
IFor[You]
08-02-2005, 03:48 PM
this mod has potential~
need updating with more functions though
TCattitude
08-06-2005, 05:35 PM
<a href="https://vborg.vbsupport.ru/showpost.php?p=750786&postcount=119" target="_blank">https://vborg.vbsupport.ru/showp...&postcount=119</a>
please?
jalliday
08-10-2005, 06:30 PM
great hack thanks a lot
i just have a little problem:
News Article: Londres attaquй instead of attaqu?.
What's my problem?
Okay, this is pretty cool. Have it running on RC2.
Couple of things though:
1. Can something be done to more easily eliminate forums you don't want posts drawn from except leave them out of the whole list? Like for instance:
restrict_NewestThreads(5,"1,2,3");
...would draw from every forum except 1,2,3. Would make it a lot easier to exempt your admin and special usergroup forums.
2. Would be really nice if thread titles could be restricted to a certain specified character limit. So if the thread title is really long you could chop it off and add ... after 20 characters f.ex.
Otherwise very cool indeed :up:
Okay, this is pretty cool. Have it running on RC2.
Couple of things though:
1. Can something be done to more easily eliminate forums you don't want posts drawn from except leave them out of the whole list? Like for instance:
restrict_NewestThreads(5,"1,2,3");
...would draw from every forum except 1,2,3. Would make it a lot easier to exempt your admin and special usergroup forums.
2. Would be really nice if thread titles could be restricted to a certain specified character limit. So if the thread title is really long you could chop it off and add ... after 20 characters f.ex.
Otherwise very cool indeed :up:
Change this line:
if($Forums){
$SQL = " where forumid in({$Forums})";
}
To this:
if($Forums){
$SQL = " where forumid NOT in({$Forums})";
}
Okay, this is pretty cool. Have it running on RC2.
Couple of things though:
1. Can something be done to more easily eliminate forums you don't want posts drawn from except leave them out of the whole list? Like for instance:
restrict_NewestThreads(5,"1,2,3");
...would draw from every forum except 1,2,3. Would make it a lot easier to exempt your admin and special usergroup forums.
2. Would be really nice if thread titles could be restricted to a certain specified character limit. So if the thread title is really long you could chop it off and add ... after 20 characters f.ex.
Otherwise very cool indeed :up:
Change this line:
if($Forums){
$SQL = " where forumid in({$Forums})";
}
To this:
if($Forums){
$SQL = " where forumid NOT in({$Forums})";
}
matt2cacnio
08-16-2005, 10:26 AM
I dont get what this hack does. It gives you a way to make another html page integrated into vbulletin so you can put any content with vbulletin headerS?
Zero Tolerance
08-16-2005, 10:50 AM
I dont get what this hack does. It gives you a way to make another html page integrated into vbulletin so you can put any content with vbulletin headerS?
It allows you to export data from your forum and place it onto your own custom website easily.
- Zero Tolerance
matt2cacnio
08-16-2005, 12:47 PM
oh ok thx. Ill go give it a try.
Vizionz
08-16-2005, 12:51 PM
its used for people that say have a website that uses a different system or that they do from scratch and just want to display the forum stats on there actual website and not on the forum
like in the navigation you could have a table that shows the latest 3 posts from your forum then if they cli9ck the latest thread it will launch your forum..
Note: anyone know how to get the actual user count from this instead of the actual users online names, i justwant like 340 total Users | 200 members |140 guests
Change this line:
if($Forums){
$SQL = " where forumid in({$Forums})";
}
To this:
if($Forums){
$SQL = " where forumid NOT in({$Forums})";
}
Ah! No wonder where NOT forumid in({$Forums}) wasn't working :). Thanks for that.
jtallen123
09-02-2005, 07:45 PM
Hi Zero Tolerance I like your script.
Could you add this to your script:
I want to put the small login box that is on the right side inside the navbar on an external page.
Here is a screenshot of what I would like to extract:
http://www.freewebsitetemplates.com/screenshothelper/loginbox.gif
This would be great, I know it can be done but I don't have the time to work on it myself.
BamaStangGuy
09-03-2005, 06:37 PM
Anyway to shortern the news that appears on the mainpage by total characters and once these characters are reached create a More link to the forum thread?
jtallen123
09-03-2005, 07:32 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=91129" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=91129</a>
check that thread for some vb login stuff. I knew someone had done it already, just a matter of finding it.
This is great! Way better than that horrendous Pluhnews I released a few years back... (total PHP newb I was, yes yes)
Anyway, I recommend giving some more options to the user without them having to hack it manually, like the time a news post was posted, who the last comment was by, etc. Just some ideas.
On my homepage : www.mirzone.net I am running vbexternal 1.6 https://vborg.vbsupport.ru/showthread.php?t=83005
Now, I wanted to run VB Login on a Non-VB Page vB3 RC3: https://vborg.vbsupport.ru/showthread.php?t=61112 from there, too.
I already got this hack succesfully to run on a test page, too: http://www.mirzone.net/testing.htm
However I don't get to run both hacks together.
The problem is that vbexternal want this code at the top:
<?php
chdir("/.../.../.../mirzone.net/html/forum/");
include('./vBExternal.php');
?>
and VB Login:
<?php
chdir("/.../.../.../mirzone.net/html/forum/");
require('./global.php');
chdir("/.../.../.../mirzone.net/html/");
?>
If I try to run both codes (above) I always get the following error message:
Fatal error: Cannot redeclare class vbulletinhook in /var/www/vhosts/mirzone.net/httpdocs/forum/includes/class_hook.php on line 29
Have anybody an idea how I can fix this, please?
BamaStangGuy
09-10-2005, 02:49 AM
anyway to show the contents of the quote tags on the mainpage news?
FightRice.com
09-10-2005, 03:35 PM
On my homepage : www.mirzone.net I am running vbexternal 1.6 https://vborg.vbsupport.ru/showthread.php?t=83005
Now, I wanted to run VB Login on a Non-VB Page vB3 RC3: https://vborg.vbsupport.ru/showthread.php?t=61112 from there, too.
I already got this hack succesfully to run on a test page, too: http://www.mirzone.net/testing.htm
However I don't get to run both hacks together.
The problem is that vbexternal want this code at the top:
<?php
chdir("/.../.../.../mirzone.net/html/forum/");
include('./vBExternal.php');
?>
and VB Login:
<?php
chdir("/.../.../.../mirzone.net/html/forum/");
require('./global.php');
chdir("/.../.../.../mirzone.net/html/");
?>
If I try to run both codes (above) I always get the following error message:
Fatal error: Cannot redeclare class vbulletinhook in /var/www/vhosts/mirzone.net/httpdocs/forum/includes/class_hook.php on line 29
Have anybody an idea how I can fix this, please?
can you post the code you are using in your page you want that on
jesus likes pie
09-12-2005, 11:19 AM
So what does this do exactly....anybody have a link to their site with it? Pictures?
BamaStangGuy
09-12-2005, 03:34 PM
So what does this do exactly....anybody have a link to their site with it? Pictures?
http://www.conflictingviews.com
The news in the middle is pulled from a forum
BamaStangGuy
09-12-2005, 06:02 PM
anyway to show the contents of the quote tags on the mainpage news?
Also IMG tags would be nice... hell all of bbcode haha
http://www.conflictingviews.com/forum/default/http://www.conflictingviews.com/forum/images/smilies/orange/14.gif
^ Smilies do not work on the manpage either. When I use a smilie in the post I get this on the mainpage but it shows correctly within the forum
jesus likes pie
09-12-2005, 06:14 PM
http://www.conflictingviews.com
The news in the middle is pulled from a forum
So its kinda like vBAdvanced?
Bad Bunny
09-12-2005, 06:44 PM
So its kinda like vBAdvanced?
No, it's not a portal or cms. It is a tool for grabbing info from your forum and displaying it on your normal site pages.
BamaStangGuy
09-14-2005, 11:46 PM
Any kind of help with the smilies?
mark99
09-20-2005, 09:03 AM
Useful little script, well done to the author =).
Now there's a couple of things I'd like to see/do.
1. How can I output the START DATE for the 'Latest Threads'?
2. Is it possible to save the 'Latest Threads' output to an external file. I already tried the following and it simply returned a 0 byte file. It seems since the data is already collected and requested that it should be possible, but I'm clearly missing something:
$result = output_NewestThreads(5,"1,2,3");
$fp = fopen("atest.txt", "w");
fwrite($fp, $result);
fclose($fp);
PHP isn't my strong point =).
mark99
09-20-2005, 04:56 PM
More or less solved no.2 myself with a simple 'ob'. For the benefit of anybody else that likes to cache data and save database/php load:
<?php
require_once('./vBExternal.php');
ob_start();
output_NewestThreads(5,"1,2,3");
$html_file_contents = ob_get_contents();
ob_end_flush();
$result = $html_file_contents;
$fp = fopen("a1.html", "w");
fwrite($fp, $result);
fclose($fp);
?>
Only problem left is the fact that this 'save' script is simply a process for storing the data, I don't want it to output the information as well. Is there anyway to hide the public output of "output_NewestThreads(5,"1,2,3");", so that the script simply loads, processes and saves without outputting the threads summary when it's loaded?
I also still need to find a way of displaying the START DATES (i.e. No.1 in post above) for the threads. It should just be a matter of adding an extra call like "'postuserid' => $Thread['postuserid'],", but I can't remember what to use for date?
TYorke
09-25-2005, 10:57 PM
I am getting this error
Fatal error: Call to a member function on a non-object in /home/cchla/public_html/forums/vBExternal.php on line 433
any ideas?
EDIT: I fixed my problem ... I did this by using
<?php
require_once('./vBExternal.php');
output_UsersOnline();
?>
Where I wanted my 'Users Online' to appear instead of at the top of the file as per the instructions ;)
chanzero
09-29-2005, 05:07 AM
I am getting this error
Fatal error: Call to a member function on a non-object in /home/cchla/public_html/forums/vBExternal.php on line 433
any ideas?
EDIT: I fixed my problem ... I did this by using
<?php
require_once('./vBExternal.php');
output_UsersOnline();
?>
Where I wanted my 'Users Online' to appear instead of at the top of the file as per the instructions ;)
i had vbexternal working fine, but i just upgraded to 3.5 Gold and now it's not working -- i get 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.
any ideas?
jcroft
09-29-2005, 05:08 AM
It's also not working for me in vB 3.5 final, but worked fine in RC3
Kusadasi-Guy
09-29-2005, 08:38 AM
not workin in vb3.5 gold
mark99
09-29-2005, 09:00 AM
I also get the same, it's stopped dead.
solokron
09-29-2005, 09:58 AM
Same in gold. Update update! ;)
Kusadasi-Guy
09-29-2005, 10:03 AM
****** IMPORTANT - SECURITY PROBLEM!!!!!!!!!!!!! ******
Please delete your custom page that powered by vBExternal if you updated your forums to VB3.5-Gold! It is showing your database's password in error message.
instead of -> Access denied for user: 'username@localhost' (Using password: YES)
it is showing -> Access denied for user: 'your-db-password@localhost' (Using password: YES)
--------------
There is a slight problem with the script and i have a temporary solution.
-------------
****** TEMPORARY SOLUTION ******
find your old /includes/class_core.php file (VB3.5RC or Beta) and change the name (for example -> /includes/class_core-old.php) then upload to server.
then open vBexternal.php and
find :
require_once('./includes/class_core.php);
change to:
require_once('./includes/class_core-old.php);
as i said, this is a temporary solution but it is working.
GamerzWorld
09-29-2005, 11:46 AM
Question : You came onto my forum and pmed my admin with my password, where did you find it and how did you find our URL?
Kusadasi-Guy
09-29-2005, 12:43 PM
yes i did, i found your forums here and wanted to warn you.
GamerzWorld
09-29-2005, 01:46 PM
yes i did, i found your forums here and wanted to warn you.
Can you please test for me if you can find it now, thanks
Kusadasi-Guy
09-29-2005, 02:17 PM
cant connect to your db as i dont know the username
if u changed the pass, then it is surely OK
chanzero
09-29-2005, 03:33 PM
****** IMPORTANT - SECURITY PROBLEM!!!!!!!!!!!!! ******
Please delete your custom page that powered by vBExternal if you updated your forums to VB3.5-Gold! It is showing your database's password in error message.
instead of -> Access denied for user: 'username@localhost' (Using password: YES)
it is showing -> Access denied for user: 'your-db-password@localhost' (Using password: YES)
--------------
There is a slight problem with the script and i have a temporary solution.
-------------
****** TEMPORARY SOLUTION ******
find your old /includes/class_core.php file (VB3.5RC or Beta) and change the name (for example -> /includes/class_core-old.php) then upload to server.
then open vBexternal.php and
find :
require_once('./includes/class_core.php);
change to:
require_once('./includes/class_core-old.php);
as i said, this is a temporary solution but it is working.
gah, i don't have my old class_core. can anyone attach it here?
solokron
09-30-2005, 12:47 AM
I was using this in 3.0x and upgraded to 3.5 and this version to find it does not work with gold. I don't have an old 3.5x class_core either.
gah, i don't have my old class_core. can anyone attach it here?
aus_dave
09-30-2005, 01:10 AM
Is this still supported by the author? I tried installing this yesterday to use with 3.5 and have run into the same database problems as others have.
chanzero
09-30-2005, 01:51 AM
here's class_core.php from 3.5 RC2 which worked for me
mods, if this is against the rules i apologize (and feel free to remove, obviously)
solokron
10-01-2005, 02:07 AM
This old class_core results in DB connect issues for me.
here's class_core.php from 3.5 RC2 which worked for me
mods, if this is against the rules i apologize (and feel free to remove, obviously)
mark99
10-01-2005, 07:08 AM
Try this one from my RC3, it's the one I use and is as close to GOLD release as you're going to get without the bug. Sadly this is no solution and I hope the author returns to this wonderful mod and fixes it since there's not much in the way of alternatives.
Remember to place it under the /includes dir as usual and change the call inside the vBE file to it.
that is not the proper way to get this running.
That core file is crucial to vBulletin and by replacing the new one with an old one, may in fact create bigger problems for you.
I am going to install it on mine and play with it. If I can come up with a solution I willpost it here.
phonexpo
10-04-2005, 08:46 AM
I'm a bit lost on this one... :ermm:
My forum is at www.phonexpo.net/index.php (http://www.phonexpo.net/index.php) & my main site is at www.phonexpo.net (http://www.phonexpo.net) (welcome.html file name).
It says;
How To Use vBExternal:
First the webpage you use it on must be php, if it is .htm/.html just re-name the extension to .php
Next step is to call the file, in this example we assume that your site is: http://hello.com (http://hello.com/), and your
forum is located at: http://hello.com/forums, so insert this code at the very top of our php file:
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
So do I have to change the welcome.html file name to welcome.php ?
solokron
10-04-2005, 10:33 AM
That or parse html as php via a .htaccess rule.
At the moment this extension does not work with 3.5 gold anyhow so don't waste your time.
I'm a bit lost on this one... :ermm:
My forum is at www.phonexpo.net/index.php (http://www.phonexpo.net/index.php) & my main site is at www.phonexpo.net (http://www.phonexpo.net) (welcome.html file name).
It says;
So do I have to change the welcome.html file name to welcome.php ?
phonexpo
10-04-2005, 01:01 PM
Ah ok, thanks for the reply... ;)
That or parse html as php via a .htaccess rule.
At the moment this extension does not work with 3.5 gold anyhow so don't waste your time.
rabidkevin
10-04-2005, 09:05 PM
How bout adding support for pulling X number of Calendar events?
bhxtyrant
10-05-2005, 12:22 AM
Oh man so are you guys telling me this mod won't work with the final release of vB 3.5?Man this blows i am in the process of upgrading to 3.5 and this mod is an important part of my site.Hope someone can get it runnign soon.
csidlernet
10-05-2005, 02:04 AM
thanks man this is exactly what i've been looking for!
tamborinegal
10-05-2005, 02:13 AM
It's exactly what I've been looking for too. But now that I've upgraded to the latest vBulletin, I can't use it :(
mark99
10-06-2005, 11:22 AM
I sent ZT (author) a message and know he was online yesterday, but don't think he's read it. Hopefully he or 'jugo' will be able to find out where the problem is and fix it.
solokron
10-08-2005, 07:44 AM
As it appears Zero Tolerance is on vacation are there any alternatives to this that you may have found to be successful? External Javascript for example?
Kusadasi-Guy
10-08-2005, 11:36 AM
:banana:
<---------- Problem Solved ------------>
i think i solved the slight issue. I have tested this in my local server and vBexternal worked as expected.
here is the solution:
1. Open Vbexternal.php and find:
$config['MasterServer']['servername'],
2. add below:
$config['MasterServer']['port'],
</---------- Problem Solved ------------>
----
optionally:
find: $config['SlaveServer']['servername'],
add below: $config['SlaveServer']['port'],
----
Please let me know if it isnt useful solution for your forums.
solokron
10-08-2005, 11:45 AM
:up:
:banana::banana::banana::banana:
:banana:
<---------- Problem Solved ------------>
i think i solved the slight issue. I have tested this in my local server and vBexternal worked as expected.
here is the solution:
1. Open Vbexternal.php and find:
$config['MasterServer']['servername'],
2. add below:
$config['MasterServer']['port'],
</---------- Problem Solved ------------>
----
optionally:
find: $config['SlaveServer']['servername'],
add below: $config['SlaveServer']['port'],
----
Please let me know if it isnt useful solution for your forums.
mark99
10-08-2005, 12:52 PM
w00t =).
Kusadasi-Guy
10-08-2005, 01:53 PM
ermmm, means worked?
JWalker05
10-09-2005, 01:23 AM
works like a charm. THANKS!
bhxtyrant
10-09-2005, 01:35 AM
:banana:
<---------- Problem Solved ------------>
i think i solved the slight issue. I have tested this in my local server and vBexternal worked as expected.
here is the solution:
1. Open Vbexternal.php and find:
$config['MasterServer']['servername'],
2. add below:
$config['MasterServer']['port'],
</---------- Problem Solved ------------>
----
optionally:
find: $config['SlaveServer']['servername'],
add below: $config['SlaveServer']['port'],
----
Please let me know if it isnt useful solution for your forums.
Tested and works for me as well :D thanks man.
great work - thanks man :up:
Peace_Hope
10-09-2005, 03:17 PM
fixed
tamborinegal
10-09-2005, 11:08 PM
That's great Kusadasi-Guy! Thanks for sharing the fix :)
dSpotter
10-10-2005, 06:05 AM
Thanks for the fix, got mine to work too!
One question though, how do I go about removing that box around the information? I edited the page newest_threads.html but it still showing up?
Derrick
mark99
10-10-2005, 06:40 AM
Just replace it with a standard HTML table if you like, the information output vars in the template file can be shifted however you please.
dSpotter
10-10-2005, 06:40 PM
Just replace it with a standard HTML table if you like, the information output vars in the template file can be shifted however you please.
Are you referring to changing the information in newest_threads.html correct? I even deleted the table and a box still shows up around the information?
BassX
10-10-2005, 10:04 PM
Did you remove the <fieldset></fieldset> ?
If not, remove that and you should be good.
andyl56
10-11-2005, 05:20 PM
$config['SlaveServer']['port'],
Thanks!
dSpotter
10-11-2005, 09:42 PM
Did you remove the <fieldset></fieldset> ?
If not, remove that and you should be good.
That worked thank you!
Kusadasi....good work. You beat me to it..
Simms
10-15-2005, 12:11 PM
Has anybody has any luck getting images to appear properly? That's the only thing still tripping me up.
Mireade
10-16-2005, 11:53 AM
Hello,
I love the simplicity of this hack. Thanks to the author and thanks to the great contributors of this thread.
It works great. I hope the security issue will be solved.
I would appreciate to have other templates working in this hack. For example I wish to display the total loggedinusers number and the total registered users number.
Would it be possible ?
And How ?
Thank you all.
Michel
TF|Scorpion
10-16-2005, 04:54 PM
:banana:
<---------- Problem Solved ------------>
i think i solved the slight issue. I have tested this in my local server and vBexternal worked as expected.
here is the solution:
1. Open Vbexternal.php and find:
$config['MasterServer']['servername'],
2. add below:
$config['MasterServer']['port'],
</---------- Problem Solved ------------>
----
optionally:
find: $config['SlaveServer']['servername'],
add below: $config['SlaveServer']['port'],
----
Please let me know if it isnt useful solution for your forums.
Fantastic bro, Thanks!! Now it works *Thumbs UP*
ludachris
10-17-2005, 04:22 PM
How difficult would it be to add PM and login info?
Parture
10-17-2005, 09:57 PM
I am a confused lad. I copied all these files into an html file and renamed the file .php, then I uploaded to the sever and placed it in the ./forums folder along with the other html files and .php file I was told to upload from the upload folder.
What am I doing wrong?
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
<?php
output_NewestMembers(5);
?>
<?php
output_TopPosters(5);
?>
<?php
output_NewestThreads(5,"1,2,3");
?>
<?php
output_NewestReplies(5,"1,2,3");
?>
<?php
output_News(5,4);
?>
<?php
output_UsersOnline();
?>
gael11
10-19-2005, 03:00 PM
****** IMPORTANT - SECURITY PROBLEM!!!!!!!!!!!!! ******
Please delete your custom page that powered by vBExternal if you updated your forums to VB3.5-Gold! It is showing your database's password in error message.
instead of -> Access denied for user: 'username@localhost' (Using password: YES)
it is showing -> Access denied for user: 'your-db-password@localhost' (Using password: YES)
--------------
There is a slight problem with the script and i have a temporary solution.
-------------
****** TEMPORARY SOLUTION ******
find your old /includes/class_core.php file (VB3.5RC or Beta) and change the name (for example -> /includes/class_core-old.php) then upload to server.
then open vBexternal.php and
find :
require_once('./includes/class_core.php);
change to:
require_once('./includes/class_core-old.php);
as i said, this is a temporary solution but it is working.
I use vb 3.5 gold and I have done this tempory solution but it doesn't work. Is there another solution please ?
gael11
10-20-2005, 07:55 AM
up :D
The solution is four posts above yours. :tired:
gael11
10-20-2005, 08:29 AM
Oooops great it works now. Thanks welo
VaaKo
10-20-2005, 09:27 AM
I just have one question, can we like post information from our forums on another website?
my forum is www.lebforces.org/forum and I wanna poste some info on www.lebanese-forces.com
is it posssible?
I just have one question, can we like post information from our forums on another website?
my forum is www.lebforces.org/forum and I wanna poste some info on www.lebanese-forces.com
is it posssible?
If both sites are on the same server you can do this by using the full path in your chdir and require_once statements:
chdir('/home/username/public_html/forums');
require_once('/home/username/public_html/forums/vBExternal.php');
This is also the workaround if your forum occupies a subdomain on a separate server account.
Has anybody has any luck getting images to appear properly? That's the only thing still tripping me up.
Change this line (towards the end of the file):
$Data = str_replace('images/',"{$vbulletin->options[bburl]}/images/",$Data);
to
// $Data = str_replace('images/',"{$vbulletin->options[bburl]}/images/",$Data);
PS if anyone is interested I have this working with DeanC's "DC SEO Plugin" https://vborg.vbsupport.ru/showthread.php?t=91324
See my WIP here http://www.ejuan.com/index2.php
Let e know and i'll do a write up.
Xtrm2Matt
10-22-2005, 10:17 AM
Great plugin. The news script my friend wrote no longer works with 3.5.0 but this works fantastically.
One problem though. A script I made to just display basic user info (such as username via $vbulletin->userinfo[xxx]) no longer works. I can include one of the needed files (/includes/functions_user.php), but once global.php is included, everything breaks giving this error:
Fatal error: Cannot redeclare class vbulletinhook in C:\dir\to\forums\class_hook.php on line 29
I believe Kru (hi Kru :p) also had a problem with this a few pages back where the "Login on a Non-VB page" required global.php to be included also and gave the same error.
Any ideas how I can fix this? :)
---
Also, the images/smileys showed perfect for me without needing to edit anything :)
---
Ta,
Matt
Comment out the following two lines:
$vbulletin =& new vB_Registry(); // Fake an OOP Object
and
class vBulletinHook { function fetch_hook() { return false; } }
Great plugin. The news script my friend wrote no longer works with 3.5.0 but this works fantastically.
One problem though. A script I made to just display basic user info (such as username via $vbulletin->userinfo[xxx]) no longer works. I can include one of the needed files (/includes/functions_user.php), but once global.php is included, everything breaks giving this error:
Fatal error: Cannot redeclare class vbulletinhook in C:\dir\to\forums\class_hook.php on line 29
I believe Kru (hi Kru :p) also had a problem with this a few pages back where the "Login on a Non-VB page" required global.php to be included also and gave the same error.
Any ideas how I can fix this? :)
---
Also, the images/smileys showed perfect for me without needing to edit anything :)
---
Ta,
Matt
Xtrm2Matt
10-22-2005, 12:19 PM
Comment out the following two lines:
$vbulletin =& new vB_Registry(); // Fake an OOP Object
and
class vBulletinHook { function fetch_hook() { return false; } }
Gives an error when I do this:
Fatal error: vB_Database::Registry object is not an object in C:\dir\to\forums\includes\class_core.php on line 203
Matt
VaaKo
10-22-2005, 09:58 PM
If both sites are on the same server you can do this by using the full path in your chdir and require_once statements:
chdir('/home/username/public_html/forums');
require_once('/home/username/public_html/forums/vBExternal.php');
This is also the workaround if your forum occupies a subdomain on a separate server account.
no, both sites are not on the same server!
would it work if I insert the full url not the path, or what?
Gives an error when I do this:
Fatal error: vB_Database::Registry object is not an object in C:\dir\to\forums\includes\class_core.php on line 203
Matt
make sure you have global.php included or else it will not work.
Xtrm2Matt
10-22-2005, 11:27 PM
make sure you have global.php included or else it will not work.
Global.php is included.
Matt
no, both sites are not on the same server!
would it work if I insert the full url not the path, or what?
Using a URL won't work as a PHP security measure. Otherwise what's stopping you from including content from someone else's site? Must be the full server filepath.
GrendelKhan{TSU
10-25-2005, 06:09 AM
confused...what's the final word?...
does this to work with 3.5 gold or not?
GrendelKhan{TSU
10-25-2005, 07:00 AM
different question:
my whole site is basically in asp. or .net....am I screwed?
edit: ok sorry..I'm a n00b to the nth degree. so sorry if this is a stupid question: I am correct that the WEBSITE has to still be on the same host as the FORUMS?
like...it can't really be a TOTALLY different site (with different host)? Is that correct?
Xtrm2Matt
10-25-2005, 09:38 AM
confused...what's the final word?...
does this to work with 3.5 gold or not?
Works fine for my site using v3.5 Gold.
Apart from a few conflict errors with a script I wrote.
GrendelKhan{TSU
10-25-2005, 01:05 PM
Works fine for my site using v3.5 Gold.
Apart from a few conflict errors with a script I wrote.
cool.
how about the question about site host...I'm a n00b to the nth degree.
so sorry if this is a stupid question: I am correct that the WEBSITE has to still be on the same web host as the FORUMS??
like...it can't really be a TOTALLY different site (with different host)? Is that correct?
Xtrm2Matt
10-25-2005, 01:14 PM
That's correct :)
Matt
Sai01
10-26-2005, 07:28 AM
I just upgrade my forum to 3.50 gold and now this doesn't work. it shows database error in my home page... do i have to delete the file and reupload them? because it's not working...
Sai01
10-26-2005, 08:16 AM
ok i need serious help... i did everything i could, it shows database error after i upgrade my forum. i re-uploaded the files... i know everything is right cause i install this once before... but...
this message kept showing up on my home page (index.php in 'home directory') where this code was placed for home page "news"
the message is this...
"There seems to have been a problem with the database.
Please try again by clicking the Refresh button in your web browser."
every other page works, other .php page works, forum works fine and everything is fine... I make a test.php page with nothing on it just a blank page with the following code.
<head>
<title>Test</title>
<?php
chdir('./forum');
require_once('./vBExternal.php');
?>
</head>
<body>
<?php
output_UsersOnline();
?>
</body>
upload it to my home directory and the same message shows...
how do i fix this? it act as thou it cannot read from the database...even thou the forum is working better than ever!
mark99
10-26-2005, 11:43 AM
Read back a few pages and you'll find that somebody solved the problems highlighted with a simple edit to the main .php file. I think it was that the database connection code failed to include the new "port" variable, which was added into the class_core and config.php files with the v3.5 GOLD release.
@Xtrm2matt does it still give you an error if so, please post your vBExternal here so I can hae a look.
People...if you want to pull threads from another site's vBulletin install use EXTERNAL.PHP
nokturno
10-27-2005, 01:36 PM
cool!!
subnet_rx
10-29-2005, 06:18 PM
I would still like to see a calendar function added to this :)
Daniel
10-29-2005, 06:21 PM
Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in /home/nikzad0/public_html/forum/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/nikzad0/public_html/forum/vBExternal.php on line 67
Any idea what I did wrong?
Simms
10-29-2005, 10:37 PM
Change this line (towards the end of the file):
$Data = str_replace('images/',"{$vbulletin->options[bburl]}/images/",$Data);
to
// $Data = str_replace('images/',"{$vbulletin->options[bburl]}/images/",$Data);
Delayed response, but wanted to let you know this worked perfectly. Thanks!
Xtrm2Matt
11-04-2005, 09:40 PM
@Xtrm2matt does it still give you an error if so, please post your vBExternal here so I can hae a look.
People...if you want to pull threads from another site's vBulletin install use EXTERNAL.PHP
I seem to have gotten it fixed now :)
Thanks for all the help,
Matt
apdcanari
11-05-2005, 03:52 PM
Hello,
How to post the total number members and posts on a page of its site?
For example : The forum had 55.000 posts and 2.000 members
My code with Vbulletin 3.0.7
Count member
<?php
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM vb3_post');
$totalposts=number_format($countposts['posts']);
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM vb3_user');
$numbermembers=number_format($numbersmembers['users']);
echo "$numbermembers";
?>
Count Posts
<?php
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM vb3_post');
$totalposts=number_format($countposts['posts']);
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM vb3_user');
$numbermembers=number_format($numbersmembers['users']);
echo "$totalposts";
?>
Thank you very much,
Good evening
C?dric
PS : I'm french and i don't speak English very well... :ermm:
Xtrm2Matt
11-05-2005, 04:36 PM
Hello,
How to post the total number members and posts on a page of its site?
For example : The forum had 55.000 posts and 2.000 members
My code with Vbulletin 3.0.7
Count member
..
Count Posts
..
Thank you very much,
Good evening
C?dric
PS : I'm french and i don't speak English very well... :ermm:
I fixed your script for you -> http://www.opticalgaming.com/forums/test2.php
Code changes:
<?php
$countposts=$vbulletin->db->query_first('SELECT COUNT(*) AS posts FROM prefix_post');
$totalposts=number_format($countposts['posts']);
$numbersmembers=$vbulletin->db->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM prefix_user');
$numbermembers=number_format($numbersmembers['users']);
echo "Total Posts: $totalposts";
echo "<br>";
echo "Total Members: $numbermembers";
?>
I made a small change - didn't see the need for 2 scripts where 1 could be used.
Hope this helps :)
Matt
apdcanari
11-05-2005, 04:48 PM
Thanks a lot !!!
It's ok
Cédric :nervous:
gopherhockey
11-07-2005, 01:34 PM
Nice!
Xtrm2Matt
11-07-2005, 02:03 PM
Lovely edit there, gopher!! :P Was about to reply!!
Back on topic..
Will there be any further extensions to this? I love it and would like to see a bit more :) Possible following on from the news.. how about a Poll-pulling function?
Hard to explain, but: I have a "dedicated poll forum" on my forum where polls are (and can only be) created. Would it be possible to pull the latest poll made by -->AN ADMIN<-- (would work by specifying the Admin usergroup or a group that could display polls on the front page?) and have it put it on the front page?
Hope it's clear :)
Matt
blue6995
11-10-2005, 04:28 PM
I am obviously doing something wrong - I keep getting this message when trying to open a test webpage I produced calling vb stats
Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in /homepages/18/d121175559/htdocs/vBulletin/vBExternal.php on line 67
Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.:/usr/local/lib/php') in /homepages/18/d121175559/htdocs/vBulletin/vBExternal.php on line 67
Any idea what is wrong?
i-Symbian.Com
11-11-2005, 04:44 PM
Great Hack!!!
3 questions :-
1. How to display News from multiple forum ids?
################################################## #
# 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)
################################################## #
2. How to display time of the post in the News?
3. How to limit characters in the News to a specified number. e.g. the first1500 characters and add a "Read more"?
Cheers!
:)
majorxp
11-14-2005, 09:22 PM
is it possible to display the message in the last news ?
maybe like in the last X posts 3.1 ?
I would love to know this as well.
mikehawk
11-14-2005, 09:34 PM
Warning: main(./realboards/vBExternal.php): failed to open stream: No such file or directory in /home/.gambia/realopin/realopinion.com/index.php on line 3
Fatal error: main(): Failed opening required './realboards/vBExternal.php' (include_path='.:/usr/local/lib/php') in /home/.gambia/realopin/realopinion.com/index.php on line 3
:ermm:
mikehawk
11-14-2005, 09:57 PM
Alright it is now working on my index.
Now, how do I change the font, etc? It is taken strictly from my html code specs in my index.html or from VBexternal.php?
mikehawk
11-14-2005, 10:00 PM
NVM, i'm an idiot. :disappointed:
BassX
11-15-2005, 03:58 PM
2. How to display time of the post in the News?
Cheers!
:)
Find the following in ouput_News()
array(
'threadid' => $News['threadid'],
'threadname' => $News['title'],
'postuserid' => $News['postuserid'],
'postusername' => $News['postusername'],
'post' => $bbcode_parser->parse(unhtmlspecialchars($News['pagetext']), $f),
'comments' => vb_number_format($News['replycount']),
)
And add the following to the array:
'date' => vbdate($vbulletin->options['dateformat'], $News['dateline']),
'time' => vbdate($vbulletin->options['timeformat'], $News['dateline']),
Then add date and time to your template.
Would be cool if this could be updated to vB 3.5.1 ;)
i-Symbian.Com
11-16-2005, 05:10 AM
@BassX,
Thanks a million! :D
xug
I'm using vb 3.51 and it works perfectly! ;)
Cheers!
i-Symbian.Com
11-16-2005, 07:18 AM
I will answer my own question here ;)
How to limit News to certain characters?
Open vBexternal.php
Find
'post' => $bbcode_parser->parse(unhtmlspecialchars($News['pagetext']), $f),
Replace with
'post' => $bbcode_parser->parse(unhtmlspecialchars(substr ($News['pagetext'],0,250)), $f),
Change 250 to any numbers you wish and this will be pulled from the database.
Cheers!
Dontom
11-16-2005, 01:55 PM
any chance to get the script fixed itself? I do not have any of the older vb3.5 files here
Thomas
Xtrm2Matt
11-16-2005, 07:59 PM
Just had an idea.
Is there any possibilty of adding a number to users online? Such as:
Users online: 1
- Xtrm2Matt
Users online: 2
- Xtrm2Matt
- Joe
etc etc.
Thanks :)
Matt
1nsane
11-16-2005, 10:20 PM
Wow! awesome! This was just what I needed! Now my clan site looks just about perfect (www.dcsclan.net) Thanks alot!
Sol_Invictus
11-19-2005, 09:19 PM
It doesn't seem to work on 3.5.1. It just gives some errors:
<!--
Database error in vBulletin :
mysql_connect(): Access denied for user: '(mypasswordgoeshere?wtf)@localhost' (Using password: YES)
/home/user52/public_html/forum/includes/class_core.php on line 273
MySQL Error :
Error Number :
Date : Saturday, November 19th 2005 @ 05:16:35 PM
Script : http://www.(mysitesurl).com/forum/vBExternal.php
Referrer :
IP Address : (my ip cleared for privacy reasons)
Username :
Classname : vb_database
-->
Xtrm2Matt
11-19-2005, 09:25 PM
Works fine on my vB 3.5.1.
You need to look back on page ~4 for the fix for that, Sol.
Matt
Sol_Invictus
11-19-2005, 10:02 PM
WOW. It works great! Thanks.
allstar77
11-20-2005, 05:09 AM
Hi, the script works great, but when i put the script in my php template, i become errors with my template:
Warning: main(./content/news.php): failed to open stream: No such file or directory in /www/htdocs/nfslogin/index.php on line 100
Warning: main(./content/news.php): failed to open stream: No such file or directory in /www/htdocs/nfslogin/index.php on line 100
Fatal error: main(): Failed opening required './content/news.php' (include_path='.:/usr/share/php:..') in /www/htdocs/nfslogin/index.php on line 100
Line 100 is this:
require $aufruf[$script['kat'] ].".php";
What can i do ?
irishblacknight
11-20-2005, 11:02 AM
WOW. It works great! Thanks.
Is there a fix that doesn't use the older core files???
<a href="https://vborg.vbsupport.ru/showpost.php?p=790013&postcount=77" target="_blank">This fixes it</a>.
allstar77
11-21-2005, 03:26 PM
Please help :(
Eggie
11-25-2005, 12:04 AM
Sorry, but does vbexternal.php and the vbexternal folder go into /public_html for my portal index I'm trying to create or in my /forums folder where vB is? I tried both but only get a blank page
Eggie
11-26-2005, 05:03 AM
anyone???
RealityDesign
11-26-2005, 08:01 AM
"$config['MasterServer']['servername']," is not anywhere in my vbexternal.php :(
Do I have some messed up version? I just downloaded it 5 mins ago so I would asume it's up to date...
Anyway, because I cannot find that line, I cannot apply the fix.
RealityDesign
11-26-2005, 08:07 AM
Re-downloaded the hack and the vbexternal.php file was a different size after I unzipped it. Opened it up, and the line I needed was there this time. VERY WEIRD.
Anyway, it works!
Thanks :)
Milez
12-01-2005, 08:23 AM
Any chance of pulling news from more than 1 forum ID? Please please.
mathias
12-04-2005, 10:02 PM
on newestthread I want to limit the characters how can I do that?
Sorry, but does vbexternal.php and the vbexternal folder go into /public_html for my portal index I'm trying to create or in my /forums folder where vB is? I tried both but only get a blank page
Everything goes in your forums dir.
Any chance of pulling news from more than 1 forum ID? Please please.
Yes... Just let me know which function and i'll generate the code for you.
on newestthread I want to limit the characters how can I do that?
if you mean in the thread title....
change this:
'threadname' => $Thread['title'],
to this (the 20 is the number of characters to display):
substr($Thread['title'],0,20),
Alright it is now working on my index.
Now, how do I change the font, etc? It is taken strictly from my html code specs in my index.html or from VBexternal.php?
USE CSS. Very Simple.
wiredinoc
12-07-2005, 05:56 AM
I fixed your script for you -> http://www.opticalgaming.com/forums/test2.php
Code changes:
<?php
$countposts=$vbulletin->db->query_first('SELECT COUNT(*) AS posts FROM prefix_post');
$totalposts=number_format($countposts['posts']);
$numbersmembers=$vbulletin->db->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM prefix_user');
$numbermembers=number_format($numbersmembers['users']);
echo "Total Posts: $totalposts";
echo "<br>";
echo "Total Members: $numbermembers";
?>
I will answer my own question here ;)
How to limit News to certain characters?
Open vBexternal.php
Find
'post' => $bbcode_parser->parse(unhtmlspecialchars($News['pagetext']), $f),
Replace with
'post' => $bbcode_parser->parse(unhtmlspecialchars(substr ($News['pagetext'],0,250)), $f),
Change 250 to any numbers you wish and this will be pulled from the database.
Guys, this kicks complete ass! I'm a new user, but I'm quickly getting up to speed with the help of you fine folks!!
I have 2 questions:
1. Considering the code above, how would I apply it to the title of latest posts, and display "..." if the title goes beyond the desired limit?
2. Where do I place the "total members" code above? I'm kinda at a loss with this one. Does it go into vbexternal.php? How is it called?
Thanks soo much guys, this is awesome.
MD
Freakpyromaniac
12-09-2005, 10:35 AM
The script is working fine, thanks!
But i still have one problem!
It disabled another script which i was using in the website:
<?PHP
function checkPage($page) {
//Controle
if($page=="index") return false;
$page.=".php";
return file_exists($page);
}
$page=$_GET['page'];
if(!isset($page) || empty($page)) $page="nl/home";
if(checkPage($page)) include($page.".php");
?>
it is just a page script,but not working anymore when i put:
<?php
chdir("../../HTML/testforum/");
include('./vBExternal.php');
?>
in the head of the index.
Anybody know the reason, and has a solution?
Feckie (Roger)
12-11-2005, 11:15 AM
Why do I get
Warning: chdir(): No such file or directory (errno 2) in /home/rogerben/public_html/XXXXXXXXXX.com/forum/test.php on line 6
Line 6 Being
chdir('./forum');
It Then Displays OK Underneath
Anyone
Feckie (Roger)
12-11-2005, 12:56 PM
bump
Feckie (Roger)
12-11-2005, 07:06 PM
Ok sorted the problem deleted it and it works perfectly
ludachris
12-16-2005, 04:50 PM
How would we go about adding latest 10 events posted in the Calendar with vbExternal? Of course, we'd have to be able to specify the date range just like you do on the vb forum homepage options. I think this would be great to have on non-vb pages.
siNix
12-20-2005, 03:04 PM
is there any way to show the start date of the 'latest threads'?
gtcave
12-22-2005, 05:39 PM
ok this is what i did.
i downloaded it. and then unzipped the file.
Uploaded the contents of Upload to my forum root.
so its forums/vBExternal.php
and forums/vBExternal/...
and then i went to put in this code
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
at the top of my index.php file of my website.
and i keep getting a database error
saying 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.
___________________
Feckie (Roger)
12-22-2005, 06:07 PM
I had to DELETE The Following chdir('./forums');
Campbell
12-26-2005, 10:40 PM
ok this is what i did.
i downloaded it. and then unzipped the file.
Uploaded the contents of Upload to my forum root.
so its forums/vBExternal.php
and forums/vBExternal/...
and then i went to put in this code
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
at the top of my index.php file of my website.
and i keep getting a database error
saying 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.
___________________
You're not alone. I'm getting this as well. I'm betting we're both either idiots or there's a problem with the package as currently uploaded.
I'm leaning towards the former. If anyone has any clarity, it would be appreciated.
Best,
Al
Feckie (Roger)
12-26-2005, 10:54 PM
You're not alone. I'm getting this as well. I'm betting we're both either idiots or there's a problem with the package as currently uploaded.
I'm leaning towards the former. If anyone has any clarity, it would be appreciated.
Best,
Al
Delete the Following
chdir('./forums');
Then Try It
adydas
12-27-2005, 12:24 AM
I am getting the same thing here is my error
<!--
Database error in vBulletin :
mysql_connect(): Access denied for user: 'password@localhost' (Using password: YES)
/home/site/public_html/forum/includes/class_core.php on line 273
MySQL Error :
Error Number :
Date : Monday, December 26th 2005 @ 06:21:21 PM
Script :
Referrer :
IP Address :
Username :
Classname : vb_database
-->
This seemed odd to me, Access denied for user: 'password@localhost' , shouldnt it be username@localhost.
adydas
12-27-2005, 12:29 AM
Nevermind, see page four fix
Change your $page variable to something else.... like $pg.
The script is working fine, thanks!
But i still have one problem!
It disabled another script which i was using in the website:
<?PHP
function checkPage($page) {
//Controle
if($page=="index") return false;
$page.=".php";
return file_exists($page);
}
$page=$_GET['page'];
if(!isset($page) || empty($page)) $page="nl/home";
if(checkPage($page)) include($page.".php");
?>
it is just a page script,but not working anymore when i put:
<?php
chdir("../../HTML/testforum/");
include('./vBExternal.php');
?>
in the head of the index.
Anybody know the reason, and has a solution?
Dave-ahfb
12-27-2005, 10:44 PM
is there any way to show the start date of the 'latest threads'?
I have tried doing this using the same method posted above for adding the date to latest news output.
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']),
'date' => vbdate($vbulletin->options['dateformat'], $Thread['dateline']),
'time' => vbdate($vbulletin->options['timeformat'], $Thread['dateline']),
'lastposter' => $Thread['lastposter'],
)
Of course I changed News to Thread, still cannot get it to work.
hitmanuk2k
12-29-2005, 12:21 PM
Fixed.
Totti
12-30-2005, 01:43 PM
hmm ... it shows up the latest posts/thread even from private boards ... any way to exclude board IDs?
gyutae
12-31-2005, 06:07 AM
does this hack work with the vbseo hack? Does anyone know how to use vbexternal with rewrites?
hitmanuk2k
01-01-2006, 02:56 PM
I would like the number of views on the news articles one (I list them a bit differently and have a read more button which links to the threads...). So how would I do that?
hitmanuk2k
01-01-2006, 02:57 PM
Forget that it was easy. Just needed to add
'views' => vb_number_format($News['views']),
hi,
when i wanted to display the users online i received a database error called:
Fatal error: Call to a member function unlock_tables() on a non-object in /srv/www/htdocs/***/html/forum/includes/functions.php on line 4366
Fatal error: Call to a member function unlock_tables() on a non-object in /srv/www/htdocs/***/html/forum/includes/functions.php on line 4366
what's the mistake?
hitmanuk2k
01-02-2006, 05:40 PM
QUESTION:
Is it possible, on the news, to link to the showpost.php for that individual post, as opposed to the showthread.php?
Now i get another error:
Fatal error: Cannot redeclare class vbulletinhook in /srv/www/htdocs/****/html/forum/includes/class_hook.php on line 29
Ok, this was the solution of my problem:
https://vborg.vbsupport.ru/showpost.php?p=801992&postcount=106
But there is another..
I want to display the online user in javascript - "box".
<a href="forum/online.php" onmouseover="return overlib('<?php output_UsersOnline(); ?>');" onmouseout="return nd();">Who's online?</a>
But this don't work.
Can i put the function of "output_UsersOnline" in a variable?
suhla
01-03-2006, 09:19 AM
Do we have a solution yet how to show the date and time of the newest replies? I know that works with the News, but I am not able to get this working with the newest replies as well. :(
Would be cool if it could show "Today, 12:30:18" or "Yesterday, 15:34:54" or "29.12.2005, 09:54:34". Could this be possible?
hitmanuk2k
01-03-2006, 11:23 AM
QUESTION:
Is it possible, on the news, to link to the showpost.php for that individual post, as opposed to the showthread.php? :rolleyes:
Dave-ahfb
01-05-2006, 03:54 PM
I dont have a call to db_mysql.php nor do I have calls to ./forum in this script. are you looking at a different script?
Totti
01-05-2006, 04:49 PM
hmm ... it shows up the latest posts/thread even from private boards ... any way to exclude board IDs?
come on guys,
anybody having this problem?!? don't you mind about the private threadtitles shown in public? :o
<a href="https://vborg.vbsupport.ru/showpost.php?p=756742&postcount=28" target="_blank">https://vborg.vbsupport.ru/showp...2&postcount=28</a>
VW Derf
01-09-2006, 03:07 AM
Any ideas how to have this check if a post has been approved? I manually moderate submitted topics for the 'front page news'. This works great with the news module, except all submision are seen BEFORE I can approve them. This generates invalid links.
Lynk Former
01-09-2006, 10:02 AM
Find the following in ouput_News()
array(
'threadid' => $News['threadid'],
'threadname' => $News['title'],
'postuserid' => $News['postuserid'],
'postusername' => $News['postusername'],
'post' => $bbcode_parser->parse(unhtmlspecialchars($News['pagetext']), $f),
'comments' => vb_number_format($News['replycount']),
)
And add the following to the array:
'date' => vbdate($vbulletin->options['dateformat'], $News['dateline']),
'time' => vbdate($vbulletin->options['timeformat'], $News['dateline']),
Then add date and time to your template.
Very nice... though it'd be cool if the GMT on the page where the news dates were being displayed were in sync with the forums default GMT and user preferences to give more accurate readings.
Totti
01-09-2006, 03:11 PM
https://vborg.vbsupport.ru/showpost.php?p=756742&postcount=28
thanks welo,
and what about hidden users? They are shown in the OnlineUsers of vBex :(
Alviker
01-09-2006, 08:44 PM
Run with vBulletin 3.5.1? :( :( Don't run me this hack... :( :(
Er... The next code, where I copy it?:
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
Can I copy It in a include of my WebSite? This include is "cab.php", is the header of the all my WebSite. Help please! :( :(
Sorry for my bad english :( :(.
Bye and thanks.
Atte. Alviker
ThePimp
01-12-2006, 04:59 PM
Is there a way to get the VB variable $thread[preview] into the newest_threads.html template?
ThePimp
01-14-2006, 01:15 PM
Is there a way to get the VB variable $thread[preview] into the newest_threads.html template?
Anyone?
hitmanuk2k
01-20-2006, 10:43 AM
Is it possible, on the news, to link to the showpost.php for that individual post, as opposed to the showthread.php?
I will pay if someone can give me a solution!
LiQuid ArroW
01-22-2006, 10:50 AM
Thanks alot Kusadasi-Guy, and thanks to the maker of course ;).
Totti
01-23-2006, 11:24 AM
and what about hidden users? They are shown in the OnlineUsers of vBex :(
i'd reall appreciate help as without a hint i couldn't use it ... showing online users, who appear in the forum as hidden is crap :D
ausnrl
01-23-2006, 07:46 PM
Can you make a login box and password box on your main site with this?
Totti
01-23-2006, 07:55 PM
check out this (https://vborg.vbsupport.ru/showthread.php?t=61112) hack for this
Citizen
01-24-2006, 02:23 AM
I get this error:
Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*domain*/public_html/forums/vBExternal.php on line 67
Fatal error: Call to undefined function: output_newestthreads() in /home/*domain*/public_html/scg.php on line 126
ThePimp
01-24-2006, 06:35 PM
Is there a way to get the VB variable $thread[preview] into the newest_threads.html template?
Does anyone know how to do this???
Shanoon
01-25-2006, 06:41 PM
Images won't show up when embedded onto the site... I tried Jugo's solution for this, but it didn't affect anything. It's honestly the weirdest thing... If I want to display an image in a /images/ directory, the script or something will add http://www.tsubasachronicle.net/forums/ (my forum directory) in front of /images/ automatically. I moved the images I wanted to display into a /misc-img/ folder and they work perfectly. :speechless:
Connector
01-25-2006, 07:42 PM
Thanks alot . :)
__________________
File Uploading (http://www.upload2share.com)
atosoup
01-29-2006, 10:58 AM
Thanks to evreyone in this thread that have posted and it possible for me to get this working,, Awsome hack..
2 questions..
1. Is it possible to Show guests aswell as logged in users in the who's online bit?
2. As I have the users_online in an Iframe I need to change the clickable username link to open in a new window and not the tiny Iframe,, Is this possible or can I disable the hyperlink?
Thanks in advance!
atosoup
01-29-2006, 11:43 AM
another little problem I have is "Hidden" forum users are still been displayed in my online users box .. Not great
http://www.atinof.com
DrewM
01-29-2006, 08:20 PM
I'm geting the fowling 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.
I had this on another page so I set up a test pafe and this was the code:
<?php
require_once('./vBExternal.php');
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<?php
output_News(5,4);
?>
</body>
</html>
tfederman
01-29-2006, 09:27 PM
I'm geting the fowling 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.
See if this helps. Find this line:
$config['MasterServer']['servername'],
and after it, add this line:
$config['MasterServer']['port'],
DrewM
01-29-2006, 09:42 PM
This does work. Thank you!
DrewM
01-30-2006, 10:17 AM
How do add the date posted for news?
atosoup
01-30-2006, 02:45 PM
Thanks to evreyone in this thread that have posted and it possible for me to get this working,, Awsome hack..
2 questions..
1. Is it possible to Show guests aswell as logged in users in the who's online bit?
2. As I have the users_online in an Iframe I need to change the clickable username link to open in a new window and not the tiny Iframe,, Is this possible or can I disable the hyperlink?
Thanks in advance!
Ok Iv sorted question 2.. But I would still Love to able to show the number of guests online.. Does anyone know if this is possible?
DrewM
01-30-2006, 06:30 PM
You would have to edit the templeate, then go thru vBExternal.php and well I don't know.
This working on 3.5.3? Last time I tried it didn't.. maybe I was doing something wrong. I'm thinking of giving it another go if it does.
atosoup
02-01-2006, 05:29 AM
This working on 3.5.3? Last time I tried it didn't.. maybe I was doing something wrong. I'm thinking of giving it another go if it does.
Yes.. we have 3.5.3 and have it working here
http://www.atinof.com
Sai01
02-02-2006, 06:32 AM
database error on VB3.52
was working before... sadly i can not upgrade to 353, member download area expired... so how do you fix this for 3.5.2? cause that's what i have right now.
exegete
02-02-2006, 02:36 PM
how about the question about site host...I'm a n00b to the nth degree.
so sorry if this is a stupid question: I am correct that the WEBSITE has to still be on the same web host as the FORUMS??
like...it can't really be a TOTALLY different site (with different host)? Is that correct?In fact, contrary to popular belief, this is not correct.
I understand that you're "a n00b", so you might want to ask someone for a translation if you don't quite follow all of this.
You just need to copy over your vB PHP files (/forum_root/*.php and /forum_root/includes/*.php) to your non-vB server so that you're able to include global.php. You will also need to modify your database settings in this copy of vB's config.php file to point to the remote mySQL server.
This works for me.
DrewM
02-02-2006, 07:16 PM
Does any one know how can display the latest news ona vb page???
This doesn't seem to parse [code] tags in posts for some reason...any fix for this?
Jay...
02-05-2006, 06:04 PM
right guys i really dont have a clue about php, but ive tried this and i cant get it to work, all i get is page not found. my forums are situated at www.donked.net/forums and here is teh code im using on my webpage
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><?php
chdir('./forums');
require_once('./vBExternal.php');
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
thats what i have at the top of the page
and heres the code where i want to show the info
If you have any questions about the site, please E-Mail me <a href="mailto:jay@donked.net">Jay@donked.net </a></p>
<p align="justify" class="style1">Newest Threads -<?php
output_NewestMembers(5);
?></p></td>
</tr>
</table>
please help me someone!
Sai01
02-05-2006, 06:51 PM
database error on VB3.52
was working before... sadly i can not upgrade to 353, member download area expired... so how do you fix this for 3.5.2? cause that's what i have right now.
anyone? still can't get it to work on vb352... :ermm:
People: This works on all 3.5.X builds if you read back a few pages, find the fixes, and take notes. Since 98% of everything you do on the web involves reading something, you'll thank yourself later. Sadly, this is a flagrantly unsupported hack.
Sai01
02-06-2006, 06:47 AM
People: This works on all 3.5.X builds if you read back a few pages, find the fixes, and take notes. Since 98% of everything you do on the web involves reading something, you'll thank yourself later. Sadly, this is a flagrantly unsupported hack.
well someone should edit the first post providing links to all the other posts that explain on how to fix it... since there isn't any support. doing that will help out alot!
well someone should edit the first post providing links to all the other posts that explain on how to fix it... since there isn't any support. doing that will help out alot!
Agreed, although over a few moons around here I have gone through several hacks and tried compiling all the patches, fixes etc. into one post, and as soon as a new page starts people are asking all the same questions again anyway. So I gave up. The best I can tell you right now is this thing works if you read through this thread and suss out the solutions.
mikeB
02-06-2006, 06:38 PM
can anyone tell me how (or if there is a way) to make it newest members to a specific usergroup - specific to banned and paying thx all
nicedreams
02-07-2006, 08:15 PM
This working on 3.5.3? Last time I tried it didn't.. maybe I was doing something wrong. I'm thinking of giving it another go if it does.
It worked for me on 3.5.3 after i added the line in post #205.
Jim
DrewM
02-09-2006, 09:27 PM
Heres a plugin for vb pages
Kirk Y
02-13-2006, 08:21 PM
People who are having issues with this in 3.5.x, take a look at Post Numbers: 205 and 181.
ThePimp
02-17-2006, 07:07 AM
Does anyone have a way to do the following?
1. Pull the $thread['preview'] variable into the function output_NewestThreads() function
2. Parse out BBCode + HTML from $thread['preview']
Basically, I am looking to add thread descriptions without BBCode/HTML to the output_NewestThreads() function, instead of just thread titles/links.
I've been searching for a way to do this for over a month now, with little or no headway into this. Any help will be greatly appreciated.
Thanks in advance.
ThePimp
02-17-2006, 06:34 PM
Does anyone have a way to do the following?
1. Pull the $thread['preview'] variable into the function output_NewestThreads() function
2. Parse out BBCode + HTML from $thread['preview']
Basically, I am looking to add thread descriptions without BBCode/HTML to the output_NewestThreads() function, instead of just thread titles/links.
I've been searching for a way to do this for over a month now, with little or no headway into this. Any help will be greatly appreciated.
Thanks in advance.
Anyone anyone anyone?
Echo echo echo...
GetGamer.com
02-18-2006, 11:59 PM
This is a great mod, but I'm having a problem with inline images. I have a forum that permits HTML code. I've used <img src="http://.... to insert images in the post. The forum topic displays properly (http://www.bigblueball.com/forums/google-talk-news/34139-google-talk-gets-graphical-smilies.html), but on the external page (http://www.bigblueball.com/) the image src gets screwed up.
The image source should point to (for example):
http://www.bigblueball.com/images/logos/gmail+talk.gif
but where I call the external routine, it modifies this to:
http://www.bigblueball.com/http://www.bigblueball.com/forums/images/logos/gmail+talk.gif
Any ideas on how to fix this?
mkoerner
02-20-2006, 01:49 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.
GetGamer.com
02-20-2006, 09:19 PM
This is a great mod, but I'm having a problem with inline images. I have a forum that permits HTML code. I've used <img src="http://.... to insert images in the post. The forum topic displays properly (http://www.bigblueball.com/forums/google-talk-news/34139-google-talk-gets-graphical-smilies.html), but on the external page (http://www.bigblueball.com/) the image src gets screwed up.
Any ideas on how to fix this?I "solved" this by commenting out line #466 of vBExternal.php:
// $Data = str_replace('images/',"{$vbulletin->options[bburl]}/images/",$Data);I haven't seen any negative impact, but maybe someone could confirm? The only thing I could see this "breaking" is smileys?
Chris_D
02-22-2006, 08:20 PM
Everything goes in your forums dir.
Yes... Just let me know which function and i'll generate the code for you.
if you mean in the thread title....
change this:
'threadname' => $Thread['title'],
to this (the 20 is the number of characters to display):
substr($Thread['title'],0,20),
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 :(
activa
02-28-2006, 01:12 AM
it still work in vb 3.5.4 ???
any change to make from vb 3.5.0 rc1 to work fine in vb 3.5.4 .
thanks in advance .
GetGamer.com
03-01-2006, 11:56 PM
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?
Lynk Former
03-04-2006, 06:28 AM
Hey guys, I have a bit of a request here... I'm looking to add a pseudo blog style comments system using vBExternal.
I have certain pages on my web site, reviews and articles and such which have a link at the bottom saying "You can post your comments about this review here." This leads people to a thread set up to let people make comments about that review or article or whatever.
What I'd like to do is to be able to show how many comments have been been made in a selected thread on the review page using vBExternal as "Comments (#)
Example:
Review page (http://www.thecrisiscenter.net/database/reviews/anime/h/hisandhercircumstances/thewolf/)
Comment thread (http://forums.thecrisiscenter.net/showthread.php?t=249)
GetGamer.com
03-05-2006, 02:41 PM
Hey guys, I have a bit of a request here... I'm looking to add a pseudo blog style comments system using vBExternal.
I have certain pages on my web site, reviews and articles and such which have a link at the bottom saying "You can post your comments about this review here." This leads people to a thread set up to let people make comments about that review or article or whatever.
What I'd like to do is to be able to show how many comments have been been made in a selected thread on the review page using vBExternal as "Comments (#)
Example:
Review page (http://www.thecrisiscenter.net/database/reviews/anime/h/hisandhercircumstances/thewolf/)
Comment thread (http://forums.thecrisiscenter.net/showthread.php?t=249)You can do a blog-like comment system with a modified style. Check out the posts on this page (http://www.bigblueball.com/) (created with vbExternal). You'll see a comment count. Click on the headline or the comment links and you'll go to the "article" with comments (http://www.bigblueball.com/forums/skype-news/34101-jajah-skype-slayer.html), just like you'd see in a blog. It's actually just a customized style applied to those "forums" that I want to appear that way. In my case, I use it for news.
vktechnology
03-05-2006, 04:07 PM
Thank for this fix
it worl perfect with VB3.5 Gold
:banana:
<---------- Problem Solved ------------>
i think i solved the slight issue. I have tested this in my local server and vBexternal worked as expected.
here is the solution:
1. Open Vbexternal.php and find:
$config['MasterServer']['servername'],
2. add below:
$config['MasterServer']['port'],
</---------- Problem Solved ------------>
----
optionally:
find: $config['SlaveServer']['servername'],
add below: $config['SlaveServer']['port'],
----
Please let me know if it isnt useful solution for your forums.
Tannerman
03-05-2006, 11:00 PM
I was pointed to this hack after my longtime use of the PluhNews mod seemed to break down after the 3.5 upgrade. Attempting to get this to work now on my blog-like site, but having some problems. I have read all posts in this and related threads. I have a couple questions if anyone is willing to chime in to help a long-time vB user, but programming clueless-guy...
My forums are located at:
http://forums.tannerworld.com, a subdomain which I assume is the same as http://www.tannerworld.com/forums
Since 2002, I've run a blog using content pulled from a forum on my vB. That content was pulled by PluhNews onto this subdomain page on the same server:
http://steveandamysly.tannerworld.com/index.php
Unable to get any additional support for PluhNews with the 3.5 upgrade, I thought I might give vBExternal a try. Unfortunately, I've been unsuccessful at this time. I've been testing the new page at http://steveandamysly.tannerworld.com/index3.php
Per the instructions, I've added the PHP call to the top of my page. The format for that has been:
<?php
chdir('./home/tannerwo/public_html/forums');
require_once('./home/tannerwo/public_html/forums/vBExternal.php');
?>
Unfortunately, this does not seem to do anything. I get the following error message:
Warning: chdir(): No such file or directory (errno 2) in /home/tannerwo/public_html/steveandamysly/index3.php on line 2
Warning: main(./home/tannerwo/public_html/forums/vBExternal.php): failed to open stream: No such file or directory in /home/tannerwo/public_html/steveandamysly/index3.php on line 3
Fatal error: main(): Failed opening required './home/tannerwo/public_html/forums/vBExternal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tannerwo/public_html/steveandamysly/index3.php on line 3Even when using the more basic call (removing the full directory path, I still get problems). For example, this does not work:<?php
chdir('./forums');
require_once('./vBExternal.php');
?>As has been noted, I've modified the vBExternal.php file as noted here (https://vborg.vbsupport.ru/showpost.php?p=790013&postcount=77), adding the $config['MasterServer']['servername'], element. Still no dice. My end result goal is to once again get my blog up and running again, very similar in format to what GetGamer.com did as noted in his post (https://vborg.vbsupport.ru/showpost.php?p=916438&postcount=234) (with post title, date, full post content, "Posted by" and "Comments" link). This is what I had going when using the PluhNews mod (which, for reference, sits broken here (http://steveandamysly.tannerworld.com/index2.php) with a handy "Could not select database" error since the 3.5 upgrade).
The fact that I can't even get the initial call to vBExternal working correctly, even though I've tried a bunch of combinations, makes me think that I'm missing something rather simple -- perhaps tied to my use of subdomains for content.
Can anyone take a look at what I've got and provide a possible course of action? I'd sure appreciate the direction.
Thanks,
Steve
TYorke
03-06-2006, 04:39 PM
You can do a blog-like comment system with a modified style. Check out the posts on this page (http://www.bigblueball.com/) (created with vbExternal). You'll see a comment count. Click on the headline or the comment links and you'll go to the "article" with comments (http://www.bigblueball.com/forums/skype-news/34101-jajah-skype-slayer.html), just like you'd see in a blog. It's actually just a customized style applied to those "forums" that I want to appear that way. In my case, I use it for news.
That's awesome work could you possibly show me how you got that to work like that? I've been looking for a way to ditch the traiditional 'news scripts' for the front page of my site and looking to integrating vbulletin with a news script but this would work just great. I'd be very interested in knowing how you accomplish.
TYorke
03-06-2006, 04:43 PM
I was pointed to this hack after my longtime use of the PluhNews mod seemed to break down after the 3.5 upgrade. Attempting to get this to work now on my blog-like site, but having some problems. I have read all posts in this and related threads. I have a couple questions if anyone is willing to chime in to help a long-time vB user, but programming clueless-guy...
My forums are located at:
http://forums.tannerworld.com, a subdomain which I assume is the same as http://www.tannerworld.com/forums
Since 2002, I've run a blog using content pulled from a forum on my vB. That content was pulled by PluhNews onto this subdomain page on the same server:
http://steveandamysly.tannerworld.com/index.php
Unable to get any additional support for PluhNews with the 3.5 upgrade, I thought I might give vBExternal a try. Unfortunately, I've been unsuccessful at this time. I've been testing the new page at http://steveandamysly.tannerworld.com/index3.php
Per the instructions, I've added the PHP call to the top of my page. The format for that has been:
<?php
chdir('./home/tannerwo/public_html/forums');
require_once('./home/tannerwo/public_html/forums/vBExternal.php');
?>
Unfortunately, this does not seem to do anything. I get the following error message:
Even when using the more basic call (removing the full directory path, I still get problems). For example, this does not work:<?php
chdir('./forums');
require_once('./vBExternal.php');
?>As has been noted, I've modified the vBExternal.php file as noted here (https://vborg.vbsupport.ru/showpost.php?p=790013&postcount=77), adding the $config['MasterServer']['servername'], element. Still no dice. My end result goal is to once again get my blog up and running again, very similar in format to what GetGamer.com did as noted in his post (https://vborg.vbsupport.ru/showpost.php?p=916438&postcount=234) (with post title, date, full post content, "Posted by" and "Comments" link). This is what I had going when using the PluhNews mod (which, for reference, sits broken here (http://steveandamysly.tannerworld.com/index2.php) with a handy "Could not select database" error since the 3.5 upgrade).
The fact that I can't even get the initial call to vBExternal working correctly, even though I've tried a bunch of combinations, makes me think that I'm missing something rather simple -- perhaps tied to my use of subdomains for content.
Can anyone take a look at what I've got and provide a possible course of action? I'd sure appreciate the direction.
Thanks,
Steve
Try using this instead
<?php
chdir('/home/tannerwo/public_html/forums');
require_once('/home/tannerwo/public_html/forums/vBExternal.php');
?>
TYorke
03-06-2006, 04:46 PM
I have a request myself now :)
In the Who's Online output, can line can I add (and where) so that when no users are browsing the forums, I can add a message saying so. Currently nothing is displayed and the output is just blank.
Any ideas?
Freesteyelz
03-06-2006, 11:59 PM
I had to use the full paths (/home/name/public_html/...) to all .php files to work. Is that normal and is it a security risk?
Kirk Y
03-07-2006, 02:35 AM
Yes, it's normal. The script needs to have the path to your forums. It's not a security risk, as nobody will be able to see the path. Aside from those capable of viewing files directly from your File Manager, FTP, etc.
Tannerman
03-07-2006, 03:10 AM
Try using this instead
<?php
chdir('/home/tannerwo/public_html/forums');
require_once('/home/tannerwo/public_html/forums/vBExternal.php');
?>
That did the trick. Thanks.
Now to work on the formatting...
hitmanuk2k
03-07-2006, 08:37 AM
My BBtags don't seem to parse on the news. I have the text limited to X characters as a preview, then they click to read more. But on this it just shows things like "...returns with [i]100 ..." etc.
TYorke
03-07-2006, 09:31 PM
I have a request myself now :)
In the Who's Online output, can line can I add (and where) so that when no users are browsing the forums, I can add a message saying so. Currently nothing is displayed and the output is just blank.
Any ideas?
No ideas? :(
Tannerman
03-08-2006, 12:52 AM
I stuck this into an pre-existing page that I have that references a stylesheet. However, all content pulled in by vBExternal does not seem to be formatted by the stylesheet. So my question is... do I need to reference the stylesheet elsewhere? If so, where do I place this style info?
hellekim
03-08-2006, 05:23 PM
I've the forum on another server than my actual website where I need this element to be added. The other servers address is foorumi.domain.com (it's forwarded with IP address).
Is there a solution for this?
Freesteyelz
03-08-2006, 09:42 PM
Thanks. Now I need to figure out how to remove images from the news.
Yes, it's normal. The script needs to have the path to your forums. It's not a security risk, as nobody will be able to see the path. Aside from those capable of viewing files directly from your File Manager, FTP, etc.
GetGamer.com
03-08-2006, 11:13 PM
That's awesome work could you possibly show me how you got that to work like that? I've been looking for a way to ditch the traiditional 'news scripts' for the front page of my site and looking to integrating vbulletin with a news script but this would work just great. I'd be very interested in knowing how you accomplish.Thanks! Here's the gist of how it's accomplished. A user named Dune on TAZ had done something similar on his web site (http://my.is/). I saw it, asked how he did it, and implemented on my site (with a few tweaks). He wrote up the process as an article which you can find here:
vBulletin as CMS (http://www.theadminzone.com/forums/showthread.php?t=6790)
BaBa2002
03-12-2006, 05:17 PM
hello
i get a database problem?
how can i fix this
PyrOxide
03-12-2006, 06:47 PM
Hi,
We have quite a bad problem. Stuff in QUOTE tags doesn't show on the main website where the thread from the forums is being output. It is imperative we are able to show quotes, how can we do this?
Thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.