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)
 Display Content Mod - Version 2
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 13

Astralis
Senior Member

USA
1218 Posts

Posted - 23 July 2001 :  13:18:18  Show Profile  Send Astralis a Yahoo! Message
I've been following this since the newest version was posted and I wish I could help. I'm having problems with Events Calendar so I don't think I'm qualified to tackle this problem.

I know the author of this mod won't be available for about a month but is anyone going to put together complete instructions from what they've found that needed fixed or documented? Perhaps this will help clear any confusion.

Go to Top of Page

TheRat
Starting Member

United Kingdom
19 Posts

Posted - 23 July 2001 :  14:13:40  Show Profile  Visit TheRat's Homepage
I have the same problem as my previous post

Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.
/test/forum/inc_functions.asp, line 70

The page displays at first, but after a refresh i receive the above error. Also the content will only display when logged in. The site is not on the web yet so no URL is available.

Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 23 July 2001 :  14:35:27  Show Profile
quote:

I have the same problem as my previous post

Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.
/test/forum/inc_functions.asp, line 70

The page displays at first, but after a refresh i receive the above error. Also the content will only display when logged in. The site is not on the web yet so no URL is available.

One reason this will happen when you have No record with id no. 1 in FORUM_DC_TEMPLATES. Look my earlier posts for a fix on this.



gauravbhabu

There is only one miracle...That is LIFE!
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 23 July 2001 :  15:04:14  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Thanks for your help GuaravBhabu. I was able to get this working in no time. I did notice that there is one html error in content.asp

The very last <td> at the bottom of the page should be a </td>
This closes the cell that the logo image would go in. Though i just opted to remove that cell altogether.

Ther are also some <%= strForumUrl %> missing from image and URL tags so a few links will give errors. A good bet is to do a search for every link and image and then add <%= strForumURL %> in front.

For example <img src="icon_smile.gif"> becomes <img src="<%=strForumURL%>icon_smile.gif">

and <a href="print.asp"> becomes <a href="<%= strForumURL %>print.asp">
There are some javascript pop up links that need that added as well.

I'm sorry I didn't make a list of them all. There are at least 5 instances where that needs to be added. You'll want to make sure you fix those so you can use this excellent mod outside the forum.

@tomic

Edited by - @tomic on 23 July 2001 15:07:04
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 23 July 2001 :  15:28:59  Show Profile
Also the table header font color variable is incorrect. It needs to be changed to strHeadFontColor I believe it is strHeaderFontColor in the code.


http://www.ugfl.net/forums
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 23 July 2001 :  15:35:45  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Whoops! Forgot that one!

@tomic

Go to Top of Page

TheRat
Starting Member

United Kingdom
19 Posts

Posted - 23 July 2001 :  17:12:53  Show Profile  Visit TheRat's Homepage
quote:

quote:

I have the same problem as my previous post

Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.
/test/forum/inc_functions.asp, line 70

The page displays at first, but after a refresh i receive the above error. Also the content will only display when logged in. The site is not on the web yet so no URL is available.

One reason this will happen when you have No record with id no. 1 in FORUM_DC_TEMPLATES. Look my earlier posts for a fix on this.



gauravbhabu

There is only one miracle...That is LIFE!



I have made all those changes. If possible could you take a look at my inc_functions page. It is located here http://www11.brinkster.com/therat/test/inc_functions.txt
Thanx for your help

Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 23 July 2001 :  17:43:58  Show Profile
TheRat,

Looking at your inc_functions for about 2 seconds it is PLAIN to see you did NOT make the changes stated by GauravBhabu

he said

quote:


***********************
Inc_functions
***********************
I do not have F_USERLIST in FORUM_FORUM so I changed it to:(need posting restrictions mod). If you have this field in your table then you need not make these changes

Find this statement


'strSql = "SELECT " & strTablePrefix & "FORUM.F_USERLIST, " & strTablePrefix & "FORUM.F_PRIVATEFORUMS "


change it to:


strSql = "SELECT " & strTablePrefix & "FORUM.F_TOPIC_AUTH, " & strTablePrefix & "FORUM.F_PRIVATEFORUMS "


Find this code:

'if Instr(rsAccess("F_USERLIST"), ", ") > 0 then
' Users = Split(rsAccess("F_USERLIST"), ", ")
'elseif trim(rsAccess("F_USERLIST")) <> "" then ' Only 1 member assigned to forum
' chkDisplayPrivateForum = (cint(rsAccess("F_USERLIST")) = cint(UserNum))
' exit function
'else ' No members assigned to forum
' chkDisplayPrivateForum = false
' exit function
'end if


change it to
			
if Instr(rsAccess("F_TOPIC_AUTH"), ", ") > 0 then
Users = Split(rsAccess("F_TOPIC_AUTH"), ", ")
elseif trim(rsAccess("F_TOPIC_AUTH")) <> "" then ' Only 1 member assigned to forum
chkDisplayPrivateForum = (cint(rsAccess("F_TOPIC_AUTH")) = cint(UserNum))
exit function
else ' No members assigned to forum
chkDisplayPrivateForum = false
exit function
end if


There are two instances of it.

Also look for my post earlier for another change. This Mod can be used for displaying content from all the tables with modifications or additional case statements and queries. The logic for the Mod is simple what the thought behind the idea is really great.It is great work. And Works like a CHARM.

gauravbhabu

There is only one miracle...That is LIFE!



Edited by - GauravBhabu on 17 July 2001 22:13:00



http://www.ugfl.net/forums
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 23 July 2001 :  19:34:56  Show Profile

There are some changes need to be made to the contentdisplay_editor.asp.
For Access DB
The WORKING should be YES/NO and on the General Tab select TRUE/FALSE as Format. On the LOOK UP tab I selected Text BOX.

**********************************
contentdisplay_editor.asp
**********************************

'//////////////////////////////// FORM VARIABLES //////////////
if Request.Form("intID") = "" then
intID = 1
else
intID = cint(Request.Form.Item("intID"))
end if
'//////////////////////////////// DISPLAY COLUMN PROPERTIES //////////////

The above statements(at the top of contentdisplay_editor.asp) force the intID to be "1" when you load the contentdisplay_editor.asp. And if you have no record with ID "1" in the table DC_templates, you will get an error of Either Eof or BOF is true or record has been deleted. To overcome this problem these statements need to be added to this file:

Look for the following in contentdisplay_editor.asp


if not (oRSTemplates.EOF and oRSTemplates.BOF) then
DatabaseConnected = Trueend if

And add these statements below it




'########### In case there is no record with ID=1 ########
if oRSTemplates.RecordCount > 0 then
if Request.Form("intID") = "" then
intID = oRSTemplates("ID")
'Make sure the working is set to True
oRSTemplates("WORKING") = True
oRSTemplates.Update
end if
end if
'#######################################################

Above will assign ID of first recordset returned by the query to the intID.


************************************
contentdisplay_editor.asp
Find the below line
***********************************

strSQL = strSQL & "WHERE WORKING = " 1

(somehow this is not working.)

and change it to


strSQL = strSQL & "WHERE WORKING =True"

***************There are two instances of it.







***********************
Inc_functions
***********************
I do not have F_USERLIST in FORUM_FORUM so I changed it to:(need posting restrictions mod). If you have this field in your table then you need not make these changes

Find this statement


'strSql = "SELECT " & strTablePrefix & "FORUM.F_USERLIST, " & strTablePrefix & "FORUM.F_PRIVATEFORUMS "


change it to:


strSql = "SELECT " & strTablePrefix & "FORUM.F_TOPIC_AUTH, " & strTablePrefix & "FORUM.F_PRIVATEFORUMS "


Find this code:

'if Instr(rsAccess("F_USERLIST"), ", ") > 0 then
' Users = Split(rsAccess("F_USERLIST"), ", ")
'elseif trim(rsAccess("F_USERLIST")) <> "" then ' Only 1 member assigned to forum
' chkDisplayPrivateForum = (cint(rsAccess("F_USERLIST")) = cint(UserNum))
' exit function
'else ' No members assigned to forum
' chkDisplayPrivateForum = false
' exit function
'end if


change it to
			
if Instr(rsAccess("F_TOPIC_AUTH"), ", ") > 0 then
Users = Split(rsAccess("F_TOPIC_AUTH"), ", ")
elseif trim(rsAccess("F_TOPIC_AUTH")) <> "" then ' Only 1 member assigned to forum
chkDisplayPrivateForum = (cint(rsAccess("F_TOPIC_AUTH")) = cint(UserNum))
exit function
else ' No members assigned to forum
chkDisplayPrivateForum = false
exit function
end if


There are two instances of it.

Also look for my post earlier for another change. This Mod can be used for displaying content from all the tables with modifications or additional case statements and queries. The logic for the Mod is simple what the thought behind the idea is really great.It is great work. And Works like a CHARM.

gauravbhabu

There is only one miracle...That is LIFE!



Edited by - GauravBhabu on 17 July 2001 22:13:00
[/quote]

http://www.ugfl.net/forums
[/quote]

I am including other changes mentioned earlier, so that they are at one place.

gauravbhabu

There is only one miracle...That is LIFE!
Go to Top of Page

simonduz
Junior Member

161 Posts

Posted - 24 July 2001 :  09:09:25  Show Profile  Visit simonduz's Homepage  Send simonduz an ICQ Message  Send simonduz a Yahoo! Message
Hey there fellow Content MOD users. Anybody else have an example of what they have done with this mod. The reason I am asking is I have trouble with the layout in this version.
Please see here:
Help with layout
So if anybody can help I would be very appreciative.
simonduz

http://easyromantic.webbhost.net -[test site]-
yada, yada.
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 24 July 2001 :  09:56:42  Show Profile
Just a VERY early implementation to test that I can use it the way I want to.

http://www.ugfl.net/index3a.asp


http://www.ugfl.net/forums
Go to Top of Page

simonduz
Junior Member

161 Posts

Posted - 24 July 2001 :  10:04:53  Show Profile  Visit simonduz's Homepage  Send simonduz an ICQ Message  Send simonduz a Yahoo! Message
big9erfan,
Looks good. You seem to have the same 'display problem' I have been trying to eliminate. The right and bottom of the view are off center.
simonduz

http://easyromantic.webbhost.net -[test site]-
yada, yada.
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 24 July 2001 :  10:59:32  Show Profile
Simon,

at the end of the content.asp file The very last <td> at the bottom of the page should be a </td>
*credit to @tomic for that*

See if that fixes your problem.



http://www.ugfl.net/forums
Go to Top of Page

simonduz
Junior Member

161 Posts

Posted - 24 July 2001 :  12:07:33  Show Profile  Visit simonduz's Homepage  Send simonduz an ICQ Message  Send simonduz a Yahoo! Message
The very last <td> doesn't seem to impact the view any. It's something to do with the column spans. I can raise the amount to equal 3 but then the Sub WriteGraphicBar needs changed also and it changes the view of the the Sub.
Guess I gotta talk myself through these changes some times.
Changed the colspan in display mode 7 to equal 3 then changed the Sub WriteGraphicBar colspan to equal 2 and 1 (thus totaling 3)
Seems to work.
If anybody made similar changes please post your results.
simonduz

http://easyromantic.webbhost.net -[test site]-
yada, yada.

Edited by - simonduz on 24 July 2001 12:18:34
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 24 July 2001 :  12:21:45  Show Profile
I do not think there are any changes needed to be made to the designing of table,row or column structure in the content.asp. Make the changes where you want to write the call to DisplayContent for how you want to see the content.

I have it like this:forumSquare

gauravbhabu

There is only one miracle...That is LIFE!
Go to Top of Page
Page: of 13 Previous Topic Topic Next Topic  
Previous Page | 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.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07