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)

GamerJunk.net 05-06-2006 07:42 PM

Is there any way to have this pull code that displays random profiles or possibly random profile fields?

What I want to do is have it pull one profile field, and it be random for whatever user has it filled out.

skip870 05-14-2006 08:01 AM

vbexternal problems:

hi! i've installed this mod but it don't work well.. this is my problem:
after i've followed the instrution file (the install.txt and usage.txt) appear:

Quote:

Warning: chdir(): No such file or directory (errno 2) in /home/mhd-01/www.nomesito.com/htdocs/sito/test.php on line 2

Warning: main(./vBExternal.php): failed to open stream: No such file or directory in /home/mhd-01/www.nomesito.com/htdocs/sito/test.php on line 3

Fatal error: main(): Failed opening required './vBExternal.php' (include_path='./:/usr/local/web/php/lib/pear') in /home/mhd-01/www.nomesito.com/htdocs/sito/test.php on line 3
i've upped in my space all files, changed the php code ./formus with ./vb and after i put this code in the really top of my indexpage.

after that i've used once of the code present in the file usage.txt:

(# Displaying Top Posters )
Codice PHP:
<?php
output_TopPosters(5);
?>

but it dont work....

after i try to connect to the page vBExternal.php: http://www.nomesito.com/vb/vBExternal.php

and appear this:

Quote:

Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in /home/mhd-01/www.nomesito.com/htdocs/vb/vBExternal.php on line 67

Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='./:/usr/local/web/php/lib/pear') in /home/mhd-01/www.nomesito.com/htdocs/vb/vBExternal.php on line 67
and this is the screen of the files structure on my space:
root:
https://vborg.vbsupport.ru/
./vb:
https://vborg.vbsupport.ru/

the file VBexternal.php is on the bottom of the page.

.vb/VBexternal:
https://vborg.vbsupport.ru/


someone can help me?

hidjra 05-15-2006 02:34 PM

Is there a way to display the logged-in user, os show a login form when there's no one logged in?

Grtz,
Hidjra

randy. 05-17-2006 04:36 PM

Whats the actual source code needed to put the info on your hompeage

randy. 05-19-2006 03:11 PM

cant get it to work what do i need to do?

Thug 05-19-2006 11:24 PM

heres my code and it just doesnt work what am i doing wrong


PHP Code:

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

<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
            <a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
    <tr>
        <td class="alt2"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
        <td class="alt1" width="100%">
            <div class="smallfont">
                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                <div>$activeusers</div>
            </div>
        </td>
    </tr>
</tbody>
<!-- end logged-in users -->
</if>


Thug 05-19-2006 11:31 PM

on this all iget is
http://www.globalvibez.com/test.html
code is
PHP Code:

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


<?php
output_NewestMembers
(5);
?>

<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td width='1%' style='white-space:nowrap'><b>Username:</b> <a href='/forum/member.php?u={userid}'>{username}</a></td>
<td width='1%' style='white-space:nowrap'><b>Posts:</b> {posts}</td>
</tr>
</table>

<?php
output_NewestMembers
(5);
?>


upnorth 05-23-2006 04:54 PM

For Newest Threads the default pulls from all forums if left blank. Is there a easy way to pull from all forums accept for select ones.
i.e. I want all Newest Threads from all forums accept for number 1 and 5

Any ideas on how to make this happen?

webgeek247 05-23-2006 11:22 PM

Quote:

Originally Posted by Thug
on this all iget is
http://www.globalvibez.com/test.html
code is
PHP Code:

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


<?php
output_NewestMembers
(5);
?>

<table cellpadding='0' cellspacing='0' border='0'>
<tr>
<td width='1%' style='white-space:nowrap'><b>Username:</b> <a href='/forum/member.php?u={userid}'>{username}</a></td>
<td width='1%' style='white-space:nowrap'><b>Posts:</b> {posts}</td>
</tr>
</table>

<?php
output_NewestMembers
(5);
?>


You need to put in your forums path in the
PHP Code:

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

section

create a blank php file and enter this into it

PHP Code:

<? print $PATH_TRANSLATED; ?>

name it path.php and upload it to the root of your server

now browse to your path.php file in your web broswer and you will see your servers path, this is what needs to be entered into that section eg:

PHP Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
chdir
('/<server path from path.php file goes here>/forum');
require_once(
'/<server path from path.php file goes here>/forum/vBExternal.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">

Some servers can be case sentive so make sure the file name on the server is in exactly the same lettercase as the code above. also your page needs to have the .php extension, not .html :)

another way is to create a blank php for it - save the file with any name eg: vbexternal_script.php
PHP Code:

<?php
chdir
('/<server path from path.php file goes here>/forum');
require_once(
'/<server path from path.php file goes here>/forum/vBExternal.php');
?>

and then insert this into your webpage

PHP Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<? include 'vbexternal_script.php'; ?>
<html xmlns="http://www.w3.org/1999/xhtml">

:)

webgeek247 05-23-2006 11:27 PM

Quote:

Originally Posted by skip870
vbexternal problems:

hi! i've installed this mod but it don't work well.. this is my problem:
after i've followed the instrution file (the install.txt and usage.txt) appear:



i've upped in my space all files, changed the php code ./formus with ./vb and after i put this code in the really top of my indexpage.

after that i've used once of the code present in the file usage.txt:

(# Displaying Top Posters )
Codice PHP:
<?php
output_TopPosters(5);
?>

but it dont work....

after i try to connect to the page vBExternal.php: http://www.nomesito.com/vb/vBExternal.php

and appear this:



and this is the screen of the files structure on my space:
root:
http://img160.imageshack.us/img160/1...een18ti.th.jpg
./vb:
http://img80.imageshack.us/img80/6339/screen4jn.th.jpg

the file VBexternal.php is on the bottom of the page.

.vb/VBexternal:
http://img160.imageshack.us/img160/9...een38du.th.jpg


someone can help me?


check your servers path is correct in the method i explained in my last post :)


All times are GMT. The time now is 06:24 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.02190 seconds
  • Memory Usage 1,771KB
  • 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
  • (8)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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