Jump to content
WebFlake

Yuu

Snow
  • Posts

    422
  • Joined

  • Last visited

  • Days Won

    23

Community Answers

  1. Yuu's post in Fatal Error When Installing App was marked as the answer   
    Well, I was able to fix this issue by upgrading our 3.4.6 board to 3.4.9. I'm not sure about an actual solution though, because this wouldn't work if you're already on 3.4.9, sooo...
    But yeah, solved now I guess.
  2. Yuu's post in Member title character limit was marked as the answer   
    I had the same issue a while back and made a support thread for it as well (which can be seen here), but the answer in there isn't very clear if you don't know what you're doing, so I'll tell you the steps.
    If you have access to PHPMyAdmin for your site, open it up, click on your database, finds the "members" table, and then click the Structures button at the top toolbar.
    Look for the title table and click on the change button (screenshot). After that, you'll see this. Change "64" to whatever number you want (a suggested amount would be 300). Save the changes and you're done!
    If you want an even easier way, here's the SQL you can run in the SQL Toolbox page instead of going through and changing it in PHPMyAdmin:
    ALTER TABLE `members` CHANGE `title` `title` VARCHAR(300); P.S. - You should check out this hook:

    It lets you edit a member's HTML member title via their account in the ACP, so you don't have to run an SQL query each time.
    Hope this helps!
  3. Yuu's post in Background Changer was marked as the answer   
    Here you go.
     
  4. Yuu's post in Ajax/PHP Post Method Not Working was marked as the answer   
    Support no longer needed, ended up figuring it out myself. :P
    This was the final JS code I used:
    document.observe( 'dom:loaded', function() { $( 'updateCode' ).observe( 'click', updateCode); }); function updateCode(e) { Event.stop(e); if($('ipsGlobalNotification')) { return false; } new Ajax.Request( ipb.vars['base_url'] + '&app=profilecode&module=ajax&section=update&do=updateCode', { method: 'post', parameters: { 'md5check': ipb.vars['secure_hash'] 'new_title': $('newTitlePost').value }, evalJSON: 'force', onSuccess: function(t) { if( Object.isUndefined( t.responseJSON ) ) { alert( ipb.lang['ajax_failure'] ); } else if ( t.responseJSON['error'] ) { alert( ipb.lang['ajax_failure'] ); } else { ipb.global.showInlineNotification( t.responseJSON['msg'], { 'displayForSeconds': 1.5 } ); $( 'newTitleAjax' ).insert( t.responseJSON['new_title'] + "<br/>" ); } } }); }  
  5. Yuu's post in Profile to sidebar was marked as the answer   
    You could try using this hook: http://webflake.sx/files/file/1955-profile-in-sidebar/
    I believe the code for the code in that hook was taken from the same tutorial you used.
    After that, you can go to your ACP -> System -> Manage Hooks, and then re-order them with the 3 little dots on the left side of the hook names.

     
    Or if you don't want to do that, make sure you're placing the tutorial's code before this part in your boardIndexTemplate:

                <foreach loop="side_blocks:$side_blocks as $block">                 {$block}             </foreach>
  6. Yuu's post in Separate normal topics x pinned topics was marked as the answer   
  7. Yuu's post in Search Bar in Navigation was marked as the answer   
    Note: I'm doing this one the default IPB skin, depending on your skin it might be a little different (but not by much).
    1) Go to your skin > Global Templates > globalTemplate.
    2) Find this:

    <if test="canSearch:|:$this->memberData['g_use_search'] && $this->settings['allow_search']">     {parse template="quickSearch" group="global" params=""} </if> Copy it, and then remove it. 3) Next, find this:     <li id='nav_other_apps' style='display: none'>         <a href='#' class='ipbmenu' id='more_apps'>{$this->lang->words['more_apps']} <img src='{$this->settings['img_url']}/useropts_arrow.png' /></a>     </li> </ul> And then add the code you just removed after the </ul> So like this:     <li id='nav_other_apps' style='display: none'>         <a href='#' class='ipbmenu' id='more_apps'>{$this->lang->words['more_apps']} <img src='{$this->settings['img_url']}/useropts_arrow.png' /></a>     </li> </ul> <if test="canSearch:|:$this->memberData['g_use_search'] && $this->settings['allow_search']">     {parse template="quickSearch" group="global" params=""} </if> 4) Find this: <li class='right'> Change 'right' to 'left' 5) Find this: <li id='nav_explore' class='right'> Change 'right' to 'left' 6) Go to your CSS > ipb_styles.css > Press Ctrl + F and find this: #search { margin: 20px 0; } Remove 20px and then save. Final result: If you want to switch the position of your primary nav tabs, you'll need to adjust the HTML. How to: Hope this helps. :P
  8. Yuu's post in can be installed .. 2 sets IPB? was marked as the answer   
    Yes it's possible, I've done it before, and you shouldn't have any problems.
    I have IPB 3.3, IPB 3.4, IPS 4, MyBB 1.6, MyBB 1.8, and xenForo all installed in the same place (just different folders).
  9. Yuu's post in how to take it? was marked as the answer   
    Go to your ACP -> System -> System Settings -> "System" tab -> Social Media and Sharing
    Scroll all the way down until you see Enable Share Links and click No and then save.
  10. Yuu's post in HOOK with images was marked as the answer   
    It's not possible to export a hook with images.
    What people usually do when the hook they use requires images is the create a folder named "upload", and then create the folder path leading to the image.
    For example:

    Create a folder to zip up your IPB hook, and put the .XML file in that folder. Then, in the same folder, create a folder named "upload".
    Inside upload, create a folder named public. Inside public, create a folder named style_extra. Inside style_extra, create a folder named your_folder (change it to whatever you want).
    And then inside your_folder, upload the images you want to use. This also works for javascript files.
    And then the code you'd be using is:
     
    <img src="{$this->settings['board_url']}/public/style_extra/your_folder/image.png" alt="" /> Note: You can't use {$this->settings['board_url']} in your CSS, so if you're trying to use it in your CSS, you'll have to either:
    A) Use the style_images method instead of style_extra
    B) Use inline CSS in your templates, such as this:
    <style type="text/css"> .test {     background: url({$this->settings['board_url']}/public/style_extra/your_folder/image.png);     width: 100px;     height: 100px; } </style> <div class="test"></div>  
    Hope this helps.
  11. Yuu's post in Nav bar compresses on forum but not ipcontent homepage? was marked as the answer   
    Are you looking to disable to "More" dropdown overall?
    If so, find this and remove it:

                            <li id='nav_other_apps' style='display: none'>                             <a href='#' class='ipbmenu' id='more_apps'>{$this->lang->words['more_apps']} <img src='{$this->settings['img_url']}/useropts_arrow.png' /></a>                         </li> If you're asking how to make it also compress on your homepage, then sorry, I don't have the answer to that. :P
  12. Yuu's post in How do I change "Customization Profile"? was marked as the answer   
    This is the tutorial you're looking for:
     

  13. Yuu's post in [HELP] Notification alerts // IPB was marked as the answer   
    Find the class for your Inbox/Notification icons (most likely #inbox_link and #notify_link) and add this to their CSS:

    position: relative;
  14. Yuu's post in How to add Crown near nickname > was marked as the answer   
    ACP > Members > Member Groups > Manage Member Groups > Your Group
    Add this to the beginning of the Group Formatting Prefix:

    <img src="YourImageLinkHere.png" alt="" />
  15. Yuu's post in Ponies on Profile :O was marked as the answer   
    Ahh, I had the same question a few months ago.
    Here's the answer you're looking for:

    <if test="$this->memberData['member_id'] && $member['member_id'] == 1"> Your code goes here. </if> Replace $member['member_id'] == 1  with your member ID.
     
    Add it below this:
    <if test="hasCustomization:|:is_array($member['customization']) AND $member['customization']['type']">     {parse template="customizeProfile" group="profile" params="$member"} </if>
  16. Yuu's post in How to make this at the top of a profile? was marked as the answer   
    Here you go:
  17. Yuu's post in Notifications Inline (topics moved, closed, deleted, etc.) was marked as the answer   
    It is a hook actually.

  18. Yuu's post in center text inside code was marked as the answer   
    ACP -> Look & Feel -> Your Skin -> CSS -> ipb_common.css
     
    Find this:

    pre.prettyprint, code.prettyprint {  
    Then under it, add this:

    text-align: center;
  19. Yuu's post in Adjust - UserInfoPanel was marked as the answer   
    Find this code:

            <if test="postCount:|:$author['member_id']">         <li class='post_count desc lighter'>             {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"} {$this->lang->words['m_posts']}         </li>         </if>  
    Remove it, and then follow the steps from the Best Answer on this topic:

  20. Yuu's post in [Help] How to Character Minimum in a Post was marked as the answer   
    There's this. A hook made by Para for WF, a former admin here.
  21. Yuu's post in Edit Menu Buttons was marked as the answer   
  22. Yuu's post in Emoticon Area height was marked as the answer   
    ACP -> Look & Feel -> Your Skin -> CSS -> ipb_ckeditor.css
    Find this:

    .ipsSmileyTray {  
    Below it, you should see this:

        height: 32px;  
    Change the 32px to however many pixels suit your emoticons.
  23. Yuu's post in userpaneinfo like webflakes? was marked as the answer   
    Then find the code for the post count, remove it, and replace it with this:
            <if test="postCount:|:$author['member_id']">         <li class='post_count desc lighter uip'>             <span class='leftinfo'>{$this->lang->words['m_posts']}:</span>             <span class='rightinfo'>{parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}</span>         </li>         </if>         <li class='uip'>             <span class='leftinfo'>Joined:</span>             <span class='rightinfo'>{parse date="$author['joined']" format="DATE"}</span>         </li>         <li class='uip'>             <span class='leftinfo'>Reputation:</span>             <span class='rightinfo'>{$author['pp_reputation_points']}</span>         </li> Then add this to your CSS:
    .leftinfo { float: left; color: #505050; text-transform: capitalize; } .rightinfo { float: right; color: #818181; } .uip { display: inline-block; width: 100%; }
  24. Yuu's post in Guest Message Coding was marked as the answer   
    ACP -> Look & Feel -> Your Skin -> globalTemplate.
    FInd this:

    <noscript>
    Add this code above it:
            <if test="($this->memberData['member_id'])"><else />                 <div class='guestMessage'>                     <div class='guestHeader'>Welcome to {$this->settings['board_name']}</div>                     Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.<br /> <a href='{parse url="app=core&amp;module=global&amp;section=login" base="public"}' class='input_submit'>Login to Account</a> <a href='{parse url="app=core&amp;module=global&amp;section=register" base="public"}' class='input_submit'>Create an Account</a>                 </div>                 </if>  
    Then add this to either a new CSS file or the bottom of ips_style.css:

    .guestMessage{     background: #232323;     border: 1px solid #383838;     -webkit-box-shadow: #000 0px 0px 0px 1px;     -moz-box-shadow: #000 0px 0px 0px 1px;     box-shadow: #000 0px 0px 0px 1px;     color: #cdcdcd;     line-height: 180%;     margin-bottom: 10px;     padding: 10px;     text-align: center; } .guestMessage .guestHeader{     border-bottom: 1px solid #383838;     text-shadow: rgba(0,0,0,0.8) 0px -1px 0px;     background: #282828;     color: #fff;     padding: 10px;     font-size: 1.1em;     font-weight: bold;     margin: -10px -10px 10px -10px;     text-align: left; } .guestMessage a{     color: #fff;     text-decoration: none; } .guestMessage a.input_submit{     margin: 10px 8px 0 0;     font-weight: bold;     text-decoration: none; }  
    You may need to adjust the CSS to make it fit your skin.
  25. Yuu's post in How to add the "answered" to topics was marked as the answer   
    ACP -> Forums -> Forums -> Manage Forums -> Your Forum -> Edit (Pencil icon).
    Find this:

     
    Mark it as "yes".
    Then whenever someone marks their topic with a best answer, that little badge will show up. You close the topic manually after I believe.
×
×
  • Create New...