Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DeptNav

Pages: [1] 2 3
1
Suggestions / How to post a suggestion
« on: January 15, 2014, 08:32:51 am »
How to post a suggestion

There are certain regulations that you must follow, when posting a suggestion. Failure to follow these regulations will result in an automatic dismissal of that suggestion. It is essential that you read this and follow it to the point. These are the steps in which you should follow to post a suggestion.

1. You have to post a New Poll not a New Thread. All suggestions must be posted as a poll.

2. When starting the poll you must include the; Subject Line, Question and Options. There may only be a yes and no type option. NEVER post a maybe, idk, etc option. If the soldier voting doesn't know, then they shouldn't make a decision.

3. For the poll options you are to leave those alone. Do not set a maximum number of voters, a certain amount of time the poll is open, or result visibility. Everything should be left to the default.

If you follow these three easy steps, then your poll will be fine. The poll will be left open for as long as the CNO, VCNO or Suggestions MOD sees fit. After that the CNO or VCNO will review the section and come to a conclusion as whether or not the suggestion will be accepted. The CNO, VCNO or Suggestions MOD will then lock the thread and add a reply either saying what is to be done with the suggestion (ACCEPTED, DENIED, etc...). The suggestion will stay this way for one week, then the CNO, VCNO or Suggestion MOD will delete the thread and it will be recorded in the Suggestion Archive thread. It is essential you follow the rules of posting a suggestion.

2
Suggestions / Suggestion Rules
« on: January 15, 2014, 08:31:41 am »
All suggestions must be a poll. Any threads missing a poll will be removed, no questions asked. Suggestions must have the following:


  • A poll.
  • 5 sentences about the suggestion.
  • Productive (Pros[/font])
  • Contrary (cons)
  • 3 Pros and Cons.

There will be no arguing on any threads. Anything personal to a Sailor will be acted upon as soon as possible. They may not agree with your suggestion, that is their opinion. Do not fight about opinions. Suggestions will be up for verdict for 1 week. It will then be moved once the CNO/VCNO has made a decision.

3
Graphics/Video Board / U.S. Navy - Screen Prerequisite Program
« on: January 15, 2014, 08:30:17 am »
to be made

4
U.S. Fleet Cyber Command / Assistance Request Form
« on: January 15, 2014, 08:28:41 am »
United States Department of Defense
[/color]

Here at the United States Department of the Navy we have many personnel who are able to provide computer assistance for minor problems. We're no stranger to computer problems; if one arises and you don't know how to fix it follow these steps in order to ask for computer help.

Step One: Making a Thread
To ask for computer help you need to create a thread under the Computer Command board. You will need to fill out the following form below and include all important details.
Code: [Select]
[b]System Type (laptop/desktop/etc):[/b]
[b]Manufacturer:[/b]
[b]Operating System:[/b]
[b]Your Problem:[/b]
[b]Recent changes that may relate to this problem:[/b]


Step Two: Adding Other Details
If you have a problem with something specific, feel free to add extra details. If your browser is acting up, you would add the following section.
Code: [Select]
[b]Browser:[/b]

Step Three: Keeping Active
It'll often take more than one try to fix your problem. You should check your thread a few times daily to see if anyone has responded to it. You will most likely be asked for more details, so it is important to pay attention to the thread. You should be able to answer these extra details promptly.

Step Four: Solving the Problem
Once your problem is solved you should reply to your thread that it is solved and write down how you solved it, just in case someone has the same problem.

5
U.S. Fleet Cyber Command / [jQuery] Border Radius
« on: January 15, 2014, 08:28:01 am »
Not sure if this is relevant to the board name but might as well. If you're a web developer, you're probably familiar with the border-radius feature in CSS3. In my opinion, it's a complete pain in the ass to write 5 lines of code to achieve the effect of curved borders, so I wrote a little JavaScript code that will do it for you.


Code: [Select]
<!DOCTYPE html>
<html>
    <head>
        <title>JavaScript Border Radius</title>
        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
        <script type="text/javascript">
        $(function(){
            $("[data-border-radius]").each(function(i,a){
                var br = $(a).attr("data-border-radius");
                if ($.isNumeric(br)) {
                    $(a).css({
                        "border-radius": br + "px",
                        "-webkit-border-radius": br + "px",
                        "-moz-border-radius": br + "px",
                        "-o-border-radius": br + "px",
                        "-khtml-border-radius": br + "px"
                    });
                }
            });
        });
        </script>
    </head>
 
    <body>
        <h3>Original</h3>
        <div style="background-color: #000000; height: 100px; width: 100px;"></div>
 
        <hr />
 
        <h3>JavaScript edit</h3>
        <div style="background-color: #000000; height: 100px; width: 100px;" data-border-radius="10"></div>
    </body>
</html>

6
U.S. Fleet Cyber Command / [PHP] Online Users Script
« on: January 15, 2014, 08:27:38 am »
Credit to darren.

Don't forget to change your MySQL details in both of the PHP files.

config.php


Code: [Select]
<?php/*PHPOnlineUsers script by Darren (HairyWhale)hqaf-dod.freeforums.net*/session_start(); mysql_connect( "localhost", "dbuser", "dbpass" ); //connect to DBmysql_select_db( "dbname" ); //select DB $file_viewed = $_SERVER['REQUEST_URI']; //get the page they have visited$ip = $_SERVER['REMOTE_ADDR']; //get their ip address$time = time(); //get the time they loaded the page$five_mins = $time - 60; //5 minute interval$session = session_id(); //get their unique session id $checkQ = mysql_query( "SELECT * FROM onlineusers WHERE `session` = '$session'" );if( mysql_num_rows( $checkQ ) > 0 ){mysql_query( "DELETE FROM `onlineusers` WHERE `session` = '$session'" );}mysql_query( "INSERT INTO `onlineusers` (`ip`, `time`, `page`, `session`) VALUES ('$ip', '$time', '$file_viewed', '$session');" );mysql_query( "DELETE FROM `onlineusers` WHERE `time` < '$five_mins'" ); //remove all sessions in table that have been inactive since 5 minutes $online_users = mysql_num_rows( mysql_query( "SELECT * FROM `onlineusers`" ) ); //get the total amount of online users?>

index.php


Code: [Select]
<?php/*PHPOnlineUsers script by Darren (HairyWhale)hqaf-dod.freeforums.net*/include( "config.php" );session_start(); mysql_connect( "localhost", "dbuser", "dbpass" ); //connect to DBmysql_select_db( "dbname" ); //select DB $onlineQ = mysql_query( "SELECT * FROM onlineusers" );if( mysql_num_rows( $onlineQ ) == 0 ){echo "No one is online!";}else{echo "<style type=\"text/css\">th,td{border:1px;}</style><table><table><tr><th>IP</th><th>Time</th><th>Page</th><th>Session</th></tr>";while( $onlineA = mysql_fetch_array( $onlineQ ) ){$ip = $onlineA["ip"];$time = date( "F jS Y - g:i a", $onlineA["time"] );$page = $onlineA["page"];$session = $onlineA["session"];echo "<tr><td>{$ip}</td><td>{$time}</td><td>{$page}</td><td>{$session}</td></tr>";}echo "</table>";}?>

Run this SQL query


Code: [Select]
CREATE TABLE IF NOT EXISTS `onlineusers` (
  `ip` varchar(100) NOT NULL,
  `page` varchar(350) NOT NULL,
  `time` varchar(100) NOT NULL,
  `session` varchar(1000) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1; 
This will show a user's IP Address, the page they visited, the time they visited and their unique session ID.

7
U.S. Fleet Cyber Command / [HTML/CSS] MyLazySundays Popup Window Script
« on: January 15, 2014, 08:27:12 am »
I got this from my friend Darren who posted it on Barrack-US's forum. NOTE: You must have a webs.com site for this to work.

He&amp;nbsp;was bored and decided to mess around with some HTML. I was shocked to see My Lazy Sundays pop-up. It was completely accidental.

Okay, so what you need:

[ul type="disc"]
  • Text Document (Notepad/Text Editor)
  • Windows/Mac
  • Basic knowledge of HTML or CSS coding
  • A file directory path (basically saving the completed file to your desktop)
  • Patience
  • A HTML-editable website available (webs.com)
[/ul][div]
I've prepared a script, that enables you to have the pop-up appear randomly.


Code: [Select]
<html>
<body bgcolor="Black">

<p><center><h1>THIS IS THE HEADER, IGNORE IT</h1></center>
<center><font face="Bebas Neu" font color="Red" size="4">YOU CAN TYPE WHATEVER YOU WANT HERE</font></center></p>

<center><table>
<table border="1">

<tr><td>Try</td><td>This</td></tr>
<tr><td>Script</td><td>Free!</td></tr>

</table></center>

</body>
</html>
You're gunna have to copy and paste that basic little script into your Notepad or Text Editor and click Save As, then click Desktop and then go down to file extensions (drop down arrow with .txt in it) and click the drop down arrow and click All Files, then save the document as for example: my_lazy_sundays_popup.html

To create an accessible HTML file, you cannot have any special characters or spaces, only hyphens as you've acknowledged. Now, click Save and check your desktop. Open up the HTML encoded desktop icon and wallah!

BUT THAT'S NOT IT YET!

Now you need to go to your website and create your own custom HTML. Once you're in the custom HTML window, type in: <a href="my_lazy_sundays_popup.html">THE WRITING YOU WANT HERE</a>

Like I said, if your file name isn't my_lazy_sundays_popup.html then change the HREF to your file name.

Then, click it and VOILA!

If it doesn't open the first time, go up to your linkbar and you should see ''Popups Blocked'' , click it and enable the popups. Then click your HREF once more and the Scripted Pop-up will appear!
[/div]

8
U.S. Fleet Cyber Command / Habbo Survival Guide
« on: January 15, 2014, 08:26:46 am »
[ul type="disc"]
  • Do not be a retard.
    Act smart on the hotel, don't go to strange looking links. Don't download programs that you think will supposedly help you with your private warfare tactics or script coins, you'll end up with a virus. Just follow the Habbo Way and you'll be safe.
[/ul][div]
[ul type="disc"]
  • Do not give your instant messenger contact to strangers.&amp;nbsp;[span style="font-size:10pt;"]Feel free to give out your skype or MSN to a friend of yours but be cautious at the same time. This "friend" may turn out to be who you may not be who you imagine[/span]
[/ul][div][div]
[ul type="disc"]
  • Do not disclose sensitive information.&amp;nbsp;This is common sense. Do not give out your address, full name, family member's name, your school or anything you think somebody would document on you. This is for your own personal good.
[/ul]

[/div]

[/div]
[/div]

9
U.S. Fleet Cyber Command / [PHP] Word Censor Script
« on: January 15, 2014, 08:26:23 am »
Code: [Select]
<?phpfunction censor( $str ){    /*    load bad words, separated by line break, eg:     ****    ****    ****    */    $bad_words = file( "bad_words.txt" );     foreach ( $bad_words as $bad_word )    {        $bad_word = trim( $bad_word );        if ( preg_match( "/" . $bad_word . "/i", $str ) )        {            $new_word = '';            for ( $i = 1; $i <= strlen( $bad_word ); $i++ )            {                $new_word .= '*';            }            $str = eregi_replace( $bad_word, $new_word, trim( $str ) );            $new_word = '';        }    }return $str;} $string = "Hello you **** ****!"; echo $string; //Hello you **** ****!echo censor( $string ); //Hello you ****ing *****!?>


Code: [Select]
/*
load bad words, separated by line break, eg:

****
****
****
*/
$bad_words = file( "bad_words.txt" );
If you'd like, you can edit which bad words you'd like to censor ^. As you progress down the code, you'll come across:


Code: [Select]
$bad_word = trim( $bad_word );
if ( preg_match( "/" . $bad_word . "/i", $str ) )
{
$new_word = '';
for ( $i = 1; $i <= strlen( $bad_word ); $i++ )
{
$new_word .= '*';
Feel free to alter the filter from '*' to anything such as 'bobba' or '%@!*&amp;amp;' etc.


10
U.S. Fleet Cyber Command / [whisper][/whisper] code in posts
« on: January 15, 2014, 08:26:02 am »
This will add a button in your post area that will in turn add [whisper][/whisper] tags into your post

Put it in your Global Footer or the footer of the board you want it to work on..

Put it in your Global Footer..



Code: [Select]
insert code he<script type="text/javascript">
<!--
/*
Whisper Tags (V2)
by Todge
Copyright © 2009
Please keep this header intact
*/

// Edit Below...

var whisperButton = 'URL OF IMAGE';

// Edit Above...

// Add button to posting page..

if(document.postForm &amp;&amp; !location.href.match(/tion=pmsend/))
{
function getPeeps()
{
var wPeeps = '';
wPeeps = prompt('Please enter the USERNAMES of the poeple you want to whisper to, seperated by commas.. (admin,Guest,'+pb_username+')','');
if(wPeeps != null &amp;&amp; wPeeps != '')
{
add('[whisper='+wPeeps+']','[/whisper]');
return;
}
else if(wPeeps == '')
{
alert('You have to whisper to someone..');
getPeeps();
}
return;
}
var newButton = document.createElement('a');
newButton.innerHTML = '<img src="'+whisperButton+'" border="0">';
newButton.href='javascript:getPeeps()';
document.postForm.color.parentNode.appendChild(newButton);
}

// Remove whispers from quotes..

if(document.postForm &amp;&amp; location.href.match(/"e/))
{
var rW = document.postForm.message.value.split(/\[\/whisper\]/);
for(r=0; r<rW.length; r++)
{
rW[r] = rW[r].replace(/\[whisper=(.)+/,'');
}
document.postForm.message.value = rW.join('');
}

// Find and hide whispers...

if(location.href.match(/tion=(display|post&amp;thread|recent|pmview)/))
{
var posts = document.getElementsByTagName('font');
for(p=0; p<posts.length; p++)
{
if((posts.innerHTML.match(/google_ad_section_start/) || (document.postForm &amp;&amp; posts.size=="1")) &amp;&amp; posts.innerHTML.match(/\[whisper=/))
{
var whispers = posts.innerHTML.split(/\[whisper=/);
for(w=1; w<whispers.length; w++)
{
var thisW = whispers[w].split(/\]/)[1].split(/\[\/whisper/)[0];
var shPeeps = whispers[w].split(/\]/)[0];
if(shPeeps.match(pb_username))
{
posts.innerHTML = posts.innerHTML.replace('[whisper='+shPeeps+']'+thisW+'[/whisper]','<font color="red"><i>'+thisW+'</i></font>');
}
else if(!shPeeps.match(pb_username))
{
posts.innerHTML = posts.innerHTML.replace('[whisper='+shPeeps+']'+thisW+'[/whisper]','');
}}}}}
// -->
</script>re
[p]

Edit the line at the top.

                    var whisperButton = 'URL OF IMAGE';

with the URL of the image you want as the Whisper Button..

Any whispers will appear red and italic if the viewer is one of the receivers, otherwise they will not appear at all..

Please note..

Any staff member that can modify a member's post will be able to see all whispers when modifying..

!PLEASE BE AWARE THAT NO CODE IS TOTALLY SECURE..

I DON'T RECOMMEND SENSITIVE OR PERSONAL INFO BE USED WITH THIS CODE![/p][p][/p][p][/p][p][/p][p][/p][p][/p][p][/p][p][/p]

11
U.S. Fleet Cyber Command / Email Hacked? 7 things you should do NOW
« on: January 15, 2014, 08:23:19 am »
Email Hacked? 7 Things You Need to do NOW

Quote
Email account theft is rampant. If it happens to you, there are several steps
that you need to take not only to recover your account, but to prevent it from being
easily hacked again.

It seems like not a day goes by where I don't get a question from someone that
boils down to their email account having been hacked. Someone, somewhere has
gained access to their account and has started using it to send spam. Sometimes
passwords are changed, sometimes not. Sometimes traces are left, sometimes
not. Sometimes everything in the account is erased, both contacts and saved
email, and sometimes not. But the one thing that all of these events share is that
suddenly several people, usually those on your contact list, start getting email from
"you" that you didn't send at all.

Your email account has been hacked.

Here's what you need to do next...

Read more in the attached document which is to large to post here.

12
Historicial Center of Armed Forces / U.S. Marine Corps: Honor Roll
« on: January 15, 2014, 08:21:14 am »

Historical Center of Armed Forces
Marine Corps: Honor Roll

The Honor Roll is a list of habbos, who are/were worthy of honor, that have earned various medals and ribbons. The medals and ribbons all have different requirements to be met in order to receive it. (more info is post HERE) When a medal is received, the enlisted is then required to wear the "ribbon" chest piece on their Habbo's Uniform. This list is updated after each Decoration Ceremony.

Last Updated: In process


The following personnel are listed in alphabetical order as such:
HabboName - List of Medals/Ribbons

13
Historicial Center of Armed Forces / U.S. Marine Corps: Yearbook
« on: January 15, 2014, 08:20:32 am »

Historicial Center of Armed Forces
U.S. Marine Corps: Yearbook


14
Historicial Center of Armed Forces / United States Navy: Honor Roll
« on: January 15, 2014, 08:19:40 am »

Historical Center of Armed Forces
United States Navy: Honor Roll

The Honor Roll is a list of habbos, who are/were worthy of honor, that have earned various medals and ribbons. The medals and ribbons all have different requirements to be met in order to receive it. (more info is post HERE) When a medal is received, the enlisted is then required to wear the "ribbon" chest piece on their Habbo's Uniform. This list is updated after each Decoration Ceremony.

Last Updated: In process


The following personnel are listed in alphabetical order as such:
HabboName - List of Medals/Ribbons

15
Historicial Center of Armed Forces / United States Navy: Yearbook
« on: January 15, 2014, 08:17:46 am »

Historicial Center of Armed Forces
United States Navy: Yearbook


Pages: [1] 2 3