From 027b405b1bdeb5bb7f3362ff1d570aa076846bc3 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Mon, 21 Dec 2009 21:32:16 +0000 Subject: (OC) added some jQuery stuff. Working dragable ui for newsreel git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@389 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- blocks/soldier_info/index.php | 127 ++++++++++++++++++++++-------------------- blocks/tsviewer/index.php | 22 +++----- 2 files changed, 74 insertions(+), 75 deletions(-) (limited to 'blocks') diff --git a/blocks/soldier_info/index.php b/blocks/soldier_info/index.php index 4db230d..f7ff24c 100644 --- a/blocks/soldier_info/index.php +++ b/blocks/soldier_info/index.php @@ -1,61 +1,66 @@ -Query("SELECT `uid`, `username`, `unreadpms`, `totalpms`, `postnum`, `usergroup`, `additionalgroups` FROM `mybb_users` WHERE `uid` = '".$login_cookie['0']."' AND `loginkey` = '".$login_cookie['1']."'"); - $check_num = $db->Rows($result); - if ($check_num != '1') - { - $past = time() - 100; - $logged_in = ''; - setcookie('mybbuser', gone, $past); - header("location: index.php"); - } - while(($row = $db->Fetch($result))!==false) - { - $logged_uid = $row['uid']; - $logged_username = $row['username']; - $avatar_type = $row['avatartype']; - $pm_unread = $row['unreadpms']; - $pm_total = $row['totalpms']; - $postnum = $row['postnum']; - - $main_usergroup = $row['usergroup']; - $add_usergroup = $row['additionalgroups']; - - $add_usergroups= explode(',', $add_usergroup); - } -} -?> -
- - Your IP:
-

- echo $postnum.' post(s)

'; - echo '
- - - Welcome, '.$logged_username.'
-  Logout
'; - } - else{ - echo 'Welcome Guest.
- -
'; - } - if ($logged_in == 'true'){ - ?> -
- Private Messages
- Unread:
- Total:

- - \ No newline at end of file +Query("SELECT `uid`, `username`, `unreadpms`, `totalpms`, `postnum`, `usergroup`, `additionalgroups` FROM `mybb_users` WHERE `uid` = '".$login_cookie['0']."' AND `loginkey` = '".$login_cookie['1']."'"); + $check_num = $db->Rows($result); + if ($check_num != '1') + { + $past = time() - 100; + $logged_in = ''; + setcookie('mybbuser', gone, $past); + header("location: index.php"); + } + while(($row = $db->Fetch($result))!==false) + { + $logged_uid = $row['uid']; + $logged_username = $row['username']; + $avatar_type = $row['avatartype']; + $pm_unread = $row['unreadpms']; + $pm_total = $row['totalpms']; + $postnum = $row['postnum']; + + $main_usergroup = $row['usergroup']; + $add_usergroup = $row['additionalgroups']; + + $add_usergroups= explode(',', $add_usergroup); + } +} +?> +
+ + Your IP:
+ + + post(s)

+
+ + Welcome, Logout
+
+ Private Messages
+ Unread:
+ Total:
+
+ + Welcome Guest.

+ +
+ + + +
+
+ + + \ No newline at end of file diff --git a/blocks/tsviewer/index.php b/blocks/tsviewer/index.php index cee0be4..fd24fb3 100644 --- a/blocks/tsviewer/index.php +++ b/blocks/tsviewer/index.php @@ -1,18 +1,12 @@ \n"; -////until it works again i'm going to have this here... -//echo "TSViewer is not working."; -//echo "\n"; -//CloseBlock(); -//return; //die +/** +* The overlaying css div.content class is messing up the padding of the text. +* Apparently I cannot override this... +*/ +echo "
\n"; +$ts = implode('',file("http://www.tsviewer.com/ts_viewer_pur.php?ID=902437&bg=&type=8f8f8f&type_size=11&type_family=5&info=1&channels=1&users=1&type_s_color=000000&type_s_weight=bold&type_s_style=normal&type_s_variant=normal&type_s_decoration=none&type_s_color_h=525284&type_s_weight_h=bold&type_s_style_h=normal&type_s_variant_h=normal&type_s_decoration_h=underline&type_i_color=000000&type_i_weight=normal&type_i_style=normal&type_i_variant=normal&type_i_decoration=none&type_i_color_h=525284&type_i_weight_h=normal&type_i_style_h=normal&type_i_variant_h=normal&type_i_decoration_h=underline&type_c_color=000000&type_c_weight=normal&type_c_style=normal&type_c_variant=normal&type_c_decoration=none&type_c_color_h=525284&type_c_weight_h=normal&type_c_style_h=normal&type_c_variant_h=normal&type_c_decoration_h=underline&type_u_color=000000&type_u_weight=normal&type_u_style=normal&type_u_variant=normal&type_u_decoration=none&type_u_color_h=525284&type_u_weight_h=normal&type_u_style_h=normal&type_u_variant_h=normal&type_u_decoration_h=none")); +echo $ts; +echo "
\n"; ?> - - - -\n"; -CloseBlock(); ?> -- cgit