Hosting Multiple Sites

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
3/24/2009 11:26:31 AM
Gravatar
Total Posts 18439

Re: Hosting Multiple Sites

It won't allow duplicate urls. If it won't let you use the url you want then you may need to look in Administration Menu > Advanced Tools > Url Manager and find if another page is usingthe url or if it is orphaned somehow then delete it so you can use it again. You may also want to look under Advanced Tools > 301 Redirect Manager to make sure its not redirecting.

Hope it helps,

Joe 

3/25/2009 8:44:23 AM
Gravatar
Total Posts 98

Re: Hosting Multiple Sites

Hi, joe

I resolved edit url when remove from url manager the broken links. Thanks for help!

I have another questions:

1. Is there an interface on the database to do some filters? For example, display all users registered on newsletter for the last month and who are corporate users. (I have a custom module Newsletter that saved into new table created by me all addresses. )

2. How can I make a dump of the database ?(export ...)

3. What pages are indexed for search control? If i want that one page each is not visible to users do not show works?

4.a. Each time a user is requesting a page, a request to MoJo database is done to build the page – can I have a cache mechanism, that updates the page every 10 min or every hour for example?

5.Can I detect IP from each  user logged in?

Regards,Valik

 

3/26/2009 6:32:46 AM
Gravatar
Total Posts 98

Re: Hosting Multiple Sites

Hi Joe ,

You can  respond to my yesterday post? I need it! :)

Thanks,

Sorry for insistently! 

3/26/2009 7:05:35 AM
Gravatar
Total Posts 18439

Re: Hosting Multiple Sites

I don't like it when people ask a bunch of questions on a thread with an unrelated topic or change the topic after I answer.

1. No, if you need something custom you have to implement it.

2. All database platforms have their own tools for backup and restore of databases, its not needed to iimplemnt it in mojoPortal. Maybe someday we will implement import and export to makwe it possible to move from on db plaform to another but its not a hihg priority.

3. If a user searches they only see results if they are in a role with permission to view the page, result are filtered according to the user's roles.

4. You can enable caching at the module level, click the gears next to the title of the module. It works well for Html module but not for any module that does postback or uses ajax so use it with caution if you do use it. For most installations in shared hosting you don't have enough memory available and if you start caching too much it will run out of memory and recycle the app frequently. Caching should only be used to solve a perfomance problem for a site that gets a lot of traffic an is under heavy load. It is disabled by default because it can be problematic to use it. To enable it you need to add this to user.config or Web.config

<add key="DisableContentCache" value="false" />

5. By default we already trackuser ip addresses, you can see it if you click the gear next to a user name on member list to get to user management, then look on the location tab to see ip addresses the user has used.

Hope it helps,

Joe

 

3/27/2009 9:31:10 AM
Gravatar
Total Posts 98

Re: Hosting Multiple Sites

Sorry Joe for precedent post ,but I post to topic General Questions !

Again about mojo :)

I can use IP address for locate country for a user?

How obtain ip address in code

Thanks,Valik

 

4/13/2009 7:42:21 AM
Gravatar
Total Posts 98

Re: Hosting Multiple Sites

Hi Joe,

 I don't know why you don't respond me on latest posts you have a problem with me?

Sorry if I upsed you but i'm not a person with solid knowledge about asp and cms!

I want to learn!

please give me answer for this...

4/13/2009 7:57:05 AM
Gravatar
Total Posts 18439

Re: Hosting Multiple Sites

Hi Valik,

No I don't have any problem with you, but please understand I'm very busy and I can't help everyone learn ASP.NET. I help as much as I can, I try to help everyone who has installation problems or bugs but I cannot answer every question that developers ask or every general question. So many people ask big questions that I could spend my whole day answering them. I am not yet even making a living off of my work so I have to stay focused on getting my own work done.

You can get the user's ip address like this:

string userIp = Request.ServerVariables["REMOTE_ADDR"];

With a little googling you could have found this answer yourself.

There is nothing yet in mojoPortal to determine the user location from ip address, but it is possible to do it. One way is using 3rd party data from various vendors, the one I've looked at is ipligence. They have free data that could be imported and used to associate a geographic location with an ip address, they also have more detailed data if you pay money. Google for "ip address geolocation" for more info. I created the mp_UserLocation table based on the idea of using the data from ipligence, but I never finished it.

There are other ways of doing it as well using various services including google, this blog post by Scott Hanselman has some info on that. 

At some point I will use one of these strategies to build it into mojoPortal so we can capture user locations and plot users on a map, but its not my top priority.

Best,

Joe

 

4/13/2009 8:03:23 AM
Gravatar
Total Posts 18439

Re: Hosting Multiple Sites

And also you will find you get more help if you ask 1 question per thread as I said before and make the topic be related to the question. This helps everyone because now if someone searches mojoportal site for "ip address, location", now the result for this thread will say "Hosting Multiple Sites" which is not related at all to the question so the user may not click that result and yet this thread now has the answer.

But still I can't answer every single question, I'm just telling you I'm more likely to answer questions if you post 1 question per thread.

Best,

Joe

4/13/2009 8:09:16 AM
Gravatar
Total Posts 98

Re: Hosting Multiple Sites

Thanks for answer Joe,

I understand that you say!

For the future I wil ask you only problems related to mojoportal! One of them is :

I add in source code a new folder for MycustomModules and create a CartUserControl.ascx and CartsiteModule.ascx(like it is propose in heloo word example from mojoportal documentation).

I want to separate code by the tags and put the all c# code in code behind.I do this and click on build in release mode.

But give me errors: The labels (i have two labels on acsx) is not recognized in ascx.cs file.

The same things i do for release files project and work ok.But here I have <script runat="server"> tag where put the code in ascx.

Maibe is problem with this:<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CartUserControl.ascx.cs"  Inherits="MyCustomModules_CartUserControl" %> ?
 

In release files i have :<%@ Control Language="C#" AutoEventWireup="true" ClassName="CartModule.ascx" Inherits="System.Web.UI.UserControl" %>

Regards,

 Valik

4/13/2009 8:13:46 AM
Gravatar
Total Posts 18439

Re: Hosting Multiple Sites

You are not hearing what I'm saying, I'm not going to tell you again, your new question has nothing to do with this thread, you keep asking new questions on an unrelated thread. If you have a new developer question you should start a new thread in the developer forum and quit asking more questions on this thread.

 

4/13/2009 8:18:42 AM
Gravatar
Total Posts 98

Re: Hosting Multiple Sites

  Sorry i write the latest post before see it you post with new topics.

  I will move this on 'create custom modules' topic it is ok?

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