static page plugin

Creating and modifying plugins.
veggie2u
Regular
Posts: 12
Joined: Fri Jan 07, 2005 7:44 pm
Location: Minneapolis
Contact:

Post by veggie2u »

Ok, I just installed 0.7.1. Very nice upgrade process by the way. Anyway, still no go. There must be something goofy with either my php install, or persmissions somewhere in the file system. Any ideas?

veggie2u
Guest

Post by Guest »

Veggie,

I had what may be the same problem, but I found this to be the issue: I had renamed the directory the plugin was in. It was romulus_event_staticpage, and I changed it to serendipity_event_staticpage.. I had the blank page. When I kept it as romulus_event_staticpage, it worked like a charm.

And I assume when you say blank page, you mean that the content you made was blank, but it still looked like a page from your blog.

--Arius
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Veggie, I just committed version 1.5 of the plugin to CVS and fixed issues so that it works again with 0.7.1.

Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
veggie2u
Regular
Posts: 12
Joined: Fri Jan 07, 2005 7:44 pm
Location: Minneapolis
Contact:

Post by veggie2u »

I am a little confused as to what is going on with cvs, or at least viewcvs. When I go to this link:
http://cvs.sourceforge.net/viewcvs.py/p ... taticpage/
I see that the last version in cvs is 1.3. When I view the code there, I see at the top this:

Code: Select all

# $Id: serendipity_event_staticpage.php, v0.3 2004/10/16
# (c) by Marco Rinck aka romulus, http://www.romulus23.de, licensed under BSD license, see http://www.fsf.org/licenses/info/BSD_3Clause.html
This is where I got the 0.3 version number before. I guess I had mistakenly thought that this version was being updated by CVS.

Am I in the wrong place to look for the 1.5 version?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Veggie, there are 2 version numbers: The CVS ID ('0.3') does have nothing to do with the reported version number inside the plugin ('0.4' previously).

So what is version 0.5 of the plugin is actually 0.4 for CVS. CVS increments the versions per every change, whereas version numbers for plugins can be specified by the author...

So the place you look for is right. But since SourceForge lags max 24 hours the file will show up there tomorrow, I think...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
veggie2u
Regular
Posts: 12
Joined: Fri Jan 07, 2005 7:44 pm
Location: Minneapolis
Contact:

Post by veggie2u »

Yippee! I suppose that the 'show()' function that was added to the .5 version was important! Thanks.

veggie2u
Guest

install problems

Post by Guest »

help.

i have 0.7.1 and whatever the lastest version of static page is.

i tried installing it as instructed but i seen to be getting the same error as a guy previously mentioned, i get 'Error: serendipity_event_staticpage' on top of my event drop down. i tried messing with the file permissions but that didnt seem to change anything. how do i fix this?

x
Guest

Post by Guest »

man im an idiot. it works.

x
Sturmkind
Regular
Posts: 35
Joined: Sun Nov 28, 2004 1:41 pm

Post by Sturmkind »

Hm at the CVS and this looks like this at my website :-(

The static pace plugin is into plugins/serendipity_events_staticpage/serendipity_event_staticpage.php

cheers
Sascha
REALITY.SYS corrupted! reboot universe [Y,n]?

» http://saschamorr.de
Rembrandt
Regular
Posts: 71
Joined: Mon Dec 20, 2004 5:10 pm
Location: Germany
Contact:

Post by Rembrandt »

@garvin
With the new 1.4 cvs-version I get the page displayed twice. Maybe the error is in version_compare (line 169):
I think you should compare against 0.7 instead of 0.8, because I don't know how PHP handles version numbers like 0.8-alpha9 (is it greater or smaller than 0.8 *g*)
Just an idea, but if i changed the code to 'version_compare($serendipity['version'],'0.7','<=');' it works for me.

so long...
Rembrandt

PS: Using s9y 0.8-alpha9
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Thanks a lot for reporting the two bugs; I just fixed them in CVS as recommended!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Sturmkind
Regular
Posts: 35
Joined: Sun Nov 28, 2004 1:41 pm

Post by Sturmkind »

Don't work at my s9y 7.1 installation. I use the version 1.5 of StaticPage.

There are some screenshots of the problem:

Screenshot 1
Screenshot 2
Screenshot 3
Screenshot 4

I don't know what's going wrong :(

cheers
Sascha
REALITY.SYS corrupted! reboot universe [Y,n]?

» http://saschamorr.de
Rembrandt
Regular
Posts: 71
Joined: Mon Dec 20, 2004 5:10 pm
Location: Germany
Contact:

Post by Rembrandt »

Please change the Line 151 in the plugin source from:

Code: Select all

if (version_compare($serendipity['version'], '0.7', '<='))
to

Code: Select all

if (version_compare($serendipity['version'], '0.7.1', '<='))
and try it again.

so long...
Rembrandt
Sturmkind
Regular
Posts: 35
Joined: Sun Nov 28, 2004 1:41 pm

Post by Sturmkind »

Yes this works fine! :-) Thank you for help Rembrandt!

cheers
Sascha
REALITY.SYS corrupted! reboot universe [Y,n]?

» http://saschamorr.de
Guest

Post by Guest »

is there anyway to include php code on a static page?

i want to create a static page with a php created photo gallery.

thanks,

x
Post Reply