Author |
Topic |
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 21 January 2002 : 10:07:29
|
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
|
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 |
|
|
Fuzion
Junior Member
162 Posts |
Posted - 21 January 2002 : 12:12:03
|
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.
|
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 21 January 2002 : 12:17:29
|
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 |
|
|
Fuzion
Junior Member
162 Posts |
Posted - 21 January 2002 : 12:26:14
|
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 |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 21 January 2002 : 12:26:54
|
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. |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 21 January 2002 : 12:33:41
|
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. |
|
|
Fuzion
Junior Member
162 Posts |
Posted - 21 January 2002 : 12:36:48
|
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 |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 21 January 2002 : 12:47:46
|
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. |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 21 January 2002 : 13:00:09
|
Fixes made - see first posting.
Cheers Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
Fuzion
Junior Member
162 Posts |
Posted - 21 January 2002 : 13:07:04
|
Ok i made all the necessary changes. Thing is it still doesnt delete the content from portal_content.asp.
|
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 21 January 2002 : 17:29:49
|
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. |
|
|
Fuzion
Junior Member
162 Posts |
Posted - 21 January 2002 : 17:38:23
|
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 |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 21 January 2002 : 17:54:33
|
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. |
|
|
Fuzion
Junior Member
162 Posts |
Posted - 21 January 2002 : 19:00:34
|
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?
|
|
|
koerhuis
Starting Member
Netherlands
7 Posts |
Posted - 22 January 2002 : 03:34:58
|
Am i wrong, or is the portal_content.asp not in the zip-file?
Greetings,
Bas
|
|
|
Topic |
|