vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Nested Quotes (https://vborg.vbsupport.ru/showthread.php?t=124334)

DJ XtAzY 08-17-2006 10:00 PM

Nested Quotes
 
UPDATE 12/7/06: The hack is updated with CoreIssue's code edit ;) mentioned in the posts. It's more simple and you only add one line to it. Tested on vb3.6.4 so it now works fine!

Difficulty: Extremely Easy
Time take to install: 15 seconds

Version Info
v1.01 Hack updated with CoreIssue simple file edit. Should work with all version of vb now.
v1.0 Initial Release

I made a suggestion on vb.com but it seems like the developers are not interested. But then a nice member rossco2005 helped me out since we both like the idea to have nested quote feature in our boards WHEN we click on the Quote button. Nested quotes are used in phpbb and IB forums. Nested quotes are used in VB's private message area, but for some reason they wont work for the forums.

So let me show you an example on how this works. Let say i made this post.

------Post #1------
There are 11 planets in our solar system
-------------------

And if someone (let say Bot) click on the Quote button and submit a new post it should turn out like this

------Post #2------
Quote:

Originally Posted by XtAzY
There are 11 planets in our solar system

Welcome!
--------------------

But if another person (let say Bot1) hit the quote button for that previous post it will return this

------Post #3------
Quote:

Originally Posted by Bot
No there are 20

You guys are both rong idiots!
--------------------

But instead we want it to turn like this when we click on the quote button

------Post #3-------

Quote:

Originally Posted by Bot
Quote:

Originally Posted by XtAzY
There are 11 planets in our solar system

No there are 20

You guys are both wrong idiots!
--------------------

Get the picture?

So here is the code modification on how to put nested quotes on your forums.

Files to edit: functions.php

In file functions.php, find:

Code:

function strip_quotes($text)
{
        $lowertext = strtolower($text);

Replace with:

Code:

function strip_quotes($text)
{
        return $text;
        $lowertext = strtolower($text);

Easy as cake! Go thank CoreIssue for this easy hack =]

Upgrading from 1.0 to 1.01
Replace the original functions.php from vb and then perform the edits.

Anyways i hope this is useful for peeps who need nest quotes. If someone can make it more advanced, like into a product or plugin, go ahead =]. I was hoping this can be built into the vb admin panel and lets u control how many nested quotes are allow per post, so that u dunt need to edit the file every upgrade or edit the file whenever u want to change the amount of nested quotes.

Selene 08-18-2006 08:29 PM

screenshots?

Davidov06 08-18-2006 08:53 PM

Aye, some screenshots please.

DJ XtAzY 08-18-2006 08:57 PM

haha no need for screenshots but its like this

Quote:

Originally Posted by Davidov06
Quote:

Originally Posted by Selene
screenshots?

Aye, some screenshots please.


Kaezul 08-18-2006 09:22 PM

Very nicely done. I don't understand why Jelsoft didn't do this to begin with. Great job.

utw-Mephisto 08-18-2006 09:36 PM

Very nice one, I just don't like file edits :(

DJ XtAzY 08-18-2006 09:37 PM

me either but thats the only way =[

im have no programming skills other than java =p

.Tim 08-18-2006 10:02 PM

Works great! Sucks that it's a file edit but it's too good of a feature not to do it.

o0Hubba0o 08-18-2006 11:59 PM

I agree that it should of been a default feature. I thought multi quote would of been able to cover this in some way, but oh well. Great job on this, if decide to put it in I'll click the install button for you.

Snake 08-19-2006 10:10 AM

Looking good, will install this soon! ;)


All times are GMT. The time now is 04:25 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.01077 seconds
  • Memory Usage 1,739KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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