• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

XenWord Pro 2017 Thread Prefix bug in widget (2017.12.20)

robru

Baby Penguin
XenWord Professional
upload_2017-12-21_12-47-44.png


How to disable prefix entry in existing widget topics.
 

LPH

Flight Director
Flight Instructor
At this point, I've tried several different ways and getting strange results.

You hover over thread_prefix.0 then you'll see a class name thread_prefix.0 and so I thought adding a display:none would work.

Any conditional placed in the PHP code will not render all of the files correctly.

I'll keep tinkering.
 

LPH

Flight Director
Flight Instructor
I had to step back for a second. The issue was the threadListItem being in a div tag within the echo.

This fixes it.

Code:
         // Show Prefix

         echo "<div class='threadListItem'> ";

         if ( $prefix_id != 0 ) {
          echo "<span class='{$prefixesCSS}'>{$prefixTitle}</span> ";
         }
 

LPH

Flight Director
Flight Instructor
I'm uploading 2017.12.22.

( 16 ) 2017.12.22 - December 22, 2017
Tested under WordPress 5.0 alpha
Added font awesome
Completed Wide Stats Widget
Bug Fix: Wrapped file_exists for loading XF
Bug Fix: thread prefix id is 0
Bug Fix: Added is_array in xenword.php
Bug Fix: Removed use of magic method in Avatars.php

Here is the new wide widget.

XenWord Pro 2017.12.22 Wide Widget.png
 

robru

Baby Penguin
XenWord Professional
Very nice done @LPH
Thank you for all the hard work this year, and a merry Christmas :)
 
Top