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
  #12  
Old 12-10-2005, 09:44 PM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by doubletiger
Hi, I got this great mod to work on http://www.doubletiger.co.uk/~london...isplay.php?f=3.

thanks!

However, there is a problem: if visitor is guest, the threaded forum views show posts correctly; but if you are registered user and login to view it, the all posts do not show at all.

Could someone please visit my above site and take a look, and help me to sort it out?

many thanks in advance!
What verson of vb are you running? I found it necessary to make some additional template mods for 3.5.2.
Reply With Quote
  #13  
Old 12-10-2005, 10:23 PM
doubletiger doubletiger is offline
 
Join Date: Nov 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tgmorris
What verson of vb are you running? I found it necessary to make some additional template mods for 3.5.2.
It is v3.5.1, fresh installed, nothing added! all setting seems correct.

thank you for helping!
Reply With Quote
  #14  
Old 12-12-2005, 03:27 PM
Kaitlyn's Avatar
Kaitlyn Kaitlyn is offline
 
Join Date: May 2003
Location: DC
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by doubletiger
It is v3.5.1, fresh installed, nothing added! all setting seems correct.

thank you for helping!
Do me a favour, take one of the New Members created, go into UserCP -> Options and just click "save".

Let me know if that fixes your problem for that particular user.

I think that's it, and I'm looking at what's causing it.

-K
Reply With Quote
  #15  
Old 12-12-2005, 04:41 PM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by doubletiger
It is v3.5.1, fresh installed, nothing added! all setting seems correct.
Exactly what does show? Do you get empty rows? Can you post a screen shot?
Reply With Quote
  #16  
Old 12-12-2005, 07:32 PM
Kaitlyn's Avatar
Kaitlyn Kaitlyn is offline
 
Join Date: May 2003
Location: DC
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know what the problem is, I'll work on something to fix that right up.

In the mean time a 'work around' is to...

In ACP -> User Profile Fields -> User Profile Field Manager

For the Three Threaded Items:

Threaded Forum Views
Threaded Forum Views: Display Mode
Threaded Forum Views: Title Length

Edit each of these and set Field Required to YES

For Existing Users with the problem have them Enter their UserCP -> Edit Options and [Save Changes]

tg, I think what is happening is that when a new account is signed up the userfields (5,6,7) aren't getting populated, which does happen if the fields are required (ugly) or the users save their options (pain).

-K
Reply With Quote
  #17  
Old 12-12-2005, 08:01 PM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kaitlyn
I think what is happening is that when a new account is signed up the userfields (5,6,7) aren't getting populated, which does happen if the fields are required (ugly) or the users save their options (pain).

-K
Right. It's necessary to run an update query on the db so it will establish values for existing users. The simplest thing to do is to manually run a query when first establishing this mod to set the default values. Something along the lines of

UPDATE userfield SET FIELD5='Disable', FIELD6='Compact', FIELD7=30 WHERE FIELD5<>'Enable';

should work even if you have existing users. If it's empty to begin with it will get populated with 'Disable' and if it's set to 'Enable' it won't be touched. Of course the FIELDx names should be changed to whatever is correct for the specific implementation.

I seem to recall documenting this a long time ago but can't find it at the moment. :disappointed:
Reply With Quote
  #18  
Old 12-12-2005, 08:18 PM
Kaitlyn's Avatar
Kaitlyn Kaitlyn is offline
 
Join Date: May 2003
Location: DC
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tgmorris
Right. It's necessary to run an update query on the db so it will establish values for existing users. The simplest thing to do is to manually run a query when first establishing this mod to set the default values. Something along the lines of

UPDATE USERFIELD SET FIELD5='Disable', FIELD6='Compact', FIELD7=30 WHERE FIELD5<>'Enable';

should work even if you have existing users. If it's empty to begin with it will get populated with 'Disable' and if it's set to 'Enable' it won't be touched. Of course the FIELDx names should be changed to whatever is correct for the specific implementation.

I seem to recall documenting this a long time ago but can't find it at the moment. :disappointed:
Right, the problem is however that AFTER Installation, any new users that are created the custom fields aren't getting populated. However that should also be included in the scripts, It shall be so!

-K
Reply With Quote
  #19  
Old 12-15-2005, 08:14 AM
doubletiger doubletiger is offline
 
Join Date: Nov 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, tgmorris

first at all, I am very sorry for no reply! I was busy other things. and thank you very much for your help!

by setting these 3 fields to "yes", yes, the new users can see "threaded forum view" now.

for existed users, I could not find UserCP, where is it? I am sorry I am new to vbulletin. please advise more details!

I have about 266 users, do I have to edit them one by one? is that a way I can only edit once, them will apply to all of existed users?

by the way, how can I enable to trace this thread? so one new reply post, I will be noticed by email.

the test forums is www.doubletiger.co.uk/~london/vbb351
please feel free to test it.

once again, many thanks for your great help and appreciate your hard work, it is very good mod!

thanks!

Henry
Reply With Quote
  #20  
Old 12-15-2005, 01:49 PM
Kaitlyn's Avatar
Kaitlyn Kaitlyn is offline
 
Join Date: May 2003
Location: DC
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by doubletiger
Hi, tgmorris

first at all, I am very sorry for no reply! I was busy other things. and thank you very much for your help!

by setting these 3 fields to "yes", yes, the new users can see "threaded forum view" now.

for existed users, I could not find UserCP, where is it? I am sorry I am new to vbulletin. please advise more details!
No worries, this works around a bug in vBulletin that tgmorris reported Here . This should be fixed in 3.5.3, untill then there are a number of options, some more or less pretty than others, I think requiring them at signup is the lesser of two evils and easy to turn off when the fixed version is released.

The UserCP should show up on everyone's Nav Bar at the top (Something like UserCP FAQ Member List Register ... etc) Basicly the User can log in, go in there and save their options and it'll fix their individual problem.

Quote:
I have about 266 users, do I have to edit them one by one? is that a way I can only edit once, them will apply to all of existed users?

by the way, how can I enable to trace this thread? so one new reply post, I will be noticed by email.

once again, many thanks for your great help and appreciate your hard work, it is very good mod!
Yes you can update them all at once, you have to be able to execute SQL Queries, this should work either in the vBulletin Admin area, phpMyAdmin or command line SQL, enter the following three queries:

Code:
UPDATE userfield SET field5 = 'Enable' WHERE field5 = '';
UPDATE userfield SET field6 = 'Compact' WHERE field6 = '';
UPDATE userfield SET field7 = '30' WHERE field7 = '';
This assumes of course that your using fields 5-7, if not replace those bits with what you are explicitly using.

Also you should be able to do a 'thread subscripion' at least when you make a new post, scroll down under Additional Options.

I'm glad you like it, there should be an update shortly that adresses some of the quirks found in the existing version as well.

-K
Reply With Quote
  #21  
Old 12-15-2005, 02:58 PM
doubletiger doubletiger is offline
 
Join Date: Nov 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, Kaitlyn

many thanks for your quick reply!

I will try to run this sql script and post the result here.

This mod is great! because users do not need to click a thread in order to see reply; they can view all reply topics without a click. good work!

thank you!
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 02:38 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.08451 seconds
  • Memory Usage 2,323KB
  • 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
  • (1)bbcode_code
  • (8)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