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)
 Portal Options V1.2
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 21 January 2002 :  10:07:29  Show Profile  Visit Azaniah's Homepage
This is pretty rough code.

It allows you a user to select what the want to see on the portal content page.

Download here http://www.freeaspcode.net/snitz/details.asp?id=64

Cheers Az

Fixes made and zip file amended.

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

Edited by - azaniah on 21 January 2002 12:54:36

Edited by - azaniah on 22 January 2002 08:05:32

Fuzion
Junior Member

162 Posts

Posted - 21 January 2002 :  11:57:22  Show Profile
Problem 1: Everything works fine except when i delete content, it deletes and takes me back to portal_content.asp but problem is that the Members In The Spotlight window is still there. But when i go to portal_options.asp it shows that the MEMBERS IN THE SPOTLIGHT table is OFF. Dont know whats wrong there.



Edited by - fuzion on 21 January 2002 12:00:22

Edited by - fuzion on 21 January 2002 12:12:37
Go to Top of Page

Fuzion
Junior Member

162 Posts

Posted - 21 January 2002 :  12:12:03  Show Profile
Also I dont know what inc_sytools.asp
is but i get the following error when I run it.


Request object error 'ASP 0102 : 80004005'

Expecting string input

/content/inc_sytools.asp, line 59

The function expects a string as input.


Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 21 January 2002 :  12:17:29  Show Profile  Visit Azaniah's Homepage
Don't run inc_sytools.asp

Just add it as another include in the portal_content.asp.

You can see how I did that in my file that I attached. It's just another include that allows you to seach dictionary, theosaurus, etc..

As for the update not working, can you tell me what is entered in the M_CONTENT field for the user you are testing with?

What ever is in that field eg --> ;menu;poll;birthdate will be what you do not want to see.

So long as you have added ALL the entries into the portal_content.asp you should be ok.

Thanks Az



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

Edited by - azaniah on 21 January 2002 12:20:15
Go to Top of Page

Fuzion
Junior Member

162 Posts

Posted - 21 January 2002 :  12:26:14  Show Profile
Its not just the MEMBERS IN THE SPOTLIGHT table thats not going away. Its everything. The websearch one doesnt work either. Check it out here. Login as Admin/Admin and try closing the Spotlight or Wesearch table. http://www.shell.123hostnow.com/content/portal_content.asp

Oh and you didnt include a portal_content.asp in your zip.



Edited by - fuzion on 21 January 2002 12:30:59
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 21 January 2002 :  12:26:54  Show Profile  Visit Azaniah's Homepage
One addition

in my.asp, add the code in red about line 93


<img src="<%=strImageURL%>icon_bar.gif" border="0"><img src="<%=strImageURL%>icon_folder.gif"> <a href="search.asp">Search</a><br>
<% '########## Portal Options ########## Add one line below
<img src="<%=strImageURL%>icon_bar.gif" border="0"><img src="<%=strImageURL%>icon_folder.gif"> <a href="portal_options.asp">Portal Content</a><br>



Cheers 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 - 21 January 2002 :  12:33:41  Show Profile  Visit Azaniah's Homepage
ok, this won't work if you are not logged in as a member.

I will have to amend that. Does it work if you are logged in?

Cheers Az

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

Fuzion
Junior Member

162 Posts

Posted - 21 January 2002 :  12:36:48  Show Profile
Yea i found that out the hard way Azaniah. It gives you an error if your not logged in. But if you are it works and everything, but the table doesnt disappear from portal_content.asp. Try logging in as Admin/Admin and test it out while logged in.

Edited by - fuzion on 21 January 2002 12:48:04
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 21 January 2002 :  12:47:46  Show Profile  Visit Azaniah's Homepage
ok to fix the non member thing..

For each entry you made in the include files (ie inc_websearch etc)

change them all from this..



<% '########## Portal Options ########## - 1 Line added below %>
<td align="right" valign="top"><a href="javascript:openWindow('pop_portal_options.asp?app=websearch&mode=change')"><img src="<%= strImageURL %>icon_close.gif" border="0"></a>


to this


<% '########## Portal Options ########## - 1 Line added below %>
<% if strUserMemberID > 0 then %>
<td align="right" valign="top"><a href="javascript:openWindow('pop_portal_options.asp?app=websearch&mode=change')"><img src="<%= strImageURL %>icon_close.gif" border="0"></a>
<% end if %>


That is an example. You will still need to use the SAME middle line (ie just add the if strUserMemberID > 0 then, .. and the end if lines.

Cheers 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 - 21 January 2002 :  13:00:09  Show Profile  Visit Azaniah's Homepage
Fixes made - see first posting.

Cheers Az

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

Fuzion
Junior Member

162 Posts

Posted - 21 January 2002 :  13:07:04  Show Profile
Ok i made all the necessary changes. Thing is it still doesnt delete the content from portal_content.asp.

Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 21 January 2002 :  17:29:49  Show Profile  Visit Azaniah's Homepage
It seems that it's not writing the string to the M_CONTENT field correctly.

Do you have access to the DB directly? Can you tell me what the string in that field is for Admin?

Thanks Az

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

Fuzion
Junior Member

162 Posts

Posted - 21 January 2002 :  17:38:23  Show Profile
Sorry Azaniah. I cant open the DB. Login to the website with the username and pass Admin, and try closing the websearch or Members in the spotlight table. Hey did you check your DBS_portal_options file to see if everything is ok in there?

Edited by - fuzion on 21 January 2002 17:46:42
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 21 January 2002 :  17:54:33  Show Profile  Visit Azaniah's Homepage
Yep,

I always delete the fields and re-run to make sure they work.

Hmmm...

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

Fuzion
Junior Member

162 Posts

Posted - 21 January 2002 :  19:00:34  Show Profile
How about I just send you my DB and you open it up and take a look at it? could i have your email addy? and do you have AIM or yahoo where we can chat one on one?

Go to Top of Page

koerhuis
Starting Member

Netherlands
7 Posts

Posted - 22 January 2002 :  03:34:58  Show Profile
Am i wrong, or is the portal_content.asp not in the zip-file?

Greetings,

Bas

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.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07