Where are user control settings stored?

Topics: ASP.NET 2.0, Themes
Jan 15, 2011 at 6:32 PM

I like the fact that you can manage your user controls from within the site, but where are the settings stored in terms of actual hard code? And how can you remove a user control from the menu? I removed the blogroll from the masterpage but it still shows when i go into the controls in the admin page.

 

Thanks

Coordinator
Jan 16, 2011 at 8:18 AM

The blogroll you see in the control panel is always there.  It may not be intuitive, but is there from the old days before the widget system existed.

If you removed a widget on the front end and it no longer appears, then you've correctly deleted it.

For reference, the widget data is stored in the App_Data\datastore\widgets folder.

Jan 16, 2011 at 3:18 PM
BenAmada wrote:

The blogroll you see in the control panel is always there.  It may not be intuitive, but is there from the old days before the widget system existed.

If you removed a widget on the front end and it no longer appears, then you've correctly deleted it.

For reference, the widget data is stored in the App_Data\datastore\widgets folder.

 

Ok got it. Are all the widgets in the widgets folder actually used? I cant seem to find any documentation as to what they actually do. Like there is one called "Visitor Info", id like to know what that does. Can you point me to the documentation for these widgets?

Jan 17, 2011 at 9:29 AM

Bump

Coordinator
Jan 18, 2011 at 8:04 AM

Well, unfortunately, there might not be documentation on each widget.  Probably because most of them are pretty straight forward -- Recent Posts, Recent Comments, Calendar, Search, TextBox ... they are mostly self explanatory.

The Visitor Info widget is a little less straight forward.  It remembers who you are via a cookie when you leave a comment.  And then it will display information to you about what you have posted on.  I think it also display links to posts that you commented on and someone else has made comments after you did to the same post.  I can see in there now, it'll say "New comments have been added to <some linked post> since your last comment" ... for each post you commented on.  And "You have written <xx> comments in total".  This type of helpful information it displays.  If you haven't left a comment before (i.e. there's no cookie), then the Visitor Info widget, I believe doesn't display for that person.

Jan 18, 2011 at 5:15 PM
BenAmada wrote:

Well, unfortunately, there might not be documentation on each widget.  Probably because most of them are pretty straight forward -- Recent Posts, Recent Comments, Calendar, Search, TextBox ... they are mostly self explanatory.

The Visitor Info widget is a little less straight forward.  It remembers who you are via a cookie when you leave a comment.  And then it will display information to you about what you have posted on.  I think it also display links to posts that you commented on and someone else has made comments after you did to the same post.  I can see in there now, it'll say "New comments have been added to <some linked post> since your last comment" ... for each post you commented on.  And "You have written <xx> comments in total".  This type of helpful information it displays.  If you haven't left a comment before (i.e. there's no cookie), then the Visitor Info widget, I believe doesn't display for that person.

 

Can you explain what recent posts and recent comments does? Also, can users have their own account on the site, or do i have to place the visitor info widget on the front page?

 

Also can you explain how the search on search one works?

 

Its difficult trying to understand what a widget does from just looking at the code.

 

Thanks.

Coordinator
Jan 19, 2011 at 6:51 AM

The Recent Posts widget shows the recent posts ... i.e. the latest posts.

Similarly, the Recent Comments widget shows the latest comments left across all posts.

The Visitor Info widget is independent of having an account.  It knows who you are based on a cookie that is created when you leave a comment.  If you are logged in, or not logged in, the visitor info widget continues to work.

Search on search looks to see if you arrived at the site via clicking on a search engine search result.  For example, if you searched Google for "food" and you have a blog post about food, and your blog page is included in the Google search results ... if the person clicks on the search result for your site, the link takes them to your site (obviously).  At that time, the Search on Search control will detect this and it will automatically run a search within your site (using the normal BE search system) ... and then present to the user a mini-list of search results matching the original search term (food).  So it might display, "there are 3 pages on this site related to "food"".  Then the person can click on those BE search results to view the posts related to food on your blog.

Jan 19, 2011 at 7:49 PM
Edited Jan 19, 2011 at 8:40 PM
BenAmada wrote:

The Recent Posts widget shows the recent posts ... i.e. the latest posts.

Similarly, the Recent Comments widget shows the latest comments left across all posts.

The Visitor Info widget is independent of having an account.  It knows who you are based on a cookie that is created when you leave a comment.  If you are logged in, or not logged in, the visitor info widget continues to work.

Search on search looks to see if you arrived at the site via clicking on a search engine search result.  For example, if you searched Google for "food" and you have a blog post about food, and your blog page is included in the Google search results ... if the person clicks on the search result for your site, the link takes them to your site (obviously).  At that time, the Search on Search control will detect this and it will automatically run a search within your site (using the normal BE search system) ... and then present to the user a mini-list of search results matching the original search term (food).  So it might display, "there are 3 pages on this site related to "food"".  Then the person can click on those BE search results to view the posts related to food on your blog.

 

How do i add the visitor info widget to my page? It wont come up in the intellisens from <blog: ....

 

Thanks

 

Edit:

 

Could you explain these to me? I cant understand some of them:

 


It you are interested in linking to email, other sites, or internal pages. These are the links to look at:

  • Comments

<a rel="nofollow" href="<%=Post.RelativeLink %>#comment"><%=Resources.labels.comments %> (<%=Post.Comments.Count %>)</a>

  • Del.icio.us

<a rel="nofollow" href="http://del.icio.us/post?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&amp;title=<%=Server.UrlEncode(Post.Title) %>">del.icio.us</a>

  • DotNetKicks

<a rel="nofollow" href="http://www.dotnetkicks.com/submit?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&amp;title=<%=Server.UrlEncode(Post.Title) %>">Kick it!</a>

  • DZone

<a rel="nofollow" href="http://www.dzone.com/links/add.html?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&amp;title=<%=Server.UrlEncode(Post.Title) %>">DZone it!</a>

  • Email

<a rel="nofollow" href="mailto:?subject=<%=Post.Title %>&amp;body=Thought you might like this: <%=Post.AbsoluteLink.ToString() %>">E-mail</a>

 

Thanks

Coordinator
Jan 20, 2011 at 9:01 AM

Widgets like the Visitor Info widget are added not thru code like <blog: ...> but are instead added at runtime when you are using the blog thru your browser.  You probably have a widget zone in the right sidebar of the theme.  If you're logged into the blog as an admin, the widget zone has a dropdown list of all the widgets (Recent Posts, Recent Comments, Visitor Info, etc).  You will want to select Visitor Info from the dropdown list and click the "Add" button.  This will add the visitor info widget to the widget zone.

Those links you copied and pasted here are links you can optionally add to the PostView.ascx file in your theme folder.  You can try copying and pasting one or more of those links into your PostView.ascx file (each theme has one of these files) ... then pull up one of your posts in the browser, and you should see the link(s) you added.  You can see a live example here.  Towards the bottom of the post, right above "Related Posts", there are image icons to submit the post to Delicious or Digg, etc.  That particular theme has gone one step further by including <img> tags embedded in the links.  But it's the same basic premise.

Jan 20, 2011 at 5:08 PM
BenAmada wrote:

Widgets like the Visitor Info widget are added not thru code like <blog: ...> but are instead added at runtime when you are using the blog thru your browser.  You probably have a widget zone in the right sidebar of the theme.  If you're logged into the blog as an admin, the widget zone has a dropdown list of all the widgets (Recent Posts, Recent Comments, Visitor Info, etc).  You will want to select Visitor Info from the dropdown list and click the "Add" button.  This will add the visitor info widget to the widget zone.

Those links you copied and pasted here are links you can optionally add to the PostView.ascx file in your theme folder.  You can try copying and pasting one or more of those links into your PostView.ascx file (each theme has one of these files) ... then pull up one of your posts in the browser, and you should see the link(s) you added.  You can see a live example here.  Towards the bottom of the post, right above "Related Posts", there are image icons to submit the post to Delicious or Digg, etc.  That particular theme has gone one step further by including <img> tags embedded in the links.  But it's the same basic premise.

 

Ok thanks for explaining the links for me. What do you mean i cant add the Visitor Info from the code? I dont even have a widget zone. Isnt everything you add at runtime translated into code?

 

Thanks

Coordinator
Jan 21, 2011 at 9:08 AM

If you look at the site.master file of the Standard theme as an example (you can view it online here), you'll see it has a widget zone in there:

<blog:WidgetZone runat="server" ZoneName="be_WIDGET_ZONE" />

For the widget system, this is really the only required markup that you manually need to add to your theme files.  Once you've done this, you can pull up your blog in the browser (runtime), and when logged in, you'll see the widget zone dropdown list where you can add new widgets.  While the blog is running in your browser, you can add widgets (Visitor Info, etc) to the widget zone, edit them and delete/remove them.  Here's a screenshot of what the widget zone dropdown list looks like in the Standard theme -- viewed in my browser.

Jan 21, 2011 at 11:12 AM
Edited Jan 25, 2011 at 8:36 PM
BenAmada wrote:

If you look at the site.master file of the Standard theme as an example (you can view it online here), you'll see it has a widget zone in there:

<blog:WidgetZone runat="server" ZoneName="be_WIDGET_ZONE" />

For the widget system, this is really the only required markup that you manually need to add to your theme files.  Once you've done this, you can pull up your blog in the browser (runtime), and when logged in, you'll see the widget zone dropdown list where you can add new widgets.  While the blog is running in your browser, you can add widgets (Visitor Info, etc) to the widget zone, edit them and delete/remove them.  Here's a screenshot of what the widget zone dropdown list looks like in the Standard theme -- viewed in my browser.

You mind if you explain to me what these settings do?:

 

  • Enable Self Registration
  • www subdomain policy
  • Enable HTTP compression
  • Require SSL for MetaWeblog API
  • Allow remote file downloads
  • Enable SSL (I know that ssl is meant to secure the connection, i just dont understand when it is used)
  • Enable coComments (Is this like a quote function from a forum?)
  • Show country chooser (Is this just to show which country the user posted from?)
  • Show pingbacks and trackbacks (How does this work?)
  • Trust authenticated authors (This means that if the user is logged in he is automatically added to the white list?)
  • Slug (optional)
  • Excerpt (optional)
  • Publish

Thanks and sorry for all the questions :P

Jan 23, 2011 at 12:24 PM

Bump

Jan 23, 2011 at 7:02 PM

Why would you want to code them by hand when you can control the look via CSS?

Jan 23, 2011 at 7:53 PM
guynethery wrote:

Why would you want to code them by hand when you can control the look via CSS?

I dont mean control them visually, i mean i want to add them manually via code vs adding them in the widget zone which gives you less control. Visual changes will still be done in css. I just want to know how i can add them via code.

Jan 24, 2011 at 8:05 PM

Can you check the above post please? I solved some on my own, but i still dont know what those settings do.

 

Thanks bro

Jan 26, 2011 at 3:57 PM

Anyone know what these settings do? Sorry if i keep asking but i cant find anything about them:

 

  • Enable Self Registration (How does this work?)
  • www subdomain policy
  • Enable HTTP compression
  • Require SSL for MetaWeblog API
  • Allow remote file downloads
  • Enable coComments (Is this like a quote function from a forum?)
  • Show pingbacks and trackbacks (How does this work?)
  • Trust authenticated authors (This means that if the user is logged in he is automatically added to the white list?)
  • Slug (optional)
  • Excerpt (optional)
  • Publish
Jan 28, 2011 at 9:23 PM

Bump

Jan 29, 2011 at 4:56 AM
TheGateKeeper wrote:

Anyone know what these settings do? Sorry if i keep asking but i cant find anything about them:

 

  • Enable Self Registration (How does this work?)  You can allow users/visitors to register so that they can see content not available to them otherwise(you have the ability to hide content if user is not registered and authenticated.).  Use the Users tab in admin to build a role and then give it the appropriate rights and lastly set that role as the default role of self registrants.
  • www subdomain policy
  • Enable HTTP compression This compresses the http documents making them small and thus quicker to load in the visitors browser
  • Require SSL for MetaWeblog API
  • Allow remote file downloads
  • Enable coComments (Is this like a quote function from a forum?)  Yes.  See example: http://thenetheryfamily.com/post/Love-That-Cedar-Fever.aspx
  • Show pingbacks and trackbacks (How does this work?)
  • Trust authenticated authors (This means that if the user is logged in he is automatically added to the white list?)  
  • Slug (optional)  http://blogengine.codeplex.com/wikipage?title=AddEntry&referringTitle=Documentation
  • Excerpt (optional)  http://blogengine.codeplex.com/wikipage?title=AddEntry&referringTitle=Documentation
  • Publish  if it is published then it is ready for the world to see

Answered to the best of my knowledge but may not be a complete answer.  I also suggest that you go here: http://blogengine.codeplex.com/documentation

Jan 29, 2011 at 4:36 PM

Hm.... i enabled nested comments and it looks exactly like co commets. Whats the difference?

Jan 30, 2011 at 4:57 AM

Sorry,  I answered the coComments question incorrectly.

http://www.cocomment.com/

 

Jan 30, 2011 at 12:58 PM

Thanks man, but id rather use the default system. Any update on the still unanswered questions:

  • www subdomain policy
  • Require SSL for MetaWeblog API
  • Allow remote file downloads
  • Show pingbacks and trackbacks (How does this work?)
  • Trust authenticated authors (This means that if the user is logged in he is automatically added to the white list?)  
Feb 1, 2011 at 8:07 PM

Bump

Feb 7, 2011 at 8:32 PM

Bump

Feb 10, 2011 at 5:24 PM

Bump

Feb 15, 2011 at 8:34 PM

Bump