Author |
Topic  |
texanman
Junior Member
 
United States
410 Posts |
Posted - 20 March 2007 : 15:37:52
|
Hello!
Which asp file should be modified to adjust posts text alignment from left to right? Like this:
Which asp file should be modified to adjust posts text alignment from left to right? Like thissssssssssssssssssss:
I have a forum which is RTL.
Thanks |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 20 March 2007 : 16:36:42
|
Thanks ruirib. There are 9 incidents of left alignment, should all of them be right alignment? Thanks |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 20 March 2007 : 20:46:16
|
quote: Originally posted by ruirib
No. You need to find the lines where topics and replies contents are displayed and add the formating there. Currently they are just using default alignment.
No Luck!! Tried quite a few of those align =""left to align=""right.    |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 21 March 2007 : 05:42:15
|
I told you those align wouldn't make any difference. You will need to find the statements that display the topic and the replies. These lines, currently, have no alignment tags. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 21 March 2007 : 10:13:22
|
ruirib thanks anyway. I thought it would be a simple fix. But, it doesn't look like it and I am not really a programmer. Thanks |
Edited by - texanman on 21 March 2007 10:14:00 |
 |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 21 March 2007 : 11:55:35
|
quote: Originally posted by ruirib
I told you those align wouldn't make any difference. You will need to find the statements that display the topic and the replies. These lines, currently, have no alignment tags.
WIll changing this:
Response.Write ">" & vbNewLine & _
" <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b><span class=""spnMessageText"">" & profileLink(ChkString(Reply_MemberName,"display"),Reply_Author) & "</span></b></font><br />" & vbNewLine
To this:
Response.Write ">" & vbNewLine & _
" <p align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b><span class=""spnMessageText"">" & profileLink(ChkString(Reply_MemberName,"display"),Reply_Author) & "</span></b></font><br /></p>" & vbNewLine
Do the job?? |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 21 March 2007 : 12:02:39
|
Nope. That's related to user's profiles, not the topic or replies contents. I don't have the code here, so I cannot tell which variables are being used to store the topic and replies contents. They likely are being used withing a formatStr function call, so have a look at the lines that have that function. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 21 March 2007 : 14:44:52
|
For the replies, the code is displayed by these lines:
" <td valign=""top"" height=""100%""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><span class=""spnMessageText"" id=""msg"">
|
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 21 March 2007 : 16:57:51
|
ruirib: It looks like topic.asp deals only with replies i.e. after a topic is being opened. For the new topic, should search in forum.asp? Or perhaps post.asp. |
Edited by - texanman on 21 March 2007 17:05:47 |
 |
|
Image
Average Member
  
Canada
574 Posts |
Posted - 21 March 2007 : 17:17:34
|
quote: Originally posted by texanman
quote: Originally posted by ruirib
I told you those align wouldn't make any difference. You will need to find the statements that display the topic and the replies. These lines, currently, have no alignment tags.
WIll changing this:
Response.Write ">" & vbNewLine & _
" <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b><span class=""spnMessageText"">" & profileLink(ChkString(Reply_MemberName,"display"),Reply_Author) & "</span></b></font><br />" & vbNewLine
To this:
Response.Write ">" & vbNewLine & _
" <p align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b><span class=""spnMessageText"">" & profileLink(ChkString(Reply_MemberName,"display"),Reply_Author) & "</span></b></font><br /></p>" & vbNewLine
Do the job??
Do not change <p> for <p align=""right""> What you have to do is: <html align=""right>
add dir=""rtl"" in body tag
<body" & strTmpPageBGImageURL & " dir=""rtl"" bgColor=""" & strPageBGColor & """
change align=""left"" to align=""right"" in all files.
add in some table tag <table align=""right
demo: http://www.demo-forums2001.ca/persian/
|
Edited by - Image on 24 March 2007 19:22:18 |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 21 March 2007 : 17:23:03
|
quote: Originally posted by texanman
ruirib: It looks like topic.asp deals only with replies i.e. after a topic is being opened. For the new topic, should search in forum.asp? Or perhaps post.asp.
No, it's also on topic.asp, inside a function named GetFirst(). Here is the code:
" <td valign=""top"" height=""100%""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><span class=""spnMessageText"" id=""msg"">"
if Request.QueryString("SearchTerms") <> "" then
Response.Write SearchHiLite(formatStr(Topic_Message))
else
Response.Write formatStr(Topic_Message)
end if
|
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 21 March 2007 : 19:33:23
|
quote:
Do not change <p> for <p align=""right""> What you have to do is: <html align=""right>
change align=""left"" to align=""right"" in all files.
add in some table tag <table align=""right
demo: http://www.demo-forums2001.ca/persian/
Thanks Image. Not sure I have energy to change all the files and <html align=""right> alone doesn't do it. I am still working on that arabic lang file translation. When done, I will let you know. My problem is finding an editor. I have tried like 6 editors so far without success.
|
 |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 21 March 2007 : 19:37:12
|
Thanks ruirib. I will see what I can do with those two codes. |
 |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 22 March 2007 : 09:48:47
|
quote:
Here is the code:
" <td valign=""top"" height=""100%""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><span class=""spnMessageText"" id=""msg"">"
if Request.QueryString("SearchTerms") <> "" then
Response.Write SearchHiLite(formatStr(Topic_Message))
else
Response.Write formatStr(Topic_Message)
end if
This is becoming interesting :-). I found the code. However, the POLL Mode asks this code to be deleted or commented out. |
 |
|
Topic  |
|