vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Threaded Forum Views (https://vborg.vbsupport.ru/showthread.php?t=101407)

Kaitlyn 11-22-2005 10:00 PM

Threaded Forum Views
 
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.

nexialys 11-24-2005 01:52 PM

hum.. looks interesting for a forum tree...

Surfer 11-29-2005 11:17 AM

Thanks for this mod :) I have installed it, but don't se any posts at all in the forum :( in the source code it prints out:

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" id="threadslist">



<!-- show threads -->

<!-- threaded mode -->

<tr>
<td class="alt1"></td>
</tr>
<!-- end show threads -->

</table>

Any ideas?

The Chief 11-29-2005 11:28 AM

this looks like a great mod, I will try it later :D

Surfer 11-29-2005 11:42 AM

found the fault, the plugin system was not enabled haha, sorry!

Thanks once again for this great mod!

Kaitlyn 11-29-2005 03:09 PM

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


doubletiger 12-06-2005 07:47 AM

Hi, I am new to vbulletin and love this mod, I would like to install it and don't how to install it, I cannot find an instruction in zip files. can anyone point me to the right direction please?

many thanks!

Kaitlyn 12-06-2005 03:40 PM

Quote:

Originally Posted by doubletiger
Hi, I am new to vbulletin and love this mod, I would like to install it and don't how to install it, I cannot find an instruction in zip files. can anyone point me to the right direction please?

many thanks!

No Problem

Once you Download and UnZip the File, load the file "Threaded Forums 2.0.html" Into your Web Browser, it should walk you through applying the hack.

-K

doubletiger 12-06-2005 10:13 PM

Quote:

Originally Posted by Kaitlyn
No Problem

Once you Download and UnZip the File, load the file "Threaded Forums 2.0.html" Into your Web Browser, it should walk you through applying the hack.

-K

thank you for your reply! I will try it.

doubletiger 12-10-2005 08:13 PM

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!

tgmorris 12-10-2005 09:44 PM

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.

doubletiger 12-10-2005 10:23 PM

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!

Kaitlyn 12-12-2005 03:27 PM

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

tgmorris 12-12-2005 04:41 PM

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?

Kaitlyn 12-12-2005 07:32 PM

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

tgmorris 12-12-2005 08:01 PM

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:

Kaitlyn 12-12-2005 08:18 PM

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

doubletiger 12-15-2005 08:14 AM

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

Kaitlyn 12-15-2005 01:49 PM

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

doubletiger 12-15-2005 02:58 PM

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!

Maryanninva 02-18-2006 04:43 PM

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!

Maryanninva 02-22-2006 10:28 PM

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!

tgmorris 02-22-2006 10:56 PM

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.

Maryanninva 02-23-2006 04:06 AM

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.

Surfer 03-13-2006 09:15 AM

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

Kaitlyn 03-21-2006 04:58 PM

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

Surfer 03-30-2006 06:35 AM

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

Surfer 04-11-2006 12:06 PM

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

Thanks

uhnd 05-20-2006 02:03 AM

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?

uhnd 05-20-2006 02:04 AM

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.

tgmorris 05-20-2006 03:02 AM

I believe that the templates have changed a bit since the instructions were written. Instead of directly under the $announcebits line it needs to be done a bit different. If you look at the template and see what the intent of the change is you should be able to figure out how it goes.

uhnd 05-25-2006 02:05 AM

I haven't had a chance to take a look. If I'm able to figure it out, I'll post my findings.

Kaitlyn 08-08-2006 04:23 PM

Quote:

Originally Posted by uhnd
I haven't had a chance to take a look. If I'm able to figure it out, I'll post my findings.

I believe I have it working and updated for 3.6, I'm testing it as I can right now, hopefully this will help fix any template issues you may still be having, if your still having them *grins*

I've made all the changed tg suggested to me from the 2.0 version as well (that I never got an update out for, shame on me).

-K

hurry 08-11-2006 06:00 AM

Kaitlyn, when is the version for 3.6 expected? Eagerly waiting for it. Please do let me know.

Kaitlyn 08-11-2006 05:49 PM

Quote:

Originally Posted by hurry
Kaitlyn, when is the version for 3.6 expected? Eagerly waiting for it. Please do let me know.

I want to test it a wee bit longer, I'll be going live on my site this weekend, without any issues I should have it posted on Monday.

-K

Kaitlyn 08-15-2006 04:49 PM

Okay, I lied a little, I meant to say Wednsday. I didn't have the chance to put it on a live forum until today. So baring any issues, I'll post the 3.6 Mod definatly before the end of the week. Sorry 'bout that.

-K

Kaitlyn 08-22-2006 07:00 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=124663" target="_blank">Version 3.0 for vBulletin 3.6.0</a>


All times are GMT. The time now is 04:54 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.01325 seconds
  • Memory Usage 1,850KB
  • 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
  • (8)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete