Welcome Guest Search | Active Topics | Log In | Register

2 Pages 12>
SOLUTION: Most users online 1 for GoDaddy Users Options · View
DJGray
#1 Posted : Friday, January 11, 2008 9:00:52 PM
Rank: Advanced Member



Joined: 11/20/2007
Posts: 63
Jaben has posted a fix for the Most users ever online being 1 issue. However for GoDaddy users, this is a bit elusive. They are using an older version of YAF, so you need to run the SQL below in your SQL DB Manager.

EDITED FOR CLARITY: This fix WILL work for GoDaddy accounts.

1. Connect to www.godaddy.com
2. Log in with your credentials.
3. Click the "My Account" link that appears where your login fields were.
4. Click the Hosting & Email icon, 2nd from the left, just below the green menu bar.
5. From the list of Hosting Accounts (or just your one) click the "Open" link that corresponds to your web site.
6. When the Control Panel opens, click on the grey "Databases" bar.
7. Click the SQL Server Icon.
8. Select and copy (Ctrl-C) the Database Name.
9. Click the "Open Manager" link.
10. Enter the Database Name as the User Name and your Password as the Password. (If you don't know your password, you can reset it by clicking the Pencil icon on the previous screen. That screen is the window immediately beneath your current active window.)
11. Click the Connect button.
12. Click the "Tables" link.
13. Double Click "yaf_Active" (2nd in the list)
14. Scroll all the way to the bottom.
15. Double Click "yaf_Active_insert"
16. Select and copy (Ctrl-C) the code below.

Code:


ALTER TRIGGER [dbo].[yaf_Active_insert] ON [dbo].[yaf_Active] FOR INSERT
AS
BEGIN
      DECLARE @BoardID int, @count int, @max int, @maxStr nvarchar(255), @countStr nvarchar(255), @dtStr nvarchar(255)

      SET @BoardID = (SELECT BoardID FROM inserted)
     
      SET @count = ISNULL((SELECT COUNT(DISTINCT IP) FROM [dbo].[yaf_Active] WITH (NOLOCK) WHERE BoardID = @BoardID),0)
      SET @maxStr = ISNULL((SELECT CAST([Value] AS nvarchar) FROM [dbo].[yaf_Registry] WHERE BoardID = @BoardID AND [Name] = N'maxusers'),'1')
      SET @max = CAST(@maxStr AS int)
      SET @countStr = CAST(@count AS nvarchar)
      SET @dtStr = CONVERT(nvarchar,GETDATE(),126)

      IF NOT EXISTS ( SELECT 1 FROM [dbo].[yaf_Registry] WHERE BoardID = @BoardID and [Name] = N'maxusers' )
      BEGIN
            INSERT INTO [dbo].[yaf_Registry](BoardID,[Name],[Value]) VALUES (@BoardID,N'maxusers',CAST(@countStr AS ntext))
            INSERT INTO [dbo].[yaf_Registry](BoardID,[Name],[Value]) VALUES (@BoardID,N'maxuserswhen',CAST(@dtStr AS ntext))
      END
      ELSE IF (@count > @max)     
      BEGIN
            UPDATE [dbo].[yaf_Registry] SET [Value] = CAST(@countStr AS ntext) WHERE BoardID = @BoardID AND [Name] = N'maxusers'
            UPDATE [dbo].[yaf_Registry] SET [Value] = CAST(@dtStr AS ntext) WHERE BoardID = @BoardID AND [Name] = N'maxuserswhen'
      END
END



17. Locate the code in the edit field that begins "ALTER TRIGGER"
18. Highlight everything from there to the end of the code.
19. Paste Jaben's code in place (Ctrl-V) of the highlighted code.
20. Click the Apply button.
21. Close all your open windows.

Your "most users" tally will now increment.
Ederon
#2 Posted : Friday, January 11, 2008 10:26:53 PM

Rank: YAF Developer



Joined: 1/8/2007
Posts: 1,083
Location: Heart of Europe
Thanks for sharing Cool
When I post FP:Ederon in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting.
DJGray
#3 Posted : Friday, January 11, 2008 11:11:16 PM
Rank: Advanced Member



Joined: 11/20/2007
Posts: 63
Ederon wrote:
Thanks for sharing Cool


You're welcome.

tolkientrack
#4 Posted : Thursday, May 08, 2008 12:58:47 AM

Rank: YAF Forumling


Joined: 5/8/2008
Posts: 1
Location: United States
I followed the directions and did this and it took down my forum! Help!
SilkyJohnson
#5 Posted : Tuesday, June 03, 2008 5:22:56 AM

Rank: YAF Forumling



Joined: 6/3/2008
Posts: 2
I did the same, I followed the directions and now when i try to access the site it says:

There has been a serious error loading the forum. No futher information is available.

Please contact the administrator if this message persists.

What has caused this?
SilkyJohnson
#6 Posted : Tuesday, June 03, 2008 5:34:28 AM

Rank: YAF Forumling



Joined: 6/3/2008
Posts: 2
Here is the only thing i changed:
I took out the DB name for Private purposes.......


USE []
GO

/****** Object: Trigger [yaf_Active_insert] Script Date: 06/02/2008 21:32:49 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO


ALTER TRIGGER [dbo].[yaf_Active_insert] ON [dbo].[yaf_Active] FOR INSERT
AS
BEGIN
DECLARE @BoardID int, @count int, @max int, @maxStr nvarchar(255), @countStr nvarchar(255), @dtStr nvarchar(255)

SET @BoardID = (SELECT BoardID FROM inserted)

SET @count = ISNULL((SELECT COUNT(DISTINCT IP) FROM [dbo].[yaf_Active] WITH (NOLOCK) WHERE BoardID = @BoardID),0)
SET @maxStr = ISNULL((SELECT CAST([Value] AS nvarchar) FROM [dbo].[yaf_Registry] WHERE BoardID = @BoardID AND [Name] = N'maxusers'),'1')
SET @max = CAST(@maxStr AS int)
SET @countStr = CAST(@count AS nvarchar)
SET @dtStr = CONVERT(nvarchar,GETDATE(),126)

IF NOT EXISTS ( SELECT 1 FROM [dbo].[yaf_Registry] WHERE BoardID = @BoardID and [Name] = N'maxusers' )
BEGIN
INSERT INTO [dbo].[yaf_Registry](BoardID,[Name],[Value]) VALUES (@BoardID,N'maxusers',CAST(@countStr AS ntext))
INSERT INTO [dbo].[yaf_Registry](BoardID,[Name],[Value]) VALUES (@BoardID,N'maxuserswhen',CAST(@dtStr AS ntext))
END
ELSE IF (@count > @max)
BEGIN
UPDATE [dbo].[yaf_Registry] SET [Value] = CAST(@countStr AS ntext) WHERE BoardID = @BoardID AND [Name] = N'maxusers'
UPDATE [dbo].[yaf_Registry] SET [Value] = CAST(@dtStr AS ntext) WHERE BoardID = @BoardID AND [Name] = N'maxuserswhen'
END
END

GO

Greywarden
#7 Posted : Sunday, June 08, 2008 10:51:37 PM

Rank: YAF Forumling


Joined: 6/1/2008
Posts: 1
Similar problem (Most users ever online was 1), not GoDaddy, but Harelink

YAF 1.9.1.7 (NET v2.0)

Operating System: Windows

Hosting Configuration: .Net Runtime Version: ASP.Net 2.0/3.0/3.5

http://mixeddestinies.com/forums/

we're good up until

13. Double Click "yaf_Active" (2nd in the list)

from there nothing matches
alexgau
#8 Posted : Wednesday, July 09, 2008 8:23:23 PM

Rank: YAF Forumling


Joined: 7/9/2008
Posts: 7
I have found this problem, some steps needs to be arranged and can anyone
tell if this is the right fix?
netstriver
#9 Posted : Tuesday, July 15, 2008 4:53:19 PM

Rank: YAF Forumling


Joined: 7/15/2008
Posts: 2
Lost you on step 11...I'm using Godaddy and I still can't get my forum up and running without any errors. This is a serious problem and someone needs to come up with a clear answer, otherwise it will never be resolved for Godaddy users. WE NEED A SOLUTION PEOPLE!!!!

This is the error i'm getting with my YAF forum:

"There has been a serious error loading the forum. No futher information is available. Please contact the administrator if this message persists." Evil or Very Mad
Thnder
#10 Posted : Tuesday, July 15, 2008 9:58:16 PM

Rank: YAF Forumling


Joined: 7/15/2008
Posts: 5
Location: NH
My forum on Godaddy initially started this way.
Now it works flawlessly thus far. It did not start out that way of course.
Not sure what I did exactly to resolve it now.

netstriver
#11 Posted : Wednesday, July 16, 2008 3:49:49 AM

Rank: YAF Forumling


Joined: 7/15/2008
Posts: 2
Please SOMEONE HELP!!!! I need my forum up and running and not only me, but many others...help us Godaddy users! We need a solution. I've tried contacting lead developers and all they tell me is to search these support forums which have not helped me resolve my problem...I've searched throughout this whole support forum and have not yet found a solution. Can someone please come up with a clear list of steps to fix this error that I mentioned in my last post on this forum topic earlier today. There just has to be an answer to this mess Idea !
BECOKA
#12 Posted : Wednesday, July 23, 2008 4:38:04 AM

Rank: YAF Forumling


Joined: 6/27/2008
Posts: 6
Location: Sunnyvale, CA
Eureka,

I think.Rolling Eyes

I backed up the config and default files. Went in an uninstalled YetAnotherForum through Godaddy (Make sure you unclick the database and that only the forum is selected for uninstall). I downloaded the latest version, unzipped it, copied all the files to where it used to be on my website, replaced the config and default files with the ones from my backup and all of a sudden not only do I have access again but I have more than 1 user for most users online at a time.

Make sure when uninstalling you uncheck the uninstall database. That needs to remain in tact.

Also make sure you back up all the config files and the default file. One of the config files contains the settings to access your database. Very key.

This also seems to make it possible to bypass the recommended /install/defalt.aspx method.
jasonw
#13 Posted : Monday, July 28, 2008 3:07:45 PM

Rank: YAF Forumling


Joined: 7/24/2008
Posts: 1
Location: Bournemouth
Hi All,

i came across this article that started off by saying:

DJGray wrote:
Jaben has posted a fix for the Most users ever online being 1 issue. However for GoDaddy users, this is a bit elusive. They are using an older version of YAF, so you need to run the SQL below in your SQL DB Manager.


however, i cannot find this article anywhere, and am having this issue and am not using GoDaddy, does anybody know where i can view the article?

Thanks for any Help
buford
#14 Posted : Friday, August 15, 2008 8:06:00 PM

Rank: YAF Forumling


Joined: 7/28/2008
Posts: 1
Location: PA
Am I supposed to be inserting my board ID anywhere in this code and if so where?? Replies greatly appreciated.
illuminatus
#15 Posted : Thursday, August 28, 2008 7:47:31 AM
Rank: Member


Joined: 8/28/2008
Posts: 20
I also host my website on godaddy. I also had same problem for "most users ever online". But i followed same procedure as described above and it worked. My site is www.fpilus.com/forums . But then another problem appeared. I cannot register new user. It does not give any error. Any ideas? Is there any other code that i should change too?

Any suggestion would be appreciated
Users browsing this topic
Guest
2 Pages 12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.246 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET