Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Upgrade for 1.8?
nier3 Offline
Member
***
Posts: 125
Joined: Jul 2012
Post: #23
RE: Upgrade for 1.8?
Hi, the problem seems to be this -> Viewable by Usergroups: administrators

I unchecked everything in Viewable by Usergroups and works. And when I click from list in ACP I go to the top of threadfield and not in bottom of page.

Then in forumdisplay_thread I have used this code:

PHP Code:
1
2
3
4
5
6
7
8
9
<if $mybb->user['usergroup'] == 1 && ($GLOBALS['threadfields']['hide']) == 'hide' then>

 Please login or register to show this thread.
  
  <else>

You're a member and you can see all threads you want.

</if>


In ACP settings for threadfield:

Checked Hide input field on New/edit thread and Hide on Show thread

Editable by / Required Field? Administrators

Values List:

Quote:hide
show

In Input Field Options nothing, only 40 for Field Input Width, 1 for Field Input Height, Yes for Capture Tab Key and No for Use Custom Input HTML.

Instead in Output Options:
Blank Replacement Value: hide

Display Format: {VALUE}

Viewable by Usergroups: nothing checked

Anyway also if there isn't usergroup for Viewable by Usergroups, if I'm a member I don't see thread field, only if I'm admin I can see and edit it (because I have put "Editable by / Required Field? Administrators" I think).

So:
I (admin) create a new thread, I don't set show/hide, it's on (not set) -> if you're guest you don't see thread; if you're member you see thread

A user creates a new thread, he/she doesn't choose show/hide (and it's ok) -> if you're guest you don't see thread; if you're member you see thread.

I (admin) change "hide" thread field from (not set) to show -> now also guests can see thread. If I re-choose "hide", guests again don't see thread.

In the end, now it seems works Biggrin
(This post was last modified: 10-20-2014 10:35 AM by nier3.)
10-20-2014 10:33 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Upgrade for 1.8? - codegamer - 07-31-2014, 05:47 AM
RE: Upgrade for 1.8? - RateU - 08-05-2014, 04:08 AM
reply - terzier - 08-05-2014, 07:41 AM
RE: Upgrade for 1.8? - avril - 08-05-2014, 11:25 AM
RE: Upgrade for 1.8? - RateU - 08-06-2014, 05:37 AM
RE: Upgrade for 1.8? - ZiNgA BuRgA - 08-06-2014, 11:36 AM
RE: Upgrade for 1.8? - avril - 08-12-2014, 01:02 AM
RE: Upgrade for 1.8? - RateU - 08-07-2014, 04:17 AM
RE: Upgrade for 1.8? - codegamer - 08-07-2014, 06:24 AM
RE: Upgrade for 1.8? - RateU - 08-07-2014, 06:39 AM
RE: Upgrade for 1.8? - nier3 - 08-21-2014, 09:43 PM
RE: Upgrade for 1.8? - ZiNgA BuRgA - 08-22-2014, 09:41 AM
RE: Upgrade for 1.8? - RocketFoot - 09-03-2014, 02:40 AM
RE: Upgrade for 1.8? - Indoril - 09-04-2014, 09:30 PM
RE: Upgrade for 1.8? - Jaizu - 09-08-2014, 09:58 PM
RE: Upgrade for 1.8? - nier3 - 10-05-2014, 06:57 AM
RE: Upgrade for 1.8? - ZiNgA BuRgA - 10-05-2014, 11:02 AM
RE: Upgrade for 1.8? - nier3 - 10-06-2014, 09:31 PM
RE: Upgrade for 1.8? - Hamster24 - 10-07-2014, 05:38 AM
RE: Upgrade for 1.8? - ZiNgA BuRgA - 10-07-2014, 05:00 PM
RE: Upgrade for 1.8? - nier3 - 10-07-2014, 08:12 PM
RE: Upgrade for 1.8? - nier3 - 10-18-2014, 02:05 AM
RE: Upgrade for 1.8? - nier3 - 10-20-2014 10:33 AM
RE: Upgrade for 1.8? - ZiNgA BuRgA - 10-21-2014, 05:27 PM
RE: Upgrade for 1.8? - Sama34 - 10-23-2014, 03:02 AM
RE: Upgrade for 1.8? - ZiNgA BuRgA - 10-24-2014, 04:05 PM
RE: Upgrade for 1.8? - Sama34 - 10-31-2014, 02:26 AM
RE: Upgrade for 1.8? - Hamster24 - 01-10-2015, 10:17 PM

 Standard Tools
Forum Jump: