vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Fix for replacement code problem in vB Code (https://vborg.vbsupport.ru/showthread.php?t=35894)

Steve Machol 03-24-2002 12:51 AM

I have no idea why you'd get a parse error unless to entered something wrong in the file. Commenting this line out worked fine for me.

Radon3k 03-24-2002 01:02 AM

hrmm...Well it works normally without commenting it out...So I guess I can leave it like this?

Steve Machol 03-24-2002 02:03 AM

As I said in my first post you only need to do this if you want to use replacement variables in vB Code. If you don't need that function, then you don't need to bother with this.

Radon3k 03-24-2002 02:13 AM

Ah ok, then I'm straight I guess...Nice, thanks! :)

Steve Machol 03-24-2002 02:17 AM

No probs! :)

Admin 03-24-2002 11:37 AM

Quote:

Originally posted by feldon23
Is there an easy way to change max characters?

I looked in admin/bbcode.php but changing the numbers to 60 didn't seem enough of a solution.

Yeah you need to run a query tho:
Code:

ALTER TABLE bbcode CHANGE bbcodereplacement bbcodereplacement TEXT;

Jawelin 03-26-2002 09:14 AM

I got almost confused when saw in admin/functions.php of VB 2.2.4, within the
function bbcodeparse2() two lines (with some other between) like these:
PHP Code:

  //$bbcode=str_replace("{", "{", $bbcode);
.
.
.
    
$bbcode=str_replace("{""{"$bbcode); // stop people posting replacements in their posts 

Questions are:
- Has the problem been solved in 2.2.4 with the above splitting or no ?
- Is cutting out the second line still necessary ?
- How could I generate the problem to see if that bugfix is actually needed by my board ?

Thanks a lot, Steve.

Bye

Admin 03-26-2002 12:22 PM

The line was moved to the end of the function to stop (I think) problems when posting PHP code. But you still need to comment the second line if you want to be able to use replacement variables in your vB Codes.

Jawelin 03-26-2002 01:59 PM

Absolutelly exaustive. Thanks a lot.

Harvey 04-10-2002 03:00 PM

Hi,

this hack has a disadvantage: text attachments are also parsed.

If you have eg. the following description in it (without spaces)
Code:

change in template xxx
{ secondaltcolor}FireFly
to
{ secondaltcolor}Chen

it will be shown as:
change in template xxx
#DFDFDFFireFly
to
#DFDFDFChen


All times are GMT. The time now is 11:43 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.02204 seconds
  • Memory Usage 1,732KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)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