Author |
Topic  |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 18 May 2008 : 16:33:14
|
I am looking to remove the screensize option that appears at the top of post.asp and widen the table out to 100% to bring the edges inline with the table edges of the topic review and reply postings below. Having removed the 'screensize' option could we put a table header in place and provide a title.
I would like to change the format of post from this:
To something like this
 I have been having a fiddle with the tables etc and can not pinpoint the exact code to get it to have a 100% table width in the first place. Any help would as always be greatly appreciated.. Andy< |
Edited by - Andy Humm on 18 May 2008 16:34:49 |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 18 May 2008 : 17:51:12
|
dont know if this is what u want but what i have came up with is like so....Line numbers will be different as this si from a modded forums file.
find line 42, shoudl read this
dim strSelectSize
add this below
strSelectSize = 3
change the number as shown
1 = 640x480 2 = 800x600 3 = 1024x768 4 = 1280x1024
if you want a different size you will need to look for this section
select case strSelectSize
and change as necessory
find lines 531 - 553 it should read this
you can either delete or comment that section out
then add this section above the commented section with this
touch wood, this will do more or less what you want it to< |
© 1999-2010 MaD2ko0l |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 19 May 2008 : 01:47:20
|
MaD2ko0l, thank you so far, being at work I have nil access to my files, but reading through the suggestion has the screensize option removal been replaced with alternative code to size the table to 100% similar to the tables below it. I will await reply and give it a try tonight when andy return from shift.. Thank you andy< |
 |
|
Carefree
Advanced Member
    
Philippines
4212 Posts |
Posted - 19 May 2008 : 02:51:17
|
Here's another approach:
In post.asp, lines 486-494
Add the bits in red, and your size will be fixed.
For part 2, adding a title:
Lines 518-520:
Add the line in red, you've got your title. You can keep or discard the screensize resolution at that point.
Edit: I modified the line in the second box to incorporates the changes referred to below.< |
Edited by - Carefree on 20 May 2008 06:34:29 |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 19 May 2008 : 04:42:38
|
Carefree, thank you does this apply for post.asp?< |
 |
|
texanman
Junior Member
 
United States
410 Posts |
Posted - 19 May 2008 : 09:41:51
|
"Having removed the 'screensize' option could we put a table header in place and provide a title"
What happened to your title box?  < |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 19 May 2008 : 11:10:30
|
Texanman Quote: "What happened to your title box?" Carefree & MaD2ko0l: Will the table header and title be placed across the current two column table? ie joining the former 'screensize:' heading and pulldown option box cells. See second image in the first post of this thread.< |
 |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 19 May 2008 : 17:02:49
|
Spot on MaD2ko0l Regarding your header code " <td bgColor=""" & strHeadCellColor & """ noWrap vAlign=""top"" align=""center"" Colspan=""2""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Post</b></font></td>" & vbNewLine & _ " </tr>" & vbNewLine I have slightly changed it so the strheadfontcolor corresonds with the forum status " <td bgcolor=""" & strHeadCellColor & """ background=""" & strImageURL & strHeadCellBGImage & """ noWrap vAlign=""top"" align=""center"" Colspan=""2""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """><b> Post</b></font></td>" & vbNewLine & _
Just as a stroke of professionalism, with the 'Post' title in the header could we utilise the strRqMethod " <form name=""PostTopic"" method=""post"" action=""post_info.asp""" select case strRqMethod case "Topic", "EditTopic", "Reply", "ReplyQuote", "TopicQuote", "Edit" Response.Write(" onSubmit=""return validate();""") case else Response.Write "" end select found in post.asp lines 512-518 as it is used for the submit button, so that the form title corresponds with the button. At the moment we have a static heading 'post' but if the select case was used to dynamically change the title to correspond with the different methods of the post.asp. Just a Suggestion!
< |
Edited by - Andy Humm on 19 May 2008 17:16:13 |
 |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 19 May 2008 : 18:55:08
|
yes...carefree has that bit.
but replace the word "post" with this:
" & strRqMethod & "
with the " marks included, just look at carefree's example if you are stuck< |
© 1999-2010 MaD2ko0l |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 20 May 2008 : 03:48:19
|
Quality! Thank you MaD2ko0l & Carefree You learn something everyday!
I have just tweaked the title to "& "Post New " & strRqMethod & " so that it duplicates what is displayed on the submit button< |
 |
|
|
Topic  |
|