Jump to content


Auto Resize Board Logo


  • You cannot start a new topic
  • You cannot reply to this topic
19 replies to this topic

#1 spiritof52

    Member

  • 14 posts
  • Joined: November 24, 2011
  • 2 topics
  • Skin: IP.Board
  • Local time: 01:42 PM
  • Zodiac:Pisces
  • Gender:Male
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 8h 32m 18s

Posted 24 November 2011 - 12:00 PM

Hi there,

Back in IPB V2.2 it was possible to do a global skin edit so that a board logo would auto resize to whatever the user screen size was.

Is it possible to do that with v3.2.x ?

#2 Broni Re: Auto Resize Board Logo

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 06:42 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 24 November 2011 - 05:41 PM

Do you mean just this?

Attached Image: SNAG-0000.gif

#3 spiritof52 Re: Auto Resize Board Logo

    Member

  • 14 posts
  • Joined: November 24, 2011
  • 2 topics
  • Skin: IP.Board
  • Local time: 01:42 PM
  • Zodiac:Pisces
  • Gender:Male
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 8h 32m 18s

Posted 24 November 2011 - 06:59 PM

:pianosmiley: yup that's the bit

I used the following code in ipb v2.x.x

<div align='left' id="logostrip"><a href='{$this->ipsclass->base_url}'><!--ipb.logo.start--><img src='style_images/boardimage.jpg' alt='board name' style='vertical-align:top;height:100%;width:100%' border='0' /><!--ipb.logo.end--></a></div>

in the All Globa lHTML/global_board_header. which shrank or expanded the board log to fit the screen size.

Now that I've come across your tutorial on how to move the search bar I'd like to be able get that part working again

Thanks for looking

#4 Broni Re: Auto Resize Board Logo

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 06:42 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 24 November 2011 - 07:08 PM

Let em know how it went.

#5 spiritof52 Re: Auto Resize Board Logo

    Member

  • 14 posts
  • Joined: November 24, 2011
  • 2 topics
  • Skin: IP.Board
  • Local time: 01:42 PM
  • Zodiac:Pisces
  • Gender:Male
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 8h 32m 18s

Posted 24 November 2011 - 07:38 PM

ahhh that was the code that I used in v2.x doesn't work in v3.2

I'm wondering if some sort of coding can be used in this section of (skin choice) Global Templates - Global Template

<!-- ::: BRANDING STRIP: Logo and search box ::: -->
            <div id='branding'>
                <div class='main_width'>
                    <div id='logo'>
                        <if test="brandingBar:|:ipsRegistry::$applications[ $this->registry->getCurrentApplication() ]['hasCustomHeader']">
                            {parse template="overwriteHeader" group="{current_app}_global" params=""}
                        <else />
                            {parse template="defaultHeader" group="global" params=""}
                        </if>
                    </div>
                    {parse template="quickSearch" group="global" params=""}
                </div>
            </div>


#6 Broni Re: Auto Resize Board Logo

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 06:42 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 24 November 2011 - 09:52 PM

I don't think this is gonna work.
Resizing logo itself is a tricky business.
You would have to create new image which would be wider but then I see no way to keep it stretched in all screen resolutions.

Honestly why would you want logo that wide?

#7 spiritof52 Re: Auto Resize Board Logo

    Member

  • 14 posts
  • Joined: November 24, 2011
  • 2 topics
  • Skin: IP.Board
  • Local time: 01:42 PM
  • Zodiac:Pisces
  • Gender:Male
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 8h 32m 18s

Posted 24 November 2011 - 10:15 PM

ahh the image that we used to use was 1000x150 so the stretching/shrinking wasn't too much, and it filled out the blank space to the right of the image :)

#8 Broni Re: Auto Resize Board Logo

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 06:42 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 24 November 2011 - 10:31 PM

Yes but if you have fixed width it'll look different in different screen resolutions.

#9 spiritof52 Re: Auto Resize Board Logo

    Member

  • 14 posts
  • Joined: November 24, 2011
  • 2 topics
  • Skin: IP.Board
  • Local time: 01:42 PM
  • Zodiac:Pisces
  • Gender:Male
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 8h 32m 18s

Posted 24 November 2011 - 10:49 PM

I can see what your saying, but this was more to use with different monitor sizes rather than screen resolution, and for some types of images if you stretched them then yes they would appear distorted, with the image that I used, using width: 100% didn't have that problem,

#10 Broni Re: Auto Resize Board Logo

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 06:42 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 25 November 2011 - 04:24 AM

You can replace logo image through FTP and see how it goes then.

#11 spiritof52 Re: Auto Resize Board Logo

    Member

  • 14 posts
  • Joined: November 24, 2011
  • 2 topics
  • Skin: IP.Board
  • Local time: 01:42 PM
  • Zodiac:Pisces
  • Gender:Male
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 8h 32m 18s

Posted 25 November 2011 - 07:29 AM

yup I could do that but that would still give a fixed size for the image, like I said in my 2nd post what the code for the old ipb v2.3 dud was take the fixed size logo image and then expand it to fit the board width

#12 Broni Re: Auto Resize Board Logo

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 06:42 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 26 November 2011 - 12:40 AM

That possibly can be done (it may cause some distortion though).

Create some image say 800 px wide, implement it into your board, send me a link and I'll see what can be done.

#13 spiritof52 Re: Auto Resize Board Logo

    Member

  • 14 posts
  • Joined: November 24, 2011
  • 2 topics
  • Skin: IP.Board
  • Local time: 01:42 PM
  • Zodiac:Pisces
  • Gender:Male
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 8h 32m 18s

Posted 26 November 2011 - 09:36 AM

Hi Broni,

Thanks for having a look pm on the way with board/login info

#14 Broni Re: Auto Resize Board Logo

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 06:42 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 26 November 2011 - 04:53 PM

You still need to move search bar.
When done you need to make following adjustments

In HTML template add setting in red:

Quote

<img style="width:100%" alt="Logo" src="http://northern-lights-healing.invisionzone.com/public/style_images/7_nlhboard2b.jpg">

...and in CSS:



Quote


#logo {


float: left;
width: 100%;
}



#15 spiritof52 Re: Auto Resize Board Logo

    Member

  • 14 posts
  • Joined: November 24, 2011
  • 2 topics
  • Skin: IP.Board
  • Local time: 01:42 PM
  • Zodiac:Pisces
  • Gender:Male
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 8h 32m 18s

Posted 26 November 2011 - 10:24 PM

Hi Brodi,

Thanks for having a look, yup there's a couple of skins that I still need to move the search bar on, just a quick question on the file edits, which particular files do I need to edit ?

#16 Broni Re: Auto Resize Board Logo

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 06:42 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 26 November 2011 - 11:52 PM

The first one would be in Global Templates>defaultHeader
The 2nd one in ipb_styles.css

#17 spiritof52 Re: Auto Resize Board Logo

    Member

  • 14 posts
  • Joined: November 24, 2011
  • 2 topics
  • Skin: IP.Board
  • Local time: 01:42 PM
  • Zodiac:Pisces
  • Gender:Male
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 8h 32m 18s

Posted 27 November 2011 - 07:28 AM

hmmmm this is all that is in my default header:

Quote

<a class='logo' href='{$this->settings['board_url']}' title='{$this->lang->words['go_home']}' rel="home" accesskey='1'><img src='{parse replacement="logo_img"}' alt='{$this->lang->words['logo']}' /></a><br />

so not sure where you want me to add the piece of code. ipb_style.css is fine

#18 Broni Re: Auto Resize Board Logo

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 06:42 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 27 November 2011 - 04:13 PM

<a class='logo' href='{$this->settings['board_url']}' title='{$this->lang->words['go_home']}' rel="home" accesskey='1'><img style="width:100%" src='{parse replacement="logo_img"}' alt='{$this->lang->words['logo']}' /></a><br />

#19 spiritof52 Re: Auto Resize Board Logo

    Member

  • 14 posts
  • Joined: November 24, 2011
  • 2 topics
  • Skin: IP.Board
  • Local time: 01:42 PM
  • Zodiac:Pisces
  • Gender:Male
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 8h 32m 18s

Posted 27 November 2011 - 07:46 PM

whooopeeeeee :happy_dancing: :happy_dancing: that works, if you log in to the board then change the skin theme to IP.Board set, then grab hold of the window frame and drag it in and out you'll see it in action and no distortion either :) many many thanks

#20 Broni Re: Auto Resize Board Logo

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 06:42 AM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 27 November 2011 - 08:31 PM

You're very welcome :smiley_says_hello:





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 7 user(s)