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)
-   -   Download Forum Thread To Your Computer (vB 3.5.x) (https://vborg.vbsupport.ru/showthread.php?t=97217)

akanevsky 11-23-2005 02:28 PM

That's a very nice way of output. My Russian modification will work with your file too, as it only has to do with the filename :)

Logician 11-23-2005 03:52 PM

Thanks guys.. Linked your contributions in the first post.

Moparx 11-24-2005 12:31 AM

Great hack.

Is there an easy way to separate quotes within the posts from the actual replies themselves? Right now you cannot distinguish between the two and it can be confusing. :(

Having the quotes in posts generate like below would make this hack near perfect :)
"Some Text" -- Poster or Poster wrote: "Some Text"

Aylwin 11-24-2005 07:41 AM

Quote:

Originally Posted by Moparx
Is there an easy way to separate quotes within the posts from the actual replies themselves? Right now you cannot distinguish between the two and it can be confusing. :(

Having the quotes in posts generate like below would make this hack near perfect :)
"Some Text" -- Poster or Poster wrote: "Some Text"

This is something I would like to do too. I know how to do it in theory but I just don't have the skills to implement it. Basically, we need to do the following:

1) Search $post['postdate'] for (QUOTE=name)
2) Replace it with name wrote: "
3) Search $post['postdate'] for (/QUOTE)
4) Replace it with "

I don't know how to do 1) and 2) but I think 3) and 4) would be:
Code:

$post['pagetext'] = preg_replace("[\[\/QUOTE\]]", "\"", $post['pagetext']);
Can anyone help with 1) and 2)?

EDIT:
Okay, I think I figured it out.

Find:
Code:

$post[pagetext] = strip_bbcode($post[pagetext]);
Before this line, add:
Code:

$post['pagetext'] = preg_replace("[\[QUOTE=([a-zA-Z0-9_-]*)\]]", "Originally posted by \\1:\"", $post['pagetext']);
 $post['pagetext'] = preg_replace("[\[\/QUOTE\]]", "\"", $post['pagetext']);

At least I got something very close to this working on my rtf version.

croportal 11-28-2005 05:22 PM

how can i set another picture for this hack, and where i can change phrase Download This Thread - i wont to set on croatian LAnguage

Logician 11-28-2005 05:25 PM

Quote:

Originally Posted by croportal
how can i set another picture for this hack,

https://vborg.vbsupport.ru/showpost....3&postcount=13

Quote:

and where i can change phrase Download This Thread - i wont to set on croatian LAnguage
Admin Cp/Phrase Manager/Search In Phrases/search for "Download This Thread" in "Phrase Text"

croportal 11-28-2005 05:36 PM

thanks a lot logician

OsMoSiS.it 12-08-2005 02:41 PM

[QUOTE=Aylwin]
Okay, I think I figured it out.

Find:
Code:

$post[pagetext] = strip_bbcode($post[pagetext]);
Before this line, add:
Code:

$post['pagetext'] = preg_replace("[\

       
Quote:

       
       
               
       
       

                       

                       
                               

                                        Originally Posted by ([a-zA-Z0-9_-
                                       
                               

                               
*)\]]", "Originally posted by \\1:\"", $post['pagetext']);
 $post['pagetext'] = preg_replace("[\[\/QUOTE\]]", "\"", $post['pagetext']);

                       
                       

               


Quote:

Originally Posted by ([a-zA-Z0-9_-
At least I got something very close to this working on my rtf version.

Code:

$post['pagetext'] = preg_replace("[\[QUOTE=(.*?)\]]", "Originally posted by \\1:\"", $post['pagetext']);
 $post['pagetext'] = preg_replace("[\[\/QUOTE\]]", "\"", $post['pagetext']);

This works better, matches also names with spaces or symbols that previously broke page layout :)



* Installed with rtf hack :)

Eathanor 04-10-2006 06:32 PM

Thank you

Clicks Install

Tralala 06-20-2006 07:06 PM

Thanks for this!


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