vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Download Thread (https://vborg.vbsupport.ru/showthread.php?t=40981)

Boofo 01-20-2003 09:02 AM

I'm sorry. I didn't mean for that to sound in a negative way. I meant that by you being busy, it helped me to force myself to try and figure it out on my own, which is always better for learning. Sorry, if it sounded like something else. :)

Geminy 03-13-2003 05:18 PM

This is the Italian translate of the hack

Questa ? la traduzione in Italiano dell'Hack.

Thanks to LOGICIAN to have I date the licence to translate this Hack :) .

Grazie a LOGICIAN per aver dato il permesso di tradurre questo Hack.

cirisme 03-14-2003 04:19 PM

Excellent hack!

(thumbs up)

tmapm 06-15-2003 12:19 PM

You should ass Boofo's update to the hack :p ANyways this hack works great. Thanks!

Giveit2u43 07-27-2003 06:14 PM

Well, I love this hack it`s a great idea but the users where complaining about the different tags showing up in the downloaded messages, I added the following to remove them.. (don`t know if this is the best way of doing this, but it works and for the users that`s all that counts)

add:
Code:

$dlt = $post[pagetext];
 $dlt = htmlspecialchars($dlt);
 $dlt = preg_replace("/(\[quote])/siU", "\r\n******************************************************************************\r\n", $dlt);
 $dlt = preg_replace("/(\[\/quote])/siU", "\r\n******************************************************************************", $dlt);
 $dlt = preg_replace("/(\[)(.*)(\])/siU", "", $dlt);
 $dlt = preg_replace("/(\[\/)(.*)(\])/siU", "", $dlt);
 $dlt = preg_replace("/(\[\*\])/siU", "", $dlt);

after:
Code:

while ($post=$DB_site->fetch_array($post_db))
 {

and change:
Code:

print ("\r\n$post[pagetext]\r\n\r\n");
to:
Code:

print ("\r\n$dlt\r\n\r\n");

Logician 07-27-2003 06:36 PM

thx for sharing.. not the best way to handle it as bbcode can change from board to board but still very useful for boards which are in English language and using default bbcodes.

Giveit2u43 07-27-2003 06:56 PM

Yep, you where right.. actually, after I thought about this a little more I realised that if I stripped everything between the [ ]'s that`ll work too.. So I`ve updated the original post with a much simpilier way of doing this that should be more suitable for those not using standard bbcodes or english ones ;)

Logician 07-27-2003 07:15 PM

Quote:

Today at 10:56 PM Giveit2u43 said this in Post #77
Yep, you where right.. actually, after I thought about this a little more I realised that if I stripped everything between the [ ]'s that`ll work too.. So I`ve updated the original post with a much simpilier way of doing this that should be more suitable for those not using standard bbcodes or english ones ;)
As a matter of fact I believe that the other code was better and more flexible for customization. :) Arent this code not only removing bbcode but also any texts that appears in [ ] but not a bbcode? :)

Giveit2u43 07-27-2003 08:48 PM

Well the other code was more flexible for customization as it removed each code seperately, but I found it did add quite a bit to the creation time for the download page, doing it with less preg_replaces is quicker (at least in my tests)

And yes that code will remove EVERYTHING in [ ]'s BBCode or Otherwise, and I`ve made a point of adding a notice to the post pages informing all users that text in [ ]'s is stripped from the downloaded thread's so they shouldn`t be used... (not that they have ever been used for anything but bbcodes, but well now people know *g*)

I`m really just a beginner and wanted something effective that would stop users from complaining, this worked and in my test the only ill effect is that URL`s are stripped so if a URL is posted in a thread it`ll just display the name that was used not the URL, and I haven`t quite found a workaround for that which looks okay.. I can get it to display:

http://www.domain.com]Link Name

but can`t replace that ] with a space or a : to make the layout nicer.. maybe a better answer will come as I continue to investigate the PHP stripping, trimming, replacing functions..

Thanks for your comments..

MindTrix 09-27-2003 02:02 PM

Cudnt get the hack to work, kept gettin sent bck to the same page, then realised i hadnt re-uploaded the php file **dumbass** works brilliant thanks a bunch :>


All times are GMT. The time now is 11:58 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.01294 seconds
  • Memory Usage 1,741KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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