Version: 1.00, by DJ XtAzY
Developer Last Online: Apr 2014
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.
I'm about 95% sure that older versions of vBulletin (pre-2.0, I think) used nested quotes. The thing is, they really began to pile up after awhile, to the point where the quotes would be 4 or 5 times the reply after a page or two. It ended up being better to simply quote the last one most of the time. Sure beat the alternative, since users very rarely edited out the excessive quotes later in a thread.
How do I edit the amount of levels the nested quotes go to?
I've installed it, but it will go for as long as people can hit the quote button, which can get ugly in some long threads.
Could someone please post the old code that used to be here? CoreIssue's simple edit doesn't work the same as the other method. It's all or nothing. ;-[
I know it's something like
Code:
while ( ($pos !== false) && ($quote_count <= 2) );
, but I forget where to put it.
I'm using the solution posted here and it seems to be working fine:
Very nicely done. I don't understand why Jelsoft didn't do this to begin with. Great job.
They did, in earlier versions, but then it was decided that removing inner layers is a better behavior. In some ways, I agree, as people tend to not remove previous layers of quotes by themselves and sometimes you get very wide posts as a result.