Page 2 of 3
Re: About to uninstall Serendipity
Posted: Wed Mar 18, 2009 7:19 pm
by Don Chambers
Trevor... let's take this one step at a time.
What is the url to your site?
I have no intention of downloading an unknown script.. so what exactly does that script do, and how/where does it need to be integrated into your site?
Re: About to uninstall Serendipity
Posted: Wed Mar 18, 2009 7:26 pm
by RedBaron
Don - PM sent
Trevor
Re: About to uninstall Serendipity
Posted: Wed Mar 18, 2009 8:03 pm
by RedBaron
Agree with the "one step at a time" approach
Can you see this page:
http://fuzzyfm.com/serendipity/
if so: Step 1 complete - just a basic "install"
What I want to do:
I have a radio station broadcasting through a shoutcast server (not this one) .. thats all working fine ...
The webpage I am going to set up on my FuzzyFM domain will be the "frontend" for this station.
I will put links for listeners to "play" the station via various media players, a couple of widgets from last.fm (last played tracks etc) & a shout box ..
Also, I have a song requester plugin which is also working. (oddly enough this is served up locally on my PC through a winamp DSP)
These are all working on my old blogger page here:
http://fuzzyradiouk.blogspot.com/
The bit I "cant" do is putting the PHP script for "online" or "offline" (the script I pointed to in my post). Blogger does not support PHP.
It just needs to be discretely placed somewhere near the top of the page, and not just in plain text, but bold and bright if the station is online ...
I am thinking that the default templates in Serendipity aren't exactly customisable - particularly as everything ends up in the sidebar - I want fixed content in the main area (see blogger page above)
Trevor
Re: About to uninstall Serendipity
Posted: Wed Mar 18, 2009 8:22 pm
by Don Chambers
Yes, step 1 is complete!
Using php within entries is considered very dangerous, so it is not permitted DIRECTLY by serendipity.... but there are ways around that.
If the objective is to place php within an entry, you can use the smarty markup plugin, which would allow you to place any php within an entry, between two smarty tags, such as {php}your code here{/php}. For this method to work, smarty security has to be turned off. That is accomplished through a file, in your template folder, named config.inc.php:
Code: Select all
<?php
$serendipity['smarty']->security = false;
However, lets assume for a minute that you do not want this code emitted via an entry, but rather "statically". Lets assume you have a file named trevor.php which you want to emit at the top of every page. Most newer templates have a file named index.tpl, which is responsible for the overall page content of every page.
That file can be edited to include a call to a php file, like this (again, security must be turned off):
Code: Select all
{include_php file="/path/to/trevor.php"}
The final choice is to take that php code, and incorporate it directly into config.inc.php so that it can be called as a function from any tpl (smarty template) file.
Templates are VERY customizable... it just takes a bit of experience and patience to understand the process.
So, how would you like to proceed to the next step?
Re: About to uninstall Serendipity
Posted: Wed Mar 18, 2009 8:36 pm
by RedBaron
Wow ... lots to take in.
OK - well I'm just FTP'ing the latest Serendipity file updates over ...
I would like the PHP to emit statically - and the last option looks the best as it will be embedded in the template. I like the sound of the last option - being able to call it from any template....
Trevor
Re: About to uninstall Serendipity
Posted: Wed Mar 18, 2009 8:43 pm
by Don Chambers
RedBaron wrote:I like the sound of the last option - being able to call it from any template....
That works with the second option as well.
Re: About to uninstall Serendipity
Posted: Wed Mar 18, 2009 10:26 pm
by RedBaron
OK.
Well if you can talk me through the process of embedding the PHP code, and the syntax to call it from the 'smarty' PHP interface (I have no idea what I'm saying here ...LOL)
.. then I'm sure as a "quick learner" I will have enough info to be confident enough to go ahead and customize the template files further to get the right "look" and "feel" and, of course, the all-important functionality ....
"You have much to learn grasshopper .."
Trevor
Re: About to uninstall Serendipity
Posted: Wed Mar 18, 2009 10:32 pm
by RedBaron
OOPs....
Well the FTP transfer went OK ... but
/var/www/vhosts/fuzzyfm.com/httpdocs/serendipity/ Not writable
/var/www/vhosts/fuzzyfm.com/httpdocs/serendipity/templates_c Writable
/var/www/vhosts/fuzzyfm.com/httpdocs/serendipity/uploads/ Writable
The first line of this is in RED and updating my Serendipity installation was terminated. (Bottom 2 lines in GREEN - OK)
The following items were in YELLOW (Warning)
plugins/serendipity_plugin_remoterss/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_event_spartacus/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_event_spamblock/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_event_bbcode/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_event_nl2br/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_event_karma/UTF-8/lang_pt_PT.inc.php corrupt or modified: failed verification
plugins/serendipity_event_karma/lang_pl.inc.php corrupt or modified: failed verification
plugins/serendipity_event_templatechooser/lang_pl.inc.php corrupt or modified: failed verification
include/db/postgres.inc.php corrupt or modified: failed verification
include/admin/importers/pivot.inc.php corrupt or modified: failed verification
bundled-libs/Smarty/libs/plugins/compiler.assign.php corrupt or modified: failed verification
bundled-libs/Text/Wiki/Render/Xhtml/Url.php corrupt or modified: failed verification
bundled-libs/Text/Wiki/Rule/wikilink.php corrupt or modified: failed verification
bundled-libs/Text/Wiki/Parse/Default/Wikilink.php corrupt or modified: failed verification
DO I have to find all these files and re-upload them? Ouch! (in advance)
*sniff*
I'm going to try and get this pen in my eye ...
Re: About to uninstall Serendipity
Posted: Wed Mar 18, 2009 10:34 pm
by RedBaron
forgot to add the following statement:
Permissions can be set by running shell command: `chmod 1777` on the failed directory, or by setting this using an FTP program
Can anyone help with this?
Trevor
Re: About to uninstall Serendipity
Posted: Wed Mar 18, 2009 10:39 pm
by Don Chambers
Because your original installation was made through your host's cpanel, and not by your own ftp transfer, the files/folders you referenced do not appear to have the correct permissions. Only you, your provider, or anyone with FTP access can modify those permissions.
The files that indicate verification difficulties may be due to problems incurred during your ftp upgrade. They are pretty easy to locate and re-upload since the path is provided in the error message.
Re: About to uninstall Serendipity
Posted: Wed Mar 18, 2009 10:53 pm
by RedBaron
Ok so far.
I do have permission, I just have no idea how to run the shell command specified on the non-writable directory....
Thx for all your help today - I'm feeling a little guilty keep on asking dumb questions. Feel free to enter your own expletives ...
Trevor
Re: About to uninstall Serendipity
Posted: Wed Mar 18, 2009 11:59 pm
by Don Chambers
The only "dumb question" is the one not asked!!
You are now upgraded to 1.4.1. Do you have a specific template you wish to use, or do you intend to start the ball rolling with the default template?
BTW, I want to make sure one thing is clear. Earlier, you said this:
I like the sound of the last option - being able to call it from any template....
That was a response to this:
The final choice is to take that php code, and incorporate it directly into config.inc.php so that it can be called as a function from any tpl (smarty template) file.
When you select a "template" or "theme", we are referring to the overall look of the site. That is accomplished through a combination of stylesheets (*.css) and smarty templates (*.tpl).
Whatever changes we need to make to get this to work for you will be THEME specific.... this is why it would be helpful for you to start a template you like. Odds are, the same concepts can be carried forward to another template (theme) if you decide to change.
Re: About to uninstall Serendipity
Posted: Thu Mar 19, 2009 12:42 am
by RedBaron
Good work Don - I owe you.
I like the look of that Bulletproof one! Can we start there
Hoping theres a column for the left (though its not immediately apparent)
Also: I would really like the Domain to open up the blog directly
I'm guessing I will need to migrate the Serendipity folder to the root httpdocs for the address
www.fuzzyfm.com to bring the page up directly?
Re: About to uninstall Serendipity
Posted: Thu Mar 19, 2009 12:58 am
by Don Chambers
RedBaron wrote:Also: I would really like the Domain to open up the blog directly
I'm guessing I will need to migrate the Serendipity folder to the root httpdocs for the address
http://www.fuzzyfm.com to bring the page up directly?
That would be ideal, but you could also redirect the root domain to the /serendipity/ folder.... however, if the main content is to be serendipity, then the best scenario is if it exists in the document root.
Re: About to uninstall Serendipity
Posted: Thu Mar 19, 2009 2:50 pm
by judebert
Don Chambers wrote:RedBaron wrote:Also: I would really like the Domain to open up the blog directly
I'm guessing I will need to migrate the Serendipity folder to the root httpdocs for the address
http://www.fuzzyfm.com to bring the page up directly?
That would be ideal, but you could also redirect the root domain to the /serendipity/ folder.... however, if the main content is to be serendipity, then the best scenario is if it exists in the document root.
Just one caution there: if you intend to ever run any other PHP application on your website -- a picture gallery, a bulletin board, a forum, anything -- then install Serendipity in its own directory. Serendipity takes over its directory and all its subdirectories without exception; you can't install phpBB in a Serendipity subdirectory, for instance.
I personally like redirecting the root domain. I usually do that through a .htaccess file. When people type in "
http://www.fuzzyfm.com", your Serendipity page will be automatically displayed, but the URL in the browser's location field will show "
http://www.fuzzyfm.com/blog/" (or whatever directory you decided to put it in).