Saturday, September 21, 2013

Show Forum Description Inside Tooltips On IP. Board

Show Forum Description Inside Tooltips On IP. Board. To beautify and make your website or forum to be elegant you can implement tooltips that I will give below. Please follow my tutorial at below!

Tutorial :
1. Go to: 
  • ACP
  • Look & Feel 
  • Manage Skin Sets & Templates 
  • Manage Templates in -Your Skin 
  • Board Index  
  • boardIndexTemplate



2. Find:
<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{parse expression="IPSText::striptags( IPSText::htmlspecialchars( $forum_data['name'] ) )"}'>{$forum_data['name']}</a></h4>
                                                    <p class='desc'>{$forum_data['description']}</p>
 


3. Replace With:
<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" class="tooltipforum" title="{$forum_data['description']}"><span title='{parse expression="IPSText::striptags( IPSText::htmlspecialchars( $forum_data['name'] ) )"}'>{$forum_data['name']}</span></a><span class='ipsBadge ipsBadge_purple' style='vertical-align: top; margin-left: 5px;'>Redirect</span></h4>
 


4. Go to:
  • ACP
  • Look & Feel 
  • Manage Skin Sets & Templates
  • Manage Templates in 
  • Your Skin
  • ipb_styles.css

 
5. Add: (Anywhere, but suggested at the bottom)
  
.tooltipforum{
display: inline;
position: relative;
}

.tooltipforum:hover:after{
background: #333;
background: rgba(0,0,0,.8);
border-radius: 5px;
bottom: 26px;
color: #fff;
content: attr(title);
left: 20%;
padding: 5px 15px;
position: absolute;
z-index: 98;
width: 400px;
font-size:12px;
}

.tooltipforum:hover:before{
border: solid;
border-color: #333 transparent;
border-width: 6px 6px 0 6px;
bottom: 20px;
content: "";
left: 50%;
position: absolute;
z-index: 99;
}
 


Default preview:


After tutorial:


 Hope This tutorial helped you.

Friday, September 20, 2013

[Tutorial] Creating Some Pretty BBcode On IP. Board

[Tutorial] Creating Some Pretty BBcode On IP. Board. So if you would like to have some custom bbcode you should have good understandings of ip.board's framework. By this I mean that you have knowledge of the css styles and classes for styling content.

For example:



This is the general box for messages on the forum. You may notice it has the shoutbox announcement box. Well this is ip.board's standard message style. It's class is "message". Now let's say you want to use this in a post or topic to make it more alive. We can assign it to a bbcode.


Start with
  • ACP
  • Look & Feel
  • Post Content
  • BBcode Management

You should be here



Click "Add BBcode"

Give your new BBcode a name. For this tutorial, we will name it "Message" which can be edited later on.

Give your BBcode a description. This can be anything and it will show if you try to use the bbcode via. the special BBcode button in the editor.

Give the BBcode a tag. For this tutorial, we will name it "Message".

Skip Custom BBCode Aliases.

Check No to Use Single Tag Only.

Check No to Use Option in Tag?.

Skip Option Regular Expression Filter.

Check No to Option is Optional?.

Check No to Switch option and content? and Prevent other codes parsing?

Now here is when the styling will come in to the text used in the BBcode. In Custom BBCode Replacement put the following line of code:

<span class="message">{content}</span>


Skip OR PHP file to execute.

Select your group permissions and where this BBcode is allowed to be used.

Hit Add BBcode.


Now you're done! Go test it out by replying to a topic which is in a forum that has the BBcode permission. If you followed this tutorial step by step then your example should look like:

[message] Your Message In Here [/message]


It is [Tutorial] Creating some pretty BBcode On IP. Board, Good Luck!

Thursday, September 19, 2013

Forum Hover Colour On IP. Board

Forum Hover Colour On IP. Board. Hello people of this board. I'm here today to show something that I came across along time ago but haven't seen any tutorials of it on here. Just in case you don't understand what I mean by the title, this is what a forum will look like when you're not hovering over it:


Forum Hover Colour On IP. Board

 and this is what it'll look like when you are hovering over it:

Forum Hover Colour On IP. Board


------------------------------------------------------------------------------------
First thing you're going want to do is go into your "admin control pannel" (acp/admincp) and then follow this:
  • admincp
  • look and feel
  • your skin
  • board index 
  • boardIndexTemplate

find:

<table class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_data']['name']}'">


replace with:

<table class='ipb_table forumHover' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_data']['name']}'">



After you've done that, go to:
  • admincp
  • look and feel
  • your skin
  • forum view
  • forumIndexTemplate

find:


<table class='ipb_table' summary="{$this->lang->words['cat_subforums']} '{$forum_data['name']}'">


replace with:

<table class='ipb_table forumHover' summary="{$this->lang->words['cat_subforums']} '{$forum_data['name']}'">


For the final step, you go in to your css. You do this buy going to:
  • admincp
  • look and feel
  • your skin
  • css 

  • Forum Hover Colour On IP. Board

  • ipb_styles.css

scroll all the way to the bottom (past the brace - }) and add the following code:

.forumHover tr:hover td {
	background: #142638;
	border-bottom: 2px solid orangered;
	cursor: pointer;
}

.forumHover tr:hover td,.forumHover tr:hover td *, .forumHover tr:hover td .desc, .forumHover tr:hover td .desc a {
	color: #fff !important;
	color: rgba(255, 255, 255, 0.7) !important;
}

.forumHover tr:hover td a {
	color: #fff !important;
}



If you want to personalise your colour for the box, go to this part of the code which is showed above:

.forumHover tr:hover td {
	background: #142638;
	border-bottom: 2px solid orangered;
	cursor: pointer;
}


and change the "#142638" to what ever colour you like. (NOTE: DO NOT TAKE THE # OR THE ; OUT BECAUSE IT WILL NOT WORK!)


It is Forum Hover Colour On IP. Board, Good luck!

Wednesday, September 18, 2013

Custom Ficons - Unique Icon For Each Forum On MyBB

Custom Ficons - Unique Icon For Each Forum On MyBB. This tutorial will allow you to use separate and unique Custom Forum Icons for each Forum and show images on Index and Forumdisplay Pages without running a single query OR without using a single plugin. You need to edit 3 templates:

Tutorial :
  • Go to: ACP
  • emplates 
  • Your theme's templates 
  • Forumbit templates 
  • forumbit_depth1_cat
  • and find:
<td class="thead" colspan="5"> 

and Change it to:
​<td class="thead" colspan="6"> 


Within the same template find:
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td> 

and Change it to;
<td class="tcat" colspan="3"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>


Save forumbit_depth1_cat template.


Now Go to: 
  • ACP
  • Templates
  • Your theme's templates
  • Forumbit templates
  • forumbit_depth2_forum and find:

<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>

and Add the following code just after that:
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="images/ficons/{$forum['fid']}.png" alt="" title="" class="" id="" /></td>


Save forumbit_depth2_forum template.


On this point you can see an <img src=""> tag with a {$forum['fid']}.png variable. This variable is the key in our tutorial which show a Unique Custom Icon in front of its corresponding Forum ID.
Go to: 
  • Cpanel 
  • File Manager
  • public_html
  • [ Your Forum Path ]
  • images
  • and make a folder with "ficons" name (without quotes)
Now all you need to do is to copy images to be used as Custom Forum Icons (relevant to the Forum Name) and upload them to ./images/ficons/ folder.
NOTE: Image's name should be same to the Forum ID. For example if your Forum ID (where these Icons are going to show) is 2 then you'll have to rename the Icon as 2.png and upload it to images/ficons/ folder. Do the same with rest of the Icons.
Now we have almost finished to show Custom icons on Index. Next, we have to do it on Forumdisplay pages.
Go to: 
  • ACP
  • Templates 
  • Your theme's templates
  • Forumdisplay templates
  • forumdisplay_subforums and find:

<td class="thead" colspan="5" align="center"><strong>{$lang->sub_forums_in}</strong></td> 

and Change it to:
<td class="thead" colspan="6" align="center"><strong>{$lang->sub_forums_in}</strong></td> 

Within the same template find:
<td class="tcat" width="2%">&nbsp;</td> 

and the following just after that:
<td class="tcat" width="2%">&nbsp;</td> 

Save forumdisplay_subforums template.

Now you can see something like this:


How to Easily Arrange Subforum In 3 Columns On IP. Board

How to Easily Arrange Subforum In 3 Columns On IP. Board. to set up 3 columns in the sub forums properly please follow the tutorial that I will give below.

Step 1: Template Edit
  • Go to Admin CP
  • Look & Feel 
  • ( skin name )
  • Board Index
  • boardIndexTemplate

Find:

<ol class='subforums'> 

<foreach loop="subforums:$forum_data['subforums'] as $__id => $__data"> 

<if test="showSubForumsLit:|:$__data[3]"><li class='newposts'><else />

<li>

</if> 

<a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$__data[1]}</a>

</li> 

</foreach> 

</ol> 


replace with :
 <ol class='subforums1'> 

<foreach loop="subforums:$forum_data['subforums'] as $__id => $__data"> 

</ol> 


<ol class='subforums2'> 

<if test="showSubForumsLit:|:$__data[3]"> 

</foreach> 

</ol> 



<ol class='subforums3'> 

<foreach loop="subforums:$forum_data['subforums'] as $__id => $__data"> 

</ol> 


<ol class='subforums'> 

<if test="showSubForumsLit:|:$__data[3]"><li class='newposts'><else /><li></if> 

<a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$__data[1]}</a></li> 

</foreach> 

</ol> 


Save




Step 2: CSS Edit

  • Go to Admin CP
  • Look & Feel
  • ( skin name )
  • CSS
  • ipb_styles.css

find :

table.ipb_table ol.subforums { 
margin-top: 3px; 
float: left; 
width: 50%; 
} 

replace with :

table.ipb_table ol.subforums { 
margin-top: 3px; 
float: left; 
width: 33%; 
} 

table.ipb_table ol.subforums1 { 
width: 33%; 
} 

table.ipb_table ol.subforums2 { 
width: 33%; 
}

Save

How to Easily Arrange Subforum In 3 Columns On IP. Board


It is How to Easily Arrange Subforum In 3 Columns On IP. Board, Hopefully useful and useful for you!

How to Easily Updating Plugins On MyBB

How to Easily Updating Plugins On MyBB. Hi All,When upgrading to 1.6 you first need to consider if your plugins are compatible. You have two options here: Wait for the plugin author to update them, Or update them yourself.
If you want to go with the second option you will need to delve into the plugins code and change some things around. Firstly you will need to change it's compatibility indicator you can do this by changing:
"compatibility" => "14*", 

to:

"compatibility" => "16*", 


which is inside the function 'pluginname_info'. 
If the compatibility indicator isn't there or is just '*' then your plugin will work fine without changes so long as you aren't having problems with mod_security.
(See below if you are).
Note that this will not be enough for every single plugin.
Also if you are having problems with mod_security on your forum you will need to find and change any admin url's using the old format (config/settings). All you have to do here is change the '/' to a '-'.
If you still have problems after this then you will need to contact the plugin author. It may be that it uses an old database field or something which has changed in 1.6. But for most plugins you only need to change one or two things to make it work properly.

How to Easily Updating Plugins On MyBB

It is How to Easily Updating Plugins On MyBB, Good Luck!

Usefull SQL Query List On MyBB

Usefull SQL Query List  On MyBB. For those of you who want to try please follow the tutorial that I will give full below correctly and appropriately!

 Reset admin usergroup post count to zero (Assuming the admins group ID is "4"):
 
UPDATE `mybb_users` SET `postnum` = '0' WHERE `usergroup` = '4' 



To force the Classic Postbit (requires template changes to remove option to change again):
 
UPDATE `mybb_users` SET `classicpostbit` = '1' WHERE `classicpostbit` = '0' 



To force the Horizontal Postbit (requires template changes to remove option to change again):
 
UPDATE `mybb_users` SET `classicpostbit` = '0' WHERE `classicpostbit` = '1' 



To set a lost/forgotten password to 'test' for a user (requires you to change X to the uid of the user this will apply to):
 
UPDATE `mybb_users` SET `password` = '098f6bcd4621d373cade4e832627b4f6', `salt` = '' WHERE `uid` = 'X' 



To put you back into the Admin usergroup if you get changed to a different group (Assuming that the admins user ID is "1"):
 
UPDATE `mybb_users` SET `usergroup` = '4' WHERE `uid` = '1' 



Turn off thread ratings in all forums (requires you to also rebuild the 'forums' cache in the ACP):
 
UPDATE `mybb_forums` SET `allowtratings` = '0' WHERE `allowtratings` = '1' 



Turn on thread ratings in all forums (requires you to also rebuild the 'forums' cache in the ACP):
 
UPDATE `mybb_forums` SET `allowtratings` = '1' WHERE `allowtratings` = '0' 



Make all invisible people visible (requires template changes to remove option to change again):
 
UPDATE `mybb_users` SET `invisible` = '0' WHERE `invisible` = '1' 



Remove all avatars (requires settings/template changes to remove option to change again):
 
UPDATE `mybb_users` SET `avatar` = '' 



Remove all sigs (requires template changes to remove option to change again):
 
UPDATE `mybb_users` SET `signature` = '' 



Remove all custom usertitles (requires settings/template changes to remove option to change again):
 
UPDATE `mybb_users` SET `usertitle` = '' 



Set all people to recieve admin emails (requires template changes to remove option to change again):
 
UPDATE `mybb_users` SET `allownotices` = '1' WHERE `allownotices` = '0' 



Set all people to recieve PMs (requires template changes to remove option to change again):
 
UPDATE `mybb_users` SET `receivepms` = '1' WHERE `receivepms` = '0' 



Activate all members awaiting activation:
  
UPDATE `mybb_users` SET `usergroup` = '2' WHERE `usergroup` = '5' 



Delete all members awaiting activation:
  
DELETE FROM `mybb_users` WHERE `usergroup` = '5' 



Sets everyone to automatically receive an email when they receive a private message:
 
UPDATE `mybb_users` SET `pmnotify` = '1'; 



Places all users with a post count of less than 100 into a specific usergroup (Change the user group ID to suit):
 
UPDATE `mybb_users` SET `usergroup` = '1' WHERE `postnum` < '100'; 



Sets all your forums closed threads to open:
 
UPDATE mybb_threads SET closed='' WHERE closed='1' 



Displays all your users email addresses in phpmyadmin:
 
SELECT `email` FROM `mybb_users`; 



Removes a user profile field (Change the XX to the profile field ID):
 
UPDATE mybb_userfields SET fidXX=''; 



Delete all users from a group (Edit the group ID):
 
DELETE FROM `mybb_users` WHERE `usergroup` = '1'; 



Displays last 5 posts created, in phpmyadmin:
 
SELECT * FROM (mybb_threads t, mybb_posts p) WHERE p.tid=t.tid ORDER BY p.dateline DESC LIMIT 5 



Displays last 5 threads created, in phpmyadmin:
 
SELECT * FROM mybb_threads ORDER BY dateline DESC LIMIT 5



Force Default Icons on threads without Thread Icons (Change "X" with the thread icon ID):
 
UPDATE `mybb_threads` SET `icon` = 'X' WHERE `icon` = '' OR `icon` = '0'; 



Display the quick reply box for all users:

UPDATE `mybb_users` SET `showquickreply` = '1' 



Turn on redirection pages for all users:

UPDATE `mybb_users` SET `showredirect` = '1' 



Set all users to receive a notice when they receive a PM:

UPDATE `mybb_users` SET `pmnotice` = '1' WHERE `pmnotice` = '0'



Delete as users private messages Change "X" to the with the users ID:

DELETE FROM mybb_privatemessages WHERE uid='1'


Usefull SQL Query List  On MyBB

It is Usefull SQL Query List  On MyBBmay be useful for you!

Tuesday, September 17, 2013

How to Make Horizontal Userinfopane On IP.Board

How to Make Horizontal Userinfopane On IP.Board. it will beautify your website, What it is going to look like:

How to Make Horizontal Userinfopane On IP.Board


Please note that this tutorials is based on the Default IP.Board (3.4.x) skin and may be slightly different or incorrect depending on other variables (i.e skin, board version etc.) For support, questions, or corrections feel free to post your reply.

We will have to be making edits to the following:
  • UserInfoPane (Global Templates)
  • IncludeRTL (Global Templates)
  • ipb_styles.css
Replace userinfopane with this:
<div itemscope itemtype="http://schema.org/Person" class='user_details'>    <div style='float:left'>
    <ul class='basic_info'>
        <if test="avatar:|:$author['member_id']">
            <li class='avatar'>
                <if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
                <a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
                </if>
                <if test="hasVariable:|:$this->settings['member_topic_avatar_max']">   
                    <img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' width="100px" height="100px"/>
                <else />
                    <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' width="100px" height="100px"/>
                </if>
                <if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
                </a>
                </if>
            </li>
        <else />
            <li class='avatar'>
                <img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' width="100px" height="100px"/>
            </li>
        </if>
    </ul>
    </div>
    <div style='float:left;margin-left:10px;'>
    <ul class='basic_info'>
        <if test="membertitle:|:$author['member_title']">
            <p class='desc member_title'>{$author['member_title']}</p>
        </if>
                <if test="postMember:|:$author['member_id']">
                    <span itemprop="creator name" class="author vcard post-name">{parse template="userHoverCard" group="global" params="$author"}</span>
                <else />
                    {parse template="userHoverCard" group="global" params="$author"}
                </if>
        <if test="rankimage:|:$author['member_rank_img']">
            <li class='group_icon'>
            <if test="rankimageimage:|:$author['member_rank_img_i'] == 'img'">
                <img src='{$author['member_rank_img']}' alt='' />
            <else />
                {$author['member_rank_img']}
            </if>
            </li>
        </if>
    </ul>
    </div>
    <div style='float:left;margin-left:200px;width:100px'>
       
    </div>
    <div style='float:right;margin:5px 50px'>
    <ul class='basic_info'>
        <if test="postCount:|:$author['member_id']">
        <li class='post_count desc lighter'>
        <span class="icon span-icon-text icon-comment-new"></span>
            {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']}
        </li>
        </if>
   
    <if test="authorcfields:|:$author['custom_fields'] != """>
        <ul class='custom_fields'>
            <foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
                <foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
                    <if test="$field != ''">
                        <li>
                            {$field}
                        </li>
                    </if>
                </foreach>
            </foreach>
        </ul>
    </if>
        <if test="authorwarn:|:$author['show_warn']">
            <li>
                <if test="hasWarningId:|:$options['wl_id']">
                    <img src='{$this->settings['img_url']}/warn.png' class='clickable' onclick='warningPopup( this, {$options['wl_id']} )' title='{$this->lang->words['warnings_issued']}' />
                </if>
                <a class='desc lighter blend_links' href='{parse url="app=members&amp;module=profile&amp;section=warnings&amp;member={$author['member_id']}&amp;from_app={$this->request['app']}&amp;from_id1={$contentid}&amp;from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'>{parse expression="sprintf( $this->lang->words['warn_status'], $author['warn_level'] )"}</a>
            </li>
        </if>
    </ul>
</div>
</div>


Now in IncludeRTL find:
<if test="hasMemberTopicMax:|:$this->settings['member_topic_avatar_max']">
    <!-- Forces topic photo to show without thumb -->
    <style type='text/css'>
        .ipsUserPhoto_variable { max-width: {parse expression="intval($this->settings['member_topic_avatar_max'])"}px !important; }
        <if test="RTLMargin:|:$this->isRtlLang">
            .post_body { margin-right: {parse expression="((intval($this->settings['member_topic_avatar_max'] + 25 ) < 185 ) ? 185 : intval($this->settings['member_topic_avatar_max'] + 25 ) )"}px !important; }
        <else />
            .post_body { margin-left: {parse expression="((intval($this->settings['member_topic_avatar_max'] + 25 ) < 185 ) ? 185 : intval($this->settings['member_topic_avatar_max'] + 25 ) )"}px !important; }
        </if>
    </style>
</if>


and remove it.


Lastly, in ipb_styles.css locate:

AUTHOR INFO (& RELATED) STYLES

And replace that entire sub-section (above board-index-styles) with:

/* AUTHOR INFO (& RELATED) STYLES */

.author_info{
    width:auto;
    font-size:12px;
    padding:10px 10px;
    line-height:150%;
    border-bottom:1px solid lightgrey;
    clear:both;height:100px
}
  
.author_info .group_title{color:#5a5a5a;}
.author_info .member_title{word-wrap:break-word}
.author_info .group_icon{margin-bottom:2px}
  
.custom_fields {
    color: #818181;
}

.custom_fields .ft {
    color: #505050;
    margin-right: 3px;
}

.custom_fields .fc {
    word-wrap: break-word;
}

.user_controls {
    text-align: center;
    margin: 6px 0;
}

    .user_controls li a {
        display: inline-block;
        background: #f6f6f6;
        background: -moz-linear-gradient(top, #f6f6f6 0%, #e5e5e5 100%); /* firefox */
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f6f6f6), color-stop(100%,#e5e5e5)); /* webkit */
        border: 1px solid #dbdbdb;
        -moz-box-shadow: 0px 1px 0px rgba(255,255,255,1) inset, 0px 1px 0px rgba(0,0,0,0.3);
        -webkit-box-shadow: 0px 1px 0px rgba(255,255,255,1) inset, 0px 1px 0px rgba(0,0,0,0.3);
        box-shadow: 0px 1px 0px rgba(255,255,255,1) inset, 0px 1px 0px rgba(0,0,0,0.3);
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
        border-radius: 3px;
        padding: 5px;
        color: #616161;
    }

Last, but not least, search for:
margin: 0 10px 0 185px;

and change it to

margin: 0 10px 0 15px;
Save and you will have a horizontal userinfopane.

Just a word of forewarning, this code does not have the usergroup text (Administrator, Moderator etc) included on the author_info. It's easy to add, but it was left out intentionally because this was what I currently use for my board.