Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
W.W.W Posted September 10, 2019 Posted September 10, 2019 EDIT: Latest issue: Hi im getting an error when trying to view a thread [[Template forums/front/topics/topic is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] Theme im using: https://invisioncommunity.com/files/file/9054-chocolate/ (he no longer provides support) if you guys cant help me with this can you point me in the right direction please willing to pay for a fix
Daniel F Posted September 10, 2019 Posted September 10, 2019 I would suggest to take a look at your system log which should help to locate the issue.
W.W.W Posted September 10, 2019 Author Posted September 10, 2019 4 hours ago, Daniel F said: I would suggest to take a look at your system log which should help to locate the issue. i dont know any coding so i dont know what im looking at haha
Pete T Posted September 10, 2019 Posted September 10, 2019 8 hours ago, Scu11 said: Hi im getting an error when trying to view a thread [[Template forums/front/topics/topic is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] Theme im using: https://invisioncommunity.com/files/file/9054-chocolate/ (he no longer provides support) if you guys cant help me with this can you point me in the right direction please willing to pay for a fix I have made update for this theme as few had wanted updating i will need check if did update to 4.4.5 theme changes or not.
Joel R Posted September 12, 2019 Posted September 12, 2019 On 9/10/2019 at 3:01 AM, Scu11 said: Hi im getting an error when trying to view a thread [[Template forums/front/topics/topic is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] Theme im using: https://invisioncommunity.com/files/file/9054-chocolate/ (he no longer provides support) if you guys cant help me with this can you point me in the right direction please willing to pay for a fix Does he say anywhere that he does not provide support?
W.W.W Posted September 12, 2019 Author Posted September 12, 2019 13 minutes ago, Joel R said: Does he say anywhere that he does not provide support? hes gone MIA
Jennifer M Posted September 12, 2019 Posted September 12, 2019 Most likely it's the Topic forward and back section, considering the version it was made for. @Scu11 Find this: <div class='ipsGrid ipsGrid_collapsePhone ipsPager ipsClearfix ipsSpacer_top ipsContained'> <div class="ipsGrid_span6 ipsType_left ipsPager_prev {{if \IPS\forums\Forum::isSimpleView( $topic->container() )}}ipsPager_noDesc{{endif}}"> {{if \IPS\forums\Forum::isSimpleView( $topic->container() )}} <a href="{url="app=forums&module=forums&controller=index" seoTemplate="forums"}" title="{{if $topic->isQuestion() }}{lang="go_back_to_qa_forum"}{{else}}{lang="go_back_to_forum"}{{endif}}" rel="up"> <span class="ipsPager_type">{{if $topic->isQuestion() }}{lang="go_back_to_qa_forum"}{{else}}{lang="go_back_to_forum"}{{endif}}</span> </a> {{else}} <a href="{$topic->container()->url()}" title="{lang="go_to_forum" sprintf="$topic->container()->metaTitle()"}" rel="up">rel="parent"> <span class="ipsPager_type">{{if $topic->isQuestion() }}{lang="go_back_to_qa_forum"}{{else}}{lang="go_back_to_forum"}{{endif}}</span> <span class="ipsPager_title ipsType_light ipsTruncate ipsTruncate_line">{lang="$topic->container()->_title"}</span> </a> {{endif}} </div> {{if $nextUnread !== NULL}} <div class='ipsGrid_span6 ipsType_right ipsPager_next'> <a href="{$nextUnread->url()->setQueryString( array( 'do' => 'getNewComment' ) )}" title='{{if $topic->isQuestion()}}{lang="view_next_unread_question_title"}{{else}}{lang="view_next_unread_title"}{{endif}}'> <span class="ipsPager_type">{{if $topic->isQuestion()}}{lang="view_next_unread_question"}{{else}}{lang="view_next_unread"}{{endif}}</span> <span class="ipsPager_title ipsType_light ipsTruncate ipsTruncate_line">{$nextUnread->mapped('title')}</span> </a> </div> {{endif}} And replace it with this. <div class='ipsGrid ipsGrid_collapsePhone ipsPager ipsClearfix ipsSpacer_top ipsContained'> <div class="ipsGrid_span6 ipsType_left ipsPager_prev ipsPager_noDesc"> {{if \IPS\forums\Forum::isSimpleView( $topic->container() )}} <a href="{url="app=forums&module=forums&controller=index" seoTemplate="forums"}" title="{{if $topic->isQuestion() }}{lang="go_back_to_qa_forum"}{{else}}{lang="go_back_to_forum"}{{endif}}" rel="parent"> <span class="ipsPager_type">{{if $topic->isQuestion() }}{lang="go_back_to_qa_forum"}{{else}}{lang="go_back_to_forum"}{{endif}}</span> </a> {{else}} <a href="{$topic->container()->url()}" title="{lang="go_to_forum" sprintf="$topic->container()->metaTitle()"}" rel="parent"> <span class="ipsPager_type">{{if $topic->isQuestion() }}{lang="go_back_to_qa_forum"}{{else}}{lang="go_back_to_forum"}{{endif}}</span> </a> {{endif}} </div> {{if $nextUnread !== NULL}} <div class='ipsGrid_span6 ipsType_right ipsPager_next ipsPager_noDesc'> <a href="{$topic->url()->setQueryString( array( 'do' => 'nextUnread' ) )}" title='{{if $topic->isQuestion()}}{lang="view_next_unread_question_title"}{{else}}{lang="view_next_unread_title"}{{endif}}'> <span class="ipsPager_type">{{if $topic->isQuestion()}}{lang="view_next_unread_question"}{{else}}{lang="view_next_unread"}{{endif}}</span> </a> </div> {{endif}}
W.W.W Posted September 12, 2019 Author Posted September 12, 2019 6 hours ago, Jennifer M said: Most likely it's the Topic forward and back section, considering the version it was made for. @Scu11 Find this: <div class='ipsGrid ipsGrid_collapsePhone ipsPager ipsClearfix ipsSpacer_top ipsContained'> <div class="ipsGrid_span6 ipsType_left ipsPager_prev {{if \IPS\forums\Forum::isSimpleView( $topic->container() )}}ipsPager_noDesc{{endif}}"> {{if \IPS\forums\Forum::isSimpleView( $topic->container() )}} <a href="{url="app=forums&module=forums&controller=index" seoTemplate="forums"}" title="{{if $topic->isQuestion() }}{lang="go_back_to_qa_forum"}{{else}}{lang="go_back_to_forum"}{{endif}}" rel="up"> <span class="ipsPager_type">{{if $topic->isQuestion() }}{lang="go_back_to_qa_forum"}{{else}}{lang="go_back_to_forum"}{{endif}}</span> </a> {{else}} <a href="{$topic->container()->url()}" title="{lang="go_to_forum" sprintf="$topic->container()->metaTitle()"}" rel="up">rel="parent"> <span class="ipsPager_type">{{if $topic->isQuestion() }}{lang="go_back_to_qa_forum"}{{else}}{lang="go_back_to_forum"}{{endif}}</span> <span class="ipsPager_title ipsType_light ipsTruncate ipsTruncate_line">{lang="$topic->container()->_title"}</span> </a> {{endif}} </div> {{if $nextUnread !== NULL}} <div class='ipsGrid_span6 ipsType_right ipsPager_next'> <a href="{$nextUnread->url()->setQueryString( array( 'do' => 'getNewComment' ) )}" title='{{if $topic->isQuestion()}}{lang="view_next_unread_question_title"}{{else}}{lang="view_next_unread_title"}{{endif}}'> <span class="ipsPager_type">{{if $topic->isQuestion()}}{lang="view_next_unread_question"}{{else}}{lang="view_next_unread"}{{endif}}</span> <span class="ipsPager_title ipsType_light ipsTruncate ipsTruncate_line">{$nextUnread->mapped('title')}</span> </a> </div> {{endif}} And replace it with this. <div class='ipsGrid ipsGrid_collapsePhone ipsPager ipsClearfix ipsSpacer_top ipsContained'> <div class="ipsGrid_span6 ipsType_left ipsPager_prev ipsPager_noDesc"> {{if \IPS\forums\Forum::isSimpleView( $topic->container() )}} <a href="{url="app=forums&module=forums&controller=index" seoTemplate="forums"}" title="{{if $topic->isQuestion() }}{lang="go_back_to_qa_forum"}{{else}}{lang="go_back_to_forum"}{{endif}}" rel="parent"> <span class="ipsPager_type">{{if $topic->isQuestion() }}{lang="go_back_to_qa_forum"}{{else}}{lang="go_back_to_forum"}{{endif}}</span> </a> {{else}} <a href="{$topic->container()->url()}" title="{lang="go_to_forum" sprintf="$topic->container()->metaTitle()"}" rel="parent"> <span class="ipsPager_type">{{if $topic->isQuestion() }}{lang="go_back_to_qa_forum"}{{else}}{lang="go_back_to_forum"}{{endif}}</span> </a> {{endif}} </div> {{if $nextUnread !== NULL}} <div class='ipsGrid_span6 ipsType_right ipsPager_next ipsPager_noDesc'> <a href="{$topic->url()->setQueryString( array( 'do' => 'nextUnread' ) )}" title='{{if $topic->isQuestion()}}{lang="view_next_unread_question_title"}{{else}}{lang="view_next_unread_title"}{{endif}}'> <span class="ipsPager_type">{{if $topic->isQuestion()}}{lang="view_next_unread_question"}{{else}}{lang="view_next_unread"}{{endif}}</span> </a> </div> {{endif}} LEGEND! fixed haha are these as simple to fix i hope?
Dean_ Posted September 12, 2019 Posted September 12, 2019 Wow, look at that. Now that is community spirit right there. Feeling the love. 🥰
Jennifer M Posted September 12, 2019 Posted September 12, 2019 For the Profile header it's all of the follow bits. You'll need to find every instance of this: ( $memberFollowers === NULL ) ? 0 : $memberFollowers->count( TRUE ) And replace it with this: $member->followersCount() Remove both instances of this: {{$memberFollowers = $member->followers();}} And find this: {number="$member->followers()->count(true)"} and replace it with this: {number="$member->followersCount()"} For the second template. Find both instances of this: $followers->count( TRUE ) and replace with this: $member->followersCount()
Recommended Posts
Archived
This topic is now archived and is closed to further replies.