Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2011, 07:25 AM
NovoCiv NovoCiv is offline
 
Join Date: Aug 2010
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 01-04-2011, 11:54 AM
Yellow Slider Yellow Slider is offline
 
Join Date: Aug 2006
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 01-04-2011, 01:47 PM
NovoCiv NovoCiv is offline
 
Join Date: Aug 2010
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yellow Slider View Post
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.
Reply With Quote
  #4  
Old 01-04-2011, 03:33 PM
Yellow Slider Yellow Slider is offline
 
Join Date: Aug 2006
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NovoCiv View Post
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.
Reply With Quote
  #5  
Old 01-05-2011, 03:57 AM
NovoCiv NovoCiv is offline
 
Join Date: Aug 2010
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 01-05-2011, 10:12 AM
Yellow Slider Yellow Slider is offline
 
Join Date: Aug 2006
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NovoCiv View Post
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.
Reply With Quote
  #7  
Old 01-05-2011, 03:13 PM
NovoCiv NovoCiv is offline
 
Join Date: Aug 2010
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yellow Slider View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:04 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.05167 seconds
  • Memory Usage 2,219KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete