Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
vBExternal v1.6 Details »»
vBExternal v1.6
Version: 1.00, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.0 Beta 1 Rating:
Released: 06-12-2005 Last Update: Never Installs: 213
 
No support by the author.

Well, this doesn't modify any php, nor use a plugin, so i wasn't sure exactly where to stick it

Anyhow, this is a port of the vBExternal for vb 3.0.7, so look at this thread for more information: https://vborg.vbsupport.ru/showthrea...threadid=81943

Enjoy

- Zero Tolerance

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #132  
Old 11-10-2005, 04:28 PM
blue6995 blue6995 is offline
 
Join Date: Oct 2005
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am obviously doing something wrong - I keep getting this message when trying to open a test webpage I produced calling vb stats

Warning: main(./includes/db_mysql.php): failed to open stream: No such file or directory in /homepages/18/d121175559/htdocs/vBulletin/vBExternal.php on line 67

Fatal error: main(): Failed opening required './includes/db_mysql.php' (include_path='.:/usr/local/lib/php') in /homepages/18/d121175559/htdocs/vBulletin/vBExternal.php on line 67

Any idea what is wrong?
Reply With Quote
  #133  
Old 11-11-2005, 04:44 PM
i-Symbian.Com i-Symbian.Com is offline
 
Join Date: Jan 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Hack!!!

3 questions :-

1. How to display News from multiple forum ids?

################################################## #
# Displaying News

<?php
output_News(5,4);
?>

# Change '5' to the amount you want to show
# Change '4' to the forum id you want to pull
# news from (must be set - only 1 forum id allowed)
################################################## #

2. How to display time of the post in the News?

3. How to limit characters in the News to a specified number. e.g. the first1500 characters and add a "Read more"?

Cheers!

Reply With Quote
  #134  
Old 11-14-2005, 09:22 PM
majorxp majorxp is offline
 
Join Date: Aug 2005
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by azmi
is it possible to display the message in the last news ?
maybe like in the last X posts 3.1 ?
I would love to know this as well.
Reply With Quote
  #135  
Old 11-14-2005, 09:34 PM
mikehawk's Avatar
mikehawk mikehawk is offline
 
Join Date: May 2004
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: main(./realboards/vBExternal.php): failed to open stream: No such file or directory in /home/.gambia/realopin/realopinion.com/index.php on line 3

Fatal error: main(): Failed opening required './realboards/vBExternal.php' (include_path='.:/usr/local/lib/php') in /home/.gambia/realopin/realopinion.com/index.php on line 3

:ermm:
Reply With Quote
  #136  
Old 11-14-2005, 09:57 PM
mikehawk's Avatar
mikehawk mikehawk is offline
 
Join Date: May 2004
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #137  
Old 11-14-2005, 10:00 PM
mikehawk's Avatar
mikehawk mikehawk is offline
 
Join Date: May 2004
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NVM, i'm an idiot. :disappointed:
Reply With Quote
  #138  
Old 11-15-2005, 03:58 PM
BassX's Avatar
BassX BassX is offline
 
Join Date: Dec 2004
Location: Minneapolis, MN
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by i-Symbian.Com
2. How to display time of the post in the News?

Cheers!

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.
Reply With Quote
  #139  
Old 11-16-2005, 12:47 AM
xug xug is offline
 
Join Date: Oct 2001
Location: The Grand Strand, SC
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would be cool if this could be updated to vB 3.5.1
Reply With Quote
  #140  
Old 11-16-2005, 05:10 AM
i-Symbian.Com i-Symbian.Com is offline
 
Join Date: Jan 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@BassX,

Thanks a million!

xug

I'm using vb 3.51 and it works perfectly!

Cheers!
Reply With Quote
  #141  
Old 11-16-2005, 07:18 AM
i-Symbian.Com i-Symbian.Com is offline
 
Join Date: Jan 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Cheers!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07769 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete