Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

平湖新发布模板的头部有问题,谁解决了?

[复制链接]
plxws 发表于 2009-3-24 10:14:13 | 显示全部楼层 |阅读模式
本帖最后由 plxws 于 2009-3-26 10:17 编辑

平湖新发布模板的头部有问题,谁解决了?求救
回复

使用道具 举报

sujian919 发表于 2009-3-24 10:44:18 | 显示全部楼层
关于平湖风格《活跃会员》的问题 https://discuz.dismall.com/viewthread.php?tid=1252543


楼主可以帮忙解决这个问题吗?
回复

使用道具 举报

xlx5210 发表于 2009-3-24 10:45:41 | 显示全部楼层
帮你顶下哦 !!
回复

使用道具 举报

 楼主| plxws 发表于 2009-3-24 10:52:09 | 显示全部楼层
关于平湖风格《活跃会员》的问题 https://discuz.dismall.com/viewthread.php?tid=1252543


楼主可以帮忙解决这个问题吗?
sujian919 发表于 2009-3-24 10:44

有个介绍平湖怎么调用的帖子,按照那个做就可以了。注意那个变量名的问题改成你的
回复

使用道具 举报

sujian919 发表于 2009-3-24 11:01:06 | 显示全部楼层
哪个变量名?
回复

使用道具 举报

lcchongzi 发表于 2009-3-24 17:22:03 | 显示全部楼层
楼主!!我也出现这样的问题。哪位朋友解决了????
回复

使用道具 举报

我行我素 发表于 2009-3-24 18:22:50 | 显示全部楼层
本帖最后由 我行我素 于 2009-3-24 18:25 编辑

batch.panel.php文件替换一下
  1. <?php

  2. /*
  3.         [SupeSite] (C) 2007-2009 Comsenz Inc.
  4.         $Id: batch.panel.php 11538 2009-03-09 08:15:35Z zhaofei $
  5. */

  6. include_once('./common.php');
  7. include_once(S_ROOT.'./language/batch.lang.php');

  8. $uid = $_SGLOBAL['supe_uid'];
  9. $ucurl = avatar($uid);
  10. $siteurl = S_URL_ALL;
  11. if(!empty($uid)) {
  12.         if($channels['menus']['bbs']) {
  13.                 $bbshtml = ' | <a href="'.$_SC['bbsurl'].'" target="_blank">'.$blang['forum_visit'].'</a>';
  14.         }
  15.         if($channels['menus']['uchblog'] || $channels['menus']['uchimage']) {
  16.                 $uchhtml = ' | <a href="'.$_SC['uchurl'].'" target="_blank">'.$blang['home_visit'].'</a>';
  17.         }
  18.         $showpost = 0;
  19.         $showposturl = '';
  20.         $divhtml = '<div id="contribute_op" style="display:none;"><ul>';
  21.         if(!in_array('news', $_SCONFIG['closechannels']) && !empty($_SGLOBAL['group']['managespacenews'])) {
  22.                 $divhtml .= '<li><a href="'.$siteurl.'/admincp.php?action=spacenews&op=add" target="_blank" onclick="hidendivop();">'.$lang['news'].'</a></li>';
  23.                 $showpost++;
  24.                 $showposturl = $siteurl.'/admincp.php?action=spacenews&op=add';
  25.         }
  26.        
  27.         include_once(S_ROOT.'./function/model.func.php');
  28.         $midarr = getuserspacemid();
  29.         if(!empty($midarr)) {
  30.                 foreach($midarr as $tmpkey => $tmpvalue) {               
  31.                         $divhtml .= '<li><a href="'.$siteurl.'/admincp.php?action=modelmanages&mid='.$tmpvalue['mid'].'&op=add" onclick="hidendivop();" target="_blank">'.$tmpvalue['modelalias'].'</a></li>';
  32.                         $showpost++;
  33.                         $showposturl = $siteurl.'/admincp.php?action=modelmanages&mid='.$tmpvalue['mid'].'&op=add';
  34.                 }
  35.         }
  36.        
  37.         if($showpost == 1) {
  38.                 $showposturl = "document.write('<div class="user_op"> <a href="$showposturl" class="contribute_txt" target="_blank">$lang[pannel_contribution]</a> ');";
  39.         } elseif($showpost > 1) {
  40.                 $showposturl = "document.write('<div class="user_op"> <a href="javascript:contributeop();" class="contribute_txt">$lang[pannel_contribution]</a> ');";
  41.         }
  42.        
  43.         $divhtml .= '</ul></div>';
  44.        
  45.         print <<<END
  46.         function contributeop() {
  47.                 if($('contribute_op').style.display != 'block') {
  48.                         $('contribute_op').style.display = 'block';
  49.                 } else {
  50.                         $('contribute_op').style.display = 'none';
  51.                 }       
  52.         }
  53.         function hidendivop(){
  54.                 $('contribute_op').style.display = 'none';
  55.         }
  56.         document.write('<div class="login_ext">');
  57.         document.write('<p>欢迎回来 <a href="http://home.xin.com.cn/space.php?uid=$uid">$_SGLOBAL[supe_username]</a> [<a href="$siteurl/batch.login.php?action=logout">$blang[safe_logout]</a>]');
  58.         document.write('<a href="http://home.xin.com.cn/space.php?uid=$uid" target="_blank">$blang[my_space]</a>');
  59.         document.write('| <a href="$siteurl/admincp.php" target="_blank">管理我的信息</a>');
  60.         document.write('</div>');
  61. END;
  62. } else {

  63.         $formhash = formhash();
  64.         print <<<END
  65.         var noseccode = $_SCONFIG[noseccode];
  66.         document.write('<form id="login_box" action="$siteurl/batch.login.php?action=login" method="post">');
  67.         document.write('<input type="hidden" name="formhash" value="$formhash" />');
  68.         document.write('<label>统一认证:</label> <input type="text"  name="username" class="input_tx" size="18" onfocus="addseccode();" />');
  69.         document.write('<label>密码:</label> <input type="password" name="password" class="input_tx" size="18" onfocus="addseccode();" />');
  70.         document.write('<p id="login_authcode_input" style="display:none"><label>$lang[verification_code]:</label> <input type="text" class="input_tx" name="seccode" size="10" onfocus="showseccode()"; /> <a href="javascript:updateseccode();">$lang[changge_verification_code]</a></p>');
  71.         document.write('<div id="login_showclose" style="display:none"><a href="javascript:hidesec();">&nbsp;</a></div>');
  72.         document.write('<div class="clearfix">');
  73.         document.write('<input id="cookietime" type="checkbox" value="315360000" name="cookietime" class="input_remember"/>');
  74.         document.write('<label class="label_remember" for="cookietime">$blang[i_remember]</label>');
  75.         document.write('<input type="submit" name="loginsubmit" class="input_sub" value="$blang[login]" />');
  76.         document.write('</div>');
  77.         document.write('<a href="http://www.xin.com.cn/do.php?action=register">快速注册</a> | <a href="$siteurl/do.php?action=lostpasswd">找回密码</a>');
  78.         document.write('</form>');
  79. END;
  80. }

  81. /**
  82. * 取得用户后台模型mid
  83. * return array
  84. */
  85. function getuserspacemid() {
  86.        
  87.         $cachefile = S_ROOT.'./cache/model/model.cache.php';
  88.         $cacheinfo = '';
  89.         if(file_exists($cachefile)) {
  90.                 include_once($cachefile);
  91.         }
  92.         if(!empty($cacheinfo) && is_array($cacheinfo)) {
  93.                 return $cacheinfo;
  94.         } else {
  95.                 include_once(S_ROOT.'./function/cache.func.php');
  96.                 return updateuserspacemid();
  97.         }
  98. }

  99. ?>
复制代码
回复

使用道具 举报

138600738 发表于 2009-3-25 14:49:15 | 显示全部楼层
谢谢楼主的提问,我也有这样的问题,再次感谢7楼兄弟,放出头部用户登陆代码

婺源家园
www.wy580.com.cn 即将改成此模版
回复

使用道具 举报

xqhmj 发表于 2009-3-25 19:14:18 | 显示全部楼层
7# 我行我素


请问这是改哪个错误。。
我的有两上域名,,但只有一个域名(http://www.yqyqz.cn)能正常使用,,用另一个域名(http://www.myly520.cn) 就不能正常登陆,显示这样的  (的请求来路不正确或表单验证串不符,无法提交。请尝试使用标准的web浏览器进行操作。
返回上一页 )
回复

使用道具 举报

ieven 发表于 2009-3-25 22:17:07 | 显示全部楼层
多谢7楼兄弟!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-10-22 01:20 , Processed in 0.127179 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表