3stripe
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Question about using a 2 column content layoutJust tested this – working a treat!
I will continue my quest to have multiple content blocks in the editor on another thread
Thanks again Kaf.
Forum: Plugins
In reply to: Subcribe2 confirmation page – problems with…Hmmm still most confused by this!
Forum: Themes and Templates
In reply to: Question about using a 2 column content layoutGreat, thank you!
(I still think this could be a really nice plugin for CMS use – option to have distinct content blocks on pages and edit accordingly)
Forum: Plugins
In reply to: RSS feed into Flash .swfDead WordPress/Flash users….
Quick update for you: my WordPressMeetsFlash project has now been superceceded by FlashBlog – which is a full WordPress->Flash integatration project
Please see http://www.sourceforge.net/projects/flash-blog/ for full details and a download!
Forum: Themes and Templates
In reply to: Question about using a 2 column content layoutYeah that could work – but they couldn’t use quicktags to insert links or anything that way – really need to allow editing using the normal methods if possible….
Hmm sounds like a good idea for a new plugin to me!
Forum: Themes and Templates
In reply to: Question about using a 2 column content layoutApologies, I should have said at the start that the 2 columns are seperate!
No need to split the text automatically… there is a distinct left and right content block on these pages:
---------------- HEADER IMAGE ----------------
...............................................
-- Nav -- --- Left header -- --- Right header ---
-- Nav -- --- Left block --- --- Right block ----
-- Nav -- --- Left block --- --- Right block ----
-- Nav -- --- Left block --- --- Right block ----
..........--- Left block --- --- Right block ----
..........--- Left block --- --- Right block ----
..........--- Left block ---
..........--- Left block ---
Now, in the admin panel, you only ever have one text area for each page – that’s the part I couldn’t work out.
Perhaps there is some kind of way to adapt the ‘more’ page splitter but using something like your suggested code, Kaf?
Or perhaps a mod to the control panel that showed two text areas when editing these kind of pages?
My main concern is that the solution must be simple and robust enough for a client to use! (Also there might need to be different header gifs at the top of either column, although clever use of sIFR might make this easier)
Thanks again for your help.
Forum: Fixing WordPress
In reply to: sort by category and custom fieldKaf to the rescue again!
Forum: Fixing WordPress
In reply to: sort by category and custom fieldWhat’s the code you are using then?
Forum: Themes and Templates
In reply to: Sort by custom value fields?Sounds good!
In the meantime I found a great article after 2 hours of googling – http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query
!!!
Forum: Fixing WordPress
In reply to: List articles containing specific entries to a custom field?Ah ok! I found a readymade solution:
http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query
After searching google for about 2 hours I found this… god only knows why it’s so hidden away… hopefully this will help someone else with similar questions anyhow)
Forum: Fixing WordPress
In reply to: List articles containing specific entries to a custom field?Hmmm, I’m wondering if the source code of http://erwin.terong.com/2005/09/24/wp-plugin-related-posts-link/ holds any answers for my quest… (puts on ‘serious’ hat)
I’ve found 2 functions so far that are giving me clues… not sure what to do to them next though:
function get_all_meta($key, $single = false)
{
global $wpdb, $post_meta_cache;
$metalist = $wpdb->get_results("SELECT meta_value FROM $wpdb->postmeta WHERE meta_key = '$key'", ARRAY_N);
$values = array();
if ( $metalist ) {
foreach ($metalist as $metarow) {
$values[] = $metarow[0];
}
}
if ( $single ) {
if ( count($values) ) {
$return = maybe_unserialize( $values[0] );
} else {
return '';
}
} else {
$return = $values;
}
return maybe_unserialize($return);
}
?>
/////////////////////////////////////
/////////////////////////////////////
/////////////////////////////////////
function get_related_ids($post_id) {
global $wpdb;
$sql = "SELECT meta_key, meta_value FROM $wpdb->postmeta WHERE meta_key in('related_post_name', 'related_id') AND post_id=$post_id";
$searches = $wpdb->get_results($sql);
if($searches) {
$post_name = array();
$post_id = array();
foreach($searches as $s) {
if($s->meta_key=='related_post_name') {
$arr = explode(',', $s->meta_value);
foreach($arr as $a) $post_name[] = ("'".trim($a)."'");
}
elseif($s->meta_key=='related_id') {
$arr = explode(',', $s->meta_value);
foreach($arr as $a) $post_id[] = ("'".trim($a)."'");
}
}
$text_post_name = implode(', ', $post_name);
$text_post_id = implode(', ', $post_id);
$sql = "SELECT DISTINCT post_title, ID FROM $wpdb->posts WHERE ";
$arr_sql = array();
if($post_name) $arr_sql[] = "post_name in($text_post_name)";
if($post_id) $arr_sql[] = "ID in($text_post_id)";
$sql .= implode(" OR ", $arr_sql);
$sql .= " ORDER BY ID DESC";
$searches = $wpdb->get_results($sql);
return($searches);
}
else return array();
}Forum: Fixing WordPress
In reply to: List articles containing specific entries to a custom field?Kaf, I’ve finally made time to come back to this – but am really stumped and think this is gonna be way way above my head….
Has anyone written a plugin that will help me with this?
Cheers
3stripe
Forum: Themes and Templates
In reply to: Sort by custom value fields?I think I need to do what other people above are talking about (basically somehow list posts containing a custom field value of one value or another)…
Can anyone advise me on how to do this?
Many thanks
3stripe
Forum: Plugins
In reply to: v1.2 PayPal QuickTag (WP 2 Support)Ah didn’t realise it wasn’t compatible with the WYSIWYG editor! That explains the problem!
Is there any way the 2 could work together? Or would that need another plugin perhaps…
PS. No I wasn’t having a go at your plugin – of course not! AND, if I was I wouldn’t have been quite so direct anyhow 😉
Forum: Plugins
In reply to: v1.2 PayPal QuickTag (WP 2 Support)Kyle, have you had any luck with this yet?