Portal Mod 1.1 - Posted (17516 Views)
Senior Member
DavidRhodes
Posts: 1222
1222
Following on from v1.0
Additions Login
Google Search
Active Topics

Changes Topics in left/right columns are now ordered by last date edited decending

To upgrade from v1.0 replace admin_config_cms.asp
replace portal.asp
re-do changes to config.asp

Download here<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Junior Member
aspwiz
Posts: 250
250
Nice touches David!!
Thanks.
As a little MOD to this MOD, I have put just before the main() function:-
Code:
Dim TheCat, TheTitle
TheCat = CInt(Request.QueryString("CategoryID"))
Just after this code in the DisplayCategories Function:-
Code:
call StartTable(Width, rsCatList.Fields("CAT_TITLE").Value)
I have put this:-
Code:
If lCategoryID = TheCat then TheTitle = rsCatList.Fields("CAT_TITLE").Value
And within the DisplayContentItem, I changed to use this code:-
Code:
  Response.Write formatStr(rsContent.Fields("CONT_BODY").Value) &"<br /><br />"& vbCrLf
Response.write "<a href=""portal.asp?CategoryID=" & TheCat & """>More " & TheTitle & " Articles</a><BR><BR>"
Response.write "Author: <a href=""pop_profile.asp?mode=display&id="& rsContent.Fields("CONT_AUTHOR").Value & """>"& getMemberName(rsContent.Fields("CONT_AUTHOR").Value) & "</a><br />" &_
"Posted: "& ChkDate(rsContent.Fields("CONT_DATE").Value, "</b>" ,true) &vbCrLf
Now at the foot of each article, I get this:-
More [category_name] Articles

This obviously links to more articles in the same category.
Just wondered if you would consider including that in the MOD!<
Posted
Senior Member
DavidRhodes
Posts: 1222
1222
Rob, that was meant to be in this, must have forgot it somewhere along the way blush
I'll get together a few more suggestions before making another release<
Posted
Starting Member
squad23
Posts: 40
40
Hi

i have a problem:

I installed the mod and added some content etc.
But i get an error sad
Error
You must set a value for 'Homepage Content' in 'CMS Configuration'

I'm new to this stuff so maybe this is some stupid fault of mine
but can you help me ?<
Posted
Senior Member
DavidRhodes
Posts: 1222
1222
Go to CMS Configuration in admin options and set some content for the Default Article<
Posted
Starting Member
squad23
Posts: 40
40
Thats the weird thing
I did that

Everytime i go there the fields are blank<
Posted
Senior Member
DavidRhodes
Posts: 1222
1222
have you added the required code to config.asp?<
Posted
Starting Member
squad23
Posts: 40
40
Yes i did

but when i do the database setup there does not stand tables allready exists (if i do it for the second time ). <
Posted
Average Member
Faizan
Posts: 592
592
This is very nice David. Thankyou for that... smile

<
Posted
Senior Member
DavidRhodes
Posts: 1222
1222
Originally posted by squad23
Yes i did

but when i do the database setup there does not stand tables allready exists (if i do it for the second time ).


Are any of the other values saving, eg. "Page Title" in "CMS Configuration"<
Posted
Starting Member
squad23
Posts: 40
40
no all the fields are blank when i return.<
You Must enter a message