网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > Discuz/SupeSite/X-Space
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Discuz/SupeSite/X-Space 讨论Discuz安装、升级、模板、插件、源代码修改以及使用技巧等。

Reply
 
Thread Tools Display Modes
  #1   IP: 114.238.45.225
Old 2013-12-20, 03:44 PM
yahoo yahoo is offline
高级会员
 
Join Date: 2006-04-05
Posts: 165
yahoo 正向着好的方向发展
Default Discuz! X2.5 修改注册会员总数等技巧

1、Discuz X2.5注册会员总数修改方法

  想清理垃圾会员,可是清理之后会员数减半还真不好看,就想着虚拟显示一些,用插件太麻烦,要虚拟很多数据,并且只让成倍虚拟,我只想增加被清理的数量,所以只好另找办法。

  打开discuz.htm模板,可以看见会员总数是这个变量 $_G['cache']['userstatus']['totalmembers'],所以,可以通过更改$totalmembers的值来达到伪造数据的目的。

  打开./source/function/cache/cache_userstats.php,将$totalmembers的表达式改成

$totalmembers = C::t('common_member')->count() + 999999;

  当然,那个数字可以自己改,想增加多少就改成多少。


2、Discuz X2.5刪除首页中的站点统计信息:“今日: 昨日: 帖子:会员:欢迎新会员”

  打开templatedefaultforumdiscuz.htm

  搜索并删除
<p class="chart z">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['cache']['userstats']['newsetuser']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['cache']['userstats']['newsetuser'])}" target="_blank" class="xi2">$_G['cache']['userstats']['newsetuser']</a></em><!--{/if}--></p>

  3、Discuz X2.5刪除首页上的“我的帖子|本看新帖”

  打开templatedefaultforumdiscuz.htm

  搜索并删除
<!--{if $_G['uid']}--><a href="forum.php?mod=guide&view=my" title="{lang my_posts}" class="xi2">{lang my_posts}</a><!--{/if}--><!--{if !empty($_G['setting']['search']['forum']['status'])}--><!--{if $_G['uid']}--><span class="pipe">|</span><!--{/if}--><a href="forum.php?mod=guide&view=new" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a><!--{/if}-->

  4、Discuz X2.5移动论坛帖子到群组的技巧

  论坛改版,想要将论坛部分帖子移动到群组,可是discuz没有提供此功能。不过可以借助sql语句来移动帖子,而且个人感觉sql比面板操作效率更高。

  先列出几个字段的含义:

  pre_forum_thread表部分字段

fid 论坛板块或群组id
typeid 主题分类id
tid 主题id
isgroup 主题是否在群组,1为是,0为否

  然后就可以动手写sql语句了:
UPDATE `pre_forum_thread` SET `fid` = '251',`typeid`='298',`isgroup` = '1' WHERE `pre_forum_thread`.`fid` =138;

  上面语句的意思是将id为138的论坛板块中的所有主题移动到id为251的群组并且设置主题分类id为298。

  按照这个思路,很容易完成其他需求,比如:

  将某个帖子移到群组;

  将某个版块下某分类移到某个群组;

  将某个版块移动到某个群组…..
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
discuz x3.1 <meta name="description" content="论坛 " /> glassesshop Discuz/SupeSite/X-Space 0 2013-12-03 06:17 PM
AdSense 广告在 Discuz! 等其它平台论坛广告展示问题及解决办法 yahoo Google Adsense 0 2009-08-22 01:49 PM
Discuz!+SupeSite+X-Space相关录像大集合 car Discuz/SupeSite/X-Space 0 2007-02-22 01:36 AM
官方出品 新春风格火热出炉--恭贺新禧 for Discuz! 5.0.0 SupeSite Discuz/SupeSite/X-Space 0 2007-02-22 01:09 AM
Discuz官方logo源代码 car Discuz/SupeSite/X-Space 0 2006-06-26 11:14 AM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 10:49 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.