WordPress Chinese Forums's Archiver

cqupt_tmt 发表于 2008-9-7 23:10

breadcrumb-navxt这个插件怎么用啊?(已解决)

[i]直接启用后,要在相应的主题文件里添加相应的代码马?[/i]
[i]baidu 了一个晚上也没找到安装方法![/i]

[[i] 本帖最后由 cqupt_tmt 于 2008-9-8 15:57 编辑 [/i]]

五两银子 发表于 2008-9-8 07:47

Installation[list=1][*]Download the plug-in zip archive, see [url=http://mtekk.weblogs.us/code/breadcrumb-navxt/#download]Download[/url] section.[*]Disable any previous version of this plug-in or Breadcrumb Navigation XT.[*]Extract the contents of the zip archive into your plugins folder (wp-content/plugins).[*]Enabling the plug-in:[list=1][*]If the Administration interface is desired, enable the BreadcrumbNavXT - Administration plug-in in the administration panel under thePlugins section.[*]If the Administration interface is not desired, enable the Breadcrumb NavXT - Core plug-in.[/list][b]Note:[/b] Do not enable both plug-ins at the same time.
[*]Continue onto the [url=http://mtekk.weblogs.us/code/breadcrumb-navxt/#basic]Basic Usage[/url] section, or follow instructions given by your theme (if applicable).[/list]Basic UsageDepending on your theme this section may be unnecessary. If you are using [url=http://mtekk.weblogs.us/code/berry]berry[/url]as your theme everything is done for you so you have no further stepsto take. If you are a theme developer skip ahead to Advanced Usage andthe full documentation. Otherwise keep reading. Open the appropriatefile for your theme (typically index.php or header.php). This can bedone within WordPress’ administration panel through Presentation >Theme Editor or through your favorite text editor.
<div class="breadcrumb">
<?php if (function_exists('bcn_display'))
{
// Display the breadcrumb
bcn_display();
} ?>
</div>

Save the file (upload if applicable). Now you should have a breadcrumbnavigation bar on your blog where ever this code was placed. Tocustomize the breadcrumb you may edit the default values for theoptions in the administrative interface. This is located in youradministration panel under Settings > Breadcrumb NavXT.
Advanced UsageThe Basic Usage section only covers the use of the administrationpanel. Using the administration panel method makes a trade off of speedfor ease of use. Should absolute speed be desired, the methodoriginally used in Breadcrumb Navigation XT may be employed. Enable theBreadcrumb NavXT - Core plug-in instead of the Breadcrumb NavXT -Administration plugin. When not using the administration interface, usethe following code to generate breadcrumbs:
<div class="breadcrumb">
<?php if (class_exists('bcn_breadcrumb'))
{
// New breadcrumb object
$mybreadcrumb = new bcn_breadcrumb;
// Assemble the breadcrumb
$mybreadcrumb->assemble();
// Display the breadcrumb
$mybreadcrumb->display();
} ?>
</div>

cqupt_tmt 发表于 2008-9-8 08:40

五两兄,我用
<div class="breadcrumb">
<?php if (function_exists('bcn_display'))
{
// Display the breadcrumb
bcn_display();
} ?>
</div>
把导航弄出来了,但是这些导航文字怎么不包含连接在里面的阿。
你的也是这样的马?

cqupt_tmt 发表于 2008-9-8 09:41

高定了,原来是版本低了!
没搞懂,官网上3.0的居然比2.1.4的低哦

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.