YAFLogo

rmcbride@rama.com
16 years ago
Hi all

I really like the 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
  • mddubs
  • 100% (Exalted)
  • YAF Developer
16 years ago

I really like the in 1.9.3.

rmcbride@rama.com wrote:

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
16 years ago
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
16 years ago
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
  • mddubs
  • 100% (Exalted)
  • YAF Developer
16 years ago

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

rmcbride@rama.com wrote:

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/blogs/matt/archive/2008/12/06/working-with-yaf-source-code-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
  • mddubs
  • 100% (Exalted)
  • YAF Developer
16 years ago

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?

SSDExecutor wrote:

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
16 years ago
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
  • mddubs
  • 100% (Exalted)
  • YAF Developer
16 years ago
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/blogs/matt/archive/2008/12/06/working-with-yaf-source-code-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
16 years ago
Change completed and emailed (plus I included a bonus change too).
mddubs
  • mddubs
  • 100% (Exalted)
  • YAF Developer
16 years ago
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
16 years ago
Another application setting to allow you to use an SSL connection for the SMTP server specified in the mailSettings section.
mddubs
  • mddubs
  • 100% (Exalted)
  • YAF Developer
16 years ago
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
16 years ago
Thanks, it is - plus you need it now to send using Live accounts as well.