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
 new member and newest post
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

benjamin64
New Member

84 Posts

Posted - 26 June 2003 :  15:23:03  Show Profile
I got a website.

when peolpe enter my website, i would like to show on the start page, the newest member and the newest topic on my forum.

but how can i write a code so that my main page, shows the newest member and the newest topic.

without visiting the forum itself.

many thanks

BJ


Edited by - benjamin64 on 27 June 2003 00:13:38

Unity Jon
Starting Member

17 Posts

Posted - 27 June 2003 :  06:10:43  Show Profile  Visit Unity Jon's Homepage
dont know if this will help but theres a website that does just that, its here http://www.layitlow.com

They have a nice box that shows the latest posts and by whom.

Its not a snitz forum though, but the code must be similar ?? (ish)

would be a fantastic mod for peoples webpages.

here because i need help.
Go to Top of Page

benjamin64
New Member

84 Posts

Posted - 27 June 2003 :  07:37:03  Show Profile
okay but dont anyone got the code for the snitz forum, or got an idea??
Go to Top of Page

benjamin64
New Member

84 Posts

Posted - 27 June 2003 :  14:42:42  Show Profile
i have been looking in the default.asp

if NewMember_Name <> "" then
Response.Write " <tr>" & vbNewline & _
" <td bgcolor=""" & strForumCellColor & """ colspan=""" & sGetColspan(6,5) &_
""">" & _
"<font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """>Please welcome our newest member: " & _
"<span class=""spnMessageText"">" & profileLink(NewMember_Name,NewMember_Id) & "</span>.</font></td>" & vbNewline & _
" </tr>" & vbNewline
end if


but i cant get it to work, it dosn't write anything at all just a blank page, i did put the code into a new asp page, but on the same directory as the forum to make sure that all the include files are there.

can someone help,????

Edited by - benjamin64 on 27 June 2003 17:19:46
Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 27 June 2003 :  17:34:58  Show Profile
that's because you are using functions and variables that are specific to the forum. You either need to set up your own connection to the database and get the information you need or you can look into something like the Content Display Mod at www.snitzbitz.com

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

Jag24
Junior Member

182 Posts

Posted - 27 June 2003 :  23:55:50  Show Profile  Visit Jag24's Homepage  Send Jag24 an ICQ Message
Try here
Go to Top of Page

sacred
Junior Member

USA
153 Posts

Posted - 28 June 2003 :  09:07:59  Show Profile  Visit sacred's Homepage
This is more complicated than you think...

You need to look at all the code in the WriteStatistics subroutine that is in default.asp and determine what code is needed. For instance the SQL code in there is needed. Then determine what include files are needed and any variables that were declared outside that subroutine that might be used in that subroutine might be needed.

You could write your own code writing script for the newest member would require a query to the database. That should be easy for you. However, writing a script for the newwest post is more complicated. As it requires to look at the security level of ALL the forums. Becuase forums can be password protected and hidden as well as allowing only certain members. You ahve to figure out how it is working now when it display that stat and then write the code.

Yours in deepest gratitude,

Sacred
Go to Top of Page

benjamin64
New Member

84 Posts

Posted - 28 June 2003 :  14:15:58  Show Profile
okay :-(

have anyone not made this code, someone else must have the same idea as me or??
Go to Top of Page

benjamin64
New Member

84 Posts

Posted - 28 June 2003 :  14:22:54  Show Profile
okay i did look in the database every member have a memnber starting date attached so i can make a script myself, but i still need one showing last post, that i cant do :-(

thanks for the feedback.
Go to Top of Page

benjamin64
New Member

84 Posts

Posted - 29 June 2003 :  03:51:40  Show Profile
Okay i did check the database I think I can make the both, the database writes date for the topicd and for the newest members.

That was not such a bog problem at all.

BJ
Go to Top of Page

sacred
Junior Member

USA
153 Posts

Posted - 29 June 2003 :  08:48:53  Show Profile  Visit sacred's Homepage
quote:
Originally posted by benjamin64

Okay i did check the database I think I can make the both, the database writes date for the topicd and for the newest members.

That was not such a bog problem at all.

BJ



Not sure what you are talking about but when checking the Topic the writestastics checks to see the security issues with the forum that is set. For example if it is hidden (that one I know of) forum then you are not wanting people to know that has the newest topic. Make sure you are checking security stuff for the topic. Unless you never plan on having a hidden forum or allowed members only forums,ect.

And if you got it to work fantastic, think about making it available through a mod program to other people.

Many blessings,

Sacred

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.58 seconds. Powered By: Snitz Forums 2000 Version 3.4.07