Discuss - MODX Community Forums https://forums.modx.com/board/?board=27 <![CDATA[Allow Guests]]> https://forums.modx.com/thread/104520/allow-guests#dis-post-562346 I'm trying to hide this forum posts from the public.
I've changed Allow Guests to NO, which by the description of this setting I believe should make posts visible to only logged in members. I'm still able to view the forum without logging in. Logged out of both the forum and the MODX backend.

MODX 2.5.7
Discuss 1.2

Also receiving these Errors
[2018-10-17 11:30:50] (ERROR @ /public_html/core/xpdo/om/xpdoobject.class.php : 1452) Error 42S02 executing statement:
INSERT INTO `modx_discuss_thread_participants` (`thread`, `user`) VALUES (24, 1)
Array
(
    [0] => 42S02
    [1] => 1146
    [2] => Table 'database.modx_discuss_thread_participants' doesn't exist
)

Sure enough this table does not exist

I think this is unrelated to my issue but is another issue in itself.]]>
https://forums.modx.com/thread/104520/allow-guests#dis-post-562346 Fri, 26 Oct 2018 05:06:23 +0000 https://forums.modx.com/thread/104520/allow-guests#dis-post-562346
<![CDATA[Email Notifications]]> https://forums.modx.com/thread/104521/email-notifications#dis-post-562270 I have enabled discuss.enable_notifications to yes.

Possibly related error
[2018-10-17 11:48:00] (ERROR @ public_html/core/xpdo/om/xpdoobject.class.php : 240) Error 42S02 executing statement: 
Array
(
    [0] => 42S02
    [1] => 1146
    [2] => Table 'database.modx_discuss_thread_participants' doesn't exist
)


MODX 2.5.7
Discuss 1.2]]>
https://forums.modx.com/thread/104521/email-notifications#dis-post-562270 Mon, 22 Oct 2018 10:45:21 +0000 https://forums.modx.com/thread/104521/email-notifications#dis-post-562270
<![CDATA[Error - table class/name for class: modAccess]]> https://forums.modx.com/thread/96248/error---table-class-name-for-class-modaccess?page=2#dis-post-561213
I just got this error on Modx manager login, this should come just from straight logging in...but I couldn't reproduce it just now, it has happened several times a couple days ago, but at that time I think probably no one was messing with the forum...

[2015-02-17 01:13:58] (ERROR @ /index.php) Could not get table class for class: modAccess
[2015-02-17 01:13:58] (ERROR @ /index.php) Could not get table name for class: modAccess
[2015-02-17 01:13:58] (ERROR @ /index.php) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS `modAccess` WHERE `modAccess`.`principal` = 335' at line 1
)]]>
https://forums.modx.com/thread/96248/error---table-class-name-for-class-modaccess?page=2#dis-post-561213 Wed, 29 Aug 2018 05:16:24 +0000 https://forums.modx.com/thread/96248/error---table-class-name-for-class-modaccess?page=2#dis-post-561213
<![CDATA[the MODX white screen of death]]> https://forums.modx.com/thread/103552/the-modx-white-screen-of-death#dis-post-557091 I did our website a few years ago using MODX revolution. I'm not very techie and to be honest I haven't touched the backend during the past 10 months. Today I wanted to update some of the content but when I went to the manager page all I could see was a white page. I found bob's post and I certainly saw the number one at the upper left of my screen when I hit "view source". He recommends to "Go to System (Gear Icon) -> System Settings in the MODX Manager, put debug in the search box at the upper right, and press enter". The thing is, I can't access the manager at all because I can't login. Has anyone got an idea on how to solve this?

Sorry if I'm posting this in the wrong thread. Cheers,

Adriana]]>
https://forums.modx.com/thread/103552/the-modx-white-screen-of-death#dis-post-557091 Wed, 28 Feb 2018 08:51:50 +0000 https://forums.modx.com/thread/103552/the-modx-white-screen-of-death#dis-post-557091
<![CDATA[Discuss reply buttons]]> https://forums.modx.com/thread/87339/discuss-reply-buttons#dis-post-556996
I have my own custom theme, but since then, reply buttons are not working anymore.

Should I had anything to my metas (js file for ex) to make it work ?

Thanks

]]>
https://forums.modx.com/thread/87339/discuss-reply-buttons#dis-post-556996 Thu, 22 Feb 2018 10:09:56 +0000 https://forums.modx.com/thread/87339/discuss-reply-buttons#dis-post-556996
<![CDATA[User Group Access]]> https://forums.modx.com/thread/82389/user-group-access?page=2#dis-post-553354
After install I have "Forum Members" group that have access to all globally accessible boards. I've added here a "test" user (not admin user, now it is member of "Forum Members" group only).

My "test" user have access all over the forum.
Good, but I want to have some boards that will be accessible to selected user groups only.

First, I have created a new group "OXC":
give it one context "web" "Member - 9999" "Load, List and View"
and a "test" user as "Member - 9999" ("test" user now is member of "Forum Members" & "OXC" groups).

Question: Should I add second context "web" "Member - 9999" "Discuss Member Policy" to my "OXC" group? Seems that is not necessary, but I have to ask to be sure smiley

Then, I have created a standard board "OXC members only".

As I understand there are two ways to edit access to boards:

#1. Components -> Discuss -> Boards -> "OXC members only" -> Edit Board -> User Group Access
And add here "OXC" group.

#2. Components -> Discuss -> User Groups -> "OXC" -> Update User Group -> Boards
And check here boards to access.

Adding "OXC" group to "OXC members only" board settings causes changes in "OXC"'s checked boards - (#1) causes changes of (#2).
But checking "OXC members only" board in "OXC" group settings not causes changes in "OXC members only" board settings - (#2) not causes changes of (#1).
And it not take effect at all - even after value have been saved, when update-user-group-page reloaded it takes value of board settings (#1), not its own new (allegedly "saved") value. Seems that mechanism (#2) is not working?..

Alright.. let's simply add a group to our board (#1). Save, clear the cache, flush permissions - new settings displays successfully on both pages. But "test" user still do not have access to "OXC members only" board. While Admin and Guest do have! Smiling through tears))) Exactly the opposite result)) What I'm doing wrong?]]>
https://forums.modx.com/thread/82389/user-group-access?page=2#dis-post-553354 Sat, 26 Aug 2017 04:28:19 +0000 https://forums.modx.com/thread/82389/user-group-access?page=2#dis-post-553354
<![CDATA[Anyone know how to setup Global Notification of all new posts/new threads?]]> https://forums.modx.com/thread/96163/anyone-know-how-to-setup-global-notification-of-all-new-posts-new-threads?page=3#dis-post-551624 https://forums.modx.com/thread/96163/anyone-know-how-to-setup-global-notification-of-all-new-posts-new-threads?page=3#dis-post-551624 Fri, 09 Jun 2017 07:29:02 +0000 https://forums.modx.com/thread/96163/anyone-know-how-to-setup-global-notification-of-all-new-posts-new-threads?page=3#dis-post-551624 <![CDATA[dicuss with php 7 ..]]> https://forums.modx.com/thread/101974/dicuss-with-php-7#dis-post-549774


$parts[$i] = preg_replace('~\[([/]?)(list|li)((\s[^\]]+)*)\]~ie', '\'[$1\' . strtolower(\'$2\') . \'$3]\'', $parts[$i]);

if replaced it with

$parts[$i] = preg_replace_callback('~\[([/]?)(list|li)((\s[^\]]+)*)\]~i', function($matches) {
return $matches[0]. strtolower($matches[1]) . $matches[2];
} , $parts[$i]);

The error seems to be fixed, but I'm not sure whether this solution is ok, or not?

]]>
https://forums.modx.com/thread/101974/dicuss-with-php-7#dis-post-549774 Thu, 30 Mar 2017 07:18:02 +0000 https://forums.modx.com/thread/101974/dicuss-with-php-7#dis-post-549774
<![CDATA[Welcome to Discuss]]> https://forums.modx.com/thread/81426/welcome-to-discuss#dis-post-549356
Here's a few guidelines and resources to help.


Expect frequent, iterative updates to Discuss, and please help define and develop its future.]]>
https://forums.modx.com/thread/81426/welcome-to-discuss#dis-post-549356 Mon, 13 Mar 2017 05:32:03 +0000 https://forums.modx.com/thread/81426/welcome-to-discuss#dis-post-549356
<![CDATA[ERROR 500 after install discuss]]> https://forums.modx.com/thread/101446/error-500-after-install-discuss#dis-post-547336
I followed the instructions to install Discuss, Friendly url is working, added needed resources, changed the system settings.

but the forums page return a 500 error.

below is the error log

[Wed Dec 14 19:23:54.716122 2016] [:error] [pid 5208] [client 66.229.165.36:10922] PHP Fatal error:  
Uncaught Error: Call to undefined method stdClass::setOptions() in /var/www/modx/core/components/discuss/model/discuss/request/disrequest.class.php:121\nStack trace:\n#0
/var/www/modx/core/components/discuss/model/discuss/request/disrequest.class.php(85): DisRequest->render()\n#1 /var/www/modx/core/cache/includes/elements/modsnippet/37.include.cache.php(36): 
DisRequest->handle()\n#2 /var/www/modx/core/model/modx/modscript.class.php(70): include('/var/www/modx/c...')\n#3 /var/www/modx/core/model/modx/modparser.class.php(521): modScript->process()\n#4 
/var/www/modx/core/model/modx/modparser.class.php(250): modParser->processTag(Array, true)\n#5 /var/www/modx/core/model/modx/modresponse.class.php(69): modParser->processElementTags('', 
'[[!Discuss]]', true, false, '[[', ']]', Array, 9)\n#6 /var/www/modx/core/model/modx/modrequest.class.php(137): modResponse->outputContent(Array)\n#7 
/var/www/modx/core/model/modx/modrequest.class.php(121): modRequest->prepareResponse()\n#8 /var/www/modx/core/model/modx/modx.class.php(1399): in 
/var/www/modx/core/components/discuss/model/discuss/request/disrequest.class.php on line 121, referer: http://modx.intertrick.com/manager/?a=resource/update&id=9


can anyone help me?]]>
https://forums.modx.com/thread/101446/error-500-after-install-discuss#dis-post-547336 Thu, 15 Dec 2016 12:28:42 +0000 https://forums.modx.com/thread/101446/error-500-after-install-discuss#dis-post-547336
<![CDATA[New solution for DoB calculation]]> https://forums.modx.com/thread/100284/new-solution-for-dob-calculation#dis-post-542114
https://forums.modx.com/thread/44846/date-of-birth-updateprofile?page=3#dis-post-542099]]>
https://forums.modx.com/thread/100284/new-solution-for-dob-calculation#dis-post-542114 Thu, 02 Jun 2016 03:56:14 +0000 https://forums.modx.com/thread/100284/new-solution-for-dob-calculation#dis-post-542114
<![CDATA[Can anyone provide a responsive design theme for discuss]]> https://forums.modx.com/thread/99764/can-anyone-provide-a-responsive-design-theme-for-discuss#dis-post-541729 I hope this problem has already been solved.

:-D]]>
https://forums.modx.com/thread/99764/can-anyone-provide-a-responsive-design-theme-for-discuss#dis-post-541729 Fri, 20 May 2016 02:41:39 +0000 https://forums.modx.com/thread/99764/can-anyone-provide-a-responsive-design-theme-for-discuss#dis-post-541729
<![CDATA[100,000+ Threads]]> https://forums.modx.com/thread/100101/100-000-threads#dis-post-541274
I still remember the old forum site, my username got chewed up when that changed, so I guess this installation was implemented in perhaps 2011-2012. That one felt very random, this one has always been well-organized, even over organized.

Its been a good run, and seems ready to go another several years at least. I did notice some little link styling problem popped up some time ago, where one ring of color around the content was mis-placed, I wonder who fixed it smiley

The biggest problem is its not really working on mobile. That's a real drawback tbh.]]>
https://forums.modx.com/thread/100101/100-000-threads#dis-post-541274 Fri, 06 May 2016 11:49:42 +0000 https://forums.modx.com/thread/100101/100-000-threads#dis-post-541274
<![CDATA[Url Problem Thread Pagination Discuss]]> https://forums.modx.com/thread/99904/url-problem-thread-pagination-discuss#dis-post-540615
it would be great if anyone here can help out with a really weird problem concerning discuss; The 'url' placeholder in the thread paginations generates a url with the correct page query but the url itself is the same like in the board pagination, have tried many things so far but no idea whats going on. It's a migration from an smf board wrapped in a theme with minifyfx as compressor for js and css, everything is in place and working but eventually this plays a role regarding the url problem. If needed i can send further infos per pm.
]]>
https://forums.modx.com/thread/99904/url-problem-thread-pagination-discuss#dis-post-540615 Mon, 18 Apr 2016 10:26:54 +0000 https://forums.modx.com/thread/99904/url-problem-thread-pagination-discuss#dis-post-540615
<![CDATA[One bit of discuss code works while another doesn't. How to check if there is a current user logged?]]> https://forums.modx.com/thread/99793/one-bit-of-discuss-code-works-while-another-doesn-t-how-to-check-if-there-is-a-current-user-logged#dis-post-539943
So it seems this works
[[+discuss.user.id:notempty=`


But this does not
  [[+discuss.user.id:is=``:then=`


And can someone provide a code to provide a login box if there is no user logged in, I dont think i need to use discuss to check this.
]]>
https://forums.modx.com/thread/99793/one-bit-of-discuss-code-works-while-another-doesn-t-how-to-check-if-there-is-a-current-user-logged#dis-post-539943 Sat, 26 Mar 2016 01:28:45 +0000 https://forums.modx.com/thread/99793/one-bit-of-discuss-code-works-while-another-doesn-t-how-to-check-if-there-is-a-current-user-logged#dis-post-539943
<![CDATA[No login fields visible]]> https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539931
Maybe it has to do with the following: I checked if the registration page exists, which it does. But registering does not work: nothing happens when submitting the form.

I checked everything again and again, but I can't find what's wrong.]]>
https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539931 Fri, 25 Mar 2016 12:05:46 +0000 https://forums.modx.com/thread/99762/no-login-fields-visible?page=2#dis-post-539931
<![CDATA[Error during installation - Could not load class: disParticipant from mysql.disparticipant.]]> https://forums.modx.com/thread/87792/error-during-installation---could-not-load-class-disparticipant-from-mysql-disparticipant#dis-post-539619
When I install discuss I get the following error:

Could not load class: disParticipant from mysql.disparticipant.


Everything works fine apart from /forums/thread/new_replies_to_posts (unread replies since last visit)

The following errors comwes up
[2013-11-19 07:31:53] (ERROR @ /index.php) Error 42S02 executing statement: Array ( [0] => 42S02 [1] => 1146 [2] => Table 'coinzi.modx_discuss_thread_participants' doesn't exist )


I have tried to re-install, but keep getting the same error.

Appreciate any help smiley

]]>
https://forums.modx.com/thread/87792/error-during-installation---could-not-load-class-disparticipant-from-mysql-disparticipant#dis-post-539619 Tue, 15 Mar 2016 09:13:38 +0000 https://forums.modx.com/thread/87792/error-during-installation---could-not-load-class-disparticipant-from-mysql-disparticipant#dis-post-539619
<![CDATA[Classes, Avatars and Social buttons in post view]]> https://forums.modx.com/thread/98926/classes-avatars-and-social-buttons-in-post-view#dis-post-535865
So, I discovered that all this stuff can be put into this file, which builds up ever single post: core/components/discuss/themes/default/chunks/post/disthreadpost.chunk.tpl

Here is what the final result looks like, I was quite happy with it, as the post view went from being a very bland space to having color and icons and other stuff. https://www.rayxilawforums.com/forums/thread/164/necessary-v.-sufficient/

I am sorry to say I cannot be sure exactly what was edited and what was not. I definitely did take out the buttons when making a new topic to choose whether to make a question or a discussion, and the default is discussion, so I didn't need to pull out all the code related to questions, if there is no button to choose question then there are no questions and that code never is used.

The first part of this code is related to questions, then beginning with <div class="dis-post-left"> we have the left side of the post, which has the user name and avatar.

For user classes, class "badges" and avatars, I found the documentation to be limited, so I just asked some developer friends to do them independent of the system. Badges are part of the Discuss system but I had no idea how to make them work at that time, so we just made our own.

In this page, as default we had number of posts provided, and what we did was use that data to make classes and class badges. At that time I had little understanding of what data about the author we could access from this template, so we just used the one we knew we could get, which was user posts. Now I understand the system much better, and so I guess we could use other author data as well, such as number of threads started and so on. So user class and class badges begin with <li class="dis-usr-post-count">. We tried to calculate how quickly to let users move up, we wanted the advancement to start early but then slow down as number of posts went on.

Avatars were a little tricker, there was a lot of changes that needed to be made in different places. The avatars have to be uploaded using the right code and the post view and profile view must be edited, I think those were the only places the avatar appears.

Finally, social buttons, I wanted the social buttons to sit to the lower left, but had to be careful of the reply button which uses java to stay hidden until mouse-over. Not all of these buttons work to be honest. The "bookmark this" add on worked perfectly for me, as i could edit all the data easily.

<li class="[[+class]] group-fix" id="dis-post-[[+id]]" data-author="[[+author.username:htmlent]]" data-date="[[+createdon_raw]]" data-message="[[+content_raw]]">
    [[+answer:neq=``:then=`
    <div class="dis-post-answer-marker">
        [[+answer_count:gt=`1`:then=`
            <nav>
            [[+answer_prev.link]]
            [[+answer_next.link]]
            </nav>
        `:else=``]]

        [[+url_mark_as_answer:eq=``:then=`
            <span title="[[%discuss.answer]]">[[%discuss.answer]]</span>
        `:else=`
        <a href="[[+url_mark_as_answer]]">
            <span title="[[%discuss.unflag_answer]]">[[%discuss.unflag_answer]]</span>
        </a>
        `]]
    </div>
    `:else=`
        <div class="dis-post-answer-marker dis-post-notanswer">
            [[+url_mark_as_answer:eq=``:then=``:else=`
            <div class="dis-post-answer-marker dis-post-notanswer">
                <p>[[%discuss.flag_answer]]</p>
                <a href="[[+url_mark_as_answer]]">
                    <span>[[%discuss.flag_answer]]</span>
                </a>
            </div>
            `]]
        </div>
    `]]
    <!-- mark answer-->
    <div class="dis-post-left">
        <ul>
            <li class="dis-usr-icon">
                <a href="[[DiscussUrlMaker? &action=`user` ¶ms=`{"type":"username", "user":"[[+author.username]]"}`]]" class="auth-avatar" title="[[%discuss.view_author_profile]]">
<img src="assets/userfiles/[[+author.username]]/avatar.gif" alt="[[+author.username]]">
                    [[+author.title:notempty=`<span class="dis-usr-title">[[+author.title]]</span>`]]
                </a>
            </li>
            <li class="dis-usr-post-count">
[[+author.user:ismember=`Administrator`:then=`<div>Admin</div>
`:else=`
[[+author.user:ismember=`Forum Moderators`:then=`<div>Moderator</div>
`:else=`
[[+author.posts:gt=`0`:and:lte=`8`:then=`<div>Class 1</div>`]]
[[+author.posts:gt=`8`:and:lte=`18`:then=`<div>Class 2</div>`]]
[[+author.posts:gt=`18`:and:lte=`33`:then=`<div>Class 3</div>`]]
[[+author.posts:gt=`33`:and:lte=`50`:then=`<div>Class 4</div>`]]
[[+author.posts:gt=`50`:and:lte=`65`:then=`<div>Class 5</div>`]]
[[+author.posts:gt=`65`:and:lte=`85`:then=`<div>Class 6</div>`]]
[[+author.posts:gt=`85`:and:lte=`105`:then=`<div>Class 7</div>`]]
[[+author.posts:gt=`105`:and:lte=`125`:then=`<div>Class 8</div>`]]
[[+author.posts:gt=`125`:and:lte=`150`:then=`<div>Class 9</div>`]]
[[+author.posts:gt=`150`:and:lte=`180`:then=`<div>Class 10</div>`]]
[[+author.posts:gt=`180`:and:lte=`205`:then=`<div>Class 11</div>`]]
[[+author.posts:gt=`205`:and:lte=`235`:then=`<div>Class 12</div>`]]
[[+author.posts:gt=`235`:and:lte=`270`:then=`<div>Class 13</div>`]]
[[+author.posts:gt=`270`:and:lte=`310`:then=`<div>Class 14</div>`]]
[[+author.posts:gt=`310`:and:lte=`9990`:then=`<div>Class 15</div>`]]
`]]
`]] 
            </li>
            
            
            
            
            
<li class="rrank">
[[+author.posts:gt=`0`:and:lte=`5`:then=`<div class="s1"></div>`]]
[[+author.posts:gt=`5`:and:lte=`10`:then=`<div class="s2"></div>`]]
[[+author.posts:gt=`10`:and:lte=`15`:then=`<div class="sp1"></div><div class="s1"></div>`]]
[[+author.posts:gt=`15`:and:lte=`20`:then=`<div class="sp2"></div>`]]
[[+author.posts:gt=`20`:and:lte=`30`:then=`<div class="st1"></div><div class="sp1"></div>`]]
[[+author.posts:gt=`30`:and:lte=`40`:then=`<div class="st2"></div>`]]
[[+author.posts:gt=`40`:and:lte=`50`:then=`<div class="gt1"></div><div class="st1"></div>`]]
[[+author.posts:gt=`50`:and:lte=`75`:then=`<div class="gt2"></div>`]]
[[+author.posts:gt=`75`:and:lte=`100`:then=`<div class="ft1"></div><div class="gt1"></div>`]]
[[+author.posts:gt=`100`:and:lte=`120`:then=`<div class="ft2"></div>`]]
[[+author.posts:gt=`120`:and:lte=`140`:then=`<div class="ga1"></div><div class="ft1"></div>`]]
[[+author.posts:gt=`140`:and:lte=`160`:then=`<div class="ga2"></div>`]]
[[+author.posts:gt=`160`:and:lte=`180`:then=`<div class="rat1"></div><div class="ga1"></div>`]]
[[+author.posts:gt=`180`:and:lte=`200`:then=`<div class="rat2"></div>`]]
[[+author.posts:gt=`200`:and:lte=`220`:then=`<div class="glt1"></div>`]]
[[+author.posts:gt=`220`:and:lte=`240`:then=`<div class="glt1"></div><div class="s1"></div>`]]
[[+author.posts:gt=`240`:and:lte=`270`:then=`<div class="glt1"></div><div class="sp1"></div>`]]
[[+author.posts:gt=`270`:and:lte=`300`:then=`<div class="glt1"></div><div class="st1"></div>`]]
[[+author.posts:gt=`300`:and:lte=`350`:then=`<div class="glt1"></div><div class="gt1"></div>`]]
[[+author.posts:gt=`350`:and:lte=`400`:then=`<div class="glt1"></div><div class="ft1"></div>`]]
[[+author.posts:gt=`400`:and:lte=`500`:then=`<div class="glt1"></div><div class="rat1"></div>`]]
[[+author.posts:gt=`500`:and:lte=`600`:then=`<div class="glt2"></div>`]]

</li>


            <a href="[[DiscussUrlMaker? &action=`messages/new` ¶ms=`{"user":"[[+author.username]]"}`]]" class="dis-pm-btn">Send PM</a>
        </ul>
    </div>
    <div class="dis-post-right">
        <div class="title">
            <strong>[[+author.username_link]]</strong> <a class="normal-type" href="[[+url]]" title="[[%discuss.post_link]]">
            Reply #[[+idx]], <span title="[[+createdon]]">[[+createdon:ago]]</span></a>
            [[+action_modify:notempty=`<ul class="dis-content-actions">[[+action_modify]][[+action_remove]][[+action_spam]]</ul>`]]
        </div>
        <div class="dis-content">
            [[+content]]
<div style="float:right; margin-top:20px; margin-right:10px; margin-bottom:5px;"><p><span style="font-size:14px; font-weight:600; color:#808080;">Share This Thread:</span>  <a target="_blank" href="https://plusone.google.com/_/+1/confirm?url=[[+url]]"><img src="assets/components/bookmarkthis/images/v1.4/google plus.png" style="max-width:18px; max-height:18px; border:1px groove silver;" /></a> <a target="_blank" href="http://share.renren.com/share/buttonshare.do?link=[[+url]]&title=[[+content_raw:ellipsis]]"><img src="assets/components/bookmarkthis/images/v1.4/renren.png" style="max-width:18px; max-height:18px; border:1px groove silver;" /></a> <a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=[[+url]]"><img src="assets/components/bookmarkthis/images/v1.4/facebook.png" style="max-width:18px; max-height:18px; border:1px groove silver;" /></a> <a target="_blank" href="http://service.weibo.com/share/share.php?url=[[+url]]&appkey=&title=[[+content_raw:ellipsis=`80`]]"><img src="assets/components/bookmarkthis/images/v1.4/weibo.png" style="max-width:18px; max-height:18px; border:1px groove silver;" /></a> <a target="_blank" href="https://twitter.com/intent/tweet?text=[[+content_raw:ellipsis=`80`]]&url=[[+url]]&via="rayxilawforums"><img src="assets/components/bookmarkthis/images/v1.4/twitter.png" style="max-width:18px; max-height:18px; border:1px groove silver;" /></a> <a target="_blank" href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=[[+url]]&title=[[+content_raw:ellipsis=`80`]]"><img src="assets/components/bookmarkthis/images/v1.4/qqzone.png" style="max-width:18px; max-height:18px; border:1px groove silver;" /></a> </div>
            [[+discuss.user.shouldMarkAnAnswer:eq=`1`:then=`
                [[+idx:eq=`1`:then=`
                    <div class="dis-info"><p>[[%discuss.mark_answer_instructions]] <a id="Show-answer-link" href="#">[[%discuss.mark_answer_link]]</a></p></div>
                `:else=``]]
            `:else=``]]
            [[+idx:eq=`1`:then=`
                [[+answer_count:neq=`0`:then=`
                    <div class="dis-info"><p>[[+jump_to_first_answer.explanation]] [[+jump_to_first_answer.link]]</p></div>
                `:else=``]]
            `:else=``]]
            [[+attachments:notempty=`<div class="dis-post-attachments"><ul class="dis-attachments">[[+attachments]]</ul></div>`]]
            [[+editedby:is=`0`:then=``:else=`<span class="dis-post-editedon">[[%discuss.editedon_post? &on=`[[+editedon:ago]]` &user=`[[+editedby.username]]`]]</span>`]]
        </div>
        <ul class="dis-action-btn">[[+report_link]][[+action_reply]]</ul>
    </div>
    [[+author.signature:notempty=`<div class="dis-signature">[[+author.signature]]</div>`]]
</li>
]]>
https://forums.modx.com/thread/98926/classes-avatars-and-social-buttons-in-post-view#dis-post-535865 Mon, 14 Dec 2015 09:16:03 +0000 https://forums.modx.com/thread/98926/classes-avatars-and-social-buttons-in-post-view#dis-post-535865
<![CDATA[Step 2: Sass for Discuss]]> https://forums.modx.com/thread/89969/step-2-sass-for-discuss?page=2#dis-post-534927
Now I have to deal with the Sass for design, colors and style, to make the forums my own. Finally I want to customize a lot of things, but for now I just want to arrange the colors and effects a little bit.

I am just a hacker with little real ability in coding, I just know how to handle html and a little css, and then where to put the metatags or javascript, that's about it. But Sass code is somewhat accessible to me, as it similar to CSS, so I can read it a bit. Most importantly, it lets us do all sorts of really cool things like gradients, hover effects, and shadows and so on. As my design evolves, Sass is going to be critical to maintaining a really outstanding look and feel.

I wasn't comfortable editing the Sass files on the server, so I downloaded everything and set it up on my local machine. I arranged it just like on the server, with the main sass file and several partials in the first folder, and then the lib and partial and the other folders as well. The config.rb file isn't hard to edit at all, I put mine below.

Now I have access to all the templates and style sheets, and can convert, make a new css file, and upload that to the server in modx to implement. Chromium has been great not to cache the page, and I always clear cache after changing the css file then over to Chromium to see the changes. Relative paths work and everything. There are a couple warnings and one error on one picture, but I haven't seen any effect from that at all.

The default design code is really robust I would say, there are lots of different effects that I can eventually utilize freely as I learn more. There are also lots of sort of dead ends that I can pick up and utilize myself (gradients that are defined but not used or rarely used, stuff like this), resources in the code basically. This means I don't have to know how to build up a shading effect, but still use one at will. I could take that code and use different colors, attach it to whatever I wanted...

Now I care most about colors, and I built up a rough guide to where stuff is. Generally, the files to edit are _theme-settings, but also _forums, I didn't touch _color-patterns actually, as that seemed too confusing. Header stuff is all in _masthead.sass, _shared has a couple things. Text on the right sidebar is all in the sidebar template, and there are some boxes in there that key off of the main light background color (yes its a very dark implementation of a very light color).

Basically the color palette provided is good but they ended up linking most stuff up to two values, the background color and the header color. So I have been unlinking them and at least having more variables involved. I provide my colors at the moment with comments, below.

Background: all shadings of some posts, the grey area with "Title" in it, search and view latest posts, the sidebar dark boxes, the locked button, breadcrumbs

Header: header pick, horizontal bar with title content in it, reply bar, and title of post when its a link. I can't remember if the whole top is built off of this value, anyway it all can be changed in the masthead.sass file

Anyway, at this point I have almost complete control over my colors! I broke up the bunches just a bit, and figured out where stuff was mostly. There are a few gaps but overall I get to do what I want to do now!

CONFIG.RB
# Require any additional compass plugins here.

# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "stylesheets"
sass_dir = "/"
images_dir = "images"
javascripts_dir = "js/redo"

output_style = :expanded

# To enable relative paths to assets via compass helper functions. Uncomment:
relative_assets = false

# To disable debugging comments that display the original location of your selectors.
line_comments = true
color_output = true

# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass



COLOR GRID
$c-base: #fff                                // Background color. Many elements are built from this base - recent posts are in _shared
$c-copy: #444                                   // Base copy color- original is dark purple - most text of topics in grid
$c-copy-med: #444               // Secondary copy areas - used for dates and posts of user in thread
$c-dark-bg: #0066cc                             // Intense Green - Main CTA buttons and glow on hover - hover seems to have two colors involved but this is main one
$c-dark-cool-bg: #797BF7                        // Dark Blueish Green - this is the main strong dark color - masthead has all header stuff, other in in boards and posts
$c-alt-1: #0066cc                               // Light blue - one place, button in header
$c-tertiary: #f3ad3a                            // Orange - Not sure if used
$c-tertiary-alt: saturate($c-tertiary, 10%)     // To be used with orange
$txt-color-lightblue: #0066cc                    // all top header links except create one link and there is text there
$txt-color-lightblue-over: #a3c94f            // nothing it seems...

// GRADIENTS
$g-low-contrast: darken($c-base, 9%), darken($c-base, 17%)// where is it not used at all or much
$g-med-contrast:         // Not used...
$g-high-contrast:             // Not used...
]]>
https://forums.modx.com/thread/89969/step-2-sass-for-discuss?page=2#dis-post-534927 Sat, 28 Nov 2015 08:24:22 +0000 https://forums.modx.com/thread/89969/step-2-sass-for-discuss?page=2#dis-post-534927
<![CDATA[how to set public read access for attachments]]> https://forums.modx.com/thread/98881/how-to-set-public-read-access-for-attachments?page=2#dis-post-534889 i'm new to modx.
I want to change the read permission of attachments --> public read access.
How is it possible to change the permission set of anonymous group?

]]>
https://forums.modx.com/thread/98881/how-to-set-public-read-access-for-attachments?page=2#dis-post-534889 Fri, 27 Nov 2015 05:00:35 +0000 https://forums.modx.com/thread/98881/how-to-set-public-read-access-for-attachments?page=2#dis-post-534889