Nodes As Tabs

Nodes As Tabs 1.5.1

No permission to download
http://xenforo.com/community/threads/library-by-waindigo.27529/

^^^This is not working for me for some reason after upgrading my Nodes as Tabs addon.

I discovered this problem in the library addon a couple months ago. It has never worked from what I can see. I told Waindigo how to fix it. Maybe he didn't fix it yet.

Try editing the waindigo_nat_childlinks_library template. Replace the contents of that template with this:

Code:
<xen:foreach loop="$firstChildNodes" value="$node">
<li>
	<xen:if is="{$nodeTypes.{$node.node_type_id}.public_route_prefix}">
		<a href="{xen:link {$nodeTypes.{$node.node_type_id}.public_route_prefix}, $node}">{$node.title}</a>
	</xen:if>
</li>
</xen:foreach>
 
I discovered this problem in the library addon a couple months ago. It has never worked from what I can see. I told Waindigo how to fix it. Maybe he didn't fix it yet.

Try editing the waindigo_nat_childlinks_library template. Replace the contents of that template with this:

Code:
<xen:foreach loop="$firstChildNodes" value="$node">
<li>
<xen:if is="{$nodeTypes.{$node.node_type_id}.public_route_prefix}">
<a href="{xen:link {$nodeTypes.{$node.node_type_id}.public_route_prefix}, $node}">{$node.title}</a>
</xen:if>
</li>
</xen:foreach>
Uh wow but that waindigo_nat_childlinks_library doesn't even exist in the latest version.
 
Uh wow but that waindigo_nat_childlinks_library doesn't even exist in the latest version.

Hmm, maybe he did fix it then. The fix was to get rid of that template and to not override my nat_childlinks template anymore.

Check your nat_childlinks template. It should contain the same code I posted.
 
Hmm, maybe he did fix it then. The fix was to get rid of that template and to not override my nat_childlinks template anymore.

Check your nat_childlinks template. It should contain the same code I posted.
This is the template I saw in there:

Code:
<xen:foreach loop="$firstChildNodes" value="$childNode">
<li>
    <xen:if is="{$childNode.node_type_id} == 'Page'">
        <a href="{xen:link 'pages', $childNode}">{$childNode.title}</a>
    <xen:elseif is="{$childNode.node_type_id} == 'Forum'" />
        <a href="{xen:link 'forums', $childNode}">{$childNode.title}</a>
    <xen:elseif is="{$childNode.node_type_id} == 'Category'" />
        <a href="{xen:link 'categories', $childNode}">{$childNode.title}</a>
    <xen:elseif is="{$childNode.node_type_id} == 'LinkForum'" />
        <a href="{xen:link 'link-forums', $childNode}">{$childNode.title}</a>
    </xen:if>
</li>
</xen:foreach>

Wait nvm I'm still on 1.1.2c

My bad I thought I upgraded it.
 
Wait nvm I'm still on 1.1.2c

boxing.gif
 
That is not supported by the skeleton for extraTabs, but you can do it with javascript:

Admin CP -> Appearance -> Templates -> page_container_js_body

Add the red code. Change the 1 to the node_id of the tab:

Rich (BB code):
<script>
window.onload = function()
{
 $('.nodetab1 a.navLink').attr('target','_blank');
};
</script>
 
<script>
 
<xen:hook name="page_container_js_body">
jQuery.extend(true, XenForo,
{
visitor: { user_id: {$visitor.user_id} },
serverTimeInfo:
{
now: {$serverTimeInfo.now},
today: {$serverTimeInfo.today},
todayDow: {$serverTimeInfo.todayDow}
},
_lightBoxUniversal: "{$xenOptions.lightBoxUniversal}",
_enableOverlays: "@enableOverlays",
_animationSpeedMultiplier: "@animationSpeedMultiplier",
_overlayConfig:
{
top: "@overlayTop",
speed: {xen:calc '@overlaySpeed * @animationSpeedMultiplier'},
closeSpeed: {xen:calc '@overlayCloseSpeed * @animationSpeedMultiplier'},
mask:
{
color: "@overlayMaskColor",
opacity: "@overlayMaskOpacity",
loadSpeed: {xen:calc '@overlaySpeed * @animationSpeedMultiplier'},
closeSpeed: {xen:calc '@overlayCloseSpeed * @animationSpeedMultiplier'}
}
},
_ignoredUsers: {xen:helper json, $visitor.ignoredUsers},
_loadedScripts: {/*<!--XenForo_Required_Scripts-->*/},
_cookieConfig: { path: "{xen:jsescape $xenOptions.cookieConfig.path}", domain: "{xen:jsescape $xenOptions.cookieConfig.domain}", prefix: "{xen:jsescape $xenOptions.cookieConfig.prefix}"},
_csrfToken: "{xen:jsescape $visitor.csrf_token_page}",
_csrfRefreshUrl: "{xen:jsescape {xen:link login/csrf-token-refresh}}",
_jsVersion: "{$xenOptions.jsVersion}"
});
jQuery.extend(XenForo.phrases,
{
cancel: "{xen:jsescape {xen:phrase cancel}}",
 
a_moment_ago:    "{xen:jsescape {xen:phrase a_moment_ago}}",
one_minute_ago:  "{xen:jsescape {xen:phrase one_minute_ago}}",
x_minutes_ago:  "{xen:jsescape {xen:phrase x_minutes_ago, 'minutes=%minutes%'}}",
today_at_x:      "{xen:jsescape {xen:phrase today_at_x, 'time=%time%'}}",
yesterday_at_x:  "{xen:jsescape {xen:phrase yesterday_at_x, 'time=%time%'}}",
day_x_at_time_y: "{xen:jsescape {xen:phrase day_x_at_time_y, 'day=%day%', 'time=%time%'}}",
 
day0: "{xen:jsescape {xen:phrase day_sunday}}",
day1: "{xen:jsescape {xen:phrase day_monday}}",
day2: "{xen:jsescape {xen:phrase day_tuesday}}",
day3: "{xen:jsescape {xen:phrase day_wednesday}}",
day4: "{xen:jsescape {xen:phrase day_thursday}}",
day5: "{xen:jsescape {xen:phrase day_friday}}",
day6: "{xen:jsescape {xen:phrase day_saturday}}",
 
_months: "{xen:jsescape '{xen:phrase month_1},{xen:phrase month_2},{xen:phrase month_3},{xen:phrase month_4},{xen:phrase month_5},{xen:phrase month_6},{xen:phrase month_7},{xen:phrase month_8},{xen:phrase month_9},{xen:phrase month_10},{xen:phrase month_11},{xen:phrase month_12}'}",
_daysShort: "{xen:jsescape '{xen:phrase day_sunday_short},{xen:phrase day_monday_short},{xen:phrase day_tuesday_short},{xen:phrase day_wednesday_short},{xen:phrase day_thursday_short},{xen:phrase day_friday_short},{xen:phrase day_saturday_short}'}",
 
following_error_occurred: "{xen:jsescape {xen:phrase following_error_occurred}}",
server_did_not_respond_in_time_try_again: "{xen:jsescape {xen:phrase server_did_not_respond_in_time_try_again}}",
logging_in: "{xen:jsescape {xen:phrase logging_in}}",
click_image_show_full_size_version: "{xen:jsescape {xen:phrase click_image_show_full_size_version}}",
show_hidden_content_by_x: "{xen:jsescape {xen:phrase show_hidden_content_by_x}}"
});
 
// Facebook Javascript SDK
XenForo.Facebook.appId = "{xen:jsescape $xenOptions.facebookAppId}";
XenForo.Facebook.forceInit = {xen:if $facebookSdk, true, false};
</xen:hook>
 
</script>
This did not work for me, yes I have changed the 1 to my node 177 - still doesnt pop it up. Also what if I have 2 forums I want to popup?
 
Thanks a lot for this mod it looks like you put a lot of effort into it. Which is not surpassingly considering the time and effort you put into this forum
I rate this mod 10stars
 
Jake, I have tried every method that was listed and i am still not able to install this add-on. I have tried installing from local and server by using this: ( ./library/nodesastabs/addon-nodesastabs.xml ) . I have put the upload file in the libary (did not work), then i read that i should put the upload folder in the xf folder(also it did not work). Please advise me what I should do, because i really need this add-on. Thanks
 
Jake, I have tried every method that was listed and i am still not able to install this add-on. I have tried installing from local and server by using this: ( ./library/nodesastabs/addon-nodesastabs.xml ) . I have put the upload file in the libary (did not work), then i read that i should put the upload folder in the xf folder(also it did not work). Please advise me what I should do, because i really need this add-on. Thanks

The upload folder contains a folder called library. That corresponds to the library folder on your server. You need to upload the contents of upload (meaning the library folder), not the upload folder itself.
 
I uploaded the Nodesadtabs library folder to my server-> forum folder->Library folder . I am still getting the following messeage :
Error
Please enter a valid file name. The requested file could not be read.
 

Attachments

  • nodeadtabe install help.webp
    nodeadtabe install help.webp
    75.9 KB · Views: 4
I uploaded the Nodesadtabs library folder to my server-> forum folder->Library folder . I am still getting the following messeage :
Error
Please enter a valid file name. The requested file could not be read.

You have one too many library folders on the server. You should have library/NodesAsTabs, not library/library/NodesAsTabs.
 
Top Bottom