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
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Nathan
Help Moderator

USA
7664 Posts

Posted - 16 January 2002 :  01:49:14  Show Profile  Visit Nathan's Homepage
I updated a few things. You can download version 1.2 at the Snitz Exchange.

A few bugs were fixed including the missing file pop_smiles.asp

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

Snitz Exchange | Mod Resource

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 16 January 2002 :  11:57:45  Show Profile  Visit Azaniah's Homepage
Nathan,

What exactly is the issue with this and the poll mod?

I've installed this on a heavily moddified Huwr'd forum, and I'm getting "odd" results.
They don't seem to be related to the poll mod however, more to do with Allowed User Selection Code.

Can you enlighten me as to what the issues with the poll mod are?

For future reference, if anyone wants to add this to a Huwr'd Forum, you will need to create an entry in FORUM.CONFIG_NEW for strAllowRTE value 1


Cheers Az

-------
Eagles fly!, but weasels don't get sucked into jet engines.

Edited by - azaniah on 16 January 2002 12:37:34
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 16 January 2002 :  12:58:24  Show Profile  Visit Azaniah's Homepage
Nathan (or someone who is good with Javascript)

I'm not sure how to debug this, but I get the following errors

If I'm loading a page (eg Post.asp) and I get the following...

"A Runtime Error has occured
Do you wish to debug?

Line: 390
Error: Syntax Error"

What do I do?

Is this moaning about line 390 of post.asp?

That would put it in the middle of one of the Allowed User Selection Code functions.

Anyone cast any light on this?

Thanks Az

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

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 16 January 2002 :  14:21:55  Show Profile  Visit Azaniah's Homepage
Nathan,

Not to worry, I've fixed it.

I'm wondering though, should you nest <% %> inside a javascript call?

Cheers Az

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

Morpheus73
Average Member

Denmark
597 Posts

Posted - 16 January 2002 :  14:54:20  Show Profile
quote:


I'm wondering though, should you nest <% %> inside a javascript call?




Very interested in this too - is it possible to pass a variable sorrounded by <% and %> to the field?

also can I in a pop_up open several .asp?variable files - piece the variables together and post the final variable to the field?

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

Nathan
Help Moderator

USA
7664 Posts

Posted - 16 January 2002 :  19:08:56  Show Profile  Visit Nathan's Homepage
I'm not exactly sure what your talking about. But remember that ASP is server sitde and the javascript in this mod and the select box are both client side. ASP can write client side Javascript the same way it does HTML.

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

Snitz Exchange | Mod Resource
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 16 January 2002 :  19:20:13  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Visual InterDev didn't like it when I added the code but it works fine. At least 1.1 does. I haven't had the chance to install 1.2.

@tomic

Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 17 January 2002 :  04:51:07  Show Profile  Visit Azaniah's Homepage
Nathan,

I'm just confusing myself, looking at your code you had something like..


<SCRIPT language="JavaScript">
<!--
function something()
{
something something
}
<% asp something%>
//-->
</SCRIPT>


but at Huw pointed out to me elsewhere that is the whole point of ASP.

(Hey I'm still learning)

Is interDev any good?

*wondering*

Cheers Az

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

Morpheus73
Average Member

Denmark
597 Posts

Posted - 17 January 2002 :  05:18:06  Show Profile
I´m thinking of a button (for admin/mopderators only) that if clicked opens a pop up where you
1. in a textfield can type <% INCLUDEFILE:inc_news.asp %>
2. click button insert and it passes e.g. <TABLE WIDTH="100" BORDER="1"><% INCLUDEFILE:inc_news.asp %></TABLE> to the field

? would this be possible? - I know you can just let admin moderators have SOURCE=ON, but I´d rather like to do it from a pop_up




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

Nathan
Help Moderator

USA
7664 Posts

Posted - 17 January 2002 :  09:46:14  Show Profile  Visit Nathan's Homepage
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
Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 17 January 2002 :  13:20:54  Show Profile
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




What about when people read the topic?, would the fileinclude work then or is it only when posting it wouldn´t work?

how about other code bits like <% DIsplayContens %> - could you insert this? - If it messes up the RTE look maybe, like Dreamweaver we could have a small GIF representing code with <% %> tags when posting.

maybe if you took the include file´s, copied them and made them subs/functions, like e.g.

1. you make an addition to inc_footer called INCLUDE FILE:Inc_files_as_SUBS/FUnctions.asp
2. you make a file where all the the code from inc_calendar_small.asp is inserted to as a sub/function.
3. users pass <% call sub/function inc_caledar %>
4. mini calendar shows up in RTE or at least in topic after posting?

possible?

- would be a cool feature because then you could insert many of the mods small "frontpage versions" like calendar, DisplayCOntent, Who´s online a.s.o. to a topic - would be great for the grand CMS scheme so many users use Snitz for

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

@tomic
Senior Member

USA
1790 Posts

Posted - 17 January 2002 :  13:25:48  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
Here's something about dynamic includes:

http://www.4guysfromrolla.com/webtech/080199-1.3.shtml

@tomic

Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 17 January 2002 :  13:44:09  Show Profile
What do you guys think? wouldn´t it be cool to be able to post all sorts of local content and functionalities to a topic? - take par example the display content mod - Using it, you have already included it´s funtions to inc_functions - if we could then have a pop_up to rte where you enter the variables for it to work with and then parse it back to rte with <% display content 1,2,rest of chosen variable %>

would be net I think

but how about the sub/funtion model? where we make an include generating the mods as different subs and parse call functions instead?

- And if we can´t get them to show up in rte, they´s still work when people view the topic? right? - so if we could hide them in RTE, and maybe put a small tag in the table they´re in (GIF maybe?) the system would still work for viewers of topics?

Edited by - morpheus73 on 17 January 2002 13:51:21
Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 17 January 2002 :  17:01:38  Show Profile
I found this little scripts that will allow javascript to handle request.querystring with multiple options - maybe a good idea when you take on upload picture/fileupload for RTE?

http://homepage.ntlworld.com/au/request.html

Morpheus73 - Troelsr@msn.com

Edited by - morpheus73 on 17 January 2002 17:02:33
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 17 January 2002 :  19:59:15  Show Profile  Visit Nathan's Homepage
You cannot post serverside scipt with the editor.

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

Snitz Exchange | Mod Resource
Go to Top of Page

Morpheus73
Average Member

Denmark
597 Posts

Posted - 18 January 2002 :  02:53:49  Show Profile
So that means you can not have a pop_up insert the <% %> tags in the editor?

shame

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