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)
 RTE now in version 1.2
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 18 January 2002 :  04:34:20  Show Profile  Visit Azaniah's Homepage
quote:

No, file includes in ASP are processed before the ASP page itself is parsed. You cannot dynamically include a file from a varialbe.

 Nathan Bales - Romans 15:13
---------------------------------

Snitz Exchange | Mod Resource




Does anyone know it .net can do this? (seems from something I read yesterday .net can do a few nice things).

Cheers Az

-------
Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 18 January 2002 :  09:48:25  Show Profile  Visit Nathan's Homepage
.NET is probably alot more powerful

 Nathan Bales - Romans 15:13
---------------------------------

Snitz Exchange | Mod Resource
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 18 January 2002 :  10:49:15  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
quote:
So that means you can not have a pop_up insert the <% %> tags in the editor?


I think this would be an extreme security risk.

@tomic

Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 18 January 2002 :  11:23:47  Show Profile
quote:

quote:
So that means you can not have a pop_up insert the <% %> tags in the editor?


I think this would be an extreme security risk.




Not if itīs in a controlled enviroment - we could make it so that you could only insert specific values, such as: "<% DisplayCOntent" and then the end tag "%>" or
"<% CALL" and then the end tag "()%>"
then if user tries to enter just "<%" then it would be ignored.

This way you could insert only secure code into the field



Morpheus73 - Troelsr@msn.com
Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 18 January 2002 :  11:26:27  Show Profile
quote:

quote:

quote:
So that means you can not have a pop_up insert the <% %> tags in the editor?


I think this would be an extreme security risk.




Not if itīs in a controlled enviroment - we could make it so that you could only insert specific values, such as: "<% DisplayCOntent" and then the end tag "%>" or
"<% CALL" and then the end tag "()%>"
then if user tries to enter just "<%" then it would be ignored.

This way you could insert only secure code into the field

a small db table could even be created where you can store accepted code and an admin feature to create accepted code.

- I know this is a big job, but then we would have the feature to let users post a lot of cool dynamic stuff.

This should be possible in inc_functions to create a tag that will let the above pass through

but which part do I need to edit?



Morpheus73 - Troelsr@msn.com



Morpheus73 - Troelsr@msn.com

Edited by - morpheus73 on 18 January 2002 12:28:48
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 18 January 2002 :  22:21:41  Show Profile  Visit Nathan's Homepage
1) It would be too great a security risk.

2) Its not possible because ASP cannot be processed from an ASP string. (No language I have ever used can)

 Nathan Bales - Romans 15:13
---------------------------------

Snitz Exchange | Mod Resource
Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 19 January 2002 :  07:32:59  Show Profile
quote:

1) It would be too great a security risk.

2) Its not possible because ASP cannot be processed from an ASP string. (No language I have ever used can)

 Nathan Bales - Romans 15:13
---------------------------------

Snitz Exchange | Mod Resource




But if you then call the topic using a SQL statement from another page, and the topic included <% DisplayContent 1,85,2,5,55 %> then it would work? showing the topic?

Let me explain why itīs important to me:

1. Iīve set up a system so that whenever admin creates a category it automatically generates a forum called CMS under that category with topics mainfield, RightMenu and LeftMenu. This forum and these topics is viewable by admin only.

2. Iīve created a clone of default.asp, that includes a <table> with 3 cells; cell LeftMenu, cell mainfield and cell RightMenu. these then via SQL reads the topics called LeftMenu, mainfield and Rightmenu and displays them in their respective cells.

4. This works fine for now - because I via RTE can liveedit the topics Lmenu, mainfield and Rmenu. I can create links to other topics, forums and categories, I can insert pictures and formatted text - I can basically build my menuīs and mainfield for each page (category)visually with RTE - cool

5. However: If I could insert <% DisplyContent all forums labeled "article", show latest 10 %> or <%DisplayCOntent a specific topic labelled "Shopitem", show whole topic %> into tables in the RTE field, then it would make it possible for admin to include dynamic content in Lmenu, mainfield and Rmenu.

6. I Understand that you canīt make RTE get and show the variables defined in the DisplayCOntent statements during editing, but it should work fine when people view my Default.asp?

7. In order to make editing visually better, you could insert an picture <HREF> symbolising Dynamic Content (Like DreamWeaver) and then take away the image <IMG> when writing topic to the DB just like fstring already does to other posing options. then when editing the content you could make it viseversa replace("<%DisplayCOntent ", "<img src="DynamicContent.gif" border=0><% DisplayContent ")

I know this is a major undertaking - but is it possible?

I donīt see the security risk if source=OFF if you can only post "<%DisplayCOntent " and not "<%" + it is only admin/moderators that will have acces to button doing this.

Morpheus73 - Troelsr@msn.com
Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 19 January 2002 :  07:43:06  Show Profile
Maybe showing text in RTE mode is possible although, take a look here:

http://64.225.137.179/Cube-Tec_Forums/content_test.asp?MODE=SELECT

Morpheus73 - Troelsr@msn.com
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 19 January 2002 :  14:24:32  Show Profile  Visit Nathan's Homepage
There is no way to dynamically include one chunk of ASP inside another.

 Nathan Bales - Romans 15:13
---------------------------------

Snitz Exchange | Mod Resource
Go to Top of Page

Fury
New Member

USA
62 Posts

Posted - 19 January 2002 :  21:20:40  Show Profile
Starting with IIS 5, there is the ability to dynamically include asp using the server.execute command. Server.Execute works just like a server side include but the parameter it receives CAN be a variable. There is another command (server.transfer) that instead of getting code from another page, actually transfers control to the other page.

Here's an article that explains these two and some other new features of IIS 5. (It's after the terminal services explanation)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnasdj01/html/asp0132.asp

I want to modify the snitz code to use them as well. I think it will improve the performance of the forums pretty dramatically. Unfortunatley I don't know that much about asp so it could be quite a while in the making. And as far as I know, this would only work with IIS 5 and above (so .net should work too). I'm pretty sure Brinkster supports these commands too for those that use their servers.



Edited by - Fury on 19 January 2002 21:22:05
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 19 January 2002 :  22:03:23  Show Profile  Visit Nathan's Homepage
Brinkster supports a beta version of .NET, there is probably alot of power there. But you still cannot parse ASP when the ASP code is delivered in the form of a string.

 Nathan Bales - Romans 15:13
---------------------------------

Snitz Exchange | Mod Resource
Go to Top of Page

Fury
New Member

USA
62 Posts

Posted - 19 January 2002 :  22:25:20  Show Profile
What about using something like MSINET.CTRL (which I've never been able to get to work right) or this free software (that works perfectly) and is called ASP Tear.
http://www.alphasierrapapa.com/IisDev/Components/AspTear/
It allows you to load an external page from anyplace and either drop it in your code as is, or manipulate it as one big string so you can pull out just the text you want. I've used it to pull the current temperature data from the National Weather service site. Using it like that is not really advisable on a large site but to do what you are talking about it might be just the thing.

Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 20 January 2002 :  09:16:38  Show Profile
SO if we insert this routine (ASPtear) and make it fetch the info it needs from the remote topic depending on the the variables chosen on the popup, include a DisplayContent variable 1, variable 2 before the %> tag closes, and then make the post.asp refresh in the same manor as it does when another screensize is chosen, where it remembers the existing typed in content+runs the new routine, we would have it shown dynamically on the RTE? -

What about the other option I mentioned: you insert the <% Display Content %> in the text area - during posting/editing this will off course be invinsible, but when user loads the default.asp, it retrieves the topic (only txtmessagetext) as strcontent via SQL
and then uses a response.write strcontent - wouldnīt that generate the chosen remote content on the default.asp?

- WOW just tested v 1.3 - brilliant!

Morpheus73 - Troelsr@msn.com

Edited by - morpheus73 on 20 January 2002 09:21:11
Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 20 January 2002 :  09:55:13  Show Profile
Honestly - itīs not to be a bugger requesting all these extra features, but if this could become possible, It would be a major step up in the way that all of us handle Snitz - Today I believe most users use snitz as both a forum but also a backend for their sites. - including dynamic content in RTE would be the first time Iīve seen a webbased CMS that has the same difference Dreamweaver has to an ordinary HTML tool or even notepad.

And instead of a lot of 3rd party modules being made more or less compatible with snitz, developing new mods would merely be a question of creating new templates in DisplayCOntent mod/Slash (havenīt decided which of these two are the coolest for fetching content?) and new hide/show post fields - right now Iīm working with several contenttypes - forums, articles, links, events, usergroups (need work though), auctions, classifieds and personal content like buddies, myimages, mydocs a.s.o. - it really creates a good backbone, where you can run any kind of multisites with individual design using the Group Cats mod (since it hauls all admin settings and content from Group, cat, forum and topic tables) but you can share all content between these sites -

And it all works fine now! ...It has fileattachment mod + DisplayContent mod + events as only major seperate mods attached to it.

(off course the topics table is HUGE, but once I get it off PWS/access and onto IIS 5 and SQL itīll be acceptable quick)

two things are still hanging though - moderated Usergroups (function - but I have an idea) + RTE for the different content/dynamic content.

another feature Iīll try to make later on is for each usergroup to be able to share a common weekschedule + a printale document (topic) that all members can work on)

Morpheus73 - Troelsr@msn.com
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous 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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07