Edge style issue

creaky

Customer
I use Edge on a site with Snog's Movie, TV & Game posting addons and have an issue with the node display.

This is the node using the default style
defaultstyle.PNG
This is the node using Edge
edge.PNG
Notice all the extra info is missing such as the platform & genre for example.

This is happening with all the addons I have installed from Snog, example link below

https://moviesgamestv.co.uk/forums/video-game-database.10/

Edit:

Think I've found the issue, it appears to be a template modification not being applied to thread_list_macros

This is the find
Code:
<ul class="structItem-parts">
                       <li><xf:username user="$thread.User" defaultname="{$thread.username}" /></li>
                       <li class="structItem-startDate"><a href="{{ link('threads', $thread) }}" rel="nofollow"><xf:date time="{$thread.post_date}" /></a></li>
                       <xf:if is="!$forum">
                           <li><a href="{{ link('forums', $thread.Forum) }}">{$thread.Forum.title}</a></li>
                       </xf:if>
                   </ul>
This is the replace
Code:
<xf:if is="$forum && in_array({$forum.node_id}, $xf.options.tgdb_option_forum) && $thread.Game is not empty">
   <xf:include template="snog_tgdb_forum_thread_list" />
<xf:else />
   $0
</xf:if>

According to this it's not being applied.
edge.PNG
 

Attachments

  • template.PNG
    template.PNG
    9.8 KB · Views: 8
Last edited:

Russ

Pixel Exit Staff
So the easiest way would be to, replace:

Code:
                    <ul class="structItem-parts">
                        <li><xf:username user="$thread.User" defaultname="{$thread.username}" /></li>
                        <li class="structItem-startDate"><a href="{{ link('threads', $thread) }}" rel="nofollow"><xf:date time="{$thread.post_date}" /></a></li>
                        <xf:if is="!$forum">
                            <li><a href="{{ link('forums', $thread.Forum) }}">{$thread.Forum.title}</a></li>
                        </xf:if>
                        <xf:if is="property('xbDiscussionIcon') == 'replies'">
                            <li class="structItem-viewCount">{{ phrase('views') }} - {{ $thread.discussion_type == 'redirect' ? '&ndash;' : ($thread.view_count > $thread.reply_count ? $thread.view_count|number : number($thread.reply_count+1)) }}</li>
                        </xf:if>
                    </ul>

With the default template::

Code:
                    <ul class="structItem-parts">
                        <li><xf:username user="$thread.User" defaultname="{$thread.username}" /></li>
                        <li class="structItem-startDate"><a href="{{ link('threads', $thread) }}" rel="nofollow"><xf:date time="{$thread.post_date}" /></a></li>
                        <xf:if is="!$forum">
                            <li><a href="{{ link('forums', $thread.Forum) }}">{$thread.Forum.title}</a></li>
                        </xf:if>
                    </ul>

I'll see if I can't take another approach on our end, although I also think there's a way of Snog finding the code by doing a regular expression that would find
Code:
<ul class="structItem-parts">
and the closing </ul>
 

Russ

Pixel Exit Staff
I wonder if it's to do with our new icon options. For kicks can you copy the entire thread_list_macros from the default style (default XF) and paste it into your child style?
 

creaky

Customer
I wonder if it's to do with our new icon options. For kicks can you copy the entire thread_list_macros from the default style (default XF) and paste it into your child style?

That fixes the problem, will leave it like that for the time being.
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.