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)

HappyPike 07-24-2006 02:32 AM

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!

HappyPike 07-24-2006 05:04 AM

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?

chrisjp88 07-25-2006 04:01 PM

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?

Tannerman 07-25-2006 09:05 PM

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.

HappyPike 07-25-2006 09:15 PM

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. :(

rollo tamasi 07-25-2006 09:47 PM

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

got haggis? 07-27-2006 12:28 AM

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.

NeilFawcett 07-27-2006 05:06 PM

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

jugo 07-27-2006 05:21 PM

I will upload my modified one which parses BBCode on every post no matter what...it even integrates with SEO.

NeilFawcett 07-27-2006 08:08 PM

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?


All times are GMT. The time now is 05:19 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.01505 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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