Author |
Topic  |
|
Cyberjunkie
Junior Member
 
111 Posts |
Posted - 07 May 2002 : 21:40:36
|
Hello everyone I want to make an small adjustment to the New Topic link in the forum.asp page. I want the link to stand to the far right just above the forum table. I have tried a couple of things but it just dosnt seem to work..anyone have any ideas?
|
|
Nathan
Help Moderator
    
USA
7664 Posts |
Posted - 07 May 2002 : 21:46:58
|
They are in a table cell, just set the align to "center" and the valiagn to "bottom"
There still might be a <br> you need to rip out of there.
Nathan Bales Snitz Exchange | Do's and Dont's |
 |
|
Cyberjunkie
Junior Member
 
111 Posts |
Posted - 07 May 2002 : 21:48:46
|
Thanx Nathan...i'll give it a shot :)
|
 |
|
Cyberjunkie
Junior Member
 
111 Posts |
Posted - 07 May 2002 : 21:59:25
|
This is the piece of code in the forum.asp file where the new topic link is I cant see the tables values anywhere? sub PostNewTopic() %> <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"> <% if Cat_Status = 0 or Forum_Status = 0 then if (AdminAllowed = 1) then %> <a href="post.asp?method=Topic&FORUM_ID=<% =Forum_ID%>&CAT_ID=<% =Cat_ID%>&Forum_Title=<% =ChkString(Forum_Subject,"urlpath") %>"><img src="icon_folder_locked.gif" alt="Category Locked" height=15 width=15 border=0></a> <a href="post.asp?method=Topic&FORUM_ID=<% =Forum_ID%>&CAT_ID=<% =Cat_ID%>&Forum_Title=<% =ChkString(Forum_Subject,"urlpath") %>"></a><br> <% '#################### Poll Mod ##################### %> <a href="post.asp?poll=1&method=Topic&FORUM_ID=<% =Forum_ID%>&CAT_ID=<% =Cat_ID%>&Forum_Title=<% =ChkString(Forum_Subject,"urlpath") %>"><img src="icon_new_poll.gif" alt="Add Poll" border=0></a> <a href="post.asp?poll=1&method=Topic&FORUM_ID=<% =Forum_ID%>&CAT_ID=<% =Cat_ID%>&Forum_Title=<% =ChkString(Forum_Subject,"urlpath") %>"></a> <% '################################################### %> <% else %> <img src="icon_folder_locked.gif" alt="Category Locked" height=15 width=15 border=0> Category Locked <% end if else if Forum_Status <> 0 then %> <%'#################### Poll Mod ##################### %> <a href="post.asp?method=Topic&FORUM_ID=<% =Forum_ID%>&CAT_ID=<% =Cat_ID%>&Forum_Title=<% =ChkString(Forum_Subject,"urlpath") %>"><img src="icon_new_topic.gif" border=0></a> <a href="post.asp?method=Topic&FORUM_ID=<% =Forum_ID%>&CAT_ID=<% =Cat_ID%>&Forum_Title=<% =ChkString(Forum_Subject,"urlpath") %>"></a> <% if (strUserPolls = "1") or (AdminAllowed = 1) then %> <a href="post.asp?poll=1&method=Topic&FORUM_ID=<% =Forum_ID%>&CAT_ID=<% =Cat_ID%>&Forum_Title=<% =ChkString(Forum_Subject,"urlpath") %>"><img src="icon_new_poll.gif" alt="Add Poll" border=0></a> <a href="post.asp?poll=1&method=Topic&FORUM_ID=<% =Forum_ID%>&CAT_ID=<% =Cat_ID%>&Forum_Title=<% =ChkString(Forum_Subject,"urlpath") %>"></a> <% end if '################################################### %> <% else %> <img src="icon_folder_locked.gif" alt="FORUM Locked" height=15 width=15 border=0> Forum Locked <% end if end if ' DEM --> Start of Code added to handle subscription processing. if (strSubscription < 4 and strSubscription > 0) and (Cat_Subscription = 1 or Cat_Subscription = 2) and Forum_Subscription = 1 then CheckSubscription "FORUM", MemberID, Cat_ID, Forum_ID, 0, "", "" end if ' DEM --> End of code added to handle subscription processing. %> </font> <% end sub
|
 |
|
Nathan
Help Moderator
    
USA
7664 Posts |
|
Cyberjunkie
Junior Member
 
111 Posts |
Posted - 07 May 2002 : 22:15:06
|
Oh u mean I have to make the table cells myself?
|
 |
|
Nathan
Help Moderator
    
USA
7664 Posts |
Posted - 07 May 2002 : 22:18:50
|
no, I meant that that piece of script you posted is a sub routeen. Somewhere else the in the file it is called. That is where the table cells are.
Nathan Bales Snitz Exchange | Do's and Dont's |
 |
|
Cyberjunkie
Junior Member
 
111 Posts |
Posted - 07 May 2002 : 22:33:32
|
Ok so I should look for the place where it says Call(PostNewTopic) or sumthing like that?
|
 |
|
Nathan
Help Moderator
    
USA
7664 Posts |
|
Cyberjunkie
Junior Member
 
111 Posts |
Posted - 08 May 2002 : 18:16:19
|
Well i'm no good at this coding. I have tried to change the align and Valign values in the <td..> tags but it dosnt seem to work. Cant seem to find the real one although I have found the <td> tags where the PostNewTopic() function gets called. Anyway thanx for the tip..maybe i'll find the right table cell some day he he
|
 |
|
Cyberjunkie
Junior Member
 
111 Posts |
Posted - 08 May 2002 : 21:19:12
|
By the way...if anyone can help me pin point the excact place where to alter the table cell values then here is a link to a text file of my forum.asp file. www.vision-lighed.dk/forum.txt
|
 |
|
Nathan
Help Moderator
    
USA
7664 Posts |
Posted - 09 May 2002 : 00:55:12
|
Yeah, thats the spirit, when your given the chance to learn refuse to try. . .
About line 280, remove whats in red add whants in blue replace whats in green.
<td align="right" valign="bottom" width="33%"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"> <% if (mlev = 4 or mlev = 3 or mlev = 2 or mlev = 1) or (lcase(strNoCookies) = "1") or (Request.Cookies(strUniqueID & "User")("Name") = "" or Request.Cookies(strUniqueID & "User")("Pword") = "") then %> <center><% call PostNewTopic() %></center> <% else %> <% end if %> </font></td>
Nathan Bales Snitz Exchange | Do's and Dont's |
 |
|
Cyberjunkie
Junior Member
 
111 Posts |
Posted - 09 May 2002 : 19:23:16
|
Thanx Nathan..I have tried that before...didnt help though. Well i'll figure it out sooner or later...not that important :) Thanx for ur help!
|
 |
|
|
Topic  |
|