rmcbride@rama.com
2009-04-24T07:52:44Z
Hi all

I really like the <add key="YAF.ShowToolBar" value="false" /> in 1.9.3. My problem, besides being fussy, is that I want half of the YAF toolbar! :)

Here is the deal. The toolbar is excellent and useful. I but I want to move it to live at the right hand end of the Forum path bar. For guests, I want to take away the login and register options. For members I want to take away the logoff option.

It might be better to expose this area of code for people like me to mess with. Alternatively you might want to build a control panel applet for this area, but then yo are really getting into CMS and I am pretty sure that is not what you want to do.

Is it compiled or is it an ASP control? How would I modify this area?

Thanks

Richard
Sponsor
mddubs
2009-04-24T08:22:51Z
rmcbride@rama.com wrote:

I really like the <add key="YAF.ShowToolBar" value="false" /> in 1.9.3.



Woohoo! That was me :cheesy:

If you wanted to modify the toolbar, I don't think there's anyway around a recompile.
UserPostedImage 
www.bunkerhollow.com  | www.careercomputing.com 
When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )
rmcbride@rama.com
2009-04-24T11:03:01Z
Hi mddubs

Well done. It is a good idea, which of course generates other ideas. I don't mind the idea of a full recompile, as long as I have good source code. The challenge is the risk associated with creating a "non-standard" version (is there such a thing as a standard version in open source software).

So shall I attack that particular dll? Can I download that source code? Surely to goodness whoever designed that toolbar was smart enough to encapsulate it into a few separate objects which are then assigned to the toolbar. Even if the toolbar is a single object, those elements should be discrete enough to be removed.

Wouldn't ya think?

Thanks

Richard
SSDExecutor
2009-04-30T06:59:21Z
YAF Gurus,

Why did you choose to make the footer disappear if you disable the ShowToolBar setting? I need to disable this default menu from showing up (I have my own I'm using that points to the existing login and registration pages) but would still like the footer to show up to give credit where credit is due. I've manually added this back for now, but is there anyway you can make these separate settings in the future?
mddubs
2009-04-30T07:45:16Z
rmcbride@rama.com wrote:

Hi mddubs

Well done. It is a good idea, which of course generates other ideas. I don't mind the idea of a full recompile, as long as I have good source code. The challenge is the risk associated with creating a "non-standard" version (is there such a thing as a standard version in open source software).

So shall I attack that particular dll? Can I download that source code? Surely to goodness whoever designed that toolbar was smart enough to encapsulate it into a few separate objects which are then assigned to the toolbar. Even if the toolbar is a single object, those elements should be discrete enough to be removed.

Wouldn't ya think?

Thanks

Richard



I would either ask Jaben to become a developer and then add your changes to the project as an option that everyone could benefit from. Or, get the lastest from source control and make your changes. You won't be able to check them in (if you're not a dev) but you can always get the latest code and merge the files, choosing to keep the changes you've made instead of overwriting them.

Here's my little blog post about working with YAF from source:
http://bunkerhollow.com/...from-svn-repository.aspx 
UserPostedImage 
www.bunkerhollow.com  | www.careercomputing.com 
When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )
mddubs
2009-04-30T07:46:21Z
SSDExecutor wrote:

YAF Gurus,

Why did you choose to make the footer disappear if you disable the ShowToolBar setting? I need to disable this default menu from showing up (I have my own I'm using that points to the existing login and registration pages) but would still like the footer to show up to give credit where credit is due. I've manually added this back for now, but is there anyway you can make these separate settings in the future?



The ShowToolBar setting does not interact with the footer in any way.
UserPostedImage 
www.bunkerhollow.com  | www.careercomputing.com 
When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )
SSDExecutor
2009-04-30T08:00:24Z
mddubs,

It looked to me like there was a connection in lines 402 - 412 of ForumPage.cs (see below):

private void ForumPage_PreRender( object sender, EventArgs e )
		{
			// sets up the head elements in addition to the Css and image elements
			SetupHeaderElements();
			// setup the forum control header properties
			ForumHeader.SimpleRender = !_showToolBar;
			ForumFooter.SimpleRender = !_showToolBar;

			// register the script code to show the notification modal if needed...
			RegisterLoadString();
		}


And this is what happens to me when I change that one setting in the web.config file:

ShowToolBar = true
UserPostedImage

ShowToolBar = false
UserPostedImage
mddubs
2009-04-30T09:05:17Z
I stand corrected. Looks like an unintended side-affect of my update. I think a ShowFooter config key, just like ShowToolBar, would be great.

If anyone wants to take a crack at contributing to YAF, this would be a great little addition to get your hands dirty. And if it works we'll make you a DEV!

Simply download from the repository, make the change, and create a patch. Instructions here:
http://bunkerhollow.com/...from-svn-repository.aspx 
UserPostedImage 
www.bunkerhollow.com  | www.careercomputing.com 
When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )
SSDExecutor
2009-05-05T10:37:44Z
Change completed and emailed (plus I included a bonus change too).
mddubs
2009-05-05T10:51:54Z
Cool, what was the bonus change?
UserPostedImage 
www.bunkerhollow.com  | www.careercomputing.com 
When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )
SSDExecutor
2009-05-05T11:23:15Z
Another application setting to allow you to use an SSL connection for the SMTP server specified in the mailSettings section.
mddubs
2009-05-05T15:33:12Z
Nicely done, I believe that's required if you want to send with a Gmail account.
UserPostedImage 
www.bunkerhollow.com  | www.careercomputing.com 
When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )
SSDExecutor
2009-05-06T02:55:05Z
Thanks, it is - plus you need it now to send using Live accounts as well.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved