I'm afraid the documentation is still a bit sparse.
Can you give some more specifics of what you were trying to customize?
I was planning to do a little documentation today/tomorrow, so if you
could give a semi-detailed account of what you are aiming for, I can
try to write a walk-through.
Andrew
> --
> You received this message because you are subscribed to the Google Groups "SubjectsPlus" group.
> To post to this group, send email to subjec...@googlegroups.com.
> To unsubscribe from this group, send email to subjectsplus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/subjectsplus?hl=en.
>
>
You should be able to add more to the body by sticking more onto the
$this->_body like so:
$this->_body .= "today's date is " . date('l jS \of F Y h:i:s A');
As for doing an include, you could try what they suggest here:
http://www.desilva.biz/php/ob_start.html
I just tried adding the following to sp_Pluslet_5.php (after the big
$this->_body chunk) and it worked:
ob_start(); # start buffer
include_once( '../../readme.txt' );
# we pass the output to a variable
$html = ob_get_contents();
ob_end_clean(); # end buffer
$this->_body .= $html;
I don't know if this is the optimal solution, but like I said, worked
for me just now . . . .
Andrew
p.s. I am working on documenting how to make a simple custom pluslet,
the always popular inserting a meebo widget.
http://www.subjectsplus.com/wiki/index.php?title=Creating_a_Custom_Pluslet:_Meebo_Widget
Hello,
I tried to create a personalized Pluslet (following the instructions in the Wiki) to display my news visually from my Wordpress blog (see http://codex.wordpress.org/Integrating_WordPress_with_Your_Website).
So I created an external PHP file using the function:
ob_start () # start buffer
include_once ('wordpress_news.php');
# We pass the output to a variable
$ html = ob_get_contents ();
ob_end_clean () # end buffer
$ this-> _body. = $ html;
But I constantly get a Fatal error: require_once () [function.require]: Failed opening required 'classes / Translation_Entry.php'.
Maybe there's an easier way to display my news feed?
To view this discussion on the web visit https://groups.google.com/d/msg/subjectsplus/-/2Huaoo9T0GIJ.