Thread Starter
erh
(@erh)
Ahh never mind, it appears it was a cacheing issue. After a few hours the second group was working just fine. Good stuff.
On that note, I did have another question. Is there a way to make the “posted by” and the “date” appear on the same line? Right now it looks like so:
<Post Contents here><Post Contents here><Post Contents here>
Posted By Someone Special
3 hours ago
I would save some vertical screen real-estate if we could have these appear on the same line. Like so:
<Post Contents here><Post Contents here><Post Contents here>
Posted By Someone Special – 3 hours ago
I found the code portion in the php file which controlled this, but I didn’t see any easy way to put them on the same line.
//output Posted By... text, if option is set
if(get_option('ik_fb_show_posted_by')){
//only add the author if there is line item content to display
if(isset($item->from)){ //output the author of the item
if(isset($item->from->name)){
$from_text = $item->from->name;
}
if(strlen($from_text) > 1){
$posted_by_text = '<p class="ikfb_item_author">' . __('Posted By ', $this->textdomain) . $from_text . '</p>';
//add custom posted by styling from pro options
if(!get_option('ik_fb_use_custom_html')){
$posted_by_text = $this->ikfb_posted_by_styling($posted_by_text);
}
//TBD: make Custom HTML option for Posted By
$line_item .= $posted_by_text;
}
}
}
//output date, if option to display it is enabled
//TBD: Allow user control over date formatting
if(get_option('ik_fb_show_date')){
setlocale(LC_TIME, WPLANG);
$ik_fb_use_human_timing = get_option('ik_fb_use_human_timing');
if(strtotime($date) >= strtotime('-1 day') && !$ik_fb_use_human_timing){
$date = $this->humanTiming(strtotime($date)). __(' ago', $this->textdomain);
}else{
$ik_fb_date_format = get_option('ik_fb_date_format');
$ik_fb_date_format = strlen($ik_fb_date_format) > 2 ? $ik_fb_date_format : "%B %d";
$date = strftime($ik_fb_date_format, strtotime($date));
}
if(strlen($date)>2){
$date = '<p class="date">' . $date . '</p>';
//add custom date styling from options
if(!get_option('ik_fb_use_custom_html')){
$date = $this->ikfb_date_styling($date);
}
}
$line_item .= $date;
}
Hey!
I strongly recommend against modifying the code. This presents a few problems, including the code being lost every time you update the plugin.
That being said, I expect you could adjust this via CSS (and you can set any Custom CSS in the Settings Panel.)
The easiest way to do this, in my opinion, is to look at the feed with Firebug, make changes until it looks correct, and then copy and paste the modified CSS into the Custom CSS box.
I hope that helps!
Best,
Richard
Thread Starter
erh
(@erh)
Hi Richard,
Yea, I’m sure modifying the code is going to bite me in the rear. I’m pretty bad at CSS (and not all that great at HTML, to be honest). But I’ll work out using that as a more permanent (or at least future proof) solution.
Thanks for the response, and for the great plugin!
-Eddie