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)

futuredood 02-22-2007 08:36 AM

ah, this would be wonderful but can't get it to work in my Joomla CMS.

upnorth 02-22-2007 07:20 PM

Anyone have any ideas how to filter out posts that need to be moderated?

Quote:

Originally Posted by upnorth (Post 1186867)
I have this running on 3.6.4 but have one question.

I have a forum that all threads are moderated. I'm using vBExternal to show the posts on my home page. Problem is, is that when someone posts to this forum, vBExternal currently shows the thread even though the moderator hasn't approved it yet? How can I get the display of this thread to only occur after the threads have been approved?


zexion 02-28-2007 05:47 AM

I got this working on the latest ver (after using the solution found here regarding the order of the variables).

Question: Can I display the actual TEXT of the post as opposed to just the thread name?

I see the variables he defied (which he then calls in the template), but I dont see one for the actual TEXT of the post... using the samples below, what would the the variable?

'post' => $News[???????????????????????????????????],

These are some of the ones defined:

'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'],

TheSh@rk 03-11-2007 11:15 AM

Wow Zero. TNX!

jags2ooo 03-18-2007 02:25 PM

How would i make it so the users avatar shows up also

Shazz 03-18-2007 02:30 PM

Quote:

Originally Posted by jags2ooo (Post 1206438)
How would i make it so the users avatar shows up also

You only need to ask it once...
[high]* Shazz notes* its not supported[/high]

jags2ooo 03-18-2007 03:13 PM

Has anyone modified the script so that it can pull users avatars in the new posts? And also Pull the date of when the post was posted

jeramie78 03-24-2007 09:49 PM

anyone figure out how to truncate the output of newthread??

jeramie78 03-24-2007 09:55 PM

Quote:

Originally Posted by Chris_D (Post 907661)
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 :(


change all instaces of

PHP Code:

 'threadname'   =>  $Thread['title'], 

to this
PHP Code:

'threadname'   =>  substr($Thread['title'],0,20), 

change the 20 to whatever you want.

ro_manuel 03-28-2007 06:20 AM

Ok, that Usage file. Its the worst instructions ever, how do i use it!? Where do i go to? And
what and where file do i edit!? Hmm, this isnt that great

erinys 03-29-2007 06:07 AM

I cant get this to work at all, not with filling out the dbase instructions or whatever

I'ts either a blank page or a dbase error, not going to bother anymore ;(

Zizou_SCD 03-29-2007 10:18 AM

I just can't get this to work.

I have uploaded the folder and the file in my forums root.

Then on the web page I want to use these templates I have this code:
Code:

</head>

<body>
<?php
chdir('http://soniccagedome.com/forums');
require_once('./vBExternal.php');
?>
<table bord....

....<td class="bodymiddle" style="height:408px;"><?php
output_NewestMembers(5);
?></td>....

And I am getting this error:
Code:

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/soniccag/public_html/dev7/site/index.php on line 157

Warning: main(./vBExternal.php) [function.main]: failed to open stream: No such file or directory in /home/soniccag/public_html/dev7/site/index.php on line 158

Fatal error: main() [function.require]: Failed opening required './vBExternal.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/soniccag/public_html/dev7/site/index.php on line 158

This error can be seen @:
http://www.soniccagedome.com/dev7/site/

Can anyone tell me where I am going wrong?

BTW I am using vB Version 3.6.4.

jeramie78 03-30-2007 03:36 AM

PHP Code:

<?php
chdir
('http://soniccagedome.com/forums');
require_once(
'./vBExternal.php');
?>

to

PHP Code:

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

change "/path/to/your/forums/" to whatever is the path to your forums not the URL to your forums

Zizou_SCD 03-30-2007 09:29 AM

Quote:

Originally Posted by jeramie78 (Post 1215852)
change "/path/to/your/forums/" to whatever is the path to your forums not the URL to your forums

This seems to have worked, however, there is a new problem:

http://www.soniccagedome.com/dev7/site/

It just says 'Database Error', doesn't tell me what it is. Do you think it is because of the forums version difference?

mertron 03-30-2007 05:33 PM

Quote:

Originally Posted by Zizou_SCD (Post 1215975)
This seems to have worked, however, there is a new problem:

http://www.soniccagedome.com/dev7/site/

It just says 'Database Error', doesn't tell me what it is. Do you think it is because of the forums version difference?


Running fine in 3.6.5
Open vBExternal.php
find line 96
Just replaced:

$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['MasterServer']['usepconnect'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['SlaveServer']['usepconnect'],
$config['Mysqli']['ini_file']
);

with

$db->connect(
$config['Database']['dbname'],
$config['MasterServer']['servername'],
$config['MasterServer']['usepconnect'],
$config['MasterServer']['username'],
$config['MasterServer']['password'],
$config['SlaveServer']['servername'],
$config['SlaveServer']['usepconnect'],
$config['SlaveServer']['username'],
$config['SlaveServer']['password'],
$config['Mysqli']['ini_file']
);

Lord Kirken Mor 03-31-2007 12:05 AM

Can I Export Forum Stats wit this?

Zizou_SCD 03-31-2007 10:07 AM

Quote:

Originally Posted by mertron (Post 1216274)
Running fine in 3.6.5
Open vBExternal.php
find line 96
Just replaced:

Nice one. Works a dream!

Now, I want to limit a thread title to a certain amount of characters. Can anyone help me out with this?

Also, how about adding the total users online stat and amount of guests online stat to the users online function

upnorth 04-02-2007 07:56 PM

Anyone able to help me with this. Seems like it would be an easy fix....just can't get my head around what I need to do to make this happen though. :(

Quote:

Originally Posted by upnorth (Post 1188524)
Anyone have any ideas how to filter out posts that need to be moderated?


Lord Kirken Mor 04-02-2007 10:10 PM

It was just the template i was using. but now a few includes are scrambled randomly around the page.

Zizou_SCD 04-04-2007 12:52 AM

Has anyone written a piece of code that will limit the length of a result? E.G. Cut the length of a topic title from 50 to 20 characters:

HOT NEWS COMI....


Like that.

jluerken 04-10-2007 09:11 PM

I am currently fetching the latest 5 threads from my board. This is working fine but I need a small change. How can I chop the thread title to X chars.
It kills the page design if a thread title has a lot of chars.

Is there a way to limit this?

Gryphon 04-11-2007 05:28 PM

jluerken, scroll up a few posts.

jluerken 04-12-2007 10:00 AM

Quote:

Originally Posted by Blackjack (Post 1225125)
jluerken, scroll up a few posts.

Many thanks, this worked directly!

upnorth 04-13-2007 05:21 PM

Quote:

Originally Posted by upnorth (Post 1186867)
I have this running on 3.6.4 but have one question.

I have a forum that all threads are moderated. I'm using vBExternal to show the posts on my home page. Problem is, is that when someone posts to this forum, vBExternal currently shows the thread even though the moderator hasn't approved it yet? How can I get the display of this thread to only occur after the threads have been approved?


WetWired helped me find a solution to this. You can find it in the following post.

https://vborg.vbsupport.ru/showthrea...93#post1226893

Chicago_VLNU_4s 05-07-2007 10:30 PM

I'm getting the following errors

Quote:

Warning: file_get_contents(./includes/database_error_message.html) [function.file-get-contents]: failed to open stream: No such file or directory in /home/.mojo/*****/******/forums/includes/class_core.php on line 919

Warning: file_get_contents(./includes/database_error_page.html) [function.file-get-contents]: failed to open stream: No such file or directory in /home/.mojo/*****/******/forums/includes/class_core.php on line 943
any ideas?

Inferno Tech 05-15-2007 11:40 PM

To those looking for an updated version:

https://vborg.vbsupport.ru/showthread.php?p=1248382


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