Saturday, August 24, 2013

How to Easily Cycle Rainbow Username On IP. Board

How to Easily Cycle Rainbow Username On IP. Board. Want to make color with iridescent colors like a rainbow on IP.Board? Quite easy just follow the tutorial to be distributed today.

Example of what it will look like : 

This is an example of what the cycling rainbow username will look like!


I've only tested this on IPB 3.4.2, but I'm sure it will work with earlier version and later versions. Let me know if it doesn't though.



Follow the tutorial How to Easily Cycle Rainbow Username On IP. Board below :
  • Go to your ACP
  •  Look & Feel
  • Your Skin
  • globalTemplate


Place the following code near the bottom of your globalTemplate. I put mine above the <!-- ::: Footer ::: --> part of the globalTemplate.

The code:
<script>
var speed=80
var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0")
var r=1
var g=1
var b=1
var seq=1
function changetext(){
for(i=0;i<document.getElementsByName("Rainbow").length;i++){
var storetext=document.getElementById? document.getElementsByName("Rainbow")[i] : document.all.highlight
rainbow="#"+hex[r]+hex[g]+hex[b]
storetext.style.color=rainbow
}
}
function change(){
if (seq==6){
b--
if (b==0)
seq=1
}
if (seq==5){
r++
if (r==12)
seq=6
}
if (seq==4){
g--
if (g==0)
seq=5
}
if (seq==3){
b++
if (b==12)
seq=4
}
if (seq==2){
r--
if (r==0)
seq=3
}
if (seq==1){
g++
if (g==12)
seq=2
}
changetext()
}
function starteffect(){
if (document.all||document.getElementById)
flash=setInterval("change()",speed)
}
starteffect()
</script>

Once you put that code somewhere in there, click 'Save', then head over to Members > Member Groups > Manage Member Groups.
Click on the group you want to use the rainbow username style on.


For the group prefix, use this: 
<span name="Rainbow">

For the group sufix, use this:
</span>

Click on 'Complete Edit' and you're done!


How to Easily Cycle Rainbow Username On IP. Board

Enjoy!

It it How to Easily Cycle Rainbow Username On IP. Board,  Good Luck!

Friday, August 23, 2013

How To Easily Remove "License Key Missing" Warning In ACP

How To Easily Remove "License Key Missing" Warning In ACP. This way work on IP Board 3.2.x, 3.3.x and 3.4.x. Curious how to eliminate? Simply follow the tutorial below.


Follow the tutorial below :
  • Go to admin
  • skin_cp
  • cp_skin_global.php 

Search and find this code :
if( !$this->settings['ipb_reg_number'] )
{
                $this->lang->words['license_missing_info']        = sprintf( $this->lang->words['license_missing_info'], $this->settings['base_url'] . 'app=core&module=tools&section=licensekey' );
                $extra_class = 'force_license';
                $license_html = <<<HTML
                                <div id='license_notice_force'>
                                                <h4>{$this->lang->words['license_missing_header']}</h4>
                                                <p>{$this->lang->words['license_missing_info']}</p>
                                </div>
HTML;
}
else
{
                $licenseData    = $this->cache->getCache( 'licenseData' );
                if( ( !$licenseData OR !$licenseData['key']['_expires'] OR $licenseData['key']['_expires'] < IPS_UNIX_TIME_NOW and $licenseData['key']['_expires'] != -1 ) AND !IPSCookie::get( 'ignore-license-notice' ) )
                {
                                $extra_class = 'expired_license';
                                $license_html = <<<HTML
                                                <div id='license_notice_expired'>
                                                                <div class='right'><a id='license-close' href='#'>Close</a></div>
                                                                <h4>{$this->lang->words['license_expired_header']}</h4>
                                                                <p>{$this->lang->words['license_expired_info']}</p>
                                                </div>
HTML;
                }
}


and replace it with this:
/*
if( !$this->settings['ipb_reg_number'] )
{
                $this->lang->words['license_missing_info']        = sprintf( $this->lang->words['license_missing_info'], $this->settings['base_url'] . 'app=core&module=tools&section=licensekey' );
                $extra_class = 'force_license';
                $license_html = <<<HTML
                                <div id='license_notice_force'>
                                                <h4>{$this->lang->words['license_missing_header']}</h4>
                                                <p>{$this->lang->words['license_missing_info']}</p>
                                </div>
HTML;
}
else
{
                $licenseData    = $this->cache->getCache( 'licenseData' );
                if( ( !$licenseData OR !$licenseData['key']['_expires'] OR $licenseData['key']['_expires'] < IPS_UNIX_TIME_NOW and $licenseData['key']['_expires'] != -1 ) AND !IPSCookie::get( 'ignore-license-notice' ) )
                {
                                $extra_class = 'expired_license';
                                $license_html = <<<HTML
                                                <div id='license_notice_expired'>
                                                                <div class='right'><a id='license-close' href='#'>Close</a></div>
                                                                <h4>{$this->lang->words['license_expired_header']}</h4>
                                                                <p>{$this->lang->words['license_expired_info']}</p>
                                                </div>
HTML;
                }
}
*/

Save and next
  • go to admin
  • applications
  • core
  • [b]extensions
  • dashboardNotifications.php 

Search and find this code :

if( ! $this->settings['ipb_reg_number'] )
  {
   $entries[] = array( $this->lang->words['lc_title_nokey'], sprintf( $this->lang->words['lc_msg_nokey'], "{$this->settings['base_url']}module=tools&amp;section=licensekey" ) );
  }
  else
  {
   /* Is the Spam Service Working?
   if ( $this->settings['spam_service_enabled'] )
   {
        $GOT_SPAM_ERROR = false;
        /* Are we entitled to it?
        $licenseData = $this->cache->getCache( 'licenseData' );
        if ( is_array( $licenseData['ipbMain'] ) && count( $licenseData['ipbMain'] ) )
        {
         foreach ( $licenseData['ipbMain'] as $data )
         {
          if ( $data['name'] == 'Spam Monitoring Service' && $data['status'] != 'Ok' )
          {
           $disableLink = $this->settings['base_url'] . "app=core&amp;module=settings&amp;section=settings&amp;do=findsetting&amp;key=spamservice";
           if ( is_numeric( $data['_expires'] ) && time() > $data['_expires'] )
           {
                $entries[] = array( $this->lang->words['spam_service_error'], sprintf( $this->lang->words['spam_service_expired'], $disableLink ) );
           }
           else
           {
                $entries[] = array( $this->lang->words['spam_service_error'], sprintf( $this->lang->words['spam_service_unavailable'], $disableLink ) );
           }
           $GOT_SPAM_ERROR = true;
           break;
          }
         }
        }
        if ( ! $GOT_SPAM_ERROR )
        {
         /* Get last 5 logs, and if all 5 are errors, show message
         $_errors = 0;
         $_entries = 0;
         $_lastError = '';
         $this->DB->build( array( 'select' => 'log_code, log_msg', 'from' => 'spam_service_log', 'order' => 'id DESC', 'limit' => 5 ) );
         $this->DB->execute();
         while( $_r = $this->DB->fetch() )
         {
          $_entries++;
          if( $_r['log_code'] === '0' )
          {
           $_errors++;
           if( !$_lastError )
           {
                $_lastError = $_r['log_msg'];
           }
          }
         }
         if( $_entries > 0 && $_errors == $_entries )
         {
          $entries[] = array( $this->lang->words['spam_service_error'], sprintf( $this->lang->words['spam_service_error_msg'], $_lastError ) );
         }
        }
   }
   /* If it's disabled, are we entitiled to it?
   else
   {
        $licenseData = $this->cache->getCache( 'licenseData' );
        if ( is_array( $licenseData['ipbMain'] ) && count( $licenseData['ipbMain'] ) )
        {
         foreach ( $licenseData['ipbMain'] as $data )
         {
          if ( $data['name'] == 'Spam Monitoring Service' && $data['status'] == 'Ok' )
          {
           $entries[] = array( $this->lang->words['spam_service_disabled'], $this->lang->words['spam_service_disabled_msg'] );
           break;
          }
         }
        }
   }
  }


and replace with this: 

/* if( ! $this->settings['ipb_reg_number'] )
  {
   $entries[] = array( $this->lang->words['lc_title_nokey'], sprintf( $this->lang->words['lc_msg_nokey'], "{$this->settings['base_url']}module=tools&amp;section=licensekey" ) );
  }
  else
  {
   /* Is the Spam Service Working?
   if ( $this->settings['spam_service_enabled'] )
   {
        $GOT_SPAM_ERROR = false;
        /* Are we entitled to it?
        $licenseData = $this->cache->getCache( 'licenseData' );
        if ( is_array( $licenseData['ipbMain'] ) && count( $licenseData['ipbMain'] ) )
        {
         foreach ( $licenseData['ipbMain'] as $data )
         {
          if ( $data['name'] == 'Spam Monitoring Service' && $data['status'] != 'Ok' )
          {
           $disableLink = $this->settings['base_url'] . "app=core&amp;module=settings&amp;section=settings&amp;do=findsetting&amp;key=spamservice";
           if ( is_numeric( $data['_expires'] ) && time() > $data['_expires'] )
           {
                $entries[] = array( $this->lang->words['spam_service_error'], sprintf( $this->lang->words['spam_service_expired'], $disableLink ) );
           }
           else
           {
                $entries[] = array( $this->lang->words['spam_service_error'], sprintf( $this->lang->words['spam_service_unavailable'], $disableLink ) );
           }
           $GOT_SPAM_ERROR = true;
           break;
          }
         }
        }
        if ( ! $GOT_SPAM_ERROR )
        {
         /* Get last 5 logs, and if all 5 are errors, show message
         $_errors = 0;
         $_entries = 0;
         $_lastError = '';
         $this->DB->build( array( 'select' => 'log_code, log_msg', 'from' => 'spam_service_log', 'order' => 'id DESC', 'limit' => 5 ) );
         $this->DB->execute();
         while( $_r = $this->DB->fetch() )
         {
          $_entries++;
          if( $_r['log_code'] === '0' )
          {
           $_errors++;
           if( !$_lastError )
           {
                $_lastError = $_r['log_msg'];
           }
          }
         }
         if( $_entries > 0 && $_errors == $_entries )
         {
          $entries[] = array( $this->lang->words['spam_service_error'], sprintf( $this->lang->words['spam_service_error_msg'], $_lastError ) );
         }
        }
   }
   /* If it's disabled, are we entitiled to it?
   else
   {
        $licenseData = $this->cache->getCache( 'licenseData' );
        if ( is_array( $licenseData['ipbMain'] ) && count( $licenseData['ipbMain'] ) )
        {
         foreach ( $licenseData['ipbMain'] as $data )
         {
          if ( $data['name'] == 'Spam Monitoring Service' && $data['status'] == 'Ok' )
          {
           $entries[] = array( $this->lang->words['spam_service_disabled'], $this->lang->words['spam_service_disabled_msg'] );
           break;
          }
         }
        }
   }
  }
  */

Save and you're done.

How to Remove "License Key Missing" Warning in ACP


In general, this works for 3.2.x, 3.3.x and 3.4.x.


It is How To Easily Remove "License Key Missing" Warning In ACP, may be useful and useful for You!

Thursday, August 22, 2013

Creating Easy Spoiler Code for MyBB

Creating Easy Spoiler Code for MyBB. MyBB spoiler MyCode you can easily customize WITHOUT a plugin.

A popular forum BBCode for forums has been the spoiler code, the button you create that can hide everything in your post, such as text, images, videos, etc. For MyBB, this does not come as a default BBCode (or MyCode), and must be manually coded into the MyBB powered forum. There have been a few plugins but some of them can be a bit buggy and sometimes needs updates when a new version of MyBB comes out, so instead of using plugins, here’s some MyCode you can use to create a MyBB spoiler that doesn’t require a plugin and can be used no matter what version of MyBB you’re using.

Follow the tutorial below :
  • Go to your forum’s Admin CP
  • Configuration
  • MyCode
  • Add New MyCode
  • Put in “Spoiler” as your Title and “Spoiler button” as your Short Description.
  • For the Regular Expression field, add the following:
\[spoiler\](.*?)\[/spoiler\]


next in the Replacement field, add this:
<div>
<input type="button" value="Show Spoiler" style="width:80px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide Spoiler'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = 'Show Spoiler';}">
</div>
<div>
     <div style="background: #ffffff;margin: 0 15px 15px 15px;padding: 5px;border: 1px solid black;display: none;">
$1
</div>
</div>
</div>


Save the new MyCode, you just created a MyBB spolier.
Here’s the results for the MyBB spoiler:



The spoiler is very customizable, you can adjust the width, font size, border size, border color, etc. Simply use the

$1
MyCode to use the new spoiler in your forum.

It is Creating Easy Spoiler Code for MyBB, Hopefully can help you.

Wednesday, August 21, 2013

How To Change Quick Reply Editor To Advanced Editor

How To Change Quick Reply Editor To Advanced Editor. To change it quite easy and practical. Please could you try

Follow the tutorial below :
  • First Go To Your Theme Templates 
  • Then Go To showthread_quickreply
  • Replace Default With The Code Below

Code:


<br />
<form method="post" action="newreply.php?tid={$tid}&amp;processed=1" name="quick_reply_form" id="quick_reply_form">
    <input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
    <input type="hidden" name="subject" value="RE: {$thread['subject']}" />
    <input type="hidden" name="action" value="do_newreply" />
    <input type="hidden" name="posthash" value="{$posthash}" id="posthash" />
    <input type="hidden" name="quoted_ids" value="" id="quoted_ids" />
    <input type="hidden" name="lastpid" id="lastpid" value="{$last_pid}" />
    <input type="hidden" name="from_page" value="{$page}" />
    <input type="hidden" name="tid" value="{$tid}" />
    <input type="hidden" name="method" value="quickreply" />

    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
        <thead>
            <tr>
                <td class="thead" colspan="2">
                    <div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickreply']}.gif" id="quickreply_img" class="expander" alt="[-]" title="[-]" /></div>
                    <div><strong>{$lang->quick_reply}</strong></div>
<!-- start: codebuttons -->
<script type="text/javascript" src="jscripts/editor.js?ver=1600"></script>
<script type="text/javascript">
<!--
    var editor_language = {
    title_bold: "Insert bold text",
    title_italic: "Insert italic text",
    title_underline: "Insert underlined text",
    title_left: "Align text to the left",
    title_center: "Align text to the center",
    title_right: "Align text to the right",
    title_justify: "Justify text",
    title_numlist: "Insert numbered list",
    title_bulletlist: "Insert bulleted list",
    title_image: "Insert image",
    title_hyperlink: "Insert hyperlink",
    title_email: "Insert email address",
    title_quote: "Insert quoted text",
    title_code: "Insert formatted code",
    title_php: "Insert formatted PHP code",
    title_close_tags: "Close any open MyCode tags that you currently have open",
    enter_list_item: "Enter a list item. Click cancel or leave blank to end the list.",
    enter_url: "Please enter the URL of the website.",
    enter_url_title: "Optionally, you can also enter a title for the URL.",
    enter_email: "Please enter the email address you wish to insert.",
    enter_email_title: "Optionally, you may also enter a title for the email address.",
    enter_image: "Please enter the remote URL of the image you wish to insert.",
    enter_video_url: "Please enter the URL of the video.",
    video_dailymotion: "Dailymotion",
    video_metacafe: "MetaCafe",
    video_myspacetv: "MySpace TV",
    video_vimeo: "Vimeo",
    video_yahoo: "Yahoo Video",
    video_youtube: "YouTube",
    size_xx_small: "XX Small",
    size_x_small: "X Small",
    size_small: "Small",
    size_medium: "Medium",
    size_large: "Large",
    size_x_large: "X Large",
    size_xx_large: "XX Large",
    font: "Font",
    size: "Text Size",
    color: "Text Color"
};
    var clickableEditor = new messageEditor("message", {lang: editor_language, rtl: 0, theme: "default"});
    if(clickableEditor)
    {
        clickableEditor.bindSmilieInserter("clickable_smilies");
    }
// -->
</script>
<!-- end: codebuttons -->
</tr>
                </td>
            </tr>
        </thead>
        <tbody style="{$collapsed['quickreply_e']}" id="quickreply_e">
            <tr>
                <td class="trow1" valign="top" width="13%">
                    <strong>{$lang->message}</strong><br />
                    <script type="text/javascript" src="jscripts/editor.js?ver=1600"></script>
                    <label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" {$postoptionschecked['signature']} />&nbsp;<strong>{$lang->signature}</strong></label><br />
                    <label><input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="1" />&nbsp;<strong>{$lang->disable_smilies}</strong></label>{$closeoption}</span>
                </td>
                <td class="trow1">
                    <div style="width: 99%">
                        <textarea style="width: 100%; padding: 4px; margin: 0;" rows="12" cols="90" name="message" id="message" tabindex="1"></textarea>
                    </div>
                    <div class="editor_control_bar" style="width: 95%; padding: 4px; margin-top: 3x; display: none;" id="quickreply_multiquote">
                        <span class="smalltext">
                            {$lang->quickreply_multiquote_selected} <a href="./newreply.php?tid={$tid}&amp;load_all_quotes=1" onclick="return Thread.loadMultiQuoted();">{$lang->quickreply_multiquote_now}</a> {$lang->or} <a href="javascript:Thread.clearMultiQuoted();">{$lang->quickreply_multiquote_deselect}</a>.
                        </span>
                    </div>
                </td>
            </tr>
            {$captcha}
            <tr>
                <td colspan="2" align="center" class="tfoot"><input type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" id="quick_reply_submit" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="3" /></td>
            </tr>
        </tbody>
    </table>
</form>



Very easy How To Change Quick Reply Editor To Advanced Editor, Good luck!

Tuesday, August 20, 2013

Add Secret PIN To ACP Login On MyBB

Add Secret PIN To ACP Login On MyBB. Your secret PIN helps prevent account theft, but this pin will also appear when you login to the ACP login.

So, let's get started.

Open ./admin/inc/class_page.php:

Around line 391:

Change
<div class="label"{$login_label_width}><label for="password">{$lang->password}</label></div>
         <div class="field"><input type="password" name="password" id="password" class="text_input" /></div>

To:
<div class="label"{$login_label_width}><label for="password">{$lang->password}</label></div>
         <div class="field"><input type="password" name="password" id="password" class="text_input" /></div>
         <div class="label"{$login_label_width}><label for="pin">Secret PIN</label></div>
         <div class="field"><input type="password" name="pin" id="pin" class="text_input" /></div>




next in ./admin/index.php
if($user['uid'])
{
     $query = $db->simple_select("users", "*", "uid='".$user['uid']."'");
     $mybb->user = $db->fetch_array($query);
}

To:
if($user['uid'])
{
     $query = $db->simple_select("users", "*", "uid='".$user['uid']."'");
     $mybb->user = $db->fetch_array($query);
}

if (isset($config['acp_pin']) && $mybb->input['pin'] != $config['acp_pin']) {
     $default_page->show_login("Invalid PIN","error");
}




Ok. Then, open ./inc/config.php and add anywhere:
$config['acp_pin'] = 'yourpin';


Things To Know:
-The PIN does not have to be a number, it can be anything.
- If the PIN is not set in .inc/config.php, it will not be checked/verified.

Preview:

If the wrong PIN will like this picture


 That's okay Add Secret PIN To ACP Login On MyBB, may be useful for you.

Monday, August 19, 2013

How To Install A Style On vBulletin

How To Install A Style On vBulletin. Alright, so I understand that many users have questions pertaining how they should install themes and most of the time it is newbies who are doing it the first time. Installing a style to your website is quite easy and takes only a couple minutes depending on the size. Below are some instructions/Hints/Tips.

  • Find the theme you want! This can take time for some like myself. Find one that fits your site the best and the topic.
  • Download the style, open the .ZIP/.RAR file and see if it includes a "README" or something similar. If it includes one, then you are good to go, just follow the instructions.
  • Almost 99.9% of the time, you will take the file that says "Upload" and place whats inside in your Vbulletin folder/site location in the FTP.
  • Take the XML file that is included and place it on your desktop. This will help you for easier access to it for later steps.
  • Go on your site to the AdminCP>Styles & Templates>Download/Upload Style>Import Style XML File (located at the bottom.
  • Browse for the XML which you placed on your Desktop.
  • Click Import at the bottom if you do not need to click anything else.
  • Now your theme/style is on your site and ready to be made default or be edited.

To make your style default
  • Maneuver to Settings>Options>Style and Language Settings>Default Style
  • Select the theme you just uploaded's name.
  • Click "Save" at the bottom.

Image Tutorial of uploading a style

The typical inside of a .RAR file of a downloaded style.

You will extract these files to the FTP of your site. Commonly it will just be images that need to be placed in the FTP.
Take this XML file and move it to your desktop.


Go to your AdminCP on your site and click on Styles & Templates
Click on Download/Upload Styles



Browse for the XML you placed on your desktop inside the section above, Click on import at the bottom.

If you want to set it default, go to Settings>Options
 Click on Styles and Language Settings
Move to "Default Style" and set it to the style you just made.

 Move to the bottom and click "Save"