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: General / Classic ASP versions(v3.4.XX)
 New topic link in forum.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Cyberjunkie
Junior Member

111 Posts

Posted - 07 May 2002 :  21:40:36  Show Profile
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  Show Profile  Visit Nathan's Homepage
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
Go to Top of Page

Cyberjunkie
Junior Member

111 Posts

Posted - 07 May 2002 :  21:48:46  Show Profile
Thanx Nathan...i'll give it a shot :)

Go to Top of Page

Cyberjunkie
Junior Member

111 Posts

Posted - 07 May 2002 :  21:59:25  Show Profile
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


Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 07 May 2002 :  22:13:37  Show Profile  Visit Nathan's Homepage
The table cells would be where that sub is called.

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

Cyberjunkie
Junior Member

111 Posts

Posted - 07 May 2002 :  22:15:06  Show Profile
Oh u mean I have to make the table cells myself?

Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 07 May 2002 :  22:18:50  Show Profile  Visit Nathan's Homepage
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
Go to Top of Page

Cyberjunkie
Junior Member

111 Posts

Posted - 07 May 2002 :  22:33:32  Show Profile
Ok so I should look for the place where it says Call(PostNewTopic) or sumthing like that?

Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 07 May 2002 :  22:37:20  Show Profile  Visit Nathan's Homepage
It probably just sais & PostNewTopic() &

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

Cyberjunkie
Junior Member

111 Posts

Posted - 08 May 2002 :  18:16:19  Show Profile
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

Go to Top of Page

Cyberjunkie
Junior Member

111 Posts

Posted - 08 May 2002 :  21:19:12  Show Profile
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

Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 09 May 2002 :  00:55:12  Show Profile  Visit Nathan's Homepage
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
Go to Top of Page

Cyberjunkie
Junior Member

111 Posts

Posted - 09 May 2002 :  19:23:16  Show Profile
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!

Go to Top of Page
  Previous Topic Topic Next Topic  
 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.44 seconds. Powered By: Snitz Forums 2000 Version 3.4.07