Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Would like to change "Quote:" HR
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

hondaxr
New Member

80 Posts

Posted - 11 July 2008 :  17:52:46  Show Profile
One more question before I run the SQL statements; I don't see T_MESSAGE columns in my forum's FORUM_REPLY and FORUM_A_REPLY tables, only R_MESSAGE. Where do I find the T_MESSAGE columns?<
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 11 July 2008 :  17:57:14  Show Profile  Visit bobby131313's Homepage
FORUM_TOPICS and FORUM_A_TOPICS<

Switch the order of your title tags

Edited by - bobby131313 on 11 July 2008 17:58:46
Go to Top of Page

hondaxr
New Member

80 Posts

Posted - 11 July 2008 :  18:02:01  Show Profile
Doh! Thanks bobby.

When I tried to change one of the table's parameters to nvarchar(max), I got this error:

'FORUM_A_REPLY' table
- Unable to modify table.
The transaction log for database 'Snitz_ForumDB' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases"

Does this look like something I can fix or will I need to notify my hosting company?

EDIT: The log_reuse_wait_desc column says nvarchar(60). Could this be why?<

Edited by - hondaxr on 11 July 2008 18:07:15
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 July 2008 :  18:35:38  Show Profile  Send ruirib a Yahoo! Message
Try the script like this, it won't require you to change the fields to nvarchar(max) prior to execution. Just execute it.
If the error about the log shows up, you need to contact the host:

UPDATE FORUM_REPLY SET R_MESSAGE=REPLACE(CONVERT(nvarchar(max),R_MESSAGE),'<hr height="1" noshade id="quote">','<hr height="2" noshade id="quote">')

UPDATE FORUM_A_REPLY SET R_MESSAGE=REPLACE(CONVERT(nvarchar(max),R_MESSAGE),'<hr height="1" noshade id="quote">','<hr height="2" noshade id="quote">');

UPDATE FORUM_TOPICS SET T_MESSAGE=REPLACE(CONVERT(nvarchar(max),T_MESSAGE),'<hr height="1" noshade id="quote">','<hr height="2" noshade id="quote">');

UPDATE FORUM_A_TOPICS SET T_MESSAGE=REPLACE(CONVERT(nvarchar(max),T_MESSAGE),'<hr height="1" noshade id="quote">','<hr height="2" noshade id="quote">');

<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

hondaxr
New Member

80 Posts

Posted - 22 July 2008 :  17:12:20  Show Profile
I'm still getting the same error with the script above. I've submitted a trouble ticket with my host to see if they can tell me what the problem is. Will post back.<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 July 2008 :  17:22:26  Show Profile  Send ruirib a Yahoo! Message
Your host needs to take care of the log issue.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

hondaxr
New Member

80 Posts

Posted - 22 July 2008 :  18:09:55  Show Profile
They did, and it seems to work, but... I tried running a short test script on just some text that I posted and it did not change it but the SQL Query said "4775 row(s) affected."

I posted this in the forums: test123

And then ran this SQL Query:

UPDATE FORUM_REPLY SET R_MESSAGE=REPLACE(CONVERT(nvarchar(max),R_MESSAGE),'test123','test124')

UPDATE FORUM_A_REPLY SET R_MESSAGE=REPLACE(CONVERT(nvarchar(max),R_MESSAGE),'test123','test124');

UPDATE FORUM_TOPICS SET T_MESSAGE=REPLACE(CONVERT(nvarchar(max),T_MESSAGE),'test123','test124');

UPDATE FORUM_A_TOPICS SET T_MESSAGE=REPLACE(CONVERT(nvarchar(max),T_MESSAGE),'test123','test124');
What am I doing something wrong?<

Edited by - hondaxr on 22 July 2008 18:11:03
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 22 July 2008 :  19:04:12  Show Profile  Send ruirib a Yahoo! Message
The statements work perfectly. The string to be replaced must be specified correctly, no leading or trailing spaces.

You will need to requery the data to see the effects of the statements.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 23 July 2008 :  13:28:40  Show Profile
I had this code for my quotes:
fString = doCode(fString, "[quote*]", "[/quote]", "<blockquote id=""quote""><font size=""" & strFooterFontSize & """ face=""" & strDefaultFontFace & """ id=""quote"">Quote:<hr size=""1"" noshade id=""quote"">", "<hr size=""1"" noshade id=""quote""></font id=""quote""></blockquote id=""quote"">")

Note: * added to [quote*] tag to parse code

and I have added an icon in front of the Quote: All works well and all nested quote replies work ok. I've used this code:

I had this code for my quotes:
fString = doCode(fString, "[quote*]", "[/quote]", "<blockquote id=""quote""><font size=""" & strFooterFontSize & """ face=""" & strDefaultFontFace & """ id=""quote""><img src=""icon_quote.gif"" align=""bottom"" style=""margin-bottom: -5px;""> Quote:<hr size=""1"" noshade id=""quote"">", "<hr size=""1"" noshade id=""quote""></font id=""quote""></blockquote id=""quote"">")

There is a problem when I reply quote to an older quote, ie when an old quote is nested in a new style with the icon.
This is the first quote:

This is the above quote reply in nesting old to new


This below is the new reply quotes new to new

Is there a quick way to remove the nesting incompatability?
<

Edited by - Andy Humm on 23 July 2008 13:30:14
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 July 2008 :  13:46:52  Show Profile  Send ruirib a Yahoo! Message
Andy Humm
Please start a new topic. Your reply is not related to this issue. Once you start a new topic, I will delete these two replies.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.42 seconds. Powered By: Snitz Forums 2000 Version 3.4.07