vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   If quoting a post, quote doesn't count towards msg length? (https://vborg.vbsupport.ru/showthread.php?t=49012)

N9ne 02-17-2003 12:08 AM

If quoting a post, quote doesn't count towards msg length?
 
How can I do this? It would need to check the length of the quote or something, and subtract it from total, but that's not possible. So realistically, what could it do? Upon clicking quote or something, could it calculate length of quoted msg, and also take the length of username, so Quote from $username part is also excluded from msg total...and then subtract that from the post which includes the quote's total length?

That's the only way I can think of, and I don't know how to do it, anyone have any ideas?

N9ne 02-17-2003 06:48 PM

Anyone?

Ok, let me simplify this,

is there a way I can make it so,

if post is being quoted, $pointcount = 0

So really, a way to find if the user has opted to quote a post, or is just posting a normal reply...

007 02-17-2003 07:31 PM

I don't know a whole lot about this but their has to be a way to search each thread and if it finds [QUOTE] tags then you make an if/else??? I wouldn't have the slightest idea how to do this but that's what needs to be done.

N9ne 02-17-2003 08:35 PM

That's not what I need.

I need to know how to use some sort of referrer function, to find out where the user is coming from to post the post, and if it's a quote, the quote will already be in the message field, so it should strip the char count of the text that is already there from the total.

Or simpler, just set char count to 0 for the entire post (if that's easier to do, i'm willing so sacrifice).

007 02-17-2003 11:29 PM

Well that's assuming they click the "Quote" button. What happens if someone just copies and pastes something between the
Quote:

and
tags? What I was saying is that you need to do something so it searches the post for the [QUOTE] tags, and

"if" it finds them, anything in between them does not get added (or does not count post at all, however you want it)

"else" count all

(Sorry for by bad PHP) LOL!

N9ne 02-18-2003 12:56 PM

I don't want that, it's ok if people want to quote something from elsewhere, but I want it so if they're quoting a post from the thread, it doesn't count the chars.


All times are GMT. The time now is 02:28 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.00971 seconds
  • Memory Usage 1,719KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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