Welcome to Geeklog, Anonymous Sunday, September 01 2024 @ 12:36 am EDT
Geeklog Forums
CODE tag in the Forum
Status: offline
Blaine
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
I think the CSS had just not been added when the new GL version and theme was installed.
if($_USER['uid'] > 1 ) {
$query = DB_query("SELECT pid,forum FROM {$_TABLES['gf_topic']} WHERE id={$showtopicid}");
list ($showtopicpid,$forumid) = DB_fetchArray($query);
if ($showtopicpid == 0 ) {
$showtopicpid = $showtopicid;
}
$log_sql = DB_query("SELECT * FROM {$_TABLES['gf_log']} WHERE uid=$_USER[uid] AND topic=$showtopicpid");
$lrows = DB_numRows($log_sql);
$logtime = time();
if ($lrows < 1) {
DB_query("INSERT INTO {$_TABLES['gf_log']} (uid,forum,topic,time) VALUES ('$_USER[uid]','$forumid','$showtopicpid','$logtime')");
} else {
DB_query("UPDATE {$_TABLES['gf_log']} SET time=$logtime WHERE uid=$_USER[uid] AND topic=$showtopicpid");
}
}
End of code test
Geeklog components by PortalParts -- www.portalparts.com
Text Formatted Code
if($_USER['uid'] > 1 ) {
$query = DB_query("SELECT pid,forum FROM {$_TABLES['gf_topic']} WHERE id={$showtopicid}");
list ($showtopicpid,$forumid) = DB_fetchArray($query);
if ($showtopicpid == 0 ) {
$showtopicpid = $showtopicid;
}
$log_sql = DB_query("SELECT * FROM {$_TABLES['gf_log']} WHERE uid=$_USER[uid] AND topic=$showtopicpid");
$lrows = DB_numRows($log_sql);
$logtime = time();
if ($lrows < 1) {
DB_query("INSERT INTO {$_TABLES['gf_log']} (uid,forum,topic,time) VALUES ('$_USER[uid]','$forumid','$showtopicpid','$logtime')");
} else {
DB_query("UPDATE {$_TABLES['gf_log']} SET time=$logtime WHERE uid=$_USER[uid] AND topic=$showtopicpid");
}
}
End of code test
Geeklog components by PortalParts -- www.portalparts.com
5
5
Quote
All times are EDT. The time is now 12:36 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content