logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

This member is one of the top experts of all time, the true elite. Luis Abarca

Website Twitter

Bio:

I am a Wordpress developer with about 4 years of exprience developing custom themes and plugins.

I'm using PHP since 2004 and learning Ruby.

My programming skills includes: PHP, MySQL, Javascript, HTML, CSS, XML.

I am available for hire at USD $35 per hour.

Skype: luis_abarcag

GTalk: luisabarca

 

Answers Given: 255 (see them all)
Contests Won: 91
Prize Money Earned: $1210
Questions asked: 0
Questions refunded: 0 (see all?)
Is a top asker (has the power to vote on anything):
Subscribes to all the discourse posted to the site?: No
Country: México
City: Acapulco
Netvotes this month (upvotes minus downvotes): 0
Netvotes of all time (upvotes minus downvotes): 10
Joined the site: August 16, 2011





Luis Abarca's upvoted answers:






This member has no downvoted answers






Answers given to these questions:

See more?






Questions voted:

The community is grateful to those experts who take the time to vote on questions.

See more?






Luis Abarca has not asked any questions






Luis Abarca's Recommendations

See more?






Luis Abarca's discourse:

Written in response to Store wordpress media completely off my server and on a CDN:

Sorry Josh, i was busy the last week, did you solved the problem? let me know if i can help you

link

Written in response to Need Google Conversion Code Added To On-Page Form:

We end up adding a condition to show conversion code after form is submited via POST

link

Written in response to custom work - double sidebar page for Karma WP Theme:

We end up with a similar code like Gabriel, with 2 sidebars, 2 styles to fix position and 2 new sidebars in the widget area

link

Written in response to My Admin tabs have disappeared - how do I get them back?:

Stephanie provide me login details to help her

link

Written in response to image onclick!:

Gabriel was OK, but it seems that Luis helped editing the files

link

Written in response to Misalignment:

I think the same as Francisco Javier, you should force al the images to be 460 x 335 pixels, to avoid any future issue

link

Lawrence Krubner had responses to this.

Written in response to Styling a list in a widget:

Linda, please check my Private messages

The final solution:

#execphp-4 li {
list-style: none;
padding: 8px 0 6px 0;
border-bottom: 1px solid #fefefe;
}

#execphp-4 li:last-child {
border: none;
}

link

Written in response to duplicate a field without plugin:

In you template

$data = unserialize(get_post_meta($post->ID, 'videos', true));

foreach ($data as $item) : ?>
<li>
<a href="<?php echo $item['url'] ?>">
<?php echo $item['title'] ?>
</a>
</li>
<?php endforeach ?>

link

Written in response to Finish custom post type:

Hi amigo, yes you can rename it, its just a generic name ;)

link

Written in response to Product Catalog using Custom Post Types:

Hi Joe, im glad it works, if i can help im available.

Regards !

link

Written in response to why can't i transfer this theme over?:

I change all the short <? and <?=


<?php

function widget_sf_feed($args)
{
ob_start();

if ($args) extract($args);

if (!get_option(THEME_PREFIX . "rss_order")) {
add_option(THEME_PREFIX . "rss_order", 2);
update_option(THEME_PREFIX . "rss_order", 2);
}

$more_url = get_option(THEME_PREFIX . "feed_site");

if( isset($args["more_url"]) && !empty($args["more_url"]) ) {
$more_url = $args["more_url"];
}

$args["description"] = '';

if( isset($args["description"]) && !empty($args["description"]) ) {
$description = $args["description"];
}

// Get RSS Feed(s)
include_once(ABSPATH . WPINC . '/feed.php');

// Get a SimplePie feed object from the specified feed source.
//$feed_url = get_option(THEME_PREFIX . "feed_url");
//$rss = fetch_feed('' . $feed_url . '');

$abbr_array = array();

if ($args["feeds"]) {
$abbr_array = explode("+",$args["feeds"]);
}

$show_excerpt = 1;

if (isset($args["excerpt"])) {
$show_excerpt = intval($args["excerpt"]);
}

$feeds_arr = array();
$feeds_logo_arr = array();
$feeds_title_arr = array();

$feed_order = get_option(THEME_PREFIX . "rss_order");

for ($i = 1; $i < $feed_order; $i++) {
if (((sizeof($abbr_array) > 0) && in_array(get_option(THEME_PREFIX . "rss_abbr".$i), $abbr_array)) || (!sizeof($abbr_array))) {
array_push($feeds_arr, get_option(THEME_PREFIX . "rss_name".$i));
array_push($feeds_title_arr, get_option(THEME_PREFIX . "rss_title".$i));
array_push($feeds_logo_arr, get_option(THEME_PREFIX . "rss_logo".$i));
}
}

if (isset($args["columns"]) && ($args["columns"] >= 1) && (count($feeds_arr) > 0) ) {
$i = 0;

foreach($feeds_arr as $k=>$feed_url) {
$rss = fetch_feed('' . $feed_url . ''); ?>

<div id="rss-feed-columns" class="rss-feed-columns">
<div id="rss-feed-columns-header">
<h3><?php echo (empty($feeds_title_arr[$k])?'RSS':$feeds_title_arr[$k]) ?></h3>
<?php if (!empty($feeds_logo_arr[$k])) : ?>
<img src="<?php echo $feeds_logo_arr[$k] ?>" style="border:0; background:none; padding:0;" />
<?php else: ?>
<img src="<?php bloginfo('template_url') ?>/images/rss.png" style="border:0; padding:0;" />
<?php endif; ?>
</div>
<?php
// Figure out how many total items there are.
$rss_num = get_option(THEME_PREFIX . "rss_num");

if ($args["count"])
$rss_num = $args["count"];

if (!$rss -> errors)
$maxitems = $rss -> get_item_quantity($rss_num);

// Build an array of all the items, starting with element 0 (first element).

if (!$rss -> errors)
$rss_items = $rss -> get_items(0, $maxitems); ?>

<ul id="feed">
<?php if ($maxitems == 0): ?>
<li>No items.</li>
<?php else: ?>
<?php foreach ( $rss_items as $item ) : // Loop through each feed item and display each item as a hyperlink. ?>
<li>
<h2<?php echo (!$show_excerpt ? ' class="excerpt"' : '') ?>>
<a href="<?php echo $item -> get_permalink();?>" title="<?php echo (!$show_excerpt ? strip_tags($item->get_description()) : 'Posted '.$item->get_date('j F Y | g:i a'))?>" target="_blank"><?php echo $item -> get_title();?></a></h2>
<?php if ($show_excerpt) : ?>

<p>
<?php echo strip_tags($item -> get_description());?>
</p>
<?php endif ?>
</li>
<?php endforeach ?>
<?php endif ?>

</ul>
<div id="feed-last-item-columns">
<!-- nothing to see here -->
</div>
<!--<a href="<?php echo $more_url?>" title="" target="_blank">View More</a>-->
</div>

<!-- feed-feed -->
<?php if( $i && ($i%3==2) ) : ?>
<div style="clear:both; border-bottom:0px solid #CACACA;">
&nbsp;
</div>
<?php endif ?>
<?php
$i++;
} // endforeach
} else {
$rss = fetch_feed($feeds_arr); ?>
<div id="rss-feed" class="content-item">
<div class="content-dets">
<h3>Related on the web</h3>
<?php if (count($feeds_arr) == 1 && !empty($feeds_logo_arr[0])) : ?>
<img src="<?php echo $feeds_logo_arr[0] ?>" align="left" style="border:0; background:none; padding:0;" />
<?php else : ?>
<?php if (!empty($more_url)) : ?>
<ul class="dets">
<li class="rss-link"><img src="<?php bloginfo('template_url')?>/images/rss.png" style="border:0; padding:0;" /><a href="<?php echo $more_url?>" title="" class="rss-link" target="_blank">View More</a>
</li>
</ul>
<?php else: ?>
<img src="<?php bloginfo('template_url')?>/images/rss.png" style="border:0; padding:0;" />
<?php endif ?>
<?php endif ?>

<?php if (!empty($description)): ?>
<p><?php echo $description ?></p>
<?php endif ?>

<!--<ul class="dets">

<li class="rss-feed-link"><a href="<?php echo $more_url?>" title="<?php echo get_option(THEME_PREFIX . "feed_name"); ?>" target="_blank">View More</a></li>

</ul>-->
</div>
<div class="content-body feed-container">
<?php
// Figure out how many total items there are.
$rss_num = get_option(THEME_PREFIX . "rss_num");

if ($args["count"])
$rss_num = $args["count"];

if (!$rss -> errors)
$maxitems = $rss -> get_item_quantity($rss_num);

// Build an array of all the items, starting with element 0 (first element).
if (!$rss -> errors)
$rss_items = $rss -> get_items(0, $maxitems); ?>

<ul id="feed">
<?php if ($maxitems == 0): ?>
<li>No items.</li>
<?php else: ?>

<?php foreach ( $rss_items as $item ) : // Loop through each feed item and display each item as a hyperlink. ?>
<li>
<h2<?php echo (!$show_excerpt ? ' class="excerpt"' : '') ?>>
<a href="<?php echo $item->get_permalink() ?>" title="<?php echo (!$show_excerpt ? strip_tags($item->get_description()) : 'Posted '.$item->get_date('j F Y | g:i a'))?>" target="_blank"><?php echo $item -> get_title();?></a></h2>
<?php if ($show_excerpt): ?>
<p><?php echo strip_tags($item -> get_description());?></p>
<?php endif ?>
</li>
<?php endforeach ?>
<?php endif ?>
</ul>

<div id="feed-last-item">
<!-- nothing to see here -->
</div>

</div>
</div>
<!-- feed-feed -->
<?php } ?>

<?php if (!$args["widget_name"]): ?>
<style>
#rss-feed {

padding-left: 0px;
width: 660px !important;
border-bottom: none;
margin-top: 15px !important;
}
#rss-feed .content-dets h3 {

margin-top: 0px;
}
/*#rss-feed .content-body {

width:440px !important;

}*/

#rss-feed .content-dets {

width: 200px;
margin-left: 30px;
}
#rss-feed .content-body {

width: 490px !important;
}
#rss-feed li {

width: 490px !important;
}
</style>
<?php endif ?>

<?php
$result = ob_get_contents();

ob_end_clean();

return $result;

} // end function

register_sidebar_widget('Seven Five - Feed', 'widget_sf_feed');

link

See more?






Luis Abarca has not had any questions refunded






Luis Abarca suggested these prizes as appropriate for these questions:

See more?