Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Nested Quotes Details »»
Nested Quotes
Version: 1.00, by DJ XtAzY DJ XtAzY is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.4 Rating:
Released: 08-17-2006 Last Update: 12-06-2006 Installs: 60
Code Changes  
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-19-2006, 10:22 AM
70age 70age is offline
 
Join Date: Sep 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work!!
I do like it!
Thx,Xtazy
Reply With Quote
  #13  
Old 08-19-2006, 11:35 AM
Takkero Takkero is offline
 
Join Date: Apr 2004
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice!!! Thx!!
Reply With Quote
  #14  
Old 08-19-2006, 04:33 PM
hgb hgb is offline
 
Join Date: Nov 2005
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool

installed and thx
Reply With Quote
  #15  
Old 08-20-2006, 05:22 AM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by utw-Mephisto
Very nice one, I just don't like file edits
same here, sorry. if it would be a product, i would install it.
Reply With Quote
  #16  
Old 08-28-2006, 04:26 AM
Jim O's Avatar
Jim O Jim O is offline
 
Join Date: Mar 2006
Location: my house
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by o0Hubba0o
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.
It can, but you'd need to cut and paste the second (and third...) quote into the first.

Like this:

Quote:
Originally Posted by Kaezul
Very nicely done. I don't understand why Jelsoft didn't do this to begin with. Great job.
Quote:
Originally Posted by o0Hubba0o
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.
And Jim's text is here after both of yours...
But it's nifty to have it as a default.

Edit: Installed and works perfectly. See http://worldwartwozone.com/forums/ci....html#post2126 for an example.
Reply With Quote
  #17  
Old 09-01-2006, 10:08 PM
DivisionByZero's Avatar
DivisionByZero DivisionByZero is offline
 
Join Date: Dec 2002
Location: South Bend, Indiana
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can this be done for PM's???
Reply With Quote
  #18  
Old 09-05-2006, 10:55 PM
Coldhands's Avatar
Coldhands Coldhands is offline
 
Join Date: Oct 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Find:
Code:

while ( ($pos !== false) && ($quote_count <= 2) );


to like let say 4 quotes
Code:

while ( ($pos !== false) && ($quote_count <= 4) );
This didn't seem to do the trick for me. It still only quotes 2 as oppose to 4. What gives?
Reply With Quote
  #19  
Old 09-06-2006, 02:32 AM
bluesoul's Avatar
bluesoul bluesoul is offline
 
Join Date: Jul 2004
Location: Paducah, KY USA
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Coldhands
This didn't seem to do the trick for me. It still only quotes 2 as oppose to 4. What gives?
Having the same issue, here.
Reply With Quote
  #20  
Old 09-06-2006, 06:03 PM
Nixonian Nixonian is offline
 
Join Date: May 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FWIW:
<AOL>me too</AOL>

Thought, I was too dumb to follow some simple instructions, but it seems there is another factor limiting the count to '2'

Would be nice, if someone could clear that up.

TIA
Reply With Quote
  #21  
Old 09-06-2006, 06:29 PM
teneffus teneffus is offline
 
Join Date: Aug 2006
Location: Denizli in Turkey
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it is nice hack..
quotes are being like phpbb!..
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 11:07 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.05019 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (10)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete