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)

Eggie 11-25-2005 12:04 AM

Sorry, but does vbexternal.php and the vbexternal folder go into /public_html for my portal index I'm trying to create or in my /forums folder where vB is? I tried both but only get a blank page

Eggie 11-26-2005 05:03 AM

anyone???

RealityDesign 11-26-2005 08:01 AM

"$config['MasterServer']['servername']," is not anywhere in my vbexternal.php :(

Do I have some messed up version? I just downloaded it 5 mins ago so I would asume it's up to date...

Anyway, because I cannot find that line, I cannot apply the fix.

RealityDesign 11-26-2005 08:07 AM

Re-downloaded the hack and the vbexternal.php file was a different size after I unzipped it. Opened it up, and the line I needed was there this time. VERY WEIRD.

Anyway, it works!

Thanks :)

Milez 12-01-2005 08:23 AM

Any chance of pulling news from more than 1 forum ID? Please please.

mathias 12-04-2005 10:02 PM

on newestthread I want to limit the characters how can I do that?

jugo 12-05-2005 02:04 AM

Quote:

Originally Posted by Eggie
Sorry, but does vbexternal.php and the vbexternal folder go into /public_html for my portal index I'm trying to create or in my /forums folder where vB is? I tried both but only get a blank page

Everything goes in your forums dir.

Quote:

Originally Posted by Milez
Any chance of pulling news from more than 1 forum ID? Please please.

Yes... Just let me know which function and i'll generate the code for you.

Quote:

Originally Posted by mathias
on newestthread I want to limit the characters how can I do that?

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

jugo 12-05-2005 02:09 AM

Quote:

Originally Posted by mikehawk
Alright it is now working on my index.


Now, how do I change the font, etc? It is taken strictly from my html code specs in my index.html or from VBexternal.php?

USE CSS. Very Simple.

wiredinoc 12-07-2005 05:56 AM

Quote:

Originally Posted by Xtrm2Matt
I fixed your script for you -> http://www.opticalgaming.com/forums/test2.php

Code changes:

PHP Code:

<?php 
$countposts
=$vbulletin->db->query_first('SELECT COUNT(*) AS posts FROM prefix_post'); 
$totalposts=number_format($countposts['posts']); 
$numbersmembers=$vbulletin->db->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM prefix_user'); 
$numbermembers=number_format($numbersmembers['users']); 
echo 
"Total Posts: $totalposts";
echo 
"<br>";
echo 
"Total Members: $numbermembers";
?>



Quote:

Originally Posted by i-Symbian.Com
I will answer my own question here ;)

How to limit News to certain characters?

Open vBexternal.php

Find

PHP Code:

'post'         => $bbcode_parser->parse(unhtmlspecialchars($News['pagetext']), $f), 

Replace with
PHP Code:

'post'         => $bbcode_parser->parse(unhtmlspecialchars(substr ($News['pagetext'],0,250)), $f), 

Change 250 to any numbers you wish and this will be pulled from the database.


Guys, this kicks complete ass! I'm a new user, but I'm quickly getting up to speed with the help of you fine folks!!

I have 2 questions:

1. Considering the code above, how would I apply it to the title of latest posts, and display "..." if the title goes beyond the desired limit?

2. Where do I place the "total members" code above? I'm kinda at a loss with this one. Does it go into vbexternal.php? How is it called?

Thanks soo much guys, this is awesome.

MD

Freakpyromaniac 12-09-2005 10:35 AM

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?


All times are GMT. The time now is 01:02 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
  • Page Generation 0.01640 seconds
  • Memory Usage 1,762KB
  • 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
  • (5)bbcode_php_printable
  • (6)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