找回密码
 注册
【阿里云】2核2G云新老同享 99元/年,续费同价华为云精选云产品特惠做网站就用糖果主机Jtti,新加坡服务器,美国服务器,香港服务器
查看: 890|回复: 16

我论坛做个弹出网页!代码放哪里???在线等!!

[复制链接]
发表于 2005 年 3 月 21 日 17:52:43 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
  我论坛做个弹出网页!代码放index.htm的哪里??
dz的论坛!!谢谢!!!
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
发表于 2005 年 3 月 21 日 17:54:00 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
jgwy这样的?>
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2005 年 3 月 21 日 17:54:26 | 显示全部楼层
是的!!!谢谢!
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 3 月 21 日 17:55:45 | 显示全部楼层
head.htm
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 3 月 21 日 17:56:15 | 显示全部楼层
去龙联找
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2005 年 3 月 21 日 17:56:31 | 显示全部楼层
head.htm
下面??
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2005 年 3 月 21 日 17:57:25 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
<?php

/*
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [DISCUZ!]  Crossday Discuz! Board                                    ::
:: (c) 2001-2005 Comsenz Technology Ltd (www.discuz.com)                ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Author:  Crossday (tech@discuz.com) Cnteacher (cnteacher@discuz.com) ::
:: Version: 2.5F   2004/10/01 05:15                                     ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
*/

define('CURRSCRIPT',  'index');

require './include/common.php';
require DISCUZ_ROOT.'./include/forum.php';

$discuz_action = 1;

if(isset($showoldetails)) {
      switch ($showoldetails) {
             case 'no': setcookie('onlinedetail', 0, $timestamp + 86400 * 365, $cookiepath, $cookiedomain); break;
             case 'yes': setcookie('onlinedetail', 1, $timestamp + 86400 * 365, $cookiepath, $cookiedomain); break;
      }
} else {
      $showoldetails = false;
}

$currenttime = gmdate($timeformat, $timestamp + $timeoffset * 3600);
$lastvisittime = gmdate("$dateformat $timeformat", $lastvisit + $timeoffset * 3600);

$memberenc = rawurlencode($lastmember);
$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;

if(empty($gid)) {

      $navigation = $navtitle = '';

      $announcements = '';
      if($_DCACHE['announcements']) {
             $space = '';
             foreach($_DCACHE['announcements'] as $announcement) {
                    if($timestamp >= $announcement['starttime'] && ($timestamp <= $announcement['endtime'] || !$announcement['endtime'])) {
                           if ($announcement['posturl']){
                                  $announcements .= $space.'<a href="'.$announcement['posturl'].'" target="_blank"><span class="bold">'.$announcement['subject'].'</span> '.
                                  '('.gmdate($dateformat, $announcement['starttime'] + $timeoffset * 3600).')</a>';
                           }else{
                                  $announcements .= $space.'<a href="announcement.php?id='.$announcement['id'].'#'.$announcement['id'].'" target="_blank"><span class="bold">'.$announcement['subject'].'</span> '.
                                  '('.gmdate($dateformat, $announcement['starttime'] + $timeoffset * 3600).')</a>';
                           }
                           $space = '       ';
                    }
             }
      }
      unset($_DCACHE['announcements']);

      $threads = $posts = 0;
      $forumlist = $catforumlist = $forums = $catforums = $categories = array();

      $sql = $accessmasks       ? "SELECT f.fid, f.fup, f.type, f.icon, f.name, f.description, f.moderator, f.threads, f.posts, f.lastpost, f.viewperm, a.allowview FROM $table_forums f
                                  LEFT JOIN $table_access a ON a.uid='$discuz_uid' AND a.fid=f.fid
                                  WHERE f.status='1' ORDER BY f.type, f.displayorder"
                           : "SELECT fid, fup, type, icon, name, description, moderator, threads, posts, lastpost, viewperm FROM $table_forums WHERE status='1' ORDER BY type, displayorder";
      $query = $db->query($sql);

      while($forum = $db->fetch_array($query)) {
             $forumname[$forum['fid']] = strip_tags($forum['name']);
             if($forum['type'] != 'group') {
                    $threads += $forum['threads'];
                    $posts += $forum['posts'];

                    if($forum['type'] != 'sub') {
                           $forums[$forum['fid']] = $forum;
                    } else {
                           $forums[$forum['fup']]['threads'] += $forum['threads'];
                           $forums[$forum['fup']]['posts'] += $forum['posts'];
                    }
             } else {
                    $categories[] = $forum;
             }
      }
      
      if($categories) {
             foreach($categories as $group) {
                    $group_forum = array();
                    foreach($forums as $fid => $forum) {
                           if($forum['fup'] == $group['fid']) {
                                  if(forum($forum)) {
                                         $group_forum[] = $forum;
                                         unset($forums[$fid]);
                                  }
                           } elseif(!$forum['fup']) {
                                  $catforums[] = $forum;
                                  unset($forums[$fid]);
                           }
                    }
                    if($group_forum) {
                           $forumlist = array_merge($forumlist, array($group), $group_forum);
                    }
             }
      } else {
             $catforums = $forums;
      }

       foreach($catforums as $forum) {
             if(forum($forum)) {
                    $catforumlist[] = $forum;
             }
      }
      if($catforumlist) {
             $forumlist[] = array('fid' => 0, 'type' => 'group', 'name' => $bbname);
             $forumlist = array_merge($forumlist, $catforumlist);
      }

      unset($fid, $forums, $catforums, $catforumlist, $categories, $group, $forum, $group_forum);

      if($whosonlinestatus == 1 || $whosonlinestatus == 3) {
             $whosonlinestatus = 1;

             $onlineinfo = explode("\t", $onlinerecord);
             $detailstatus = ((!isset($_COOKIE['onlinedetail']) && $onlineinfo[0] < 500) || ($_COOKIE['onlinedetail'] || $showoldetails == 'yes')) && $showoldetails != 'no';

             if($detailstatus) {
                    @include language('actions');

                    updatesession();
                    $onlinenum = $membercount = $invisiblecount = $guestcount = 0;
                    $whosonline = array();
                    $query = $db->query("SELECT uid, username, groupid, invisible, action, lastactivity, fid FROM $table_sessions");
                    while($online = $db->fetch_array($query)) {
                           if($online['uid']) {
                                  $membercount++;
                                  if(!$online['invisible']) {
                                         $online['icon'] = isset($_DCACHE['onlinelist'][$online['groupid']]) ? $_DCACHE['onlinelist'][$online['groupid']] : $_DCACHE['onlinelist'][0];
                                  } else {
                                         $invisiblecount++;
                                         if ($adminid == 1 ){
                                                $online['icon'] = 'online_invisible.gif';
                                         }else{
                                                continue;
                                         }
                                  }

                                  $online['fid'] = $online['fid'] ? $forumname[$online['fid']] : 0;
                                  $online['action'] = $actioncode[$online['action']];
                                  $online['lastactivity'] = gmdate($timeformat, $online['lastactivity'] + ($timeoffset * 3600));
                                  $whosonline[] = $online;
                           } else {
                                  $guestcount++;
                           }
                    }
                    $onlinenum = $membercount + $guestcount;
                    unset($online);
             } else {
                    $query = $db->query("SELECT COUNT(*) FROM $table_sessions");
                    $onlinenum = $db->result($query, 0);
             }

             if($onlinenum > $onlineinfo[0]) {
                    require_once DISCUZ_ROOT.'./include/cache.php';
                    $db->query("UPDATE LOW_PRIORITY $table_settings SET value='$onlinenum\t$timestamp' WHERE variable='onlinerecord'");
                    updatecache('settings');
                    $onlineinfo = array($onlinenum, $timestamp);
             }

             $onlineinfo[1] = gmdate($dateformat, $onlineinfo[1] + ($timeoffset * 3600));
      } else {
             $whosonlinestatus = 0;
      }

      if($discuz_user && $newpm) {
             require DISCUZ_ROOT.'./include/pmprompt.php';
      }

      include template('index');

} else {

      $forumlist = $cat = array();
      $threads = $posts = 0;
      $query = $db->query("SELECT fid, fup, type, icon, name, description, moderator, threads, posts, lastpost, viewperm FROM $table_forums WHERE (fid='$gid' OR (fup='$gid' AND type='forum')) AND status='1' ORDER BY type, displayorder");
      while($forum = $db->fetch_array($query)) {
             if($forum['type'] == 'group') {
                    $cat = $forum;
             } else {
                    $threads += $forum['threads'];
                    $posts += $forum['posts'];
             }
             if(forum($forum)) {
                    $forumlist[] = $forum;
             }
      }

      if(empty($cat)) {
             showmessage('forum_nonexistence', NULL, 'HALTED');
      }

      $navigation = '» '.$cat['name'];
      $navtitle = ' - '.strip_tags($cat['name']);

      include template('index');

}
?>

哪里??
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 3 月 21 日 17:57:53 | 显示全部楼层
head.htm
里面啊
加个代码不就可以了
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2005 年 3 月 21 日 17:59:31 | 显示全部楼层
不是加到index里面??加到head里面??
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2005 年 3 月 21 日 18:02:49 | 显示全部楼层
不是要调用的吗
在head.htm里面改一下~
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2024 年 11 月 18 日 19:41 , Processed in 0.020717 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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