vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Making quote work differently. (https://vborg.vbsupport.ru/showthread.php?t=256463)

NovoCiv 01-04-2011 07:25 AM

Making quote work differently.
 
The way quote works right now is not ok. If there is BBCode in the quoted post it shows up as unparsed in the editor. This renders things like our [hide] tags or [qr] tags completely useless. When I quote something into the advanced editor sometimes it parses automatically, but in the quick reply it's unparsed. I've dug around all the templates I can think of, all the files I can think of, and I can't figure out how to change this. I think the problem is in newpost_quote template:
PHP Code:

[QUOTE={vb:raw originalposter}]{vb:raw pagetext}[/QUOTE

I don't want the vb:raw pagetext to be unparsed. I want it to show up as parsed in the editor. Kind of like the url tags work. When you edit a post with url tags it doesn't show [url=blah]text[/url], it just shows the hyperlinked text. I want it to do that for all bbcode when I quote.

Yellow Slider 01-04-2011 11:54 AM

It has nothing to do with quotes, but with your hide mod.
You can ask the developer of the mod to add parsing in quick reply.

NovoCiv 01-04-2011 01:47 PM

Quote:

Originally Posted by Yellow Slider (Post 2143842)
It has nothing to do with quotes, but with your hide mod.
You can ask the developer of the mod to add parsing in quick reply.

The developer refuses to admit there is a vulnerability. Ontop of that, this issue is affecting not only hide tags but also qr tags and username tag. Basically, anything that has hidden text can be disovered because quoted text is unparsed in the editor.

Yellow Slider 01-04-2011 03:33 PM

Quote:

Originally Posted by NovoCiv (Post 2143887)
The developer refuses to admit there is a vulnerability. Ontop of that, this issue is affecting not only hide tags but also qr tags and username tag. Basically, anything that has hidden text can be disovered because quoted text is unparsed in the editor.

As I previously said, you can either ask the developers or try to open a thread in the unpaid/paid requests forum.

NovoCiv 01-05-2011 03:57 AM

Isn't this section for discussing vBulletin programming and/or coding? I do most of the coding and modification myself, but I'm stumped on this one. I'm not asking for someone to just do it for me, I'm asking for discussion and advice on how to go about making quote work the way I want it to.

And the Developers won't even admit that it happens let alone work with me to fix it.

Yellow Slider 01-05-2011 10:12 AM

Quote:

Originally Posted by NovoCiv (Post 2144263)
Isn't this section for discussing vBulletin programming and/or coding? I do most of the coding and modification myself, but I'm stumped on this one. I'm not asking for someone to just do it for me, I'm asking for discussion and advice on how to go about making quote work the way I want it to.

And the Developers won't even admit that it happens let alone work with me to fix it.

Well, in that case you would want to use newreply_quote and modify $pagetext with preg_replace.

NovoCiv 01-05-2011 03:13 PM

Quote:

Originally Posted by Yellow Slider (Post 2144353)
Well, in that case you would want to use newreply_quote and modify $pagetext with preg_replace.

Thanks man! I finally fixed the hide tags thanks to your help.


All times are GMT. The time now is 08:04 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.01057 seconds
  • Memory Usage 1,731KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete