[PHP] latest posts help

2011-02-06 Thread Michael Simiyu
hello , am working on showing the last 3 posts showed on a message  
board ( bitweaver ) and i would like to know what to add on the below  
line of code to show the last 3 this is what i have that shows the  
last post


Code:
{$board.last.title|default:"Post..."|truncate:40}a>



what should i add to the code above to pull the last 3 posts so i  
could have it like this... (the code below just shows the latest in a  
list format )


Code:
{if !empty($board.last)}
» {$board.last.title|default:"Post..."|truncate:40}a>

   
» title="{$board.last.title|default:"Post..."}">{$board.last.title| 
default:"Post..."|truncate:40}

   
» title="{$board.last.title|default:"Post..."}">{$board.last.title| 
default:"Post..."|truncate:40}

   
{/if}



Best Regards
Michael S.




[PHP] iVery payment integration help

2011-02-16 Thread Michael Simiyu

hello,

i need some quick help integrating the iVery payment gateway in a
wordpress site

thanks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] assistance

2011-02-18 Thread Michael Simiyu
am using jcart but would like to customize the gateway.php file to use  
another payment gateway instead of paypalany help from the  
community ?





[PHP] make links

2011-05-02 Thread Michael Simiyu

hello,

i want to add links to the code below in wordpress ie where it says  
"control the world" and "read and comment only" i want to make it a  
link http://www.google.com"; target="_self">My Link










Thanks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Customize link

2011-05-05 Thread Michael Simiyu

Hello,

Here is the scenario

I have a form with the folloing fields  i. Title  ii. Category (This  
is a drop down with a list of categories which have id's - am using  
wordpress )  iii. upload file field


now what i want to do is to be able to customize a link like http://www.mysite.com/addfile&cat_id=5 
 so that when i access the link it has one of the categories in the  
drop down selected..reason is i dont want users to see the  
different types of categories


So i guess my question is how to configure a meu item in a drop down  
to be automatically selected in a link...


Thanks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Customize link

2011-05-05 Thread Michael Simiyu

Dan,

thanks for the reply.this is the code that shows/lists the  
categories


	$cats = $download_taxonomies- 
>get_parent_cats();


if (!empty($cats)) {
foreach ( $cats as $c ) {
	echo 'id="category_'.$c->id.'" ';
		if (isset($_POST['category_'.$c->id])) echo  
'checked="checked"';

echo ' /> 
'.$c->id.' - '.$c->name.'';


// Do Children

if (!function_exists('cat_form_output_children')) {

function cat_form_output_children($child) {

global $download_taxonomies;

if ($child) {
	echo 'type="checkbox" name="category_'.$child->id.'" id="category_'.$child- 
>id.'" ';
	if (isset($_POST['category_'.$child->id])) echo  
'checked="checked"';

   
 echo ' /> '.$child->id.' - '.$child->name.'';



echo '';
		$download_taxonomies- 
>do_something_to_cat_children($child->id, 'cat_form_output_children',  
'cat_form_output_no_children');

  
  echo '';


  
  echo '';

}

}

function cat_form_output_no_children() {

echo '';

}

}

echo '';
			$download_taxonomies->do_something_to_cat_children($c->id,  
'cat_form_output_children', 'cat_form_output_no_children');

echo 
'';

echo 
'';
}
}
?>

i can see the categories ids and i just want to get a custom link for  
each category and essentially hide this section from my memebers


Thanks


On May 6, 2011, at 1:28 AM, Daniel Brown wrote:


'.PHP_EOL;
foreach ($cat_ids as $cid) {

   echo '  '.$cid.''.PHP_EOL;
}
echo ''.PHP_EOL;

?>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Bold links

2011-05-07 Thread Michael Simiyu

hey,

some php 101 here guys :)

i want to bold the first name and last name in the code below...

user_firstname . "\n";
  echo '' . $current_user->user_lastname . "\n";
?>

Thanks
Michael

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Bold links

2011-05-07 Thread Michael Simiyu

Thanks alot...

On May 7, 2011, at 8:39 PM,  wrote:


  echo 'Welcome  ' . $current_user->user_firstname . "B>\n";

  echo '' . $current_user->user_lastname . "\n";
?>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php