View Full Version : Major Additions - [ITech] vBExternal Lite
Inferno Tech
05-15-2007, 10:00 PM
PLEASE REFER TO THE FOLLOWING THREAD FOR HELP/SUPPORT: https://vborg.vbsupport.ru/showthread.php?t=166791
----------------------------------
[ITech] vBExternal Lite
Created By Inferno Technologies (http://www.infernotechnologies.net)
Copyright 2004-2007
All rights reserved
Project Development Team: Zero Tolerance, Acid Burn
Project Lead: Iain "Decado" Kidd
----------------------------------
Ported from vBExternal 1.6 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=81943) created by Zero Tolerance to work with vBulletin 3.6.x
Features:
Easy integration with your existing php scripts
No coding experiance needed to make it work
Full parsing for bbtags and emoticons/smilies + auto URL correction (no red-x's)
Lets you put forum information on your homepage/webpage
Users online
Latest Threads w/preview
More Information *Here* (https://vborg.vbsupport.ru/showthread.php?s=&threadid=81943)
Installation Information:
Template modifications: 0
Database changes: 0
Files added: 5
Files modified: 1 (website page)
Installation difficulty: 2/5
Installation Instructions:
1) Unzip the folder and upload the contents of UPLOAD into your root directory
2) Read Useage instructions.txt and then you are done
Version History:
None so far.
Frequently Asked Questions:
Q: So does this able you to put like phrases and stuff in external sites?
A: At the moment it allows you to Display Newest Members, Top Posters, Newest Threads, Newest Replies, News and Users Online onto a page outside of your vbulletin directory.
Q: I have a problem. My page is located at root/cms and my forum at root/forum. It's isn't possible for me to locate the forum in a subfolder of /cms.
Is there any solution for this problem?
A:Yes there is a solution try this piece of code instead of the one that the instructions says to use:
<?php
chdir('../VB');
require_once('vBExternal.php');
?>
Q: How would i do this if theres 2 different domains involved
A: If the two domains are on both the same server and the same domain account then call you need to do is chdir out of your current account folder (www/public_html/testsite/) to the other domain folder (www/public_html/site2/)
Screenshot:
https://vborg.vbsupport.ru/attachment.php?attachmentid=27034&d=1118677511
(Thanks to C.Birch)
Acid Burn - Inferno Technologies Developer
Nudda
05-15-2007, 11:27 PM
awesome...ill check this out and get back once ive tested it out.
Shazz
05-15-2007, 11:47 PM
Looks Good Zero :)
Murty
05-16-2007, 05:09 AM
so does this able you to put like phrases and stuff in external sites?
Thanks a lot. Working good with 3.6.5. This may come in very handy.
Wulfnoth
05-16-2007, 08:45 AM
I have a problem. My page is located at root/cms and my forum at root/forum. It's isn't possible for me to locate the forum in a subfolder of /cms.
Is there any solution for this problem?
Inferno Tech
05-16-2007, 10:28 AM
so does this able you to put like phrases and stuff in external sites?
At the moment it allows you to Display Newest Members, Top Posters, Newest Threads, Newest Replies, News and Users Online onto a page outside of your vbulletin directory.
I have a problem. My page is located at root/cms and my forum at root/forum. It's isn't possible for me to locate the forum in a subfolder of /cms.
Is there any solution for this problem?
Yes there is a solution try this piece of code instead of the one that the instructions says to use:
<?php
chdir('../VB');
require_once('vBExternal.php');
?>
remembering to change VB to your forum's folder name
Acid Burn - Inferno Technologies Developer
projectego
05-16-2007, 11:56 AM
* projectego clicks install :)
devilsmania
05-16-2007, 05:19 PM
i have to upgrade to this version, i'd like to see something else added like 'show polls'
:S
thanks
Inferno Tech
05-16-2007, 06:32 PM
I am thinking of adding one or two more features into this (so keep an eye out for an update). But we are also going to be releasing a full version which shouldn't cost much that will have many more features available.
Acid Burn - Inferno Technologies Developer
devilsmania
05-16-2007, 07:21 PM
this sounds great :)
Hornstar
05-17-2007, 05:49 AM
hey could someone list the possibilities of using this, or provide a demo link of this in action, or a screen shot ^^ I think i know what i want to use this for, but just not certain. thanks.
Inferno Tech
05-17-2007, 06:42 AM
It is all listed within the first post by be, for the information if you click the link back to the original then you can get the info from there
Acid Burn - Inferno Technologies Developer
devilsmania
05-17-2007, 10:15 AM
like www.devilsmania.com it takes latest forum threads and some news(dedicated areas)
(still building/editing)
Exzee
05-17-2007, 06:46 PM
Is there a way to also include the date of the post that's exported to the news page?
FReeSTER
05-17-2007, 06:58 PM
Thank you, installed :)
Hornstar
05-18-2007, 09:16 AM
Is it easy or fairly easy to get it to look good in the non vb page (like get it to match in with the colours etc.)
and how long away is the pro version, and what features will it have?
MobileBros
05-18-2007, 02:25 PM
i have one questions
what happnes if i dont have a /forum and for example my forum are at mysite.com/ not mysite.com/forum and i would like to make my custom page have this info how would i edit my config?
<?php
chdir('../VB');
require_once('vBExternal.php');
?>
Inferno Tech
05-18-2007, 02:30 PM
<?php
require_once('vBExternal.php');
?>
that should do it for you.
Acid Burn - Inferno Technologies Developer
FiRe_MaStER
05-18-2007, 02:33 PM
Thanks a lot working
Inferno Tech
05-18-2007, 02:38 PM
Is it easy or fairly easy to get it to look good in the non vb page (like get it to match in with the colours etc.)
and how long away is the pro version, and what features will it have?
Yes for that all you will need to do is change the templates in the vBExternal folder. the pro version release date is still to be confirmed and just some of the features available include:
Top stats for RPG Inferno (if installed)
Show Polls
Latest Members
Top Posters
Acid Burn - Inferno Technologies Developer
snaku
05-19-2007, 11:25 AM
Is there any way to make pictures in the post appear on the website when you use the "Displaying News"?
bashy
05-20-2007, 03:30 PM
Hi
How would i do this if theres 2 different domains involved.#
forum: www.bashys-place.com/forums (http://www.bashys-place.com/forums)
i would like info to show
site: www.bashys-hosting.com (http://www.bashys-hosting.com)
Is there out special i need to do for this or some setting i need please?
or is it just:
chdir('http://www.bashys-place.com/forums');
require_once('http://www.bashys-place.com/forums/vBExternal.php');
EDIT: Actually i tried the above and nothing showed at all!
Inferno Tech
05-21-2007, 06:40 PM
Question: Are the two domains on the same server and/or same hosting account?
Acid Burn - Inferno Technologies Developer
bashy
05-21-2007, 07:05 PM
Hi m8
There on the same server but different account.
Inferno Tech
05-21-2007, 07:25 PM
unfortunatly due to security reasons on yourserver you wouldnt be able to use it cross site due to php security
Acid Burn - Inferno Technologies Developer
bashy
05-21-2007, 08:29 PM
typical lol, ok m8 cheers anyway, all the best :)
Diana Notacat
05-22-2007, 08:50 PM
I currently have an IF command that shows a set of links to admins but not to normal members, but on the same page I want to display the latest news using vbexternal. I am unable to include global.php on the same page as vbexternal.php without it giving me this error;
Fatal error: Cannot redeclare class vbulletinhook in /home2/spacek/public_html/moonwings/includes/class_hook.php on line 29
And there doesn't seem to be a function (that I saw) to show admin/mod/usergroup only content...
carwash
05-24-2007, 01:07 AM
I am getting the same error:
Fatal error: Cannot redeclare class vbulletinhook in /home/user/public_html/forum/vBExternal.php on line 121
Someone else had this problem with 1.6 and said they fixed it by resolving some conflict. What conflict would be causing this?
toonysnn
05-24-2007, 04:43 PM
Awesome! I used this to make a new homepage for my website, very easy. Are we able to use <if condition="$..."> and stuff like that?
/me clicks install
Inferno Tech
05-25-2007, 09:44 AM
Awesome! I used this to make a new homepage for my website, very easy. Are we able to use <if condition="$..."> and stuff like that?
* toonysnn clicks install
Yes you can
I am getting the same error:
Fatal error: Cannot redeclare class vbulletinhook in /home/user/public_html/forum/vBExternal.php on line 121
Someone else had this problem with 1.6 and said they fixed it by resolving some conflict. What conflict would be causing this?
Give me a day or so to do a lil research into the problems from the old product andf i will get back to you
Acid Burn - Inferno Technologies Developer
harry_5
05-26-2007, 08:24 PM
Great Hack!
One question: I want to display just a certain number of characters from the post on my news page... how?
Apfelfrucht
05-28-2007, 09:27 PM
To Inferno Tech,
Installed ;) and could you integrate the Search Form too ? like this one :
<form action="forum/search.php" method="post">
<input type="hidden" name="forumchoice[]" value="23" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="text" class="bginput" name="query" size="20"/> $gobutton<br />
</form>
* <input type="hidden" name="forumchoice[]" value="23" /> = Forum ID.
Inferno Tech
05-29-2007, 09:16 AM
I will look at doing this for the pro version or maybe the lite, it depends on a few things.
@Harry 5: within vBExternal.php it is referenced all over in each function.
Acid Burn - Inferno Technologies Developer
harry_5
05-29-2007, 08:52 PM
@Harry 5: within vBExternal.php it is referenced all over in each function.
Sorry, can?t find it...
Apfelfrucht
05-30-2007, 04:52 PM
I will look at doing this for the pro version or maybe the lite, it depends on a few things.
@Harry 5: within vBExternal.php it is referenced all over in each function.
Acid Burn - Inferno Technologies Developer
Thanks in advance :rolleyes:
Hornstar
06-01-2007, 07:37 AM
Thinking about buying pro version, just hope there will be a discount for people who have rpg and shoutbox and for it to be a bargain ^^
however, im having problems using it right now.
this is the error that is coming up on my homepage which im trying to put the users online on.
Parse error: syntax error, unexpected '<' in /home/*******/public_html/right.php on line 176
on line 176 i have this
<?php
output_UsersOnline();
?>
I have included
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
at the top of the php file as well.
Any ideas what is wrong?
Edit again: i removed the users online, and checked to see if the code at the top was working, it was not,
I changed the code at the top of the page to:
<?php
require_once('http://www.gamerzneeds.net/forums/vBExternal.php');
?>
, now that works.
then put the code back in for online users to show up, and get this error
Fatal error: Call to undefined function: output_usersonline() in /home/******/public_html/right.php on line 174
line 174 is: output_UsersOnline();
Any ideas whats wrong?
Edit again:
decided to keep trying to modify it, to see if i could get it working, and came up with a different error this time
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/***********/public_html/right.php on line 2
Warning: main(./vBExternal.php) [function.main]: failed to open stream: No such file or directory in /home/*****/public_html/right.php on line 3
Fatal error: main() [function.require]: Failed opening required './vBExternal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*******/public_html/right.php on line 3
I changed the code at the top of the page to:
<?php
chdir('http://www.gamerzneeds.net/forums');
require_once('./vBExternal.php');
?>
Edit again:
Changed the top to:
<?php
chdir('forums/');
require_once('vBExternal.php');
chdir('../');
?>
and im now getting this error:
There was an error while processing vBExternal:
System was unable to find the template 'vBExternal/users_online.html'
I edited vbexternal.php and changed where the template is found to:
$template = "http://www.gamerzneeds.net/forums/vBExternal/{$template}";
I then get this error:
There was an error while processing vBExternal:
System was unable to find the template 'http://www.gamerzneeds.net/forums/vBExternal/users_online.html'
I then go to http://www.gamerzneeds.net/forums/vBExternal/users_online.html to check it is a page, and it is, so whats wrong, it should be able to find it.
I have tried everything i can think of, will have to put back my old code, until you can help me solve this.
Thanks.
Final Edit:
I finally had the idea to do this and change the code to:
<?php
chdir('./forums');
output_UsersOnline();
chdir('../');
?>
and now everything works.
I just now need to work out how to display it, so it looks nicer, more integrated into my homepage, and more like a vbulletin way of displaying it, if anyone could help, id like to display it in my footer here www.gamerzneeds.net
I would also like to have the links vbseo links otherwise i will have duplicate content.
Thanks.
Hornstar
06-01-2007, 10:57 AM
Ive also got it working on a different domain, but now ive been trying to get it to use vbseo url's ive included
## VBSEO SETTINGS ################################################## ###
include_once "forums/includes/functions_vbseo.php"; // change this path to reflect where your forum is
vbseo_startup(); // if you have a vbSEO version under 3, comment this line and uncomment the next three
// vbseo_get_options();
// vbseo_prepare_seo_replace();
// get_forum_info();
not sure which files it should be included in, but i tried them all.
I then tried editing the threadid part, and got lost again lol.
anyway, i know its simple, and ill most likely get it when im not so tired.
I just now need to learn how to make it look good and fit the layout better, because i appear to be hopeless at design. any tips would be appreciated.
thanks.
gforce75
06-02-2007, 12:23 AM
Great idea. I've been looking for something like this. I'll give it a crack.
Inferno Tech
06-04-2007, 07:51 AM
vBEXternal was never intended to be used with vbSEO but i may and try to add it in for the Pro release, but there are no promises.
Acid Burn - Inferno Technologies Developer
morrow
06-06-2007, 12:02 AM
Why would I use this over Webtemplates? (honest question, not looking to flame your hard work).
What are the differences?
Inferno Tech
06-12-2007, 07:24 AM
Never heard of it so i wouldn't be able to honestly answer that question.
Acid Burn - Inferno Technologies Developer
Thanks for the great plugin, I've been looking for something just like this! :)
Quick question; is it possible when outputting newest threads / newest replies to specify all forums except private forums? I'd like it to fetch data from every forum section apart from the few admin only sections. I know that I can put all the other forum ID's in manually but having a lot of forum sections that can change from time to time, I'd be much better off with a way to do all except private. Any idea if that can be done?
Inferno Tech
06-12-2007, 11:34 AM
in pro we are adding this feature that can be edited in the ACP, but atm it wouldnt work
Acid Burn - Inferno Technologies Developer
Thanks for the prompt response Inferno Tech, I'll keep an eye out for the pro version.
In the meantime, is there anyway to exclude an individual forum at all? My coding knowledge is next to non-existent but I seem to recall ! meaning no. So I tried:
<?php
output_NewestReplies(5,"!22");
?>
Naturally, it didn't work but I'm wondering if there's something like that I could do? :o
Inferno Tech
06-12-2007, 12:24 PM
that would produce an error, you would need to run an if statement for vb to exclude it or if you went into vbexternal.php and then looked for the function you wanted you could add a check to exclude the forums you dont want
Acid Burn - Inferno Technologies Developer
cheers for that. Will this work for vb 3.5.4?
RedefiningFate
06-19-2007, 01:41 PM
Hello...has this error been figured out?
Fatal error: Cannot redeclare class vbulletinhook in /****/****/*****/****/public_html/forum/vBExternal.php on line 121
I can't get past this...
Thanks...
Mikhailtech
06-20-2007, 04:30 PM
Can't get this to work. My site is http://www.mikhailtech.com. My forums are at http://forum.mikhailtech.com. What do I put in for the chdir settings??
4 pages and not a single person has their forums located in a subdomain?
BTW it's located in a /forum folder under public_html, but ('./forum') or ('../forum
) don't work.
jags2ooo
06-22-2007, 05:23 PM
How would i get it to show Total amount of registered members + total amount of people online
How would i get it to show Total amount of registered members + total amount of people online
Yes i would like to know this please too, only thing holding me back..
upnorth
07-04-2007, 08:22 PM
Any chance of adding the ability to show a poll and or poll results?
Morphangel
07-10-2007, 07:50 PM
Will this work for vb 3.6.7 ?
Thanks a lot!
Jimandbob
07-11-2007, 11:22 AM
Will this work for vb 3.6.7 ?
Thanks a lot!
Works fine on 3.6.7 for me
Rushyman
07-17-2007, 11:39 AM
Her is something I really need to do with this. When you upload and attach an image then set it to [attach=right] or [attach=left] it embeds this image in the forum thread nicely either floated left or right when you use the attach button in the advanced editor.
vBExternal doesn't understand the BBcode and simply places the attachment 'id' in the news post instead of the image. What code needs to be added to vBexternal to make it work as a normal post would with image attachments and actually show the image that is attached?
Any help here would be greatly appreciated.
csian
07-17-2007, 03:23 PM
Hello,
I'm using vBulletin 3.6.7 and get this error when I navigate to the home.php I created with your script.
Warning: main(./includes/db_mysql.php) [function.main]: failed to open stream: No such file or directory in /homepages/17/d208193755/htdocs/hdglides/vBExternal.php on line 67
Fatal error: main() [function.require]: Failed opening required './includes/db_mysql.php' (include_path='.:/usr/local/lib/php') in /homepages/17/d208193755/htdocs/hdglides/vBExternal.php on line 67
I checked my site directory and have no file called db_mysql.php in the includes folder or any other folder for that matter. Any idea of what the name of the file this should point to in v3.6.7?
csian
07-17-2007, 05:19 PM
Hello,
I'm using vBulletin 3.6.7 and get this error when I navigate to the home.php I created with your script.
I checked my site directory and have no file called db_mysql.php in the includes folder or any other folder for that matter. Any idea of what the name of the file this should point to in v3.6.7?
Well I got past this by finding the appropriate version for 3.6.5 but now I get database error when I navigate to my home.php file?????????? Any ideas?
Uberguilds
07-25-2007, 12:15 AM
Any news on the Fatal error: Cannot redeclare class vBulletinHook in /home/arturos/public_html/forums/vBExternal.php on line 121 error?
It occurs if you try and require_once the globals.php to use the userdata on the same page as the vBExternal script.
edit: This post fixed the issue.
https://vborg.vbsupport.ru/showpost.php?p=801995&postcount=107
darkblade25
07-26-2007, 09:54 PM
Is it possible to have the date that the post was made when you do the news
im getting sick! goooooooood, everytime I call up a function, my template MESSES UP <_<!!!!!!! its so freaking annoying....
any faq on this? website is, d-gaming.org and as u can see -_- the news are too big.. altho ive set the width of the template (news.html) to 60.. it keeps doing the same <_<!
skepticality
08-09-2007, 07:16 PM
I have about 3 different internal forms I don't want to show up through this. I don't see a way to exclude certain forums from showing up on my page using this.
Is there something I can do to 'exclude' certain forums?
And, if so, how exactly? I am not much of a whiz with php... but I can follow directions quite well!
TheBlackPoet
08-09-2007, 09:10 PM
i like this a lot... very nice...
skepticality
08-09-2007, 09:41 PM
Got it workin'! :)
Got it workin'! :)
Oooooh please do tell! I've been wanting to do the same thing.
skepticality
08-09-2007, 10:32 PM
If you look in the .txt doc that is in the archive when you unzip it... there is a ton of options and such in there with instructions on how to turn off certain forums from showing, etc...
I just don't know how vBulletin 'numbers' the forums, so I did a hunt and peck to find the ones I wanted! :D
If you look in the .txt doc that is in the archive when you unzip it... there is a ton of options and such in there with instructions on how to turn off certain forums from showing, etc...
I just don't know how vBulletin 'numbers' the forums, so I did a hunt and peck to find the ones I wanted! :D
Ah, that I knew hehe. At the moment I've got it setup to display stuff from forums that I've listed. However, I have a lot of forum sections and they can change from time to time so I have a long list like 1, 3, 4, 5, 11, 13...etc etc that I need to update once in a while.
What I was looking for was a way to set it to output from all forums except the ones I'd specified. So lets say sections 2, 3 and 4 were private forums. I'd want to be able to just set it to do all forums except those. Couldn't find a way to do that though.
Nickbe
08-10-2007, 09:52 AM
The problem I am having with this is that on firefox if the thread name is extremely long it does not take up a second line instead it stay on one line and expands the box I put it in distorting my entire home page.
I was looking for a way to constrain the number of characters in the thread name it shows.
djilou
08-10-2007, 02:15 PM
Great Hack!
One question: I want to display just a certain number of characters from the post on my news page... how?
looking for this too
Pacman15
08-11-2007, 10:17 AM
Can you add the Date an time? :) I really need that :D
TYorke
08-12-2007, 01:49 PM
Can BBCodes, HTML, etc be parsed correctly with this addon?
azn_romeo_4u
08-12-2007, 03:58 PM
yea i have this on my website
www.flyffworld.com Fully customizable btw. Works nicely. Anyone know if this works on the latest version of vb?
Pacman15
08-12-2007, 10:08 PM
It works... at least on 3.6.7 PL1 :)
Isn't there a way, that we can images attached to the post to show up on news?? And again also the date and time would be a nice addition.. :D
jags2ooo
08-12-2007, 10:29 PM
Can you add the Date an time? :) I really need that :D
Not sure how safe/good this is, but after
'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']),
I added:
'date' => date("F j, Y, g:i a",$News['dateline']),
And this automatically made the {date} substitution available, you can change the date part to whichever you want, again I'm not sure it's completely good, or which ever.
I'm really new to this :o
TYorke
08-13-2007, 05:20 AM
yea i have this on my website
www.flyffworld.com Fully customizable btw. Works nicely. Anyone know if this works on the latest version of vb?
Awesome, but I really meant to ask if custom BB Codes were able to be used externally through this script/add-on?
If not, anyone know of a way to parse custom BB Codes?
Pacman15
08-13-2007, 09:26 AM
bb codes are parsed automatically :)
Thanks jags2ooo ;)
TYorke
08-13-2007, 04:14 PM
bb codes are parsed automatically :)
Thanks jags2ooo ;)
but the question remains: will custom BB codes be parsed as well?
Pacman15
08-13-2007, 06:09 PM
I suppose they will, its a matter of trying... This script basically will get you, what it shows on the thread, so if it looks fine on the thread, it will look fine where you export it :D
TYorke
08-14-2007, 04:39 PM
I suppose they will, its a matter of trying... This script basically will get you, what it shows on the thread, so if it looks fine on the thread, it will look fine where you export it :D
Thanks. I will give it a whirl and report back with the findings :)
azn_romeo_4u
08-14-2007, 06:54 PM
but the question remains: will custom BB codes be parsed as well?
Yes it will be parsed. As long as the text doesn't get cut off.
TYorke
08-17-2007, 05:01 AM
Yes it will be parsed. As long as the text doesn't get cut off.
YES YES ... custom BB Codes work as well, sweet!
djilou
08-22-2007, 11:15 PM
yea i have this on my website
www.flyffworld.com Fully customizable btw. Works nicely. Anyone know if this works on the latest version of vb?
Awesome!
can you tell me how did you managed to display just a certain number of characters from the post on my news page?
thanks!
azn_romeo_4u
09-06-2007, 07:43 PM
array(
'threadid' => $News['threadid'],
'threadname' => $News['title'],
'postuserid' => $News['postuserid'],
'postusername' => $News['postusername'],
'post' => $bbcode_parser->parse(unhtmlspecialchars(substr ($News['pagetext'],0,900)), $f),
'comments' => vb_number_format($News['replycount']),
'date' => vbdate($vbulletin->options['dateformat'], $News['dateline']),
'time' => vbdate($vbulletin->options['timeformat'], $News['dateline']),
I added
'post' => $bbcode_parser->parse(unhtmlspecialchars(substr ($News['pagetext'],0,900)), $f),
this to vbexternal. Change the 900 number to whatever u want. the ... you see at the end. I had to manually add that in there. LOL.
anyone know if this works in the lastest version? can anyone recommend me a script that is flexible like this?
Pacman15
09-07-2007, 12:05 PM
There is one thing not working thought... I had to set my 'news forum' to put in moderation queue the threads created by members, so that it wouldn't show stupid things on my main page, but it doesn't work. Even if the thread is not aproved yet, it will apear on the main page.
Do you have any idea in how to fix that?
My temporary solution was to create a sub-forum 'propose news', so whenever I like a news from my members I'd move it to the main 'News Forum'. :D
PeteBlume
09-07-2007, 12:40 PM
Is there any possibility to show the news in a template? Fpr example: I want to show 1 news-post in the template threadbit under the first post?
Do you know whta I mean? Can you help me?
azn_romeo_4u
09-07-2007, 05:28 PM
There is one thing not working thought... I had to set my 'news forum' to put in moderation queue the threads created by members, so that it wouldn't show stupid things on my main page, but it doesn't work. Even if the thread is not aproved yet, it will apear on the main page.
Do you have any idea in how to fix that?
My temporary solution was to create a sub-forum 'propose news', so whenever I like a news from my members I'd move it to the main 'News Forum'. :D
Just don't give permission to your members to post in that particular forum.
So does that mean on your board this works on 3.6.8?
txsbmw
09-07-2007, 06:39 PM
Just don't give permission to your members to post in that particular forum.
So does that mean on your board this works on 3.6.8?
I run 3.6.8 and it works like a charm.
Mikhailtech
09-10-2007, 07:55 PM
Can someone help me exclude a specific forum from the results? I have a forum that's just for mods/admins and is invisible to normal users, but the thread titles from this forum still show up in VBE. What code modification would I have to make to exclude this particular forum from the new threads/new posts results?
koby411
09-12-2007, 08:55 AM
Is there someway I can combine this with this mod:
https://vborg.vbsupport.ru/showthread.php?t=99925
To give the news categories?
Like so on the news it can say
Filed Under: Square Enix
or w/e?
it's a very good mod...does it works with myspace?
i'd like to insert the last posts and news on "my" myspace page...
koby411
09-13-2007, 03:21 PM
How to do I get this:
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
Set right if my sites are like this:
Forum:
forgottenmem/forums
Site:
khtrinity
I tried using this:
<?php
chdir('../forgottenmem/forums');
require_once('./vBExternal.php');
?>
but it didn't work.. O.o
Okay got it working now, but I have another problem..
When I put an image into the news.html template like:
http://forgottenmem.net/images/news_arrow.gif
When it shows the news on the site it changes that link to:
http://forgottenmem.net/http://forums.forgottenmem.net/images/news_arrow.gif
Why is it adding that in the middle of the link? O.o
Kitara79
09-14-2007, 03:05 PM
Works so far for me, but the Output ignores all [quote] or [PHP] etc. Tags. They are simply not shown. I think the Problem is, that they use their own templates and the script does not get them?
Does someone has any idea?
Archaic Sage
09-17-2007, 11:55 AM
Is there any chance of a "Read More" option being added for this?
Koroku
09-26-2007, 06:08 AM
Very nice!! It's just what I was looking for.
If anyone wants an avatar, you can use this:
<img src='{url}/image.php?u={postuserid}' alt='Avatar' />
steveneff
09-29-2007, 03:24 PM
Hi all, This mod looks great.
Anyone got it working with phpnuke module in the home page and vb in /forum?
skepticality
09-29-2007, 03:46 PM
Great addition to my own vBulletin system! This should be a 'standard' feature in the system out of the 'box'! :D
JtChurch925
09-29-2007, 05:08 PM
I'm excited! This is exactly what I was looking for.
But, i'm a bit lost.
What I was hoping to use this for was to populate some sidebar boxes on the same page as my forum (http://forum.n81street.com).
Ive dropped in the head code:
<?php
require_once('vBExternal.php');
?>
And I drop the output code into my sidebar box...
But I get a blank sidebar, nothing had changed.
Here is the code for the sidebar, perhaps you can see my mistake?
<table>
<div class="thead" align="left">Newest Member</div>
<td height="125px" class="lftbox1" height="25px"><?php
output_NewestMembers(1);
?></td>
</table>
Visually the box (or I should say 'table' in this case), appears as I want it to, with the one noticeable exception being that is is empty!
Any thoughts? :(
steveneff
09-29-2007, 06:11 PM
Hi JtChurch925,
Looks similar to my problem with phpnuke
I've got it working by adding forum/ to the includes in vBExternal.php but it stops the rest of nuke from finishing, I think its a dir problem.
JtChurch925
09-29-2007, 06:40 PM
Thanx for replying Steveneff,
I would be willing to try anything.
I'm guessing that you're referring to the code inside vBExternal.php
Looking at the code though im not shure what you mean by adding forum/
if( !file_exists('./includes/config.php'))
{
echo "includes/config.php does not exist. Cannot continue.";
exit;
}
require_once('./includes/class_core.php');
require('./includes/config.php');
is forum/ going in the place of the ./ ?
Again, I appreciate your reply. :)
steveneff
09-29-2007, 06:49 PM
is forum/ going in the place of the ./ ?
Again, I appreciate your reply. :)
only if that's where your vb is.
JtChurch925
09-29-2007, 06:56 PM
yep, it's forum/ for me.
I'll try that and let you know how it goes,
Going replace ./ with forum/ all the way down.
<!-- Fingers Crossed -->
JtChurch925
09-29-2007, 07:08 PM
<sigh>
...bupkis, nothing, nada...
I assume this must have something to do with the fact that I am trying to display the information on the same page as the forum -and so you'd be right about it be a linkage (or directory) problem.
I also have a main page built in Joomla, and it will display there ok.
-of course the head code for that page is:
<?php
chdir('./forum');
require_once('./vBExternal.php');
?>
because it's a different directory.
but I drop in the php output code on that page and it works just fine.
but nothin' doin' on http://n81street.com/forum/index.php
hrmmm... :confused:
Koroku
09-29-2007, 10:59 PM
I'm no master, but I don't think you need the chdir at all if you're including vBExternal.php in the same directory.
steveneff
09-30-2007, 03:39 PM
Got this working in a nuke module.
in modules/mymodule/index.php
chdir('./forum');
require_once('./vBExternal.php');
output_NewestThreads(5,'1,2,3');
chdir('../');
in vBExternal.php change each instance of $db to $vbdb
Not sure if this is the right thing to do but it works :)
Anyone know how to list a preview of each tread?
JtChurch925
09-30-2007, 10:25 PM
I'm no master, but I don't think you need the chdir at all if you're including vBExternal.php in the same directory.
Yep, if you check my posts you'll see I removed chdir for the forum page. Added it for the J!hompage.
Congrats on getting it working steveneff, I'm jealous, tried changing the $db to $vbdb and that didnt seem to help either.
:confused:
steveneff
10-01-2007, 02:51 PM
I've managed to get the post text displayed with the code below but would now like to add the parent forum.
// ---------------------------------------------------
// FUNCTION: output_NewestThreads
// DETAIL: Outputs X newest threads ordered by
// start date descending. $a
// specifies amount to show (Default 5)
// and $f can specify certain forums
// to grab from (1,3,4), by default it pulls
// from all forums.
// ---------------------------------------------------
function output_NewestThreads($a = 5,$f = ""){
global $db, $Data, $vbulletin;
// Define amount to show
$Amount = ($a)? intval($a) : 5;
// Define Forum(s) To Pull From
$Forums = ($f)? $f: '';
$SQL = '';
if($Forums){
$SQL = " where forumid in({$Forums})";
}
// Load Template
$Template = LoadTemplate("newest_threads.html");
// Collect Data
$NewestThreads = $db->query("
select t.*,p.pagetext
from ".TABLE_PREFIX."thread t
left join ".TABLE_PREFIX."post p on(p.postid=t.firstpostid)
{$SQL}
order by dateline desc
limit 0,$Amount");
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
while($Thread = $db->fetch_array($NewestThreads)){
$Data .= ParseTemplate($Template,
array(
'threadid' => $Thread['threadid'],
'threadname' => $Thread['title'],
'postuserid' => $Thread['postuserid'],
'postusername' => $Thread['postusername'],
'post' => $bbcode_parser->parse(unhtmlspecialchars
(substr ($Thread['pagetext'],0,101)), $f),
'replies' => vb_number_format($Thread['replycount']),
'views' => vb_number_format($Thread['views']),
'lastposter' => $Thread['lastposter'],
)
);
}
doOutput();
}
Anyone done this already?
bangthebook
10-01-2007, 05:40 PM
What has to be edited to control the length of the thread title? I dont see an option and I havent seen it pointed out.
Also anyone get this working with VBSEO?
steveneff
10-01-2007, 09:40 PM
What has to be edited to control the length of the thread title? I dont see an option and I havent seen it pointed out.
Try this, where 100 = amount of characters
'threadname' => (substr ($Thread['title'],0,100))
Stratto
11-04-2007, 08:25 PM
I liked this, its really good! And easy to code, thanks ^^
Oh I don't know if anyone else has posted but I added a printable option and to reply to the post.
Add reply
<a href='{url}/newreply.php?do=newreply&noquote=1&p={threadid}'>
Comments: {comments}</a>
Print Article
<a href='{url}/printthread.php?t={threadid}' target='_new'> <small>Print Article</small></a>
Once again, thanks I've been looking for this since..forever XD
SilentNoise
11-08-2007, 01:12 PM
Dude! You just made my year with this hack!
Goodbye vBAdvanced!.... you boxy, boooooring POS!
rwoscott
11-09-2007, 07:16 AM
Finally got it to work, thanks mate.
Gladius2007
12-01-2007, 03:55 PM
Thanks for a great mod! I'd really like to show the number of guest users along with the registered members online too, though. Has no one figured out how to do this?
I'd also appreciate it if someone could post how we can list only the forums we want to EXCLUDE from the newest threads and newest replies... with a few dozen forums listing all of them but 2 or 3 isn't really practical.
Archaic Sage
12-09-2007, 03:27 PM
Anyone know the solution to the problem with images?
When I add an image via HTML or through IMG tag it always adds my forums url before the image again. So it ends up being http://www.domain.ext/http://www.domain.ext/image/filename.file.
The news page is:
<?php
chdir('./forums');
require_once('./vBExternal.php');
?>
Gladius2007
12-15-2007, 01:38 PM
Comment out this line:
$Data = str_replace('images/',"{$vbulletin->options[bburl]}/images/",$Data);
Charmedfan
12-16-2007, 08:29 PM
Hey,
it is an awesome addon! I love it but I have one question:
Is it possible to add more then one forumID to the news section? Because I have more than one news forum. I really need it!
Thanks and greetings!
Charmedfan
gotfreebies
12-16-2007, 10:25 PM
Hi,
I believe someone had asked this question already but did not get any answers.
I have my vBulletin Forum on a subdomain, but want to run this on my main directory.
How do I do it?
Calvin
Charmedfan
12-19-2007, 06:52 PM
Hey,
I have another problem. I use this string for the date:
'date' => date("F j, Y, g:i a",$News['dateline']),
I wrote it in this code part:
// ---------------------------------------------------
// FUNCTION: output_NewestThreads
// DETAIL: Outputs X newest threads ordered by
// start date descending. $a
// specifies amount to show (Default 5)
// and $f can specify certain forums
// to grab from (1,3,4), by default it pulls
// from all forums.
// ---------------------------------------------------
function output_NewestThreads($a = 5,$f = ""){
global $db, $Data, $vbulletin;
// Define amount to show
$Amount = ($a)? intval($a) : 5;
// Define Forum(s) To Pull From
$Forums = ($f)? $f: '';
$SQL = '';
if($Forums){
$SQL = " where forumid in({$Forums})";
}
// Load Template
$Template = LoadTemplate("newest_threads.html");
// Collect Data
$NewestThreads = $db->query("select * 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'],
'date' => date("j. F Y, H:i",$News['dateline']),
)
);
}
doOutput();
}
But the result only shows: 1. January 1970, 01:00 Not the actual date!?
Why?
Thanks for help!
Archaic Sage
12-20-2007, 09:13 AM
Comment out this line:
$Data = str_replace('images/',"{$vbulletin->options[bburl]}/images/",$Data);
Worked a treat, thanks :)
!!!cyr0n_k0r
12-22-2007, 08:46 PM
I'm trying to use vbexternal to pull data from a post, but all my code is stored inside a template. How can I call the news from within a vb template?
If I just add the output_News(5,4); straight to the PHP file it is displayed at the top of the page with no formatting.
Here is my php code that calls for the template where all the html is stored.
eval('print_output("' . fetch_template('Index') . '");');
How can I get the news to be called from the template "index" ??
Gladius2007
12-31-2007, 04:13 PM
Has anyone figured out how to make it respect no conversion of text into smilies? It doesn't respect the post setting and converts text into smilies anyway...
odonel
01-04-2008, 05:19 PM
what is the main difference between the pro and the lite version? will we be able to include capture images from the forums ?
Pacman15
01-09-2008, 03:06 PM
Hello, I have a problem. I want to show 2 news(Threads) and then the next 5 headlines from the same forum. How can I do that so that the first 2 threads don't show up on the list?? Thank You.
anyone know how to get itemstats
http://forums.eqdkp.com/index.php?showtopic=7221
to work with this?
Jack Jones
01-14-2008, 04:19 AM
Can anyone help with this prob ... ?
It's working I guess, but stalls. I have it implemented on a CMS page, that uses the same db, but with a different prefix. My cms uses pro_ and vBExternal wants vb_ obviously.
The result is the following being displayed where is should be displaying data:
an error occured when executing the following SQL functions:
select username,posts,userid from pro_vb_user order by joindate desc limit 0,5
Error: Table 'localspace.pro_vb_user' doesn't exist
Any advice greatly appreciated.
marquisite
01-14-2008, 10:45 AM
Nice mod.
Will future lite versions of vBExternal include a feature to list the username that the person is currently logged into, or if not, the word 'Guest' ?
E.g. use $vbulletin->userinfo['username']
Previously I had a thing where it would say either 'Welcome, Guest | Register' or 'Welcome, {loggedinuser} | Logout'
Shanj
01-15-2008, 06:36 AM
All I want [:) ] is to display who's online - the names as links - so the last one on this mod's list of options.
But I want to put it in a side column box on vb itself.
I have Ultimate Side Columns installed, and its stuff is at the end of the navbar template. I then have a nice little interface in VB adminCP Options to edit the side menu boxes.
I put
<?php
chdir('./XXX');
require_once('./vBExternal.php');
?>
into headinclude - wiith XXX as my vb dir
and put
<tr><td>
<?php
output_UsersOnline();
?>
</td></tr>
in my side column in its own row
My html all shows saying WHO'S ONLINE
but nothing shows under it where the code is
tried using gloabal start hook
Plugin Manager -> Add Plugin -> global_start
then put this code in the text:
require_once('./vBExternal.php');
anyone know how to make this work on all vb pages?
or is there another mod?
kevinpowertv
01-23-2008, 07:35 PM
Is there a way to add attachments to this? I want to attach an image to a post and have it show up externally on my PHP website. Thanks!
andy91287
01-24-2008, 03:46 PM
Is there any way to display CERTAIN posts from a forum (like adding a category/new post field)? This is probably a completely different thing all together. I maybe should ask somewhere instead of bothering you.
devilsmania
01-24-2008, 08:28 PM
Hello there
i have a problem with Internet Explorer (6 and 7)
as you can see at http://www.devilsmania.com/ i am using 2 New Threads, 1 for english 1 for italian, the problem is that if i open the site with FIREFOX the 2 things are showing, BUT if i open it with IE (still used by most of people) only the first one is shown
how can i fix this problem on IE ? why doesnt he like 2 'output_NewestReplies'
devilsmania
01-24-2008, 08:57 PM
Hello there
i have a problem with Internet Explorer (6 and 7)
as you can see at http://www.devilsmania.com/ i am using 2 New Threads, 1 for english 1 for italian, the problem is that if i open the site with FIREFOX the 2 things are showing, BUT if i open it with IE (still used by most of people) only the first one is shown
how can i fix this problem on IE ? why doesnt he like 2 'output_NewestReplies'
ignore this :) fixed, following some infos :
https://vborg.vbsupport.ru/showthread.php?t=164003
:D:D
Lombardo
01-24-2008, 09:48 PM
Do you need to have External v1.6 to use this?
Lombardo
01-26-2008, 07:16 PM
anyone please?
devilsmania
01-26-2008, 07:47 PM
all you need is a full version of Vbulletin and perhaps this Add-On, nothing else....
Strafe
01-30-2008, 08:58 AM
So basically what is the difference with vBExternal Lite and Zero Tolerance's vBExternal.
Whats a good reason for changing over to this one? Any added features?
Inferno Tech
01-30-2008, 01:01 PM
this was ported from vbexternal to work with 3.6.4, the new version is Inferno External, which does have new features etc, but thats elsewhere :)
Lombardo
01-30-2008, 01:26 PM
I really don't know how to install this and get it to work,i would love this for my site.
Its this i don't understand,i'm new to this
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, and your
forum is located at: http://hello.com/forums, so insert this code at the very top of our php file:
How do i go about creating a php file?
any instructions for begginers? lol
kevinpowertv
01-30-2008, 01:58 PM
Don't expect too much support on this. I tried to ask some support questions both in the forum here and at Inferno Technologies forum. Any kind of questions you ask here on vbulletin.org will be declined and inferno will ask you to post support messages on the inferno technologies support forum. I don't mind doing that, other than the fact that their message board is a grave yard and no one ever answers anything. It's basically a long list of unanswered questions.
I bought Inferno External and the only feature I see different is the ability to add a login box and the ability to use the support forums. That's pretty much all I see that is a major difference.
Maybe this post will offer some incentive to provide some support for their product.
kevinpowertv
01-30-2008, 02:03 PM
Also, regarding support for their lite products, this is a message I got from Inferno Technologies:
Sorry, but it's our policy not to support our lite products...
Inferno Tech
01-30-2008, 02:04 PM
I just feel the need to point out here that you made less than a day ago, and that *EVERY* support forum question gets answered.
Maybe you are unable to see them, since you never bothered to follow the steps to mark your account as a customer, I suggest you try that, instructions on how to do it are at the top of the thread you posted.
*EDIT* I notice you got round to properly validating your forum account, maybe you could take a look around the support forums, and revise your opinion of "nothing ever getting answered"
Thanks. Iain.
kevinpowertv
01-30-2008, 02:19 PM
Perhaps my comments were made in a bit of frustration. Never the less, my post in your support forums was left yesterday at 7 PM PST. I guess I'm just used to a quicker response in a support forum.
If you get around to it, please review my support request and let me know what you can find. Thank you!
Lombardo
01-30-2008, 02:22 PM
so will you help me here? or will i have to post in your support forum?
Inferno Tech
01-30-2008, 02:25 PM
Kevin support is usually taken care of between 8-11pm GMT, and i can assure you it will be looked at and answered.
Lombardo, unfortunately we are unable to provide support for LITE versions of our products
Lombardo
01-30-2008, 02:36 PM
so what do you offer support for?
kevinpowertv
01-30-2008, 02:40 PM
You need to buy the full version to get support.
Lombardo
01-30-2008, 02:43 PM
Yeah i was just coming to edit my question,that was pretty obvious.
I would like to purchase it,but i don't want to go paying for it then not being able to install it.
Inferno Tech
01-30-2008, 02:50 PM
Lombardo this is an old version anyway, even of the lite product. If you're having issues, i recommend you try https://vborg.vbsupport.ru/showthread.php?t=166791
Lombardo
01-30-2008, 02:54 PM
ok will do,thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.