Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Mod Request: Latest 5-10 posts
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mod Request: Latest 5-10 posts

 Post Reply Post Reply Page  12>
Author
Epperson View Drop Down
Newbie
Newbie


Joined: 08 November 2003
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Epperson Quote  Post ReplyReply Direct Link To This Post Topic: Mod Request: Latest 5-10 posts
    Posted: 16 April 2006 at 7:34am
Anyway someone can write a script to show the last 5 or ten posts in the bottom of the forum? I have used that mod on every update and really miss having it on the new forum. A lot of the members on my forum are asking for it too.
 
Hope this is the right area to make a request if they are allowed.
 
Thanks in advance
 
 
Shane


Edited by Epperson - 16 April 2006 at 5:56pm
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2006 at 3:56pm
Yo need to change the title of this thread to have the Prefix "MOD Request:" otherwise people who might make the mod think you have made the mod and it's available for download. They'd be less inclined to view the thread.


Edited by dpyers - 16 April 2006 at 3:58pm

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Epperson View Drop Down
Newbie
Newbie


Joined: 08 November 2003
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Epperson Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2006 at 4:04pm
Anyone have any idea if the old mods will work with this?
Back to Top
toadjunior2001 View Drop Down
Newbie
Newbie


Joined: 29 April 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote toadjunior2001 Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2006 at 7:51pm
Originally posted by Epperson Epperson wrote:

Anyone have any idea if the old mods will work with this?


The ones I've tried don't as the whole system is different in V8.  If I knew how to do it I would, but as it stands there is nothing yet for V8 that will accomplish this. (that I've seen)
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2006 at 4:15am
I hacked up Borgs rss feed to put the top 5 posts on a home page (link in my sig). This weekend I'll do something to put it on forum pages without having to use an iframe - I hope.
Running the SQL isn't a problem, but I want to use the permission system so people only see the latest 5 posts for forums they're allowed to view.

Edited by dpyers - 20 April 2006 at 4:17am

Lead me not into temptation... I know the short cut, follow me.
Back to Top
maxim View Drop Down
Newbie
Newbie
Avatar

Joined: 05 September 2003
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote maxim Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2006 at 4:18am

<%
'#########################################################################
'##
'## Display Newest Forum Posts with WebWizForums v7.x
'##
'## If you have any problems with this visit www.maddogs-asp.com
'## and post on the forums with the problem you are having and
'## if you have any error please post the full error so we can
'## help you easyer.
'##
'## Just change the database connection in the strMembersModCon
'## variable.
'##
'## Then make sure the strLastestPostsModForumPath is the right path
'## to your forum.
'##
'## Mod from www.maddogs-asp.com
'##
'## Writen by Drew Gauderman (aka MadDog)
'## Email: drew@madasp.com
'## Website: www.maddogs-asp.com
'##
'#########################################################################
%>
<table width="135" cellpadding="0" cellspacing="0" class="text_arial">
  <tr>
    <td width="33%" align="left" nowrap height="25"> <font face="Arial, Helvetica, sans-serif" size="2">
      <%
Dim rsLastestPostsMod
Dim adoLastestPostsModCon
Dim strLastestPostsModCon
Dim strSQLLastsPostsMod
Dim strLastestPostsModTopicSubject
Dim strLastestPostsModForumPath
Dim intLastestPostsTotal

'The path to the forum
strLastestPostsModForumPath = ""

'How many new topics to show
intLastestPostsTotal = 25

'Database connection
'-----------------------------
'-----------------------------

'Default connection
'strLastestPostsModCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/database/wwforum.mdb")

'Uncomment for a full phsyical path. Then change the path
'strLastestPostsModCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=C:/yoursite/root/forum/admin/database/wwforum.mdb"

strLastestPostsModCon = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & strDbPathAndName  'This one is for Access 2000/2002

'Uncomment for a DSN connection
'strLastestPostsModCon = "DSN=DSN_NAME"

'-----------------------------
'-----------------------------

Set adoLastestPostsModCon = Server.CreateObject("ADODB.Connection")
adoLastestPostsModCon.Open strLastestPostsModCon

Set rsLastestPostsMod = Server.CreateObject("ADODB.Recordset")

strSQLLastsPostsMod = "SELECT Top " & intLastestPostsTotal & " tblTopic.Topic_ID, tblTopic.Subject, tblForum.Forum_ID "
strSQLLastsPostsMod = strSQLLastsPostsMod & "FROM tblForum INNER JOIN tblTopic ON tblForum.Forum_ID = tblTopic.Forum_ID "
strSQLLastsPostsMod = strSQLLastsPostsMod & "WHERE ((tblForum.Password) Is Null) "
strSQLLastsPostsMod = strSQLLastsPostsMod & "ORDER BY tblTopic.Last_entry_date DESC;"

rsLastestPostsMod.Open strSQLLastsPostsMod, adoLastestPostsModCon

If rsLastestPostsMod.EOF Then
 Response.Write "<span class=""text_arial"">No Forum Posts Made</span>"
Else
 Do while NOT rsLastestPostsMod.EOF
  If len(rsLastestPostsMod("Subject")) > 18 then
   strLastestPostsModTopicSubject = left(rsLastestPostsMod("Subject"),30) & "...&nbsp;"
  Else
   strLastestPostsModTopicSubject = rsLastestPostsMod("Subject")
  End If

  Response.Write("<img src=/Slike_template/kvadrat_CC3300.jpg width=5 height=5 hspace=5 align=absmiddle><a href=""" & strLastestPostsModForumPath & "forum_posts.asp?TID=" & rsLastestPostsMod("Topic_ID") & "&PN=1"" target=_parent>" & strLastestPostsModTopicSubject & "</a>")

 rsLastestPostsMod.MoveNext
 If NOT rsLastestPostsMod.EOF Then Response.Write("<br>")
 Loop
End If

'Reset Server Objects
rsLastestPostsMod.Close
Set rsLastestPostsMod = Nothing
adoLastestPostsModCon.Close
Set adoLastestPostsModCon = Nothing
%>

 
This is the mod that was done by MadDog and it worked fine for v7.x. Right now it only recognizes new topics but not new posts. Can smbd take a look and figure out what needs to be changed......txanks....


Edited by maxim - 20 April 2006 at 4:18am
Back to Top
Epperson View Drop Down
Newbie
Newbie


Joined: 08 November 2003
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Epperson Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2006 at 4:57am
Well I got something to work, take a peak at my website and if anyone wants the code just let me know.
 
 
 
 
I would like to learn how to make it look a bit better but it works.


Edited by Epperson - 20 April 2006 at 4:59am
Back to Top
jsaren View Drop Down
Groupie
Groupie
Avatar

Joined: 15 April 2006
Location: China
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote jsaren Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2006 at 1:14am
Originally posted by Epperson Epperson wrote:

Well I got something to work, take a peak at my website and if anyone wants the code just let me know.
 
 
 
 
I would like to learn how to make it look a bit better but it works.
 
It  seems like good!  i need it.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.