3 of 3
3
Extension: Add Site Name (to Control Panel header) The original! ;-)
Posted: 13 September 2007 02:05 PM   [ Ignore ]   [ # 37 ]  
Research Assistant
RankRankRank
Total Posts:  380
Joined  08-05-2005

This is awesome. THANK YOU.

Profile
 
 
Posted: 21 March 2008 01:35 PM   [ Ignore ]   [ # 38 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

I just updated this to 1.1.5 - it accounts for sites using a .png instead of .ico. See the download and attached screen in the first post.

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 26 May 2008 09:33 PM   [ Ignore ]   [ # 39 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

Just updated this to version 1.2.0. In this version:

* fixed a bug where styles could be rendered in head more than once
* added documentation URL
* added version checking (Thanks Leevi Graham) (see pic)
* fixed a default settings problem
* added a check to see if Extension info is in session or cache to keep things speedy (again, thanks, Leevi.)

I have to give Leevi Graham big props for showing me how to ‘properly’ do an Extension - and for borrowing liberal amounts of well written cache and update-checking code.

You can download it at: http://www.masugadesign.com/the-lab/scripts/add-sitename/

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 28 May 2008 12:24 AM   [ Ignore ]   [ # 40 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006
mdesign - 27 May 2008 01:33 AM

Just updated this to version 1.2.0. In this version:

* fixed a bug where styles could be rendered in head more than once
* added documentation URL
* added version checking (Thanks Leevi Graham) (see pic)
* fixed a default settings problem
* added a check to see if Extension info is in session or cache to keep things speedy (again, thanks, Leevi.)

I have to give Leevi Graham big props for showing me how to ‘properly’ do an Extension - and for borrowing liberal amounts of well written cache and update-checking code.

You can download it at: http://www.masugadesign.com/the-lab/scripts/add-sitename/

Hey Ryan,

Thanks for all the props… I’m just about to release an update to my ‘inspired’ version of LG Sitename. It fixes a couple of issues with checking for updates so you might want to incorporate those into your extension. Also I have added MSM support so I am sure that will be of interest as well.

Good work on the latest release!

 Signature 

EE-Garage.com - All my ExpressionEngine 2 Addons!


EE2 - NSM Better Meta - SEO Meta & XML Sitemap Generator
EE2 - NSM Live Look - Real entry previews


Newism - Newcastle - ExpressionEngine Experts

Profile
 
 
Posted: 28 May 2008 12:37 AM   [ Ignore ]   [ # 41 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

I learned a lot by trying to pick apart what you do. There really needs to be a how to on add-on development, like Lisa is doing in the EE Blog with her bug tracker example. Seems like you have to do so much digging to find the most basic things out about how to put together an Extension.

I think I know how to incorporate MSM (loop through for each site id…which I think I saw in another one of your extensions…I had them ALL open, man!) - but I’m not sure I want to spend too much time on it with Add Sitename (EE 2.0 coming up, etc etc).

I also give you some link love on my Add Sitename page. I figure if I’m liberally reusing as much code as I am, the least I can do is point to your stuff everywhere I can.

I really like the addition of checking for updates. I think the next trick will be seeing if I can generate the version-check template dynamically, which I’m not currently doing. I have my add-on versions as their own custom field, so that shouldn’t be too difficult, I don’t think.

Anyway, thank YOU!

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 28 May 2008 01:00 AM   [ Ignore ]   [ # 42 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006
mdesign - 28 May 2008 04:37 AM

I learned a lot by trying to pick apart what you do. There really needs to be a how to on add-on development, like Lisa is doing in the EE Blog with her bug tracker example. Seems like you have to do so much digging to find the most basic things out about how to put together an Extension.

I started writing a tutorial on how I added checking for updates. I think its a bit buggy now but I might revisit it. If you want to check it out it was here: http://leevigraham.com/tutorial.php & source: http://leevigraham.com/tutorial.phps

mdesign - 28 May 2008 04:37 AM

I think I know how to incorporate MSM (loop through for each site id…which I think I saw in another one of your extensions…I had them ALL open, man!) - but I’m not sure I want to spend too much time on it with Add Sitename (EE 2.0 coming up, etc etc).

Yep that’s basically the idea…. The only issue I encountered was building my own extension setting form… you will notice a couple of my comments in the source of the next release… They go some thing a little like this “^%$%%^^!!!!!!” Once you have it figured out tho its fairly easy.

mdesign - 28 May 2008 04:37 AM

I also give you some link love on my Add Sitename page. I figure if I’m liberally reusing as much code as I am, the least I can do is point to your stuff everywhere I can.

Well I borrowed your idea for inspiration so I think we are both benefiting smile

mdesign - 28 May 2008 04:37 AM

I really like the addition of checking for updates. I think the next trick will be seeing if I can generate the version-check template dynamically, which I’m not currently doing. I have my add-on versions as their own custom field, so that shouldn’t be too difficult, I don’t think.

Yeah good idea. I did think about that but then I thought I don’t want EE being hit over and over again for a simple text file. So I chose to just update it manually.

 Signature 

EE-Garage.com - All my ExpressionEngine 2 Addons!


EE2 - NSM Better Meta - SEO Meta & XML Sitemap Generator
EE2 - NSM Live Look - Real entry previews


Newism - Newcastle - ExpressionEngine Experts

Profile
 
 
Posted: 20 August 2008 12:45 PM   [ Ignore ]   [ # 43 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  566
Joined  12-08-2007

Do either of these addons provide the ability to change the thumbnail graphic while using MSM. I would like to have a strong visual indicator of which site a contributor is working on.  If they switch sites… it would be great to make that more apparent than with just text.

 Signature 

www.pixogee.com EE Pro Network

Profile
 
 
Posted: 20 August 2008 07:06 PM   [ Ignore ]   [ # 44 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1336
Joined  01-24-2006

The new version of LG Add Sitename will be avaiable in the next couple of days that has per site settings.

 Signature 

EE-Garage.com - All my ExpressionEngine 2 Addons!


EE2 - NSM Better Meta - SEO Meta & XML Sitemap Generator
EE2 - NSM Live Look - Real entry previews


Newism - Newcastle - ExpressionEngine Experts

Profile
 
 
Posted: 20 August 2008 07:11 PM   [ Ignore ]   [ # 45 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

Leevi’s version is far more robust. Mine was made to just work with zero tweaking, showing only the sitename - real simple. If you need a highly customizable one, I’d use the LG version.

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
Posted: 20 August 2008 08:55 PM   [ Ignore ]   [ # 46 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  566
Joined  12-08-2007
Leevi Graham - 20 August 2008 11:06 PM

The new version of LG Add Sitename will be avaiable in the next couple of days that has per site settings.

Thanks Leevi!  That will be great!

 Signature 

www.pixogee.com EE Pro Network

Profile
 
 
Posted: 03 September 2008 04:57 PM   [ Ignore ]   [ # 47 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  214
Joined  05-21-2007

I added

< img src=”/images/favicon.ico” class=“ico” >< a href=”{ homepage }”>{ site_name }</a > to the HTML section and

.ico {float:left; padding: 11px 7px 0px 2px;} to get my image to line up with the text.

Thank you so much this makes my life so much easier.

 Signature 

Justin Long
ExpressionEngine Expert // Developer // All Around Good Guy
Website - .(JavaScript must be enabled to view this email address) - @RealJustinLong on Twitter

Profile
 
 
Posted: 03 September 2008 05:39 PM   [ Ignore ]   [ # 48 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  566
Joined  12-08-2007

I am using MSM… so I need a version that will accept images for multiple sites. Nevertheless… thanks for posting the code your using.

 Signature 

www.pixogee.com EE Pro Network

Profile
 
 
Posted: 03 September 2008 09:28 PM   [ Ignore ]   [ # 49 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  214
Joined  05-21-2007

I have not played around with the MSM yet but I hope to in the next couple of weeks to do that. Does a URI segment change when you switch between sites? If it does wouldn’t you be able to use an “if” statement set to have something like

if segment3 = site1 then display site 1 logo
ifelse segment3 = site2 then display site 2 logo

Sorry that is not coded I am trying to type this from my iphone

 Signature 

Justin Long
ExpressionEngine Expert // Developer // All Around Good Guy
Website - .(JavaScript must be enabled to view this email address) - @RealJustinLong on Twitter

Profile
 
 
Posted: 12 January 2009 05:12 PM   [ Ignore ]   [ # 50 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1757
Joined  03-26-2006

OK, MD Add Sitename 1.2.2 is up. I removed the old-school update checking. This is likely to be the last update to my version of this extension.

 Signature 

ryan masuga
—————
Masuga Design | devot:ee
@masuga | @masugadesign | @devot_ee

Profile
 
 
   
3 of 3
3