LostInNetwork
Forum Replies Created
-
Forum: Plugins
In reply to: Display latest posts from a particular category in page’s contentHave you tried creating a page template, and do the category selecting there?
First create a page template that displays a static page and all the posts below it.
Then look at http://codex.wordpress.org/The_Loop
The important part is the “if (in_category(‘3’)) continue;”
Now, change that to something like not in category and cut&paste to the page template.
Forum: Plugins
In reply to: WP2.2 Display Content to Registered Users Only?I have Group Restriction running on WP 2.2.2
It only protects static pages.Category visibility does offer some filtering by user level, but it does not offer any real protection. It is far too easily bypassed.
Forum: Plugins
In reply to: “Flag as offensive” pluginSearch http://wp-plugins.net/ for “report”
It takes five(5) minutes.
-> http://wp-plugins.net/?filter=report
-> http://wunder-ful.com/wordpress-plugins
-> http://wunder-ful.com/wp-content/uploads/2006/02/report_posts.zipAnd there it is.
Forum: Plugins
In reply to: How to enable Gengo language chooser elements in sidebar?Also, translations in the sidebar of
(POST) CATEGORIES HEADERS
in widgets.php function wp_widget_categories after $title = … add:
$title = gengo_snippet($title,true);LINK CATEGORIES HEADERS
in bookmark-template.php function wp_list_bookmarks after $catname = … add:
$catname = gengo_snippet($catname,true);ARCHIVES HEADER
in widgets.php function wp_widget_archives after $title = … add:
$title = gengo_snippet($title,true);Then go to WP dashboard > Language > Synonyms
and start creating “snippets” for all these category/widget titles. The snippets name should be the widgets/categorys untranslated original title. If you have not defined all these snippets (in all languages), then some of the translated titles will obviously be empty. To avoid that little inconvenience, replace the code above with something a little bit more “complicated”:$title_translated = gengo_snippet($title,true);
empty($title_translated) || $title = $title_translated;There the substitution is not done, if the new value is empty.
Now repeat this to all the titles you can find in all your widgets, and you’ll have a nice multilingual blog 🙂
Forum: Plugins
In reply to: How could i give none admins rights to create pollsRole Manager plugin, http://www.im-web-gefunden.de/2007/01/28/wordpress-21-role-manager-plugin/
“Manage Polls” capability.
Just do it.
Forum: Plugins
In reply to: WARNING! NextGen Gallery PluginGallery2 will cost you 50 MB
Forum: Plugins
In reply to: WP 2.2 has broken e-mail to blogForum: Plugins
In reply to: most popular/ most viewed of last month ?The popularity contest plugin? Don’t know it, but it doesn’t look like a monthly counter.
There are views and there are Views. How about letting your users star-rank your posts? That information would indeed be high-value data…
An example: Some pages I sometimes visit twenty times a day (or more) only to spend an average 2 seconds at a time there. Some other page I visit once a month but spend an hour reading it. Which one metric would you prefer? Visits or felt value?
“Post start rating”
Forum: Plugins
In reply to: wpg2: alignment lost at saveHey, this works!
– I copied the alignment classes to the themes style.css: I did cut and paste normal/float/centered class definitions from here: http://www.galleryembedded.com/forums/viewtopic.php?t=2108
– then I just needed to type:
<div class=”g2image_float_left”><wpg2id>95</wpg2id></div>
<p align=”justify”>text</p>… and it works. I just had to sort out that html…
THANKS A MILLION!
ps. TinyMCE Advanced sucks (but it has a character map and full justification). That “Code” tab is Good to have. Without it, I wouldn’t have been able to achieve this left-float, I guess.
Forum: Plugins
In reply to: wpg2: alignment lost at saveNo. And no. Was that something I was supposed to do? I just installed wpg2 to plugins and activated/validated it…
Just now found this: “The g2image classes must be implemented in your style.css for the alignment classes to be effective.”
How do I do this? I have now added into my themes css file:
.g2image_float_left {
float: left;
}Doesn’t seem to work. I’m no xhtml/css wizard.
Forum: Plugins
In reply to: wpg2: alignment lost at saveThis code does not work:
<p align=”justify”>
<div class=”g2image_float_left”>
<wpg2id>7</wpg2id>
</div>
One chapter of text
</p>No float. The image gets placed above the text.
Any ideas?Forum: Plugins
In reply to: Great widget for calendar of events?Oh, yes.
You can have an upcoming events list widget (configurable) and a calendar with highlighted days, and you can have a page with all the future events…
We have been using it for 10 months now, 42 events. We have decided to have a five next upcoming events shown in the sidebar. Past ones expire and new pop up. In addition to this we have an “Events” page, where all future events are listed. We only display the calendar of the current month in the sidebar, but one could have several.
Events are stores as posts. Use category visibility to hide that category from the posts page, if you wish. The widget links to these posts, but I guess you could edit the widgets code to link somwhere else, if you have the skill. Or pay the developer.
Really nice.
Next I’m trying to configure it to work better with multilingual site and Gengo. It’s not really compatible with that, but no show stoppers…
Forum: Plugins
In reply to: What’s wrong with this widget?I am no php wizard. I might be wrong, but…
Are you sure that that something like
<?php function xyz() { ?>
<?php … ?>
<?php } ?>will work?
It looks so strange. How is the first php code going to be executed? Should you not enclose the WHOLE function/code inside the same <?php … ?> or what?
Forum: Plugins
In reply to: How to enable Gengo language chooser elements in sidebar?Solved.
The default widget was problematic, as I ended up with a start page that was in one language that I could not change, or then it was in three languages (fi+sv+en) – of course giving me all the subpages three times. I wanted it in ONE language and then I wanted to change it, if need be. I tried several combinations of the Gengo settings (allow/disallow multiple languages; show in one/all languages; let Gengo decide). Nothing seemed to work and I felt lost without extensive documentation. Nothing new…
Then I found the language_control function and edited the gengo.php. That helped a little. I could add/remove languages and save, and after that I had those languages visible that I wanted. But it was inconvenient.
The solution was simpler than I could imagine:
I created a text widget with hyperlinks to http://blog.net/XX, http://blog.net/XY, http://blog.net/XZ (where XX,XY,XZ are language codes) using IMG tags to insert polyglot flags.
Now I have Gengo set to display all pages in one default language, finnish, first. Then I can use these links to switch languages.
I also needed to edit my theme to add /”<?php the_language_code(); ?>” at the end of the blogname (that works as a link to the posts page) in the header.
This works like a charm.
I’ll need to work on some widgets still, to have their headers translated. And the contents of some widgets will pose a challenge…
Anyway, I can achieve what I want with Gengo.
Forum: Plugins
In reply to: How to enable Gengo language chooser elements in sidebar?The readme didn’t tell me that I should edit the gengo.php file on row 1324 to replace gengo_list_languages(…); with gengo_language_control();
Did that. Now I can view the site in one language, two languages (any combination), or three languages.
I might switch back to the basic model later, or maybe not.
Next I need to figure out how to inject flags there.