Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Simple Slash Mod v.1.0
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 11

RebelTech
Average Member

USA
613 Posts

Posted - 01 December 2003 :  14:38:05  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
Simple Slash Mod v.1.1 for Snitz vers 3.4.03

This mod allows you to display content from your forums on any page you choose.
As in the last or most recent topics. I know this has been done to death in some
aspects. But other news or recent posts mods are either for older versions of Snitz,
part of another mod, do not display content from the body of a post or require
database modification.

This mod will allow you to display the author, date and time posted, subject title
of the post, a link to the original post, the number of replies and a portion of
text from the body of the post. The number of topics to be displayed, which forum(s)
are displayed and how much content from the body of the topic is shown are all configurable.

Ease of installation: 1 (1=easy 10=hard)

To install decide if you want to use the mod as a simple, basic stand alone .asp page
or as an include in another page.
No matter which way you choose to use it all you have to do to configure it is edit the
following lines:

Const intTopicCount = 5
This line decides how many topics to display


Const ForumID = "ANY"
This line decides which forum to get the topics from. Either enter the number of a specific forum or "ANY" for all forums.


Const CharsToDisplay = 2000
This line decides how many characters from the topic body
will be displayed.


If you want to use this mod in another page simply place the include statement in the
page in which you want to display the latest topics. Like this:

%>
<!--#include file="inc_simple_slash.asp"-->
<%


A demo of this mod can be seen at www.spinbusters.com
The zip file containing the readme, inc_simple_slash.asp, simple_slash.asp can be
found at ftp://ftp.spinbusters.com/simpleslash.zip -zip file updated 11/29/03
or at www.snitzbitz.com

Topics are now checked to see if the forum is private.
Private forum topics are not displayed.

** This mod works with access and MySql

Edited by - RebelTech on 11 December 2003 03:17:21

Faizan
Average Member

United Kingdom
592 Posts

Posted - 01 December 2003 :  14:40:23  Show Profile  Visit Faizan's Homepage  Send Faizan an AOL message  Send Faizan an ICQ Message  Send Faizan a Yahoo! Message
Very nice Rebel, I like it..

Does it also display the username of the last person who replied, and an arrow to jump to it?



»Snitz Graphics
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 01 December 2003 :  15:39:28  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
I'm just wondering but will this mod NOT display info from hidden forums? Cuz I have some hidden forums that I would not like info being displayed.
Thanks

coaster crazy
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 01 December 2003 :  20:12:25  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
in your zip file you have two files
Simple Slash Mod ReadMe
.DS_Store

first one there I know what it is but it is missing the extension. I opened it in notepad and I can read bits, most is tiny boxes, what type of file is it?
second file? What is that for??? I did not even try opening it. Virus scan came up clean soooooooOOOoOOOooo what is that file for?

coaster crazy
Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 01 December 2003 :  21:48:58  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
quote:
Originally posted by Faizan

Very nice Rebel, I like it..

Does it also display the username of the last person who replied, and an arrow to jump to it?





No, but that sounds like a good idea.
Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 01 December 2003 :  21:50:13  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
quote:
Originally posted by weeweeslap

I'm just wondering but will this mod NOT display info from hidden forums? Cuz I have some hidden forums that I would not like info being displayed.
Thanks



Right now it will show hidden forums. This is something that needs fixin.
Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 01 December 2003 :  21:52:00  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
quote:
Originally posted by weeweeslap

in your zip file you have two files
Simple Slash Mod ReadMe
.DS_Store

first one there I know what it is but it is missing the extension. I opened it in notepad and I can read bits, most is tiny boxes, what type of file is it?
second file? What is that for??? I did not even try opening it. Virus scan came up clean soooooooOOOoOOOooo what is that file for?



I will go in and resave the text file. the .ds_store is part of the Mac desktop I will dump that also.
Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 01 December 2003 :  22:16:12  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
quote:
Originally posted by weeweeslap

in your zip file you have two files
Simple Slash Mod ReadMe
.DS_Store

first one there I know what it is but it is missing the extension. I opened it in notepad and I can read bits, most is tiny boxes, what type of file is it?
second file? What is that for??? I did not even try opening it. Virus scan came up clean soooooooOOOoOOOooo what is that file for?



WWS

Would you download it again and tell me how it looks? I updated the readme with acoustika's fix for mysql and this time I tried to save it with dos
cr and lf rather than mac. I also added the .txt for you pc folks. As for the ds_store, of course I could not see it....
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 01 December 2003 :  23:01:17  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
ok read me file is allright, that .DS_STORE file is still in the zip for some reason

coaster crazy
Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 01 December 2003 :  23:10:42  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
quote:
Originally posted by weeweeslap

ok read me file is allright, that .DS_STORE file is still in the zip for some reason



I read several articles awhile ago about the .ds_store showing up when you burned a cd with the Mac OS but I had not heard of it showing up with an archive. I will start reading around and see what I can do fix it. I guess for a quick fix I could zip the file while running Virtual PC...

Thanks WWs for checking it out.
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 01 December 2003 :  23:33:53  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
no prob!

coaster crazy
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 01 December 2003 :  23:43:38  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
quote:
Originally posted by RebelTech

quote:
Originally posted by weeweeslap

I'm just wondering but will this mod NOT display info from hidden forums? Cuz I have some hidden forums that I would not like info being displayed.
Thanks



Right now it will show hidden forums. This is something that needs fixin.


Simply add a WHERE statement to the sql string.
For example only display posts from forums where the F_PRIVATEFORUMS field (from the FORUM table) is 0 (All Visitors).

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 01 December 2003 :  23:58:43  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
Would this be correct for the sql?

strSql = strSql & " WHERE mo.FORUM_ID = " & fForum_ID & " "
Go to Top of Page

golfmann
Junior Member

United States
450 Posts

Posted - 06 December 2003 :  19:53:37  Show Profile  Visit golfmann's Homepage
I get this, using the inc_simple_slash.asp:
Microsoft VBScript runtime error '800a01a8'

Object required: ''

/forum/inc_simple_slash.asp, line 64
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 06 December 2003 :  20:48:32  Show Profile  Visit Gremlin's Homepage
Most likely becuase you haven't set the FORUM_ID Correctly it's not pulling any topics out so that close fails becuase the second RS was never opened, could be called a bug I suppose too, but make sure you are actually telling it to pull items from a valid forum_id first and see if that doesn't get rid of the error.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 06 December 2003 :  20:48:56  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
golfman,

Sorry you ran into trouble. Most likely the forum that you have selected does not exist.
Find this line and edit the number to reflect the forum you want to display or replace the number with "ANY" to pull from all the forums.
Const ForumID = 5

That should fix it!
Go to Top of Page
Page: of 11 Previous Topic Topic Next Topic  
Next Page
 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.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07