Portal Mod 1.1 - نوشته شده در (17520 Views)
Senior Member
DavidRhodes
مطلب: 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<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Junior Member
aspwiz
مطلب: 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!<
نوشته شده در
Senior Member
DavidRhodes
مطلب: 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<
نوشته شده در
Starting Member
squad23
مطلب: 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 ?<
نوشته شده در
Senior Member
DavidRhodes
مطلب: 1222
1222
Go to CMS Configuration in admin options and set some content for the Default Article<
نوشته شده در
Starting Member
squad23
مطلب: 40
40
Thats the weird thing
I did that

Everytime i go there the fields are blank<
نوشته شده در
Senior Member
DavidRhodes
مطلب: 1222
1222
have you added the required code to config.asp?<
نوشته شده در
Starting Member
squad23
مطلب: 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 ). <
نوشته شده در
Average Member
Faizan
مطلب: 592
592
This is very nice David. Thankyou for that... smile

<
نوشته شده در
Senior Member
DavidRhodes
مطلب: 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"<
نوشته شده در
Starting Member
squad23
مطلب: 40
40
no all the fields are blank when i return.<
شما باید یک متن وارد کنید