SvedCo
Member
[SOLVED]
Hello. So far I am enjoying my new website and XenForo, except today I have a problem.
I was editing the page_container_js_head template to add this to my site: http://www.onlineleaf.com/
First I added this code to page_container_js_head: (just before <!--XenForo_Require:JS-->)
That was fine and well (hadn't tested it at this point) and decided to add this in as well:
On the website says to add it in at the end of the <head> tag, so I saved page_container_js_head and opened up PAGE_CONTAINER to find the <head> tags - inserted the above noConflict code just before </head> and saved.
I then tested it and it didn't seem to be working - figured I would try it again and decided to "revert" both templates. This is my problem: after reverting the PAGE_CONTAINER template, the bar at the top to log in/sign up isn't functioning properly.
This is how it looks on Chrome when logged in as admin:
This is my current PAGE_CONTAINER template (reverted):
I tested it in an "Incognito" window with Chrome and at first glance it is working - looks like it did before I made any changes and lets you log in/sign up - but after logging in, it disappears completely from all pages.
I also tested it in Firefox (very outdated version..) and it is missing completely from every page, even before logging in.
I should mention that the PAGE_CONTAINER template HAD been modified in some way before I changed it apparently (it was red, like it was customised) - but I didn't consider this until right after I had click "Revert".
What are my options? I'm unfamiliar with xen tags and I can't figure out what to fix...
Link to my website: http://sved.co
Hello. So far I am enjoying my new website and XenForo, except today I have a problem.
I was editing the page_container_js_head template to add this to my site: http://www.onlineleaf.com/
First I added this code to page_container_js_head: (just before <!--XenForo_Require:JS-->)
Code:
<script language="javascript" type="text/javascript" src="http://www.onlineleaf.com/savetheenvironment.js"></script>
That was fine and well (hadn't tested it at this point) and decided to add this in as well:
Code:
<script>jQuery.noConflict();</script>
On the website says to add it in at the end of the <head> tag, so I saved page_container_js_head and opened up PAGE_CONTAINER to find the <head> tags - inserted the above noConflict code just before </head> and saved.
I then tested it and it didn't seem to be working - figured I would try it again and decided to "revert" both templates. This is my problem: after reverting the PAGE_CONTAINER template, the bar at the top to log in/sign up isn't functioning properly.
This is how it looks on Chrome when logged in as admin:
This is my current PAGE_CONTAINER template (reverted):
Code:
<!DOCTYPE html>
<html id="XenForo" lang="{$visitorLanguage.language_code}" dir="{$visitorLanguage.text_direction}" class="Public {xen:if {$visitor.user_id}, 'LoggedIn', 'LoggedOut'} {xen:if {$sidebar}, 'Sidebar', 'NoSidebar'}" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<xen:hook name="page_container_head">
<meta charset="utf-8" />
<xen:if is="{$requestPaths.fullBasePath}">
<base href="{$requestPaths.fullBasePath}" />
<script><xen:comment>/* Chrome bug and for Google cache */</xen:comment>
var _b = document.getElementsByTagName('base')[0], _bH = "{xen:jsescape $requestPaths.fullBasePath}";
if (_b && _b.href != _bH) _b.href = _bH;
</script>
</xen:if>
<title><xen:if is="{$title}">{xen:raw $title} | {$xenOptions.boardTitle}<xen:else />{$xenOptions.boardTitle}</xen:if></title>
<noscript><style>.JsOnly { display: none !important; }</style></noscript>
<link rel="stylesheet" href="css.php?css=xenforo,form,public&style={xen:urlencode $_styleId}&dir={$visitorLanguage.text_direction}&d={$visitorStyle.last_modified_date}" />
<!--XenForo_Require:CSS-->
{xen:helper ignoredCss, {$visitor.ignoredUsers}}
<xen:include template="google_analytics" />
<xen:include template="page_container_js_head" />
<link rel="alternate" type="application/rss+xml" title="{xen:phrase rss_feed_for_x, 'title={$xenOptions.boardTitle}'}" href="{xen:link forums/-/index.rss}" />
<xen:if is="{$pageDescription.content} AND !{$pageDescription.skipmeta} AND !{$head.description}"><meta name="description" content="{xen:string wordTrim, {xen:helper stripHtml, {xen:raw $pageDescription.content}}, 200}" /></xen:if>
<xen:if is="{$head}"><xen:foreach loop="$head" value="$headElement">{xen:raw $headElement}</xen:foreach></xen:if>
</xen:hook>
</head>
<body{xen:if {$bodyClasses}, ' class="{$bodyClasses}"'}>
<xen:hook name="body">
<xen:if is="{$visitor.is_moderator} || {$visitor.is_admin}">
<xen:include template="moderator_bar" />
<xen:elseif is="!{$visitor.user_id} && !{$hideLoginBar}" />
<xen:include template="login_bar" />
</xen:if>
<div id="headerMover">
<div id="headerProxy"></div>
<div id="content" class="{$contentTemplate}">
<div class="pageWidth">
<div class="pageContent">
<!-- main content area -->
<xen:hook name="page_container_content_top" />
<xen:if is="{$sidebar}">
<div class="mainContainer">
<div class="mainContent"></xen:if>
<xen:include template="ad_above_top_breadcrumb" />
<xen:hook name="page_container_breadcrumb_top">
<div class="breadBoxTop">
<xen:if is="{$topctrl}"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
<xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
</div>
</xen:hook>
<xen:include template="ad_below_top_breadcrumb" />
<xen:hook name="page_container_notices">
<xen:include template="notices" />
</xen:hook>
<xen:hook name="page_container_content_title_bar">
<xen:if is="!{$noH1}">
<!-- h1 title, description -->
<div class="titleBar">
{xen:raw $beforeH1}
<h1><xen:if
is="{$h1}">{xen:raw $h1}<xen:elseif
is="{$title}" />{xen:raw $title}<xen:else
/>{$xenOptions.boardTitle}</xen:if></h1>
<xen:if is="{$pageDescription.content}"><p id="pageDescription" class="muted {$pageDescription.class}">{xen:raw $pageDescription.content}</p></xen:if>
</div>
</xen:if>
</xen:hook>
<xen:include template="ad_above_content" />
<!-- main template -->
{xen:raw $contents}
<xen:include template="ad_below_content" />
<xen:if is="!{$visitor.user_id} && !{$hideLoginBar}">
<!-- login form, to be moved to the upper drop-down -->
<xen:include template="login_bar_form" />
</xen:if>
<xen:if is="{$sidebar}"></div>
</div>
<!-- sidebar -->
<aside>
<div class="sidebar">
<xen:hook name="page_container_sidebar">
<xen:include template="ad_sidebar_top" />
<xen:if is="!{$noVisitorPanel}"><xen:include template="sidebar_visitor_panel" /></xen:if>
{xen:raw $sidebar}
<xen:include template="ad_sidebar_bottom" />
</xen:hook>
</div>
</aside>
</xen:if>
<xen:hook name="page_container_breadcrumb_bottom">
<div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
</xen:hook>
<xen:include template="ad_below_bottom_breadcrumb" />
</div>
</div>
</div>
<header>
<xen:include template="header" />
<xen:edithint template="navigation" />
<xen:edithint template="search_bar" />
</header>
</div>
<footer>
<xen:include template="footer" />
</footer>
<xen:include template="page_container_js_body" />
<xen:if is="{$cronLink}"><img src="{$cronLink}" width="1" height="1" alt="" style="display: none" /></xen:if>
</xen:hook>
</body>
</html>
I tested it in an "Incognito" window with Chrome and at first glance it is working - looks like it did before I made any changes and lets you log in/sign up - but after logging in, it disappears completely from all pages.
I also tested it in Firefox (very outdated version..) and it is missing completely from every page, even before logging in.
I should mention that the PAGE_CONTAINER template HAD been modified in some way before I changed it apparently (it was red, like it was customised) - but I didn't consider this until right after I had click "Revert".
What are my options? I'm unfamiliar with xen tags and I can't figure out what to fix...
Link to my website: http://sved.co