Search found 13 matches

by satollo
Sat Jul 15, 2006 3:56 pm
Forum: General discussions
Topic: Different template for each category
Replies: 1
Views: 2290

Different template for each category

I would be nice to have such feature: a way to apply a different template to each category.
The only problem is that when I ask for an entry the system has to "remeber" which category "home page" I was looking?

Other ideas?
by satollo
Mon Jul 10, 2006 1:48 pm
Forum: General discussions
Topic: Group post by category in blog home page
Replies: 1
Views: 1862

Group post by category in blog home page

I wonder if it's possibile to modify *only* the blog home page to have a "box per category" with the last posts of that category instead of a unique post list.

It hasn't to be an automatic home page organization, I can made it by hand choosing which categories to show and modifing some of the .tpl ...
by satollo
Fri Jul 07, 2006 2:21 pm
Forum: General discussions
Topic: Plugin positions
Replies: 3
Views: 2891

Re: Plugin positions

Thank you Garvin,

i'll follow yor notes, but may be of interest, in a future version, to have more - predefined or not - position for the plugins. It would be great!

Bye, Satollo.
by satollo
Fri Jul 07, 2006 10:59 am
Forum: Plugins
Topic: Plain HTML nugget
Replies: 2
Views: 2629

In your html nugget's configuration page:

You just have to switch the WYSIWYG editor to html mode by clicking it's "<>" button.

And on the bottom of the page, make sure you turn off markup transformations for this plugin.

But, when I tried to insert some javascript it has been removed (not the ...
by satollo
Fri Jul 07, 2006 9:14 am
Forum: Plugins
Topic: Plain HTML nugget
Replies: 2
Views: 2629

Plain HTML nugget

For me the html nugget plugin (that use a wysiwyg editor) amke impossible to insert plain html, eg. with javascript.
I'm using the wrong plugin?

Satollo
by satollo
Fri Jul 07, 2006 9:05 am
Forum: General discussions
Topic: Plugin positions
Replies: 3
Views: 2891

Plugin positions

There is a way to place a plugin not only in the side bar(s) but also in other positions? Like, in the main column top, main column bottom, after the first post and so on?

In other words a way to "define" other positions in the template?

Satollo.
by satollo
Thu Jul 06, 2006 11:21 pm
Forum: Plugins
Topic: SEO plugin: a simple idea
Replies: 24
Views: 16372

Re: SEO plugin: a simple idea

This function

function extract_keywords($text, $tag_names="b,strong")
{
$tags = split(",", $tag_names);
$tags_count = count($tags);
$result = array();
for ($i=0; $i<$tags_count; $i++)
{
preg_match_all('/<' . $tags[$i] . '>([^>]*)<\/' . $tags[$i] . '>/si', $text, $match);
$results = array ...
by satollo
Thu Jul 06, 2006 10:50 pm
Forum: Plugins
Topic: Getting the entry body in a backend_save
Replies: 2
Views: 5526

Getting the entry body in a backend_save

I know, it's a stupid question by I'm not able to get out by myself: haw can I extract the body (anche the extended) in ba backend_save hook?

Thank you!

Satollo
by satollo
Thu Jul 06, 2006 1:51 pm
Forum: Plugins
Topic: SEO plugin: a simple idea
Replies: 24
Views: 16372

Re: SEO plugin: a simple idea

Hi!

The foreach bug I fixed here:

http://nopaste.php-q.net/223670

For the configuration: Maybe you can help me there? You could modify the code to use substitution placeholders and then I tell how you to make them configurable.

Best regards,
Garvin

ok, give me some time, i write down more ...
by satollo
Wed Jul 05, 2006 2:03 pm
Forum: Plugins
Topic: SEO plugin: a simple idea
Replies: 24
Views: 16372

Re: SEO plugin: a simple idea

Just a note: I get this warning:

Warning: implode(): Bad arguments. in /home/mhd-01/www.naturalmentedonna.com/htdocs/diario/plugins/serendipity_event_metadesc/serendipity_event_metadesc.php on line 154

only on blog index (http://www.naturalmentedonna.com/diario). Can you check it?

Thank you ...
by satollo
Wed Jul 05, 2006 1:56 pm
Forum: Plugins
Topic: SEO plugin: a simple idea
Replies: 24
Views: 16372

Re: SEO plugin: a simple idea

It works great!

Now we can add some configuration, like the maximum number of characters/words to use for a description, or the html tags to use to identify the keywords, and so on!

Thank you very much!

By Satollo.
by satollo
Wed Jul 05, 2006 11:55 am
Forum: Plugins
Topic: SEO plugin: a simple idea
Replies: 24
Views: 16372

Re: SEO plugin: a simple idea

To extract the description this is a piece of code (very simple):

function extract_description($text)
{
$x = strpos($text, '<p>');
if ($x === false) return '';
$y = strpos($text, '</p>');
if ($y === false) return '';
$title = substr($text, $x+3, $y-($x+3));
$title = strip_tags($title ...
by satollo
Wed Jul 05, 2006 9:53 am
Forum: Plugins
Topic: SEO plugin: a simple idea
Replies: 24
Views: 16372

SEO plugin: a simple idea

Search engine look for meta tag, even if some say no. Specially, they look for meta description, may be just to show a short description in the result page.

I'm not able to write a plugin, now, but in my site I use this simple logic: I extract the first document paragraph and I use it a meta ...