-
Notifications
You must be signed in to change notification settings - Fork 1
/
game-dicussion-forum.php
152 lines (121 loc) · 4.36 KB
/
game-dicussion-forum.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?php
session_start();
include("dbconnection.php");
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Discussion Forum | Maverick Game</title>
<meta content="discussion forum, maverick game, discussion community, community for online gaming, forum for online games, discussion forum for online game players" name="keywords" />
<meta content="Post your discussion topics about Maverick Game here. Answer queries and discuss hot gaming topics on our online discussion community." name="description"/>
<link rel="shortcut icon" href="favicon.png" type="image/x-icon"/>
<link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700' rel='stylesheet' type='text/css' /
<link href='http://fonts.googleapis.com/css?family=Didact+Gothic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="assets/css/style.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="assets/js/jquery.min.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/script.js"></script>
<script src="assets/js/wow.min.js"></script>
<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/files/css3-mediaqueries.js"></script>
<script src="/assets/js/respond.min.js"></script>
<![endif]-->
<!--[if IE 8]>
<script type="text/javascript" src="/assets/js/html5.js"></script>
<html lang="en" class="ie ie8">
<![endif]-->
<meta name="google-site-verification" content="ywXjYOYCEEAo7oFbxaG3VU1x2uA4yI9q1PHhRNGTtxY" />
</head>
<body class="home">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.4&appId=481352955356475";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Start popup-->
<!-- Login form -->
<!-- End signUp form -->
<div class="popup-overlay"></div>
<!-- End popup-->
<?php
include("user-login-menus.php");
?>
<?php
include("sidebarlinks.php");
?>
<div class="leader-area">
<div class="container">
<div class="row">
<div class="col-md-9 col-sm-9">
<div class="leader-wrap" style="min-height:400px;">
<h3 class="white">Welcome to <span>Game Discussion</span></h3>
<br/>
<table class="table-responsive table-bordered table-condensed table-detail">
<thead>
<tr>
<th colspan="2"><span class="tableformyelo">FORUM</span></th>
<th colspan="2"><span class="tableform">LATEST POST</span></th>
</tr>
</thead>
<tbody>
<tr>
<td class="nopad" colspan="4"><h1 class="forum-hd1 white">Gaming Forums</h1></td>
</tr>
<?php
$game_forums=getDiscussionForum();
if($game_forums>0)
{
while($game_forum= mysql_fetch_array($game_forums))
{
?>
<tr>
<td align="center"><img width="50" height="50" src="assets/images/forum/<?php echo $game_forum['discussion_simlies']; ?>"></td>
<td class="width30"><div class="main-topic"><a href="game-forum-thread-<?php echo $game_forum['discussion_forum_seo']; ?>"><?php echo $game_forum['discussion_forum_title']; ?></a> <br/><span class="smalltext"><?php echo $game_forum['forum_description']; ?></span></div></td>
<td class="width54"><span class="tabletd">
<?php
$last_thread=getLastThreadBySubForum($game_forum['discussion_forum_id']);
$lastthread= mysql_fetch_array($last_thread);
?>
<a href="game-forum-thread-<?php echo $game_forum['discussion_forum_seo']; ?>"><?php echo $lastthread['thread_name']; ?></a>
<?php
if($lastthread['user_id']>0){
$user_detail= getUserById($lastthread['user_id']);
$user= mysql_fetch_array($user_detail);
echo "<br> by ";
?>
<span style='color: #688031'><?php echo $user['name']; ?></span>
<?php
echo "<br>";
echo date("d-m-y",strtotime($lastthread['createdAt']));
}
?>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
<div class="col-md-3">
<?php
include("recent-discussion.php");
?>
</div>
</div>
</div>
</div>
<?php
include("footer-toparea.php");
?>
<?php
include("footer.php");
?>
</body>
</html>