We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10357
    • 573 Posts
    Hi,

    I am trying to style the author posts differently from everyone else’s. i have the jot-row-author class in my css and the [+chunk.rowclass+] in my template. The jot-row-me class get printed by not the author class.

    I am trying to leave a comment with the manager who authored the post, is this right?
      • 10357
      • 573 Posts
      sorry i just had to log out embarrassed
        • 10357
        • 573 Posts
        Another problem i am having is that the author row style replaces the alt row style. So it is not possiblbe to change the color of the text and not the backround. is there a way round this?
          • 4195
          • 398 Posts
          actually the css styles are stacked like: class="class1 class2 class3" so you can achieve what you want smiley
            Armand Pondman
            MODx Coding Team
            :: Jot :: PHx
            • 10357
            • 573 Posts
            hmm.. it does not do this for me, author row seems to replace alt row.

            http://www.mutevj.com/coTest.html
              • 4195
              • 398 Posts
              you’re right.. it’s currently "hardcoded" into jot .. I will add this to my fixlist
                Armand Pondman
                MODx Coding Team
                :: Jot :: PHx
                • 10357
                • 573 Posts
                thanks grin
                  • 4195
                  • 398 Posts
                  quickfix

                  replace the whole function getChunkRowClass in jot.class.inc.php at line ~746 with:

                  function getChunkRowClass($count,$userid) {
                  		$rowstyle = ($count%2) ? "jot-row-alt" : "";
                  		if ( $this->config["user"]["id"] == $userid && ($userid != 0)) {
                  			$rowstyle .= " jot-row-me";
                  		} elseif ( $this->config["authorid"] == $userid && ($userid != 0) ) {
                  			$rowstyle .= " jot-row-author";
                  		} 
                  		return $rowstyle;
                  	}
                  


                  this fix will be in the next release.
                    Armand Pondman
                    MODx Coding Team
                    :: Jot :: PHx
                    • 10357
                    • 573 Posts
                    thank you, worked like a charm grin