<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
>
<channel>
<title><![CDATA[甜橙酱-博博网-测试站]]></title> 
<atom:link href="https://liyuanbo.cn/rss.php" rel="self" type="application/rss+xml" />
<description><![CDATA[为您的网站提供强大功能与精美外观，提升用户体验与管理效率]]></description>
<link>https://liyuanbo.cn/</link>
<language>zh-cn</language>

<item>
    <title>测试标点足迹地图插入！</title>
    <link>https://liyuanbo.cn/post-30.html</link>
    <description><![CDATA[<p>下面是个地图<br />
<a href="https://"><img src="https://www.liyuanbo.cn/content/uploadfile/202610/7e831791539872.webp" alt="" /></a><br />
{map=120.849153,30.028031 name=曹娥江 desc=啥鱼都有哦！}<br />
地图下面文献！</p>]]></description>
    <pubDate>Fri, 09 Oct 2026 17:57:57 +0800</pubDate>
    <dc:creator>甜橙酱</dc:creator>
    <guid>https://liyuanbo.cn/post-30.html</guid>
</item>
<item>
    <title>测试标题</title>
    <link>https://liyuanbo.cn/post-29.html</link>
    <description><![CDATA[<p>测试内容！</p>]]></description>
    <pubDate>Fri, 09 Oct 2026 17:49:11 +0800</pubDate>
    <dc:creator>甜橙酱</dc:creator>
    <guid>https://liyuanbo.cn/post-29.html</guid>
</item>
<item>
    <title>网站更新小记</title>
    <link>https://liyuanbo.cn/post-23.html</link>
    <description><![CDATA[<p>目前已网站功能已全部完善，</p>
<p>网站首页与分类使用了wep压缩提高用户访问体验，</p>
<p>把PHP7.x升级到了8.1.X版本增加了Imagick拓展图床改下算法，要不实在是获取大略图有点糊不干净！</p>
<p>会员中心改变了获取积分的样式排版，增加了购买主题，直接显示下载代码按钮或提醒。</p>
<p>前端的文章分享完善，收藏功能改变，收藏后可直接跳转会员中心收藏页面进行取消操作，原收藏取消功能去除。</p>
<p>文章购买结构通过积分来实现，具体货币昵称还未做通改，后期再看，因为需求舍去用户发帖功能，新增购买统计！<br><br></p>
<p>&nbsp;</p>]]></description>
    <pubDate>Mon, 01 Dec 2025 21:13:58 +0800</pubDate>
    <dc:creator>甜橙酱</dc:creator>
    <guid>https://liyuanbo.cn/post-23.html</guid>
</item>
<item>
    <title>atmosphere扁平企业通用主题</title>
    <link>https://liyuanbo.cn/post-22.html</link>
    <description><![CDATA[<blockquote>
<p>- 中小企业官网建设<br>- 科技公司产品展示<br>- 服务型企业形象展示<br>- 内容营销型网站<br>- 企业博客平台</p>
</blockquote>
<pre><span style="color: #169179;">- 全屏轮播图 ：支持自定义图片、标题和副标题，支持配置轮播数量</span><br><span style="color: #169179;">- 产品展示区 ：突出企业核心产品，支持自定义产品文章</span><br><span style="color: #169179;">- 解决方案板块 ：展示企业专业服务能力</span><br><span style="color: #169179;">- 服务案例展示 ：通过案例证明企业实力</span><br><span style="color: #169179;">- 合作伙伴区域 ：展示商业合作关系</span><br><span style="color: #169179;">- 文章列表页 ：采用卡片式布局，包含缩略图、标题、摘要和元信息</span></pre>
<p><br><span style="background-color: #f1c40f;">首页</span></p>
<p><img src="/content/uploadfile/202510/c2fc1760530562.jpg" alt=""></p>
<p><span style="background-color: #f1c40f;">分类列表：</span></p>
<p><img src="/content/uploadfile/202510/21161760530562.jpg" alt=""></p>
<p><span style="background-color: #f1c40f;">文章详情：</span></p>
<p><img src="/content/uploadfile/202510/3fa81760530562.jpg" alt=""></p>]]></description>
    <pubDate>Wed, 15 Oct 2025 20:14:34 +0800</pubDate>
    <dc:creator>甜橙酱</dc:creator>
    <guid>https://liyuanbo.cn/post-22.html</guid>
</item>
<item>
    <title>分类模式,可整合在自己模板内</title>
    <link>https://liyuanbo.cn/post-21.html</link>
    <description><![CDATA[<p>怎么说呢，类似与树形的感觉，看各位老板的需求是否有必须需求！</p>
<p>使用方法就是在模板建立分类模板来实现！</p>
<p>效果如图</p>
<p><img src="/content/uploadfile/202510/1db81759884269.jpg" alt="aa9c1758720166.jpg"></p>]]></description>
    <pubDate>Wed, 08 Oct 2025 08:43:05 +0800</pubDate>
    <dc:creator>甜橙酱</dc:creator>
    <guid>https://liyuanbo.cn/post-21.html</guid>
</item>
<item>
    <title>emlog通过分类id获取指定分类的标题链接等数据</title>
    <link>https://liyuanbo.cn/post-20.html</link>
    <description><![CDATA[<p>最近在折腾一个<strong>emlog模板</strong>的时候需要获取到指定分类的一些数据，看了下emlog程序源码关于获取sql部分后写了一个函数：</p>
<pre class="language-markup"><code>//获取指定id的分类
function tx_get_cate($id)
{
    if (!$id) {
        return '';
    }
    $db = MySql::getInstance();
    $sql = $db-&gt;query("select * from " . DB_PREFIX . "sort where sid IN($id) ORDER BY pid ASC");
    $list_array = array();
    while ($row = $db-&gt;fetch_array($sql)) {
        $list_array[] = $row;
    }
    if(count($list_array) &gt; 0){
        return $list_array[0];
    }else{
        return '';
    }
}</code></pre>
<p>上面的函数放到主题的&rdquo;module.php&ldquo;文件里面，然后其他模板文件直接用&rdquo;tx_get_cate('分类id')['sortname']&ldquo;即可调用分类名称。</p>
<p>其他可以获取的分类数据：</p>
<p>分类链接：Url::sort(tx_get_cate('分类id')['sid'])；这个稍显多余，建议直接用&rdquo;Url::sort('分类id')&ldquo;；</p>
<p>分类别名：tx_get_cate('分类id')['alias']；</p>
<p>分类描述：tx_get_cate('分类id')['description']；</p>
<p>分类模板：tx_get_cate('分类id')['template']；</p>
<p>分类的父分类id：tx_get_cate('分类id')['pid']；</p>
<p>分类排序序号：tx_get_cate('分类id')['taxis']；</p>]]></description>
    <pubDate>Tue, 07 Oct 2025 19:45:46 +0800</pubDate>
    <dc:creator>甜橙酱</dc:creator>
    <guid>https://liyuanbo.cn/post-20.html</guid>
</item>
<item>
    <title>网站修改调用小记</title>
    <link>https://liyuanbo.cn/post-19.html</link>
    <description><![CDATA[<p>个人中心的积分布局调用</p>
<p>[cv]</p>
<pre class="language-php"><code>           &lt;!-- 积分和账单区域 --&gt;
            &lt;div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6"&gt;
                &lt;div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6"&gt;
                    &lt;h6 class="card-header"&gt;管理积分&lt;/h6&gt;
                    &lt;div class="card-body"&gt;
                        &lt;div class="mb-4"&gt;
                            &lt;span class="text-gray-600"&gt;积分数:&lt;/span&gt;
                            &lt;span class="text-xl font-semibold ml-2"&gt;&lt;?= $points ?&gt;&lt;/span&gt;
                            &lt;button class="btn btn-primary ml-3"&gt;充值积分&lt;/button&gt;
                        &lt;/div&gt;
                        &lt;div&gt;
                            &lt;h6 class="font-medium mb-2"&gt;积分获取说明&lt;/h6&gt;
                            &lt;div class="text-gray-600 mb-1"&gt;发布文章获得: 1个积分&lt;/div&gt;
                            &lt;div class="text-gray-600"&gt;下载扣除: 88个积分&lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;

                &lt;div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6"&gt;
                    &lt;h6 class="card-header"&gt;账单记录&lt;/h6&gt;
                    &lt;div class="card-body"&gt;
                        &lt;?php if ($bills): ?&gt;
                            &lt;?php foreach ($bills as $bill): ?&gt;
                                &lt;div class="mb-3"&gt;
                                    &lt;div class="text-sm"&gt;订单号:&lt;?= $bill['order_no'] ?&gt;&lt;/div&gt;
                                    &lt;div class="text-sm"&gt;积分变更:&lt;?= $bill['points_change'] ?&gt;积分&lt;/div&gt;
                                    &lt;div class="text-sm text-gray-500"&gt;&lt;?= $bill['create_time'] ?&gt;&lt;/div&gt;
                                &lt;/div&gt;
                            &lt;?php endforeach; ?&gt;
                        &lt;?php else: ?&gt;
                            &lt;p class="text-gray-500"&gt;暂无账单记录&lt;/p&gt;
                        &lt;?php endif; ?&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;</code></pre>
<p>[/cv]</p>
<p>主要作为匹配个人中心俩列划分对应其他功能！</p>
<p>官方原生个人中心路径在admin\views</p>
<p>官方原生个人中心变量获取路径在include\model<br>对应获取相关变量做出正确引用，在调用原生的变量进行获取对应数据！</p>
<p>现在发现一个问题，就是弹窗登录与静态页面登录后的地址不一样呢，静态登录地址登录后直接进入了原生的个人中心，</p>
<p>开启了弹窗登录的会在原页面！这个原生路由要改改喽！</p>
<hr>
<p>调用文章详情页当前作者发帖数量和收到的评论</p>
<pre class="language-php"><code>&lt;?php
// 统计当前文章作者的发文总数和收到的评论总数
function tongji($current_blog_gid) {
    if (empty($current_blog_gid)) {
        echo '&lt;div class="count"&gt;文章GID无效&lt;/div&gt;';
        return;
    }
    $current_blog_gid = (int)$current_blog_gid;

    $db = MySql::getInstance();

    // 1. 获取当前文章的作者ID（关键：用实际作者字段名`author`）
    $sql = "SELECT author FROM " . DB_PREFIX . "blog 
            WHERE gid = {$current_blog_gid} AND type = 'blog' LIMIT 1";
    $author_data = $db-&gt;once_fetch_array($sql);
    if (empty($author_data['author'])) {
        echo '&lt;div class="count"&gt;未找到作者信息&lt;/div&gt;';
        return;
    }
    $author_id = (int)$author_data['author']; // 作者ID（从`author`字段获取）

    // 2. 统计作者发布的文章总数（用`author`字段匹配）
    $sql = "SELECT COUNT(*) AS total FROM " . DB_PREFIX . "blog 
            WHERE author = {$author_id} AND type = 'blog'";
    $article_count = $db-&gt;once_fetch_array($sql);
    $author_article_total = $article_count['total'] ?? 0;

    // 3. 统计作者收到的评论总数（评论表关联作者的文章）
    $sql = "SELECT COUNT(cid) AS total FROM " . DB_PREFIX . "comment 
            WHERE gid IN (
                SELECT gid FROM " . DB_PREFIX . "blog 
                WHERE author = {$author_id} AND type = 'blog'
            )";
    $comment_count = $db-&gt;once_fetch_array($sql);
    $author_comment_total = $comment_count['total'] ?? 0;
?&gt;
    &lt;div class="count"&gt;
        &lt;div class="item" title="作者发布的文章总数"&gt;
            &lt;span class="num"&gt;&lt;?= $author_article_total; ?&gt;&lt;/span&gt;
            &lt;span&gt;作者文章总数&lt;/span&gt;
        &lt;/div&gt;
        &lt;div class="item" title="作者所有文章收到的评论总数"&gt;
            &lt;span class="num"&gt;&lt;?= $author_comment_total; ?&gt;&lt;/span&gt;
            &lt;span&gt;收到评论总数&lt;/span&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;?php } ?&gt;</code></pre>
<p>获取的变量方式</p>
<pre class="language-php"><code>&lt;?php 
tongji($logid); 
?&gt;
</code></pre>
<hr>
<p>2025/10/7</p>
<p>为了更好的用户体验，研究了半天的略图，你说现在开启略图之前发布的又没有略图</p>
<p>还是直接使用了图片压缩，以及默认图片的输出确保速度!</p>
<p>网站根目录建立了resize.php压缩机制，</p>
<p>网站首页与列表使用了集成WebP动态缩略图</p>
<hr>
<p>修复了导航宽度，热门获取样式，<br>个人中心的一些东西懒得弄了，部分功能直接去原生构架页面！</p>
<p>&nbsp;</p>]]></description>
    <pubDate>Sat, 04 Oct 2025 15:54:41 +0800</pubDate>
    <dc:creator>甜橙酱</dc:creator>
    <guid>https://liyuanbo.cn/post-19.html</guid>
</item>
<item>
    <title>加入登录功能，整合钩子函数融入到一起，配合插件唤起弹窗登录页面</title>
    <link>https://liyuanbo.cn/post-18.html</link>
    <description><![CDATA[<p>输出变量 &lt;?php blog_navi() ?&gt;</p>
<p>对应函数：（登录显示有2个，判断未初始化以作处理）</p>
<pre class="language-markup"><code>/**
 * 页顶：导航
 */
function blog_navi()
{
    global $CACHE;
    $navi_cache = $CACHE-&gt;readCache('navi');
    // 检查用户登录状态
    $is_login = !User::isVisitor();
    // 初始化是否有登录项的标志
    $has_login_item = false;
?&gt;            &lt;?php
            foreach ($navi_cache as $value):
                if ($value['pid'] != 0) {
                    continue;
                }
                // 检查是否有登录相关的导航项
                if (strpos($value['naviname'], '登录') !== false) {
                    $has_login_item = true;
                }
                if ($value['url'] == 'admin' &amp;&amp; (!User::isVisitor())):
            ?&gt;
            &lt;a class="navbar__item navbar__link" href="&lt;?= BLOG_URL ?&gt;admin/" &lt;?= $newtab ?&gt;&gt;管理&lt;/a&gt;
            &lt;a class="navbar__item navbar__link" href="&lt;?= BLOG_URL ?&gt;admin/account.php?action=logout"&gt;退出&lt;/a&gt;
                &lt;?php
                    continue;
                endif;
                $newtab = $value['newtab'] == 'y' ? 'target="_blank"' : '';
                $value['url'] = $value['isdefault'] == 'y' ? BLOG_URL . $value['url'] : trim($value['url'], '/');
                $current_tab = BLOG_URL . trim(Dispatcher::setPath(), '/') == $value['url'] ? 'active' : '';
                ?&gt;
        &lt;a class="navbar__item navbar__link" href="&lt;?= $value['url'] ?&gt;" &lt;?= $newtab ?&gt;&gt;&lt;?= $value['naviname'] ?&gt;&lt;/a&gt;
    &lt;?php endforeach ?&gt;
    &lt;?php 
    // 仅当没有原有登录项且未登录时，才显示新增的登录按钮
    if (!$is_login &amp;&amp; !$has_login_item):
    ?&gt;
        &lt;a class="navbar__item navbar__link" href="javascript:Ixc_login_but_login();"&gt;登录&lt;/a&gt;
    &lt;?php 
    endif;}</code></pre>]]></description>
    <pubDate>Sat, 04 Oct 2025 15:10:29 +0800</pubDate>
    <dc:creator>博博网</dc:creator>
    <guid>https://liyuanbo.cn/post-18.html</guid>
</item>
<item>
    <title>(自适应手机版)响应式地图标注中心入驻地图位置标注申请网站程序源码</title>
    <link>https://liyuanbo.cn/post-17.html</link>
    <description><![CDATA[<p>程序核心：dedecms</p>
<p>账号密码：admin</p>
<div>样式：</div>
<div><img src="/content/uploadfile/202510/05051729943206.png" alt="" width="1898" height="3241"></div>
<div><img src="/content/uploadfile/202510/60841729943240.png" alt="" width="1898" height="1947"></div>
<div><img src="/content/uploadfile/202510/b03d1729943116.png" alt="" width="389" height="2875"></div>]]></description>
    <pubDate>Fri, 03 Oct 2025 19:59:20 +0800</pubDate>
    <dc:creator>甜橙酱</dc:creator>
    <guid>https://liyuanbo.cn/post-17.html</guid>
</item>
<item>
    <title>(自适应手机版)响应式电脑家政修理公司蓝色HTML5电脑修理维修店网站源码</title>
    <link>https://liyuanbo.cn/post-16.html</link>
    <description><![CDATA[<p>程序核心：dedecms</p>
<p>后台账号密码admin</p>
<p>样式如图：</p>
<p><img src="/content/uploadfile/202510/84ff1729942709.png" alt="" width="1898" height="4873"></p>
<p><img src="/content/uploadfile/202510/83d61729942720.png" alt="" width="389" height="2258"></p>]]></description>
    <pubDate>Fri, 03 Oct 2025 19:38:35 +0800</pubDate>
    <dc:creator>甜橙酱</dc:creator>
    <guid>https://liyuanbo.cn/post-16.html</guid>
</item>
</channel>
</rss>