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)

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!


All times are GMT. The time now is 02:07 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.01041 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete