vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBExternal v1.6 (https://vborg.vbsupport.ru/showthread.php?t=83005)

Connector 01-25-2006 07:42 PM

Thanks alot . :)


__________________
File Uploading

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:
HTML 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

Quote:

Originally Posted by Larrysw
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

Quote:

Originally Posted by atosoup
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.

Lurk 02-01-2006 03:45 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.

atosoup 02-01-2006 05:29 AM

Quote:

Originally Posted by Lurk
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

Quote:

Originally Posted by GrendelKhan{TSU
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???

t325 02-04-2006 09:02 PM

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

Code:

<!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

Code:

  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

Quote:

Originally Posted by Sai01
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:

welo 02-06-2006 12:37 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.

Sai01 02-06-2006 06:47 AM

Quote:

Originally Posted by welo
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!

welo 02-06-2006 07:32 AM

Quote:

Originally Posted by Sai01
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

Quote:

Originally Posted by Lurk
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

Quote:

Originally Posted by ThePimp
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, but on the external page the image src gets screwed up.

The image source should point to (for example):

HTML Code:

http://www.bigblueball.com/images/logos/gmail+talk.gif
but where I call the external routine, it modifies this to:

HTML Code:

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

Quote:

Originally Posted by GetGamer.com
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, but on the external page the image src gets screwed up.

Any ideas on how to fix this?

I "solved" this by commenting out line #466 of vBExternal.php:
PHP Code:

 //    $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

Quote:

Originally Posted by jugo
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:

Code:

'threadname'  => $Thread['title'],
to this (the 20 is the number of characters to display):
Code:

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

Comment thread

GetGamer.com 03-05-2006 02:41 PM

Quote:

Originally Posted by Lynk Former
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

Comment thread

You can do a blog-like comment system with a modified style. Check out the posts on this page (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, 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

Quote:

Originally Posted by Kusadasi-Guy
: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:

Code:

<?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:
Quote:

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 3
Even when using the more basic call (removing the full directory path, I still get problems). For example, this does not work:
Code:

<?php
chdir('./forums');
require_once('./vBExternal.php');
?>

As has been noted, I've modified the vBExternal.php file as noted here, 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 (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 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

Quote:

Originally Posted by GetGamer.com
You can do a blog-like comment system with a modified style. Check out the posts on this page (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, 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

Quote:

Originally Posted by Tannerman
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:

Code:

<?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:
Code:

<?php
chdir('./forums');
require_once('./vBExternal.php');
?>

As has been noted, I've modified the vBExternal.php file as noted here, 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 (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 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

Code:

<?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?


All times are GMT. The time now is 10:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01720 seconds
  • Memory Usage 1,871KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete