![]() |
Ok, i where able to make it work, however, the problem is pretty strange.
Whenever I try to use the script from withing a PHP function it fails.... example. Code:
test(); Fatal error: Call to a member function query() on a non-object in F:\Webz Inicom\Web iniCom\forum\vBExternal.php on line 392 if i run it from a non function, ie on a root of a file it just work fine anyone can explain why or if there is any workaround? |
I dont think its designed to work within other php code
|
Temp Fix for using with vb 3.6 beta1
In vBExternal.php Find: require_once('./includes/class_bbcode.php'); Replace with: require_once('./includes/class_bbcode2.php'); Next you need to get the file class_bbcode.php from the vb3.5.4 and rename it class_bbcode2.php and then upload to includes folder. Basicy it just makes this hack read the old bbcode file so that it works. |
If on 3.5.4 you get a database error that gives you no idea what the problem is check this
Search for: PHP Code:
PHP Code:
|
I recently made a modification so you can run multiple forums off of one user table. I have now modified the code for vBExternal so that I can have a site that shows recent posts from each site. You can check it out here. The site is still kind of rough and I am still working on getting everything the way I want it but you get the idea.
|
Is there any chance for news grabbing attachments and having them at the end?
|
can you tell me how to show how many members AND guests there are only. So far i have got the members online working but it would also be nice to show the number of guests.
something like : Users online: 5 Members: James, Bob Guests: 3 |
I made a file called portal.php in my public_html folder which I'm gonna use to set it up and then put it as my main page. I did everything it said on installation instructions and I copied all of the usage instructions codes onto the page with lots of gaps between them
I must have done something wrong, because I get this message when I go on www.lolage.co.uk/portal.php: Database error The database has encountered a problem. -------------------------------------------------------------------------------- Please try the following: Load the page again by clicking the Refresh button in your web browser. Open the www.lolage.co.uk home page, then try to open another page. Click the Back button to try another link. The www.lolage.co.uk forum technical staff have been notified of the error, though you may contact them if the problem persists. We apologise for any inconvenience. I have no clue about php, so could someone help me? Thanks :) |
I was wondering if anyone has been successful in pulling information from MORE THAN ONE forum when using the News include. The instructions state:
Code:
################################################### |
Quote:
Thanks a lot! that solved my database error :banana: |
firstly, thanks e2s for noticing the fix :)
Quote:
output_NewestThreads(X,"ID1,ID2,ID3,..."); X = number of items IDx = the forum ids to which you want showing up :) |
This is a VERY useful plugin. I'm particularly interested in the NEWS feature.
However, I've noticed if the threads have quotes (or code) defined in them, this text does make it out to the NEWS. Ie: If you post a thread and within it do a quote of some text. When this thread is displayed as a news article, all the text is displayed apart from the quote :( Any clues? |
Quote:
Any suggestion on how to jimmyrig this to pull that off? :) |
what code do i ened to do if the file is in a different subdomain?
|
i know this has been asked several times and not answered, but it really is quite a problem. quotes, img's and codes dont work. does anyone know how to fix this?
|
With the correct modifications, this works a treat! Though I'm having trouble with emoticons not appearing...
EDIT: Nevermind, I found that I could get them working by changing the path of the smilies via the ACP from images/smilies/smiley.gif to http://www.domainname.com/bbs/images/smilies/smiley.gif |
Sorry to double post, but does anyone know how to restrict the maximum number of characters in the title to 33? If it can leave a trailing ... that'd be a bonus.
|
Quote:
|
Quote:
Anyone please? Seems a bit of a problem that you can't put use QUOTE or CODE in any article to be published as news :( What confuses me is the text in these tags seemingly doesn't even come out of the PHP script in any shape or form? It's just missing... Is it being lost on the way out of the SQL request? I suspect not... So where is it being lost :( |
This mod is exactly what I need, but it's not working correctly for me. :( I'm trying to show the newest replies in the sidebar of a wordpress blog -- a php template. Unfortunately, I'm getting this error:
Fatal error: Call to a member function query() on a non-object in C:\Domains\broncosfreak.com\wwwroot\forum\vBExtern al.php on line 347 Any ideas? |
Quote:
|
Just found a problem... For some reason it doesn't parse vB codes:
I have a custom vB code for IMG tag with align option and it couldn't parse it in the news post. [IMG=right]image url[/IMG] :( On the forum the tag works fine. It also doesn't include stuff inside the [quote] tag. Is there a fix for this? |
BTW. The maker of this mod hasn't posted since January, 7 months ago. I'm guessing he doesn't have an interest in vb anymore.
:( I've been spending ages looking at all the files it uses, and can't find anywhere where it says to NOT use QUOTE tags. The thing is it's such a HUGE flaw. So many news articles contain quotes, it's a must have. Does anybody know of a smilar script without such a flaw? |
I've been using HTML blockquote tags combined with a horizontal rule to get around the issue, but then again, you need to have HTML enabled in the forum to make this work.
|
Yeah, that's the problem. I don't want to enable HTML in a forum where I want members to be able to post comments to the news items. if you don't allow comments, then enabling HTML is not a problem.
This hack is very easy to use but unfortunately it's not supported at all anymore. :( |
hi, does this work with 3.5.4 at all? i installed this one and the other release and when i create a page feature the php code you gave i get "there is a problem with the db......" error messages
|
i have the same problem..also using 3.5.4
edit: duh, one page back (23) there is the answer that solved this. Now, where can i modify <fieldset> so it doesn't span across the entire page. |
Quote:
Quote:
Well, the problem is basically that the standard code that calls the BBCode parser and this will handle all the standard tags, but not some of the ones that require a template definitions for a forum. These include QUOTE and CODE. To be honest this makes sense, as the template you probably use on your forum probably will not match the one you will use on your news page. What I did was to simply process QUOTE tages (I'm not interested in CODE) ones prior to the BBCode parser call. Viola! Here's my modified code (Due to BBCodes on these forums cocking stuff up I've changed the stuff below so QUOTE=ETOUQ) Code:
// Load Template For all my posting no one really helped me, so I hope this helps you! ps: If you don't want to allow HTML conversion, then I guess you could disable that in the do_parse call, and instead replace the QUOTE tags with something else prior to the do_parse call, and then replace them again back to the HTML format afterwards... Just as long as you don't leave the QUOTE tags in there in their standard BBCode form before the do_parse call you'll be fine :) |
I will upload my modified one which parses BBCode on every post no matter what...it even integrates with SEO.
|
Quote:
|
Neil, thanks a lot. Had I spent more time playing with vB rather than IPB I probably could have figured that out, but I didn't. :p
Thanks for sorting that out though, my friend is now happy with the news script.. and I don't have to find an alternative or write my own now :) |
Quote:
|
Can you make it parse more than one BBCode? For example, I have an image tag with align option tag that also doesn't get parsed.
|
Must admit never tried an alignment... Got an example of what's not working? Does it work without the align?
|
Yeah, the regular img tag works. But when align option is provided, the script doesn't parse the code.
https://vborg.vbsupport.ru/ |
HI I get this error when add the codes:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/crash74/public_html/xtremecrash/right.php on line 104 Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/crash74/public_html/xtremecrash/right.php on line 227 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/crash74/public_html/xtremecrash/right.php on line 271 Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/crash74/public_html/xtremecrash/right.php on line 308 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/crash74/public_html/xtremecrash/right.php on line 360 Ive been tring for the last few days to get it to and I have searched the forums top to bottom tring to figure this out. Any help will. |
Quote:
The closest you can get is? [right][img]https://vborg.vbsupport.ru/[/img][/right] Isn't it? |
No, I made a custom img tag with align option. See this thread:
https://vborg.vbsupport.ru/showthread.php?t=122660 This way you can align images left or right w/o turning on HTML. :) |
Quote:
Would only take a dozen lines of code or so... That or don't allow that tag in your news items... By the way, I've found my home groan "More break marker" very handy... I'll PM you about that! |
Thanks again for sharing the find, Neil. :up: Following your example I should be able to parse any BB code the script is not able to.
|
All times are GMT. The time now is 06:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|