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

Reply
 
Thread Tools
Threaded Forum Views Details »»
Threaded Forum Views
Version: 2.00, by Kaitlyn Kaitlyn is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Version: 3.5.1 Rating:
Released: 11-22-2005 Last Update: Never Installs: 7
Uses Plugins Template Edits
Code Changes Additional Files Is in Beta Stage  
No support by the author.

Threaded Forum Views (Version 2.0)

This Modification is based on Threaded Forum Views (Version 1.8) for vBulletin 3.0.

Version 2.0 should function the same as the previous version. If you notice any quirks or problems please post them here. I took a couple different approaches in outlining the Modifications from the original as well.

-----

Threaded Forum Views will allow the user to display an individual forum or search results in a fully threaded manner. To enable this support the user selects Enable from the new Threaded Forum Views section within Edit Options in the User CP. In addition to the Enable/Disable setting the user may also select Compact or Expanded modes as well as the number of characters to be displayed in the thread/post titles.

Features:
Functionality controlled via the Users CP.
Supports 2 display modes. Single line or Dual line.
Supports variable title lengths.
Works with the display of forums and search results.
Indicates which posts have been read and which are new.
Indicates which posts have attachments.
Handles Sticky posts - limits the thread to the opening post.
Displayed results may be sorted using the existing tools provided by forumdisplay.php
Tested with vBulletin 3.5.1

Caveats:
Some of the Administrator functions (such as thread maintenance on deleted threads) are not available while in this mode. While doing administrative tasks the Admin should disable Threaded Forum Views.

Feedback & Support:
If you have any problems or questions please post them here.

Miscellaneous:

Line numbers have been added, which correspond 'approximatly' to where an item can be found. Line Numbers are based upon previous editions, so the line number listed in step 2, will be based upon the idea that step 1 has already been compleeted. Do Note these are approximate line numbers to help find certaion locations within the code, don't blindly use them for insertions.

To update existing users it is necessary to manually run an UPDATE query. I used

UPDATE userfield SET field5='Enable',field6='Compact',field7='30' where field5='';

to set the default values.

Also, a new field has been added to the search parameters. Because of this it is neccessary to erase the existing cached searches. This can be done using the following query

delete from search;

Instructions for making the necessary modifications to the files and templates are attached as are the 5 new graphics in the ZIP file.

Supporters / CoAuthors

Show Your Support

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

Comments
  #22  
Old 02-18-2006, 04:43 PM
Maryanninva Maryanninva is offline
 
Join Date: Feb 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi! I was curious if this has been tested in 3.5.3? I'd like to install it on my forums, but don't want to blow anything up!

Thanks!
Reply With Quote
  #23  
Old 02-22-2006, 10:28 PM
Maryanninva Maryanninva is offline
 
Join Date: Feb 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Maryanninva
Hi! I was curious if this has been tested in 3.5.3? I'd like to install it on my forums, but don't want to blow anything up!

Thanks!
Has anyone tried this with 3.5.3? I moved my forums from a fully-threaded site to vB and some of the users are hoping this hack will work (and becoming impatient with me). TIA!
Reply With Quote
  #24  
Old 02-22-2006, 10:56 PM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Maryanninva
Has anyone tried this with 3.5.3? I moved my forums from a fully-threaded site to vB and some of the users are hoping this hack will work (and becoming impatient with me). TIA!
It runs fine on 3.5.2 so I would think it would be OK on 3.5.3 or 3.5.4. However some of the templates may have changed so it would be wise to make the changes on a test forum first to validate everything. The coding changes should be pretty straightforward.

As always the first thing would be to compare the files with the changes in them between the last known version this was for and the planned version. If those files haven't changed then you should be pretty good to go.

The gotcha regarding the default values getting set was supposed to be fixed by vb in the 3.5.3 release so that at least shouldn't be a worry.
Reply With Quote
  #25  
Old 02-23-2006, 04:06 AM
Maryanninva Maryanninva is offline
 
Join Date: Feb 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much.

It appears that much of code is the same, though some are on different lines than what's in the instructions. If I get it working, I'll post back in case anyone else is wondering.
Reply With Quote
  #26  
Old 03-13-2006, 09:15 AM
Surfer Surfer is offline
 
Join Date: May 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kaitlyn
I have noticed one issue, I haven't quite figured out why it's an issue, but I have a way around it.

If you notice that once it's installed that every post appears to be 'new', this bit will fix the problem. I'll have it included in the next update, as well as moving a bit more of the legacy code to the updated methods.

-K

In includes/functions_threadedmode.php

Find:
Code:
$post['statusicon'] = iif($post['dateline'] > $threadinfo['threadview'], 1, 0);
Replace With:
Code:
//THREADS
$post['statusicon'] = iif($post['dateline'] > $vbulletin->userinfo['lastvisit'], 1, 0);
//THREADS

Doesn't this mean that the new post icon is still showing as new even though you have read the post? With the above modification you will need to login again to make them unread...

Any ideas?

Thanks
Reply With Quote
  #27  
Old 03-21-2006, 04:58 PM
Kaitlyn's Avatar
Kaitlyn Kaitlyn is offline
 
Join Date: May 2003
Location: DC
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hopefully I'll get a chance to rework it a bit, and add some stuff tg gave me for an update for 3.5.4 *crosses fingers*

Quote:
Doesn't this mean that the new post icon is still showing as new even though you have read the post? With the above modification you will need to login again to make them unread...
It... does and it dosen't. For some reason, which I have not delved that deeply into, without making the change all posts show up as new, and I mean all of them, and like, forever. The change I added in there doesn't require a logoff, simply a new session so, they'll remain new for that visit and the next time it checks for a last visit, which would be say ya left to do some other things then came back, it will mark those read or not.

It actually works pretty well, at least for me and I've never had any complains, and everything being new all the time was a real downer. When I'll have time I'll have to go through and really find out why $threadinfo['threadview'] dosen't seem to work right with the rest of the hack, but considering how well it works with that change, it's somewhat low on my priority list. Hope that helps!

-K
Reply With Quote
  #28  
Old 03-30-2006, 06:35 AM
Surfer Surfer is offline
 
Join Date: May 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your reply. I will try and fix this bug.

On another note, I have found another bug. If you have an old thread and bump it by adding a new post only the last post will be visable in the threaded forum view and not the entire thread. It should be the full thread!

Any ideas?

thanks
Reply With Quote
  #29  
Old 04-11-2006, 12:06 PM
Surfer Surfer is offline
 
Join Date: May 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello, just wondering if there has been made any further improvement to this hack? such as deleted threads etc... ?

Thanks
Reply With Quote
  #30  
Old 05-20-2006, 02:03 AM
uhnd uhnd is offline
 
Join Date: May 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been trying to install this mod onto a fresh copy of 3.5.4. I was editing the FORUMDISPLAY template, and I added:

Code:
<if condition="TFVENABLE=='Disable'">
immediately following the following line:

Code:
$announcebits
However, when I tried to save the template, it generated the following error:

The following error occurred when attempting to evaluate this template:

Code:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /data/sites/26657/forum.uhnd.com/www/includes/adminfunctions_template.php(3537) : eval()'d code on line 41

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

I'm just wondering if this means anything to anyone? If I add just a new variable, say "$test", then I can save the template. So it doesn't look like it's a problem with my adminfunctions_template.php file. Any suggestions?
Reply With Quote
  #31  
Old 05-20-2006, 02:04 AM
uhnd uhnd is offline
 
Join Date: May 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's that error message again in a little more legible format... hopefully:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /data/sites/26657/forum.uhnd.com/www/includes/adminfunctions_template.php(3537) : eval()'d code on line 41

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
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 01:56 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.04412 seconds
  • Memory Usage 2,315KB
  • Queries Executed 26 (?)
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
  • (5)bbcode_code
  • (4)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