Improvement blog

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
1/2/2010 7:10:48 AM
Gravatar
Total Posts 171
I am a Russian programmer

Improvement blog

My site has several modules news.
I want to use Blog module, as "News", "New on the site", "Plans for the future". But I miss some of the settings.
Could you add them to the module settings "blog"


1) Format of Date.
Now the date format is taken from
BlogDateTimeFormat = CultureInfo.CurrentCulture.DateTimeFormat.FullDateTimePattern;
Could you do that to date format was taken from the module settings blog? I need to show to date news in a specific format for each news stream on the site


2) Ability to enter the category of news, even if turned off " Show Categories"
I need it because I develop a module for mojoportal ("Links by Categories"). This module will have two options. Blog Name and Category. It is very important for the internal pages of site and will select from the news stream all posts on the Categories.


3) Settings the module: 'Only title'.

For this blog module configuration should show only headlines and nothing more.


4) Blog settings to disable URL checking when Update Post (The Url is already in use. The Url is already in use. You cannot use the same Url for different pages).
Why is it necessary. I want to use module blog for section " new on the site". Therefore, when you click on the "Title" user must go to the page that has changed and URL will contain the page address have changed


5) Configure the module blog, which will display the messages from the current date.
It is necessary that output plans for the future.
 

I can make these changes in the module blog by himself. It is easy. But I need the names of settings (and name of stored procedure for p. 5) that when you implement it, our names coincided.

Best regards, Alexander

 

1/7/2010 4:53:43 AM
Gravatar
Total Posts 18439

Re: Improvement blog

Hi,

I've been working on blog improvements for the next release. 

1. Already implemented in svn trunk

2. Already implemented in svn trunk

3. Already implemented in svn trunk

4. I do not know what you mean I do not get these errors. Can you tell me step by step how to produce the problem and maybe show an exampkle on demo.mojoportal.com

5. Not sure what you mean, sort the posts ascending instead of descending? I've never seen a blog do that.

Best,

Joe

1/7/2010 8:56:41 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

Thanks, Joe

For p.4 (for "New on the site)

1) Make new page with URL: ~/new-page.aspx

2) Blog: add post

Set

Title: We add new info about ....

URL: ~/new-page.aspx

Click button Save

And ... Nothing is added to the blog !!!!

For p.5 (for "Plans for the future")

Table mp_Blog has field StartDate

Please add field EndDate and select records in the interval between StartDate and EndDate

Best regards, Alexander

1/7/2010 11:15:28 AM
Gravatar
Total Posts 18439

Re: Improvement blog

You are trying to use the blog in unintended ways. A blog post cannot have the same url as a CMS page. These friendly urls are mapped to real urls by our url re-writer. For any given friendly url it can only map to one real url therfore no duplicates are allowed. So CMS pages, ie pages in the menu like home.aspx map to a real url /Default.aspx?pageid=x and friendly urls for blog posts map to a real url /Blog/BlogView.aspx?pageid=x&mid=y&ItemID=z

If you want to create a blog post and then link it into the main menu you can create a CMS Page Which will create the menu item, and put the fully qualified url to the blog post, not using ~/ but using the fully qualified url like http://yoursite/yourblogpost.aspx

See, because these urls are created for blog posts it is not a good idea for the page corresponding to the url to disappear like with some end date. I have never seen a blog with an end date where the post goes away, that is a strange use case and bad for SEO. Cool urls don't change.

Best,

Joe

1/7/2010 11:38:35 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

Thank you, Joe

For p.4

I understand you

For p.5

Every Friday, I create a plan for the next week and publish it in my blog on the site.
 

For example:
Monday. Buy a car
Tuesday. I go on a date
Wednesday. Sale car

And on Tuesday I do not want to see what was on Monday. So I need EndDate news publication

Best regards, Alexander
 

1/7/2010 12:01:42 PM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

And there is another problem with the blog.
 

My friends send me messages by e-mail that I would have published them in the blog.
What can I do in this case?
 

1. Sign out

2. Sign In as my friend

3. Publish message

4. Sign out

5. Login with my password

 

Or is there another way?

Best regards, Alexander

1/8/2010 6:15:23 AM
Gravatar
Total Posts 18439

Re: Improvement blog

Hi Alexander,

Sorry, but those are not changes I would like to introduce into the blog at this time. I would suggest developing a custom feature to meet those needs.

Best,

Joe

1/8/2010 9:24:10 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

Thank you, Joe

The demo site I tried to set Show Categories: enable and other settings: disable

and I saw a big empty space to the left of the blog

I think this is a mistake?

Best regards, Alexander
 

1/8/2010 9:55:13 AM
Gravatar
Total Posts 2239

Re: Improvement blog

Hi Alexander,

The Categories list will not show if there aren't any articles with Categories. If the Categories checkbox is selected on the blog settings, the blog makes room for the categories list even if there aren't any categories.

I added a Post to a category and the "big empty space" now has the Categories list.

HTH,
Joe D.

1/8/2010 11:14:53 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

Thanks, Joe

But I had in mind the following ...

In p.2 I wrote

2) Ability to enter the category of news, even if turned off " Show Categories"
I need it because I develop a module for mojoportal ("Links by Categories"). This module will have two options. Blog Name and Category. It is very important for the internal pages of site and will select from the news stream all posts on the Categories.

and Joe wrote

2. Already implemented in svn trunk

I want to write a category of each news but that Categories list would not appear on the screen

1/9/2010 10:25:07 AM
Gravatar
Total Posts 18439

Re: Improvement blog

I moved the Edit Categories link to the top so it is visible when Show Categories is false, but I forgot to fix it in the blog edit page so it shows the categories there even when show categories is false. I will fix it.

Best,

Joe

1/9/2010 9:22:28 PM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

Thank you, Joe

I'll see your fix.

And one more question.

On the main page I have 4 blogs. How do I set the style for each module? (color, font size, layout)

Best regards, Alexander

1/11/2010 10:39:19 AM
Gravatar
Total Posts 2239

Re: Improvement blog

Hi,

If you want to set the style for an individual module, you can reference it with it's module ID in a class. If the ID of the module you want to style is 4, you would use the following CSS:

.module4 {
  color: green;
  font-size: 14px;
}

To determine the module ID for the module(s) you wish to style, click on the settings link for each one and it will be listed in the url (mid=4).

HTH,
Joe D.

1/13/2010 4:05:20 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

I understand
Thanks, Joe Davis

1/13/2010 4:16:14 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

to Joe Audette

I have a question. I am a public servant and I made 45 different sites in the MojoPortal. This is no joke. From 1 January 2010, all cities in Russia should have their own websites. This is a federal law. I researched the different CMS (MojoPortal , DotNetNuke, Umbraco, Rainbow, AxCMS.net, Cuyahoga, N2 etc.) and chose the MojoPortal for all cities in our region.
 

During the work of the MojoPortal there are errors. I find them in the source and write about them in the forum. Also, users are asked about new features or new settings. Sometimes I write about this in the forum. Sometimes I make changes to the source itself.
 

Question.
 

Do I have to report all changes to source code and database structure?
 

Sincerely, Alexander
 

1/13/2010 5:11:24 AM
Gravatar
Total Posts 18439

Re: Improvement blog

Hi Alexander,

If you report bugs in the forums and I agree they are bugs I will fix them.

You can suggest new features and improvements and I consider them but I cannot promise to do whatever you like. I have my own goals, agenda, and plans and road map to follow.

You may offer to help but I have very little time to coordinate the efforts of others so it is very difficult for me to receive help. Often I find that when others offer help it ends up taking more of my time coordinating their efforts than if I just implemented the feature without help. Also for any change to be committed in mojoPortal it must work in all the supported database platforms.

You should not modify the source code of mojoPortal and you should not alter mojoportal tables at all. If you do that you are forking the code and making it difficult or impossible to upgrade.

If you need customizations that I don't agree with or don't have time for, you could clone a feature and modify it or implement a custom feature from scratch.

All your custom code and features should be in your own projects with your own tables so that you don't touch mojoPortal code and can always upgrade.

Best,

Joe

1/14/2010 4:22:10 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

For new modules, which are absent in the system, I'm doing it. I'm creating a new table and create my own code. The question, can I use in this case, namespace mojoPortal.Web, mojoPortal.Data, mojoPortal.Business or should I use other namespace?
 

Here is what users are asked to add to the system. You can do this?
 

Module LinkModule
1) Add a new setting “random number”. As it should be used: a whole list of links chosen at random a specified number of links. It is necessary to: On the home page, you can create a list with 100 and more references, but each time the user enters to show only 10 randomly selected links.

Module Poll
2) In the form PollEdit.aspx replace
<asp:TextBox ID="txtQuestion" runat="server" Columns="50" MaxLength="100"></asp:TextBox>
to
<asp:TextBox ID="txtQuestion" runat="server" Columns="50" MaxLength="255"></asp:TextBox>

Module HtmlModule
3) Add the possibility of internal notes for editors. What is needed to do: In the table mp_htmlContent add field InternalComment nvarchar (255) and in the form HtmlEdit.aspx to allow editing this field.
4) Add the possibility to use tags at the title. This will allow to allocate part of the header in bold or italics.

Module Blog
5) Now in the module can be used only google maps. But there are other mapping sites. For example, http://www.bing.com/maps/ or http://maps.yandex.ru/. Must be able to use them.
6) Now when you use map in the message in the message displayed map in miniature. Users want to use a text link, clicking on which would open a window with a map. As the link text you want to use the new database field [LocationMap] nvarchar(255) and in the form Blog/EditPost.aspx to allow editing this field.
7) The most serious issue for me. When editing the message now, as the date of the message takes the current date. And so I can not write messages for future date or last. Just after editing the message is changing its date! Users want to enter the date of the message itself. This date may be in the future. At 5-10 times a day I get a call, editors, what I would have in the database has changed the date of their messages. I was ready to open for editing the database by the user!!! Therefore, in the form Blog / EditPost.aspx should be allowed to enter the date of the message.
8) Add the possibility of internal notes for editors. What is needed to do: In the table mp_Blogs add field InternalComment nvarchar (255) and in the form Blog/EditPost.aspx to allow editing this field.
9) Divide the concept of operators who enter the message and the authors of message. For this In the table mp_Blogs add fields [author] nvarchar(100) и [authorEmail] nvarchar(100) ) and in the form Blog/EditPost.aspx to allow editing this field. And in the form Blog/ViewPost.aspx print them on screen.
10) A very popular question. Add the possibility to write messages without title. Only with content. This is needed because the contents are allowed html tags, so the users themselves can do the unusual design of their blogs, without the help of a designer.
11) I already wrote about it. I am constantly asked about it. In the table mp_Blogs add field [EndDate] datetime and in the form Blog/EditPost.aspx to allow editing this field. And in the procedure [mp_Blog_Select] add parameter EndDate and replace the condition WHERE (@BeginDate >= b.StartDate) to ( (@EndDate IS NULL) AND (@BeginDate >= b.StartDate)) OR ( (@EndDate IS NOT NULL) AND (@BeginDate >= b.StartDate) AND (@EndDate <= b. End Date))

This is all real questions that users ask me at work with the system.

1/14/2010 5:27:20 AM
Gravatar
Total Posts 18439

Re: Improvement blog

Hi Alexander,

This is all real questions that users ask me at work with the system.

Ok, good to know, but keep in mind, those are your users not mine, they do not pay me anything and do not help me make a living. I value the input and feedback but it does not drive my agenda. There are lots of users out there who want different things for all the different ways they are using mojoPortal. I am not trying to satisfy everyone or solve the requirements of every project out of the box.  Your user's priorities are not my priorities. While you are getting paid by them I am working for free.

1. an interesting idea, maybe someday I will do it, but not now, it is not a priority for me.

2. ok a bug, fixed now in my copy

Maybe sometime I will implement Bing maps.

The rest, sorry, but you need to clone/fork those features to add the customizations you need. In your cloned version you should use your own tables. For any custom features you should use your own namespace, you can reference namespaces in the core of mojoPortal, but you should not reference any mojoportal features, like your clone of the blog should not reference the mojoportal blog at all.

Best,

Joe

1/14/2010 9:36:53 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

Hi, Joe

As I wrote, I work for the state and all the sites I have made, are sites of public institutions (administrations of the cities in our region). Therefore, they are not my clients. I do not earn money by helping them. I translated the documentation for the system in Russian, translated all the resources and help files. I also taught them to work with system. But now users are telling me that they would like to improve the system. But I'm not suggesting any liability to users. Therefore, it is only their wishes, which I tried to tell you.

Sincerely, Alexander
 

1/14/2010 2:45:21 PM
Gravatar
Total Posts 18439

Re: Improvement blog

Hi Alexander,

I do appreciate you passing on the feedback from your users to me. Just explaining that I cannot just do everything people ask me to do or everything that users suggest. Some of those ideas may make it into future versions of mojoPortal at some point. But I must focus my efforts on the things I believe will do the most to increase popularity of mojoPortal and help me reach my goals to make a decent living on my work.

Best,

Joe

1/15/2010 3:48:45 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

Hi, Joe

I understand you. I agree. So, what I have written or will write, it only offers users of the mojoPortal.


I sent you translate help files into Russian

P.S.
And another improvement
On the form Administration Menu > Site Settings administrator can select the site logo. I think that also need to give him the opportunity to select background image from list.

Best regards, Alexander
 

1/17/2010 9:55:06 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

Hi, Joe

LetterEdit.aspx.cs

private bool LetterIsValidForSending()

add

lblErrorMessage.Text = "";

Unsubscribe.aspx.cs

private void DoUnsubscribe()

after each subscriptions.Delete(s);

add

LetterInfo.UpdateSubscriberCount(s.LetterInfoGuid);

And you have to recalculate the number of subscribers!

Best regards, Alexander

1/18/2010 3:08:03 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

Hi, Joe

mojoPortalLink.cs

protected override void Render(HtmlTextWriter writer)

string innerMarkup = "Powered by mojoPortal";

Please use the resource file instead of a constant value ("Powered by")

Best regards, Alexander

1/18/2010 7:06:01 AM
Gravatar
Total Posts 18439

Re: Improvement blog

Fixed in my copy.

Best,

Joe

1/19/2010 2:51:10 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

Hi, Joe

You forgot to add LetterInfo.UpdateSubscriberCount(s.LetterInfoGuid);

if (subscriptionGuid != Guid.Empty)
{
LetterSubscriber s = subscriptions.Fetch(subscriptionGuid);
if (s == null)
{
ShowNotFoundMessge();
return;
}
subscriptions.Delete(s);

LetterInfo.UpdateSubscriberCount(s.LetterInfoGuid);

this.lblUnsubscribe.Text = Resource.NewsletterUnsubscribeSuccess;

btnUnsubscribeConfirm.Visible = false;
lblUnsubscribe.Visible = true;
return;
}
 

Best regards, Alexander
 

1/19/2010 8:13:38 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

Hi, Joe

If the module to include a blog comment and then enter a comment containing a link or smile that the link (or smile) does not appear on the site

Best regards, Alexander

1/19/2010 11:23:52 AM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

Oh, next mistake

SiteSettings.aspx.cs

private void PopulateControls()

change

tabHosts.Visible = false;
tabFolderNames.Visible = false;
 

to

tabHosts.Visible = false;
liHosts.Visible = false;
tabFolderNames.Visible = false;
liFolderNames.Visible = false;

Best regards, Alexander
 

1/19/2010 12:52:45 PM
Gravatar
Total Posts 18439

Re: Improvement blog

Thanks!

Best,

Joe

1/20/2010 12:00:09 PM
Gravatar
Total Posts 171
I am a Russian programmer

Re: Improvement blog

StyleSheetCombiner.ascx.cs

private void SetupjQueryUICss()

change

string jQueryUIVersion = "1.7.1";
if (ConfigurationManager.AppSettings["GoogleCDNjQueryVersion"] != null)
{
  jQueryUIVersion = ConfigurationManager.AppSettings["GoogleCDNjQueryUIVersion"];
}
 

to

string jQueryUIVersion = "1.7.2";
if (ConfigurationManager.AppSettings["GoogleCDNjQueryUIVersion"] != null)
{
jQueryUIVersion = ConfigurationManager.AppSettings["GoogleCDNjQueryUIVersion"];
}
 

 

ScriptLoader.cs

private string GetJQueryUIBasePath()

string jQueryUIVersion = "1.7.1";

to

string jQueryUIVersion = "1.7.2";

Best regards, Alexander
 

9/28/2011 4:03:54 PM
Gravatar
Total Posts 13

Re: Improvement blog

Here's some nice and typical mojoPortal-style source code to understand in what programming conditions the author is. I think it must be read before asking Joe Audette to fix something.

mojoBasePage.cs

// Author:             Joe Audette
// Created:            2006-01-07
// Last Modified:      2011-07-31

//...

protected void SetupWorkflowControls()

{
    if (
                (WebConfigSettings.EnableContentWorkflow && siteSettings.EnableContentWorkflow)
                    && (
                    (WebUser.IsInRoles(CurrentPage.DraftEditOnlyRoles)) || (WebUser.IsInRoles(CurrentPage.EditRoles))
                    )
                )
            {

                viewMode = GetUserViewMode();

                if ((WebConfigSettings.EnableContentWorkflow) && (siteSettings.EnableContentWorkflow)) // brilliant!
                {

                     //...

                 }

 //...

}

Would you like a coffee instead of beer, Joe? Короче говоря, mojoPortal скоро может быть погребен под горами подобного креатива. Полностью переписывать придется, либо отправлять на свалку.

9/28/2011 4:30:33 PM
Gravatar
Total Posts 18439

Re: Improvement blog

ok, I'm not perfect and that isn't the prettiest code there because there are some redundant check of conditions. mojoPortal is a large project, some code is nicer than other code, you start with code that works and as time permits you make things cleaner, its a process. I suppose all code you ever wrote is very pretty.  But you make a big deal about a small thing and stir up this old thread so welcome to the list of trolls I will ignore. Criticism is the easiest thing in the world to produce, I've got a good supply of it myself and don't really need yours.

Do you just enjoy stirring up trouble? Or maybe you are mad because I did not respond to your idea about that silly wikify service. I really don't see any need to generate wikipedia links for my content, if I want to link to something I just link to it.  If you don't like my work just don't use it and go away and build your own CMS.

You must sign in to post in the forums. This thread is closed to new posts.