Jump to content

Skye

Frost
  • Posts

    122
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Skye

  1. Not tested on 3.4 This is a simple way to display a default avatar based on if the member has chosen a gender. You will need to upload three images to your skin's root folder: defaultav.gif femaleav.gif maleav.gif If you would like a JPG or PNG then change the code accordingly. In Global Templates > userInfoPane Find: <if test="avatar:|:$author['member_id'] AND $author['avatar']"> <li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}">{$author['avatar']}</a></li> <else /> <li class='avatar'>{$author['avatar']}</li> </if> Replace: <if test="avatar:|:$author['member_id'] AND !$author['avatar']"> <if test="gender:|:$author['field_5'] == 'f'"> <li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}"><img src="{style_images_url}/femaleav.gif"></a></li> </if> <if test="gender:|:$author['field_5'] == 'm'"> <li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}"><img src="{style_images_url}/maleav.gif"></a></li> </if> <if test="gender:|:$author['field_5'] != ''"> <li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}"><img src="{style_images_url}/defaultav.gif"></a></li> </if> </if> <if test="avatar:|:$author['member_id'] AND $author['avatar']"> <li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}">{$author['avatar']}</a></li> <else /> <li class='avatar'>{$author['avatar']}</li> </if> Save and it's done. Note: If you remove the Gender field or it is not field_5 (the default number) then this will not work. Credits goes to Morrigan. A little image package for you. (edit the code or rename the image)
  2. On my board guests don't need to see author_info when looking at a topic. This is how I removed the author_info for guests. Find Look & Feel > Manage Skin Sets & Templates > Manage Templates in Your_template > CSS> ipb_styles.css and add: ​.post_body_guest { margin: 0 10px 0 20px; padding-top: 10px;}.author_info_guest { width: 1px; float: left; font-size: 12px; text-align: center; padding: 15px 10px; } Find Look & Feel > Manage Skin Sets & Templates > Manage Templates in Your_template > Templates > Topic View > post and replace <div class='author_info'> To : <if test="$this->memberData['member_id']"> <div class='author_info'> <else /> <div class='author_info_guest'> </if> then find : {parse template="userInfoPane" group="global" params="$post['author'], $post['post']['pid'], array( 'isTopicView' => true, 'wl_id' => $post['post']['wl_id'] )"} and replace with <if test="$this->memberData['member_id']"> {parse template="userInfoPane" group="global" params="$post['author'], $post['post']['pid'], array( 'isTopicView' => true, 'wl_id' => $post['post']['wl_id'] )"} </if> Credits goes to joelle. Screenshoot :
  3. Ok i found the way for fix that. Go on your FTP -> Public_html -> /hooks -> copyright_awards_footer_<random_numbers_here>.php Delete that : class copyright_awards_footer extends pinAwardsProMiniProfileCab{ function globalTemplate($html, $documentHeadItems, $css, $jsModules, $metaTags, array $header_items, $items=array(), $footer_items=array(), $stats=array()) { if(ipsRegistry::$current_application == 'awards') { if($this->settings['ipb_display_version']) { $version = IPSLib::fetchVersionNumber('awards'); $version = ' version '.$version['human']; } $footer_items['copyright'] .= "<p id='copyright' class='right'><a href='http://www.modstation.com' title='Awards System coded by peaderfi'>Awards System{$version} coded by peaderfi</a></p>"; } return parent::globalTemplate($html, $documentHeadItems, $css, $jsModules, $metaTags, $header_items, $items, $footer_items, $stats); }} Add that : class copyright_awards_footer extends pinAwardsProMiniProfileCab{ function globalTemplate($html, $documentHeadItems, $css, $jsModules, $metaTags, array $header_items, $items=array(), $footer_items=array(), $stats=array()) { if(ipsRegistry::$current_application == 'awards') { if($this->settings['ipb_display_version']) { $version = IPSLib::fetchVersionNumber('awards'); $version = ' version '.$version['human']; } } return parent::globalTemplate($html, $documentHeadItems, $css, $jsModules, $metaTags, $header_items, $items, $footer_items, $stats); }} save and overwrite the previous version -> go on you awards page and refresh it. It's done. *** Edited for next user who have the same issue***
  4. Edit your skin, go in "skin_awards" (it's a the top of the list) -> Awards Template and past your code here.
  5. I'm running with it (on 3.4.2) and it's work fine.
  6. When i have this error I just removed this code : //----------------------------------------- // And start generating output //----------------------------------------- $txt .= $this->registry->output->getTemplate('ccs_global')->articlePages( $_ttlPages, $_curPage, $_reconstructed ); return $txt; And that fix the error for now. But we gonna need the code at the line 144 for be sure if it's the same issue.
  7. rgb is realy more flexible, so i use it everywhere
  8. Version 1.0.0

    114 downloads

    [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3]This hook will show, on Board Index Sidebar and/or in ForumView, a Topic Icons Legend.[/size][/font][/color] [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3] [/size][/font][/color] [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=5]Step 1: Import the Hook File[/size][/font][/color] [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3]Log in to your IP.Board Admin CP and visit the [/size][/font][/color][b]System [/b][color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3]tab -> [/size][/font][/color][b]Applications & Modules[/b][color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3] -> [/size][/font][/color][b]Manage Hooks [/b][color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3]page. In the 'Install a New Hook' section, browse to the XML file included with these instructions and click [/size][/font][/color][b]Open[/b][color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3].[/size][/font][/color] [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3] [/size][/font][/color] [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=5]Step 2 (optional): Disable/Enable Blocks[/size][/font][/color] [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3]Always in your IP.Board Admin CP and visit the [/size][/font][/color][b]System [/b][color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3]tab -> [/size][/font][/color][b]System Setting[/b][color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3] -> [/size][/font][/color][b]Hooks [/b][color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3]. In the '(NAJ34) Topic Icons Legend' group, you can find 2 settings.[/size][/font][/color]
  9. Version 6.0.0

    503 downloads

    [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3]This hook will allow you to display a few Welcome Messages globally depending on the member's group.[/size][/font][/color] [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3] Fetaures:[/size][/font][/color] [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3] • enable/disable hook,[/size][/font][/color] [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3] • add message for guest group,[/size][/font][/color] [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3] • add message for members with 0 post,[/size][/font][/color] [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3] • add message for selected groups,[/size][/font][/color] [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3] • add message for staff groups,[/size][/font][/color]
  10. Check your skin settings -> user-agent if all is correct..
  11. The new version of Spotify is just awesome. :D

    1. Skye

      Skye

      Not for the friends notification, Artist profile modified and Web version lunched. :P

  12. Prenium area for Pizza'n Porno will be cool. I'm Donator already on FC and i never regret it. lol
  13. So now i have to wait for missing images. *locked*
  14. Yoh. I would like to know if for you the following adress in down or not ? http://content.community.invisionpower.com/global_remote_files/help_files/yNqY4R.png Much images in the help files are down..
  15. Can you edit the quote bbcode in code bbcode ? Better for understand that. (And yup, it's virus i guess, i dont have that on my sites using WP)
  16. New avatar and signature, they're awesome. :D

  17. Much of pepole never see this scene in Harry Potter, feel free to think what Hermione is doing.
  18. 3 tutorial posted today, I hope you like them. :)

  19. Here is a little tutorial for show to you how to edit the copyright at the bottom of your page without a template edit.. Per defaut : After follow this tutorial : Here we go : 1) Let's go on your FTP > public_html and go in : adminsourcesclassesoutputformatshtml 2) Open htmlOutput.php 3) Go at the line 632 or search for : <!-- Copyright Information --> You will see that : $copyright = "<!-- Copyright Information --> <p id='copyright'> <a href='http://www.invisionpower.com/apps/board/' title='Community Forum Software by Invision Power Services'>Community Forum Software by IP.Board{$version}</a>"; 4) Custom step : After the </a> add your custom code.. and when it's done don't forgot to check if the "; is after your code. Exemple : $copyright = "<!-- Copyright Information --> <p id='copyright'> <a href='http://www.invisionpower.com/apps/board/' title='Community Forum Software by Invision Power Services'>Community Forum Software by IP.Board{$version}</a></br>Skin By Paradiizee - WebFlake"; 5) Save and re-upload the htmlOutput.php 6) It's done ! Tutorial by Skye for WF community. Hit the Like button if you wanna thanks me.
  20. This works with all 3.3, 3.2, 3.1, 3.0 based sites and probably more. In your root folder, usually public_html, open initdata.php and find: if ( ! defined( 'IPS_DEFAULT_PUBLIC_APP' ) ){define( 'IPS_DEFAULT_PUBLIC_APP', 'forums' );}And replace with: if ( ! defined( 'IPS_DEFAULT_PUBLIC_APP' ) ){define( 'IPS_DEFAULT_PUBLIC_APP', 'blogs' );}Change 'blogs' to whatever app you want to use as a homepage. Then save and upload. Credit goes to invisionpower for this. Original post on FC by Justin™
  21. What it does The above one is the normal one, and the below one is that we need! Even when you place the cursor on the nick, it makes a Popup with info and you can enter to the profile Go to templates > skin_shoutbox > shout_row and edit: <a href="#" class="at_member" data-store="{$d['members_display_name']}" title="{$this->lang->words['insert_name']}">@</a>&nbsp; to <a href="#" class="at_member" data-store="[member={$d['members_display_name']}]" title="{$this->lang->words['insert_name']}"><span style="color:#000000"><b>@</b></span></a>&nbsp; Credits to rAv3nzZ for this tutorial. Re-posted by Skye for WF community.
×
×
  • Create New...