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)

Feckie (Roger) 12-11-2005 11:15 AM

Why do I get

Code:

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

Code:

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

Quote:

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

Quote:

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

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

jugo 12-27-2005 11:32 AM

Change your $page variable to something else.... like $pg.

Quote:

Originally Posted by Freakpyromaniac
The script is working fine, thanks!

But i still have one problem!

It disabled another script which i was using in the website:

PHP Code:

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

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

Quote:

Originally Posted by siNix
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.
Code:

                                                                                             
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

Code:

                                                                'views'        => vb_number_format($News['views']),

blu? 01-02-2006 02:24 PM

hi,

when i wanted to display the users online i received a database error called:
Quote:

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?

blu? 01-03-2006 07:19 AM

Now i get another error:
Quote:

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....&postcount=106

But there is another..
I want to display the online user in javascript - "box".
Code:

<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

Quote:

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

Quote:

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

welo 01-05-2006 05:29 PM

<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

Quote:

Originally Posted by BassX
Find the following in ouput_News()

PHP Code:

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

'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

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

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

Quote:

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

Quote:

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

Quote:

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


All times are GMT. The time now is 07:43 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.01402 seconds
  • Memory Usage 1,850KB
  • 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
  • (6)bbcode_code_printable
  • (7)bbcode_php_printable
  • (13)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