Donations

Help support Pro_News and become a member of our Sponsors Group
The tip jar is at PayPal, but does not require a PayPal account
User Info
مرحبا مجهول
عضوية:
الأخير: Witewolf
جديد اليوم: 0
جديد بالأمس: 0
الكل: 151
المتصفحون الآن:
الأعضاء: 0
الزوار: 42
Bots: 2
المجموع: 44
من و أي:
الزوار:My Account
Support Forums
التحمي
Downloads
Pro News Articles
Pro News Articles
Downloads
Support Forums
Support Forums
Pro News Articles
Nedlastninger
Support Forums
Support Forums
Nedlastninger
Pro News Articles
التحمي
Pro News Articles
Depan
Descargas
Downloads
Support Forums
Pro News Articles
Support Forums
Support Forums
Support Forums
Support Forums
Support Forums
Support Forums
Pro News Articles
Support Forums
Support Forums
Pro News Articles
Pro News Articles
Support Forums
Pro News Articles
Support Forums
Pro News Articles
Pro News Articles
Pro News Articles
Support Forums
Support Forums
Nedladdningar
Bots:Google > Pro News Articles
Baidu > التحمي
فريق العمل متص:
لا أحد من فريق العمل متص
Size of layout
Size of layout
ارسل: الجمعة اغسطس 08, 2008 4:29 pm
Again, I like to start out by saying how happy I am with ProNews! ![]()
I am curious if there is a way to limit the size of the template. I realize I can set "Articles Per Headline" - and I have it as 4, the default. However, right now on my testing site I only have one article, but it still shows the full area.
I would assume a "If (articles<4)" would do the trick, but I am still a newbie php/template person and haven't got a clue where to begin to search. I realize it's not really "important" as I plan to have more articles - but I ran across this in my testing and thought it could use "improvement" ![]()
One other question, I see I can set "Truncate 1st Headline at", but it doesn't seem to effect posted articles?? Would it be possible to set that on a per article basis? For example, I have one article I'd like to show the whole "intro" to, regardless of its size.
Any ideas??
Scott
Scott please enter your server specs in your user profile!

Scott- BetaTester

- نشرات: 50
- شاركت: اكتوبر 02, 2007
Re: Size of layout
ارسل: الجمعة اغسطس 08, 2008 10:49 pm
The code for the headlines doesn't deal with the case of num arts < 4. I understand where you are coming from, but when writing code I just assumed people would have > 4 before they worried about headline displays ![]()
Per article settings goes against what I was trying to achieve with Pro_News. I wanted more features than News, but performance equal to or better. (Didn't want a situation like ForumsPro which has more features, but is too slow for very busy sites.) The number of db accesses would be too many if I had per article settings.
Truncate should be working. Is the article intro long enough to be truncated? But it does only affect headlines. There is code in there - currently not used - which applies to normal (ie. non-headline) posts, which enforces a max intro length (so if someone posts it all in Story section it still gets broken into intro and story), but I've never enabled that part - seemed too rigid/draconian.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1

layingback- Site Admin

- نشرات: 1229
- شاركت: مارس 18, 2006
Re: Size of layout
ارسل: الاثنين اغسطس 11, 2008 4:33 pm
- layingbackI just assumed people would have > 4 before they worried about headline displays
You know what they say about assuming ![]()
- layingbackPer article settings goes against what I was trying to achieve with Pro_News.
Understood!
- layingbackTruncate should be working.
I set the number higher, but doesn't seem to change where it truncates. For that matter, I just set it really low (100) and didn't change the posted article.
I have a particular article that I wanted all of intro to show on the home page.
(it's the tour dates of the band my site is about (The Who)).
I'll play with it some more, maybe I'm missing something? I'll try posting a new article with now that the number is set high (1000) and see if it changes.
Scott please enter your server specs in your user profile!

Scott- BetaTester

- نشرات: 50
- شاركت: اكتوبر 02, 2007
Re: Size of layout
ارسل: الثلاثاء نوفمبر 04, 2008 10:46 pm
Stumbled over the cause of the 1st article in Headlines display truncating at 450 chars not the value set in Config just by chance today. Fix will be in next (beta 2) release of 2.3.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3.39 - 2.2.12 / 4.4.7 - 5.1.37 / 5.3.0 / 9.2.1

layingback- Site Admin

- نشرات: 1229
- شاركت: مارس 18, 2006
لاتستطيع الرد على المواضيع في هذا المنتدى
لا تستطيع تعديل مواضيعك في هذا المنتدى
لاتستطيع الغاء مواضيعك في هذا المنتدى
لاتستطيع التصويت في هذا المنتدى
You cannot attach files in this forum
You cannot download files in this forum
جميع الاوقات تستعمل نظام GMT











