News template

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
User avatar
heliotrope
Posts: 33
Joined: Fri 14. Sep 2007, 15:21

Re: News template

Post by heliotrope »

Hi all !
I've just been installing 1.3.9 version (213)...
This News CP seems great !
BUT .. impossible for me to get it work properly..
in fact, I insert a jpeg Image but it never appears in frontend .
I installed template+css provided by 360fusion (thanks !) But it doesn't works better........
Instead of getting the jpeg image, I get a small square ...
When I clic the thumbnail in "news detail", lightbox starts but the image doesn't appear.....

Has anyone a solution ???? Something special to do to get it work ?????
User avatar
heliotrope
Posts: 33
Joined: Fri 14. Sep 2007, 15:21

Re: News template

Post by heliotrope »

Am I alone having this problem ???
chico_html
Posts: 28
Joined: Wed 18. Oct 2006, 15:07
Location: Montevideo - Uruguay

Re: News template

Post by chico_html »

heliotrope wrote:Am I alone having this problem ???
Nope, I have the same problem. First I tried to insert an image with an absolute path, but it didn't work. Then I uploaded the image through the phpwcms file manager but when I selected it in the news editor, the image didn't appear. Neither in the frontend.

I even tried with the default template and with the one provided by 360fusion. Nothing. The content of the news is shown, but not the image.

Has anyone the slightest idea of what the problem could be?
chico_html
Posts: 28
Joined: Wed 18. Oct 2006, 15:07
Location: Montevideo - Uruguay

Re: News template

Post by chico_html »

The problem seems to be in this path:

img/cmsimage.php/168x115x0/8

this file (cmsimage.php) doesn't find the image. The complete path in the browser returns a 404 error, but if I remove the params (leaving img/cmsimage.php) it shows a blank image (leer.gif), so it's correct.

But why doesn't find the images uploaded with the filemanager?

The images are correct, because I can use it with other content parts (eg: text w/image).

I don't know... any help will be welcome.

Thanks,
Eduardo
User avatar
Oliver Georgi
Site Admin
Posts: 9906
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: News template

Post by Oliver Georgi »

if you have problems loading the image try set image src attribute to

{SITE}img/cmsimage.php/168x115x0/8
or
{SITE}img/cmsimage.php?168x115x0/8

{SITE} might be not necessary. Try with or without - the key might be the / or ? - some web servers (mainly CGI based) cannot handle this.

Another option might be to set base href in the head.


Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
chico_html
Posts: 28
Joined: Wed 18. Oct 2006, 15:07
Location: Montevideo - Uruguay

Re: News template

Post by chico_html »

Thank you very much Oliver!!

The problem was the slash; using the question mark it worked.
I hope this also solves heliotrope's problem.

Regards,
Eduardo
User avatar
Darodesign
Posts: 47
Joined: Fri 1. Aug 2008, 14:15
Location: Schweiz
Contact:

Re: News template

Post by Darodesign »

Hallo Ben

Ich habe Dein Template für die News einmal getestet. Was ich festgestellt habe, wenn ich im CP News Paginierung aktiviere und angebe dass es 5 Einträge pro Seite anzeigen soll, wird die Navigation nicht angezeigt. Auf der Seite werden alle 11 Einträge angezeigt. Ich habe es auch mit dem Standard Template getestet, auch dort werden alle 11 Einträge angezeigt. Daher bin ich nicht sicher ob das ein Fehler vom Template ist, oder vom CP News!

Kann mir da einer helfen?

Danke zum voraus
Daniel
User avatar
Oliver Georgi
Site Admin
Posts: 9906
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: News template

Post by Oliver Georgi »

Ich habe das doch schon gepostet - aktuell funktioniert die Paginierung noch nicht!

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Re: News template

Post by jsw_nz »

I too am having problems with getting the image thumbnail to render
I posted this issue elsewhere - just minutes ago
http://forum.phpwcms.org/viewtopic.php?f=1&t=17691
I have tried all the above mentioned workarounds

(1) base href
(2) {SITE}img/cmsimage.php ? data_for_image
(3) {SITE}img/cmsimage.php / data_for_image

(i am working off of my localhost - cgi fast - so am I out of luck?)
- this is such a nice cp
- would love to see the cmsimage.php work
- on my local host development environment

:(
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Re: News template

Post by jsw_nz »

Hi Ben.

I have another question - regarding your template
(first of all thnx - for the video and post)

I found the setting:
news_per_row = 2
-quite interesting

but have been unable to get it to work.....
- guessing that it is unsupported atm
- but something OliG plans to support
- would be nice

- is this the case?

all best
:)
User avatar
Oliver Georgi
Site Admin
Posts: 9906
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: News template

Post by Oliver Georgi »

news_per_row should work.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Re: News template

Post by jsw_nz »

Hi Oliver

Thanks for your reply to the two posts (in different places) on forum related to news cp

on issue 1 - CGI - Neither work -- "/" or "?" - I am running php 4.3.9 windows - fast cgi - i guess i have no luck
on issue 2 - Number per/row of news items - I have used ben's template - but been unable to get news_per_row to work.....
(any chance for you to supply an example to put into news templates folder)
- or perhaps ben can help out -

anyway i think i am missing something - feeling unlucky today
:)
User avatar
Oliver Georgi
Site Admin
Posts: 9906
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: News template

Post by Oliver Georgi »

default news template has such section:

Code: Select all

<!--NEWS_LIST_ROW_SPACE_START//-->

	<!-- space between rows of news items -->
	<hr />

<!--NEWS_LIST_ROW_SPACE_END//-->
And you should really update your PHP version on Windows. For me it sounds more like an browser or firewall blocking - cmsimage makes a redirect to the correct image - switch from / to ? must give an result. On other hand - maybe you do not have all updated files or rights or path is set wrong.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Re: News template

Post by jsw_nz »

big thanks Oli!

BOTH issues sorted now!
User avatar
heliotrope
Posts: 33
Joined: Fri 14. Sep 2007, 15:21

Re: News template

Post by heliotrope »

Hello!
I have a strange problem with this CP News ...
I 've made everything indicated (.tmpl + css )... It looks very beautiful ...Everything I expected ...
The problem : when I want to see details of one of the News in the list : just nothing happens .
The News list page just reload ....


Any solution ??

NB : I upgraded 1.3.5 (2007/10/29) to 1.3.9 r213 (2008/06/18) ...
perhaps it's a sql-update problem .....
Thanks in advance
Post Reply