Author |
Topic  |
DarrenLuxton
Junior Member
 
184 Posts |
Posted - 08 October 2002 : 18:28:38
|
I'm running 3.4 with the latest events and Private Messaging mod I'm looking for help to let me display the following
1. the Small Calender Table with recent events below
2. A Small table that lets the user know if they have any Private Messages.
To give you a better idea, i'm building a site ready to go live in a few months, and i've created an ASP page outside the forums http://www.shadowknights.com/skforum/home.asp as you can see, i have 3 columns, i would like to display the Calender in the left column, and Private Messaging on the Right Column
Has anyone achieved this, or point me in the right direction.
Thanks in advance. |
|
padawan
Junior Member
 
200 Posts |
Posted - 08 October 2002 : 19:30:54
|
quote: Originally posted by DarrenLuxton
I'm running 3.4 with the latest events and Private Messaging mod I'm looking for help to let me display the following
1. the Small Calender Table with recent events below
2. A Small table that lets the user know if they have any Private Messages.
To give you a better idea, i'm building a site ready to go live in a few months, and i've created an ASP page outside the forums http://www.shadowknights.com/skforum/home.asp as you can see, i have 3 columns, i would like to display the Calender in the left column, and Private Messaging on the Right Column
Has anyone achieved this, or point me in the right direction.
Thanks in advance.
Mr. Darren,
I like the way your home page looks. Would you mind if I see the codes for your main page? I'm trying the same thing on mine...
'preciate all the input.
- padawan |
"...be mindful of the SnitzForce..." |
Edited by - padawan on 08 October 2002 19:31:58 |
 |
|
alex042
Average Member
  
USA
631 Posts |
Posted - 08 October 2002 : 20:20:41
|
I'm working on something similar myself. The application variables are a little tricky though. You may have to hard code the cookie path in the config.asp file for those MOD's variables for them to work outside of the forum directory. I think I've finally got some MODs to work on my forum outside of the forum directory using this method. Once you get this accomplished, you should just be able to include the appropriate files in the page you want.. you may have to relink some things also.
|
 |
|
@tomic
Senior Member
   
USA
1790 Posts |
Posted - 08 October 2002 : 21:18:55
|
quote: I'm working on something similar myself. The application variables are a little tricky though. You may have to hard code the cookie path in the config.asp file for those MOD's variables for them to work outside of the forum directory. I think I've finally got some MODs to work on my forum outside of the forum directory using this method. Once you get this accomplished, you should just be able to include the appropriate files in the page you want.. you may have to relink some things also.
Whoaaaaaaaa. It's much simpler than all that. Just make sure you have the necessary includes and make them look like this when used outside your forum directory:
<!--#include virtual="forum/config.asp" -->
Config is a key include but one of several you are bound to need.
You also need to set your cookies to "Website" rather than "Forum"
Links, all the links(I do mean all) need to have & strForumURL & added to them. This means in your inc_header.asp, in the calendar, The PM checker(Don't know why you dont use the one I included in thr ZIP.It's made to work outside the forum but if you want to build another one just make sure the links have ForumURL) and basically any forum related link needs to have ForumURL or you will see more 404 pages than you can shake a stick at.
@tomic
|
SportsBettingAcumen.com |
 |
|
alex042
Average Member
  
USA
631 Posts |
Posted - 08 October 2002 : 22:05:28
|
quote: <!--#include virtual="forum/config.asp" -->
Is there a difference between using virtual vs file? I have my includes setup as well as my cookies set to website and I still get application variable problems. I even moved my config.asp to my root directory hoping that the application variables would all fall under some subdirectory of the root. The links were fairly easy compared to getting the application variables to work.
For example, with private messages, the application variables wouldnt stick until I hardcoded the cookie for those variables in config.asp then it seemed to work fine. The hover color MOD, which uses application variables, isn't working in that directory or in the calendar directory, but it is working in the photogallery directory which is parallel to the private messages and calendar directories. Some application variables stick in some directories and not others.
|
Edited by - alex042 on 08 October 2002 22:27:49 |
 |
|
@tomic
Senior Member
   
USA
1790 Posts |
Posted - 08 October 2002 : 22:38:01
|
quote: virtual gives a virtual path to a document on the server. A normal file or another parsed document may be accessed using this tag. Please note that the path of this file name should be the URL of the file, with the domain name removed, and the userid added. For instance, if the URL of a file is "http://www.your-domain.com/products/footer.txt" and your userid is "userid" then the path to use with this include directive would be: "/userid/products/footer.txt" Example: <!--#include virtual="/virtual_sample.txt"-->
This is a sample text file. It was included in this file by the include virtual tag: <!--#include virtual="/webcom/virtual_sample.txt"-->.
This paragraph includes a hotlink, and tags such as bold and emphasis.
file gives a pathname relative to the current directory. ../ cannot be used in this pathname, nor can absolute paths be used. (If you need to refer to a file in a higher directory, you might consider using virtual described above.) As above, you can send other parsed documents. Example: <!--#include file="sample.txt"-->
No, believe me /forum/filetoinclude.asp will not work. It must be forum/filetoinclude.asp
I have a feeling if you include config.asp like forum/config.asp AND you have the other necessary includes you will start to see your problems disappear.
@tomic |
SportsBettingAcumen.com |
 |
|
alex042
Average Member
  
USA
631 Posts |
Posted - 08 October 2002 : 22:51:27
|
quote: No, believe me /forum/filetoinclude.asp will not work. It must be forum/filetoinclude.asp
Interestingly, I seem to be getting different results. It's not allowing me to use "/forum/file.asp", but it is allowing me to use "../forum/file.asp" which is how I had many of my includes setup. Now that I think about it though, things would be easier to move around by using virtual as long as the server supports it. My host does, but some may not, just like my host supports "../" while others don't. One of the limitations with using "../" was that I had to bury everything at the exact same level deep in the parellel directory structure or it wouldn't find the pieces. I've changed many of my includes that were using "../" to virtual paths and so far, I'm having the same application variable problems.
|
 |
|
@tomic
Senior Member
   
USA
1790 Posts |
Posted - 08 October 2002 : 22:57:45
|
Have you clicked on "Check Installation" in the admin section? What sort of server are you on anyway? Sorry if I already asked that but I can't remember them all. You might just need a server reboot.
One thing I recall about using a relative path in includes is that it's a security issue and that's why so many hosts don't allow it.
Are you including inc_header.asp in this mix?
@tomic |
SportsBettingAcumen.com |
Edited by - @tomic on 08 October 2002 22:58:53 |
 |
|
@tomic
Senior Member
   
USA
1790 Posts |
Posted - 08 October 2002 : 23:01:00
|
Oh, and one other thing...the only thing that resets my application variables on an NT server is a reboot. At work that can be annoying unless I am going to hang around till after hours and that's no help at all if I need my variables refreshed NOW!
@tomic |
SportsBettingAcumen.com |
 |
|
alex042
Average Member
  
USA
631 Posts |
Posted - 08 October 2002 : 23:11:26
|
quote: Have you clicked on "Check Installation" in the admin section? What sort of server are you on anyway?
I've clicked on that link repeatedly.. ok, maybe a few times. I'm on ReadyHosting servers which are running IIS5.
quote: One thing I recall about using a relative path in includes is that it's a security issue and that's why so many hosts don't allow it. Are you including inc_header.asp in this mix?
Evidentally, they're not that worried about relative paths as much as some others. And yes, inc_header is in most of the pages. I have also installed Universal Login as well as the Site Integration MOD which both affect inc_header.
|
 |
|
DarrenLuxton
Junior Member
 
184 Posts |
Posted - 09 October 2002 : 05:21:28
|
Whaoh!
lol :)
I finally get to work, and all these messages :)
To start off with, Padawan, it's @tomic who i should thank for the page layout.
If you download and install the Content Display Mod, it allows you to cusomize a page outside the forums. All i did, was create a basic 3 column table, put all my includes in, then followed the instructions( with a little Help from @tomic) to create the news and last topics. Oh, and the side login box is also a mod called universal login.
All i need now are my Events Calender Box, and my PM box, and i'll be happy :)
Thanks again guys. |
 |
|
@tomic
Senior Member
   
USA
1790 Posts |
Posted - 09 October 2002 : 07:40:06
|
Check the PM Zip. I placed some code in there for PMs outside the forum.
@tomic |
SportsBettingAcumen.com |
 |
|
@tomic
Senior Member
   
USA
1790 Posts |
Posted - 09 October 2002 : 07:52:20
|
I take that back. I looked through the ZIP and it's not there. I will try to get something put in there tomorrow or later today that does this.
@tomic |
SportsBettingAcumen.com |
 |
|
DarrenLuxton
Junior Member
 
184 Posts |
Posted - 09 October 2002 : 07:57:36
|
Thanks @tomic
BTW, my email's down at the mo, so if you do mail me anythign, can you mail it to redeagle@shadowknights.com please.
Thanks in advance. |
 |
|
@tomic
Senior Member
   
USA
1790 Posts |
|
DarrenLuxton
Junior Member
 
184 Posts |
Posted - 09 October 2002 : 14:42:18
|
Man that sucks, i hate it when my dsl dies.
i had to put up with a whole weekend without dsl once,
Man that was so scary, never never never again. |
 |
|
Topic  |
|