Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #342  
Old 07-24-2006, 02:32 AM
HappyPike's Avatar
HappyPike HappyPike is offline
 
Join Date: Feb 2002
Location: USA
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GetGamer.com
Yes, this still works in 3.5.4.

By the way, a really, really nice additional module for this mod would plop a POLL on any external page (similar to the vBAdvanced poll module). Doable?
That would be wonderful!
Reply With Quote
  #343  
Old 07-24-2006, 05:04 AM
HappyPike's Avatar
HappyPike HappyPike is offline
 
Join Date: Feb 2002
Location: USA
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just found a problem... For some reason it doesn't parse vB codes:

I have a custom vB code for IMG tag with align option and it couldn't parse it in the news post.

[IMG=right]image url[/IMG]



On the forum the tag works fine.

It also doesn't include stuff inside the [quote] tag.

Is there a fix for this?
Reply With Quote
  #344  
Old 07-25-2006, 04:01 PM
chrisjp88 chrisjp88 is offline
 
Join Date: Apr 2006
Location: Cheltenham, England
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BTW. The maker of this mod hasn't posted since January, 7 months ago. I'm guessing he doesn't have an interest in vb anymore.



I've been spending ages looking at all the files it uses, and can't find anywhere where it says to NOT use QUOTE tags.

The thing is it's such a HUGE flaw. So many news articles contain quotes, it's a must have. Does anybody know of a smilar script without such a flaw?
Reply With Quote
  #345  
Old 07-25-2006, 09:05 PM
Tannerman's Avatar
Tannerman Tannerman is offline
 
Join Date: Mar 2002
Location: Chicago, IL
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been using HTML blockquote tags combined with a horizontal rule to get around the issue, but then again, you need to have HTML enabled in the forum to make this work.
Reply With Quote
  #346  
Old 07-25-2006, 09:15 PM
HappyPike's Avatar
HappyPike HappyPike is offline
 
Join Date: Feb 2002
Location: USA
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, that's the problem. I don't want to enable HTML in a forum where I want members to be able to post comments to the news items. if you don't allow comments, then enabling HTML is not a problem.

This hack is very easy to use but unfortunately it's not supported at all anymore.
Reply With Quote
  #347  
Old 07-25-2006, 09:47 PM
rollo tamasi rollo tamasi is offline
 
Join Date: Jun 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi, does this work with 3.5.4 at all? i installed this one and the other release and when i create a page feature the php code you gave i get "there is a problem with the db......" error messages
Reply With Quote
  #348  
Old 07-27-2006, 12:28 AM
got haggis? got haggis? is offline
 
Join Date: Nov 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have the same problem..also using 3.5.4

edit: duh, one page back (23) there is the answer that solved this.

Now, where can i modify <fieldset> so it doesn't span across the entire page.
Reply With Quote
  #349  
Old 07-27-2006, 05:06 PM
NeilFawcett NeilFawcett is offline
 
Join Date: Mar 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chrisjp88
BTW. The maker of this mod hasn't posted since January, 7 months ago. I'm guessing he doesn't have an interest in vb anymore.



I've been spending ages looking at all the files it uses, and can't find anywhere where it says to NOT use QUOTE tags.

The thing is it's such a HUGE flaw. So many news articles contain quotes, it's a must have. Does anybody know of a smilar script without such a flaw?
Quote:
Originally Posted by got haggis?
i have the same problem..also using 3.5.4

edit: duh, one page back (23) there is the answer that solved this.

Now, where can i modify <fieldset> so it doesn't span across the entire page.

Well, the problem is basically that the standard code that calls the BBCode parser and this will handle all the standard tags, but not some of the ones that require a template definitions for a forum. These include QUOTE and CODE.

To be honest this makes sense, as the template you probably use on your forum probably will not match the one you will use on your news page.


What I did was to simply process QUOTE tages (I'm not interested in CODE) ones prior to the BBCode parser call. Viola!


Here's my modified code (Due to BBCodes on these forums cocking stuff up I've changed the stuff below so QUOTE=ETOUQ)

Code:
// Load Template
$NewsTemplate = LoadTemplate("news.html");

// Collect Data
$NewestNews = $db->query("
	select t.*,p.pagetext
	from ".TABLE_PREFIX."thread t
	left join ".TABLE_PREFIX."post p on(p.postid=t.firstpostid)
	where t.forumid = $Forum
	order by dateline desc
	limit 0,$Amount");

$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

while($News = $db->fetch_array($NewestNews)){
	$neils_text = $News['pagetext'];

	// Convert QUOTE tag
	$convert_from = array("[ETOUQ]", "[/ETOUQ]",);
	$convert_to = array("<DIV CLASS=news-quote>", "</DIV>");
	$neils_text = str_replace($convert_from, $convert_to, $neils_text);

	// Convert BBCodes
	$neils_text = $bbcode_parser->do_parse(unhtmlspecialchars($neils_text), true, true, true); 

	$Data .= ParseTemplate($NewsTemplate,
		array(
		'threadid'	=> $News['threadid'],
		'threadname'	=> $News['title'],
		'postusername'	=> $News['postusername'],
		'post'         	=> $neils_text,
		'comments'	=> vb_number_format($News['replycount']),
		'postdate' 	=> date( "l j-M-Y", $News['dateline']),
		)
	);
}
This isn't all my code - I've also put in stuff so I can ignore a thread, and also put a "more break" in so you could post a 10 page story, but put in a "more break" about 12 lines in, so the news page only displays upto that point. I'm also doing an "all news stories" thing as well...

For all my posting no one really helped me, so I hope this helps you!

ps: If you don't want to allow HTML conversion, then I guess you could disable that in the do_parse call, and instead replace the QUOTE tags with something else prior to the do_parse call, and then replace them again back to the HTML format afterwards... Just as long as you don't leave the QUOTE tags in there in their standard BBCode form before the do_parse call you'll be fine
Reply With Quote
  #350  
Old 07-27-2006, 05:21 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will upload my modified one which parses BBCode on every post no matter what...it even integrates with SEO.
Reply With Quote
  #351  
Old 07-27-2006, 08:08 PM
NeilFawcett NeilFawcett is offline
 
Join Date: Mar 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jugo
I will upload my modified one which parses BBCode on every post no matter what...it even integrates with SEO.
Even Quote & Code tags? How does know which template to use?
Reply With Quote
Reply


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 06:02 AM.


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.04955 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
  • (1)bbcode_code
  • (4)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
  • (1)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