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

This is awesome. THANK YOU.

Profile
 
 
Posted: 21 March 2008 12:35 PM   [ Ignore ]   [ # 38 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1580
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 | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 26 May 2008 08:33 PM   [ Ignore ]   [ # 39 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1580
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/

Image Attachments
updates.jpg
Click thumbnail to see full-size image
 Signature 

ryan masuga
—————
Masuga Design | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 27 May 2008 11:24 PM   [ Ignore ]   [ # 40 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1008
Joined  01-24-2006
mdesign - 26 May 2008 08:33 PM

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 

Newism - Newcastle Web Design & Development
 
LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator | LG TinyMCE | LG Twitter

More ExpressionEngine Extensions

Profile
 
 
Posted: 27 May 2008 11:37 PM   [ Ignore ]   [ # 41 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1580
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 | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 28 May 2008 12:00 AM   [ Ignore ]   [ # 42 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1008
Joined  01-24-2006
mdesign - 27 May 2008 11:37 PM
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 - 27 May 2008 11:37 PM
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 - 27 May 2008 11:37 PM
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 - 27 May 2008 11:37 PM
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 

Newism - Newcastle Web Design & Development
 
LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator | LG TinyMCE | LG Twitter

More ExpressionEngine Extensions

Profile
 
 
Posted: 20 August 2008 11:45 AM   [ Ignore ]   [ # 43 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
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 

For a list of all the ways technology has failed to improve the quality of life, please press three.

Profile
 
 
Posted: 20 August 2008 06:06 PM   [ Ignore ]   [ # 44 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1008
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 

Newism - Newcastle Web Design & Development
 
LG Better Meta now w/ Sitemap Meta & XML Generator | LG Polls | LG .htaccess Generator | LG TinyMCE | LG Twitter

More ExpressionEngine Extensions

Profile
 
 
Posted: 20 August 2008 06:11 PM   [ Ignore ]   [ # 45 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1580
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 | Member, EE Pro Network
My EE Add-Ons | {devot:ee}
Twitter: masuga | masugadesign | devot_ee

Profile
 
 
Posted: 20 August 2008 07:55 PM   [ Ignore ]   [ # 46 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
Joined  12-08-2007
Leevi Graham - 20 August 2008 06: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 

For a list of all the ways technology has failed to improve the quality of life, please press three.

Profile
 
 
Posted: 03 September 2008 03:57 PM   [ Ignore ]   [ # 47 ]  
Summer Student
Avatar
Total Posts:  8
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.

Profile
 
 
Posted: 03 September 2008 04:39 PM   [ Ignore ]   [ # 48 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  126
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 

For a list of all the ways technology has failed to improve the quality of life, please press three.

Profile
 
 
Posted: 03 September 2008 08:28 PM   [ Ignore ]   [ # 49 ]  
Summer Student
Avatar
Total Posts:  8
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

Profile
 
 
   
3 of 3
3
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 62659 Total Logged-in Users: 36
Total Topics: 77195 Total Anonymous Users: 29
Total Replies: 416717 Total Guests: 244
Total Posts: 493912    
Members ( View Memberlist )