XF 1.x Problem with style and additions

Russ

Pixel Exit Staff
Well, header thumbs could be a problem because you have the social icons enabled. We've customized the ad_header template which he's probably trying to target.

You could try replacing ad_header with:

Code:
<xen:hook name="ad_header" />
which is the stock code, but you'll lose the functions of the social icons up there.

I'm noticing some of the template modifications are pretty aggressive in the sense he's selecting a lot of code to find.

To fix the forum_list template ads I think you can simply find this at the bottom of forum_list
Code:
<div class="pageNavLinkGroup afterDiscussionListHandle">
   <div class="linkGroup">
     <xen:if is="{$canPostThread}">
       <a href="{xen:link 'forums/create-thread', $forum}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a>
     <xen:elseif is="{$visitor.user_id}" />
       <span class="element">({xen:phrase no_permission_to_post})</span>
     <xen:else />
       <label for="LoginControl"><a href="{xen:link login}" class="<xen:if is="@xb_login_overlay OR @xb_alt_login">OverlayTrigger </xen:if>concealed element">({xen:phrase log_in_or_sign_up_to_post})</a></label>
     </xen:if>
   </div>
   <div class="linkGroup"{xen:if '!{$ignoredNames}', ' style="display: none"'}><a href="javascript:" class="muted JsOnly DisplayIgnoredContent Tooltip" title="{xen:phrase show_hidden_content_by_x, "names={xen:helper implode, $ignoredNames, ', '}"}">{xen:phrase show_ignored_content}</a></div>
   
   <xen:pagenav link="forums" linkdata="{$forum}" linkparams="{$pageNavParams}" page="{$page}" perpage="{$threadsPerPage}" total="{$totalThreads}" />
</div>
Replace with :
Code:
<div class="pageNavLinkGroup afterDiscussionListHandle">
   <div class="linkGroup">
     <xen:if is="{$canPostThread}">
       <a href="{xen:link 'forums/create-thread', $forum}" class="callToAction"><span>{xen:phrase post_new_thread}</span></a>
     <xen:elseif is="{$visitor.user_id}" />
       <span class="element">({xen:phrase no_permission_to_post})</span>
     <xen:else />
       <label for="LoginControl"><a href="{xen:link login}" class="concealed element">({xen:phrase log_in_or_sign_up_to_post})</a></label>
     </xen:if>
   </div>
   <div class="linkGroup"{xen:if '!{$ignoredNames}', ' style="display: none"'}><a href="javascript:" class="muted JsOnly DisplayIgnoredContent Tooltip" title="{xen:phrase show_hidden_content_by_x, "names={xen:helper implode, $ignoredNames, ', '}"}">{xen:phrase show_ignored_content}</a></div>
   
   <xen:pagenav link="forums" linkdata="{$forum}" linkparams="{$pageNavParams}" page="{$page}" perpage="{$threadsPerPage}" total="{$totalThreads}" />
</div>
 

Pavle

Registered
Hi Russ,

I am unable to locate what to replace.

Am I searching at the right place?
dsadsa.jpg

Inside that ere is what I see :

<xen:h1>{$xenOptions.boardTitle}</xen:h1>

<xen:container var="$head.canonical"><link rel="canonical" href="{xen:link 'canonical:forums'}" /></xen:container>
<xen:if is="{$xenOptions.boardDescription}"><xen:container var="$head.description">
<meta name="description" content="{$xenOptions.boardDescription}" /></xen:container></xen:if>
<xen:container var="$head.openGraph">
<xen:include template="open_graph_meta">
<xen:set var="$url">{xen:link 'canonical:forums'}</xen:set>
<xen:set var="$title">{$xenOptions.boardTitle}</xen:set>
<xen:set var="$description">{$xenOptions.boardDescription}</xen:set>
<xen:set var="$ogType">website</xen:set>
</xen:include></xen:container>

<xen:hook name="forum_list_nodes">
<xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
</xen:hook>

<xen:sidebar>
<xen:edithint template="sidebar.css" />

<xen:hook name="forum_list_sidebar">
<xen:if is="{$canViewMemberList}">
<xen:include template="sidebar_online_users" />
</xen:if>

<xen:if is="{$profilePosts}">
<div class="section profilePostList">
<div class="secondaryContent">
<h3><a href="{xen:link find-new/profile-posts}">{xen:phrase new_profile_posts}</a></h3>
<xen:include template="sidebar_profile_post_list" />
</div>
</div>
</xen:if>

<!-- block: forum_stats -->
<div class="section">
<div class="secondaryContent statsList" id="boardStats">
<h3>{xen:phrase forum_statistics}</h3>
<div class="pairsJustified">
<dl class="discussionCount"><dt>{xen:phrase discussions}:</dt>
<dd>{xen:number $boardTotals.discussions}</dd></dl>
<dl class="messageCount"><dt>{xen:phrase messages}:</dt>
<dd>{xen:number $boardTotals.messages}</dd></dl>
<dl class="memberCount"><dt>{xen:phrase members_count}:</dt>
<dd>{xen:number $boardTotals.users}</dd></dl>
<dl><dt>{xen:phrase latest_member}:</dt>
<dd><xen:username user="$boardTotals.latestUser" /></dd></dl>
<!-- slot: forum_stats_extra -->
</div>
</div>
</div>
<!-- end block: forum_stats -->

<xen:include template="sidebar_share_page">
<xen:set var="$url">{xen:link canonical:forums}</xen:set>
</xen:include>

</xen:hook>
</xen:sidebar>
 

Russ

Pixel Exit Staff
Right template look at the bottom of the template, don't search for the entire code but rather just like the first line . It shows up twice in the template I believe, you want the one at the bottom
 

Pavle

Registered
Hi @Russ

Something is obviously wrong, as I really do not see anything from the code above. I am unable to locate the code.

Here is my entire forum_list inside my Zipped Child theme

https://gist.github.com/aeb114136b9a9536f0fe.git

Please help, I am confused. I can not locate the code ,so I do not know what to replace. What am I doing wrong?

Not sure if it matters but here is something I found called
View Template Modifications - forum_list
https://gist.github.com/3bb6c552cfab3f3d6a35.git

Sorry , I am new to XenForo and know nothing about coding and stuff.
 
Last edited:

Russ

Pixel Exit Staff
It helps if I give the correct template name:

forum_view

If this doesn't work I'll need a login(via support ticket or PM).
 

Pavle

Registered
Hi Russ,

Haha, yeah that is better, but after replacing it, still nothing changes, where as it works on default XF theme.

I will send you my login right away via PM.
 

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.