swatit-jromero / wpng-calendar

Automatically exported from code.google.com/p/wpng-calendar
0 stars 0 forks source link

Call function #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If my wordpress theme does not support widgets. Is it possible to call the 
function ("if function 
exists") directly into the sidebar page?

E.g. Insert in the page the code: <?php if (function_exists('wpng-calendar')) 
{....

<?php }?>

Thank you.

Original issue reported on code.google.com by iglesia....@gmail.com on 29 Mar 2008 at 12:02

GoogleCodeExporter commented 8 years ago
Nevermind, I notice that the widgetWPNGCalendar function does the trick. Thank 
you.

Original comment by iglesia....@gmail.com on 29 Mar 2008 at 12:18

GoogleCodeExporter commented 8 years ago
What do you use for the function arguments?  When I try the function w/o 
arguments, I
get an error message about missing arguments.

Original comment by cyberpas...@gmail.com on 17 Jul 2008 at 3:43

GoogleCodeExporter commented 8 years ago
Insert this: "<?php if (function_exists('widgetWPNGCalendar')) { ?>
<?php widgetWPNGCalendar(); ?>
<?php }?>"

Original comment by iglesia....@gmail.com on 17 Jul 2008 at 1:34

GoogleCodeExporter commented 8 years ago
Did that, got this error message:

Warning: Missing argument 1 for widgetwpngcalendar() in
/home/.../wp-content/plugins/wpng-calendar/wpng-calendar.php on line 262

That's why I thought it needed an argument.  I am using version 0.8.5 of the 
plugin
under WP 2.5.1  My PHP version is 5.2.6

Original comment by cyberpas...@gmail.com on 18 Jul 2008 at 3:37

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I did not have that problem, I'm sorry not being able to give a solution. 
Anyway, I'd suggest you to upgrade your 
WP from 2.5.1 to 2.6, I've heard 2.5 had some little problems.  

Original comment by iglesia....@gmail.com on 8 Aug 2008 at 11:03

GoogleCodeExporter commented 8 years ago
I'm trying both of these solutions with WP 2.6.3, and having no luck.

Has anyone been able to use this without enabling widgets?

Original comment by aka...@gmail.com on 31 Oct 2008 at 7:05

GoogleCodeExporter commented 8 years ago
Hi,

this works for me : <?php if(function_exists('widgetWPNGCalendar'))
widgetWPNGCalendar($args); ?>

I'm using WP 2.6.5.

Original comment by manal...@gmail.com on 2 Dec 2008 at 12:01

GoogleCodeExporter commented 8 years ago
Never mind, it display the upcoming events but I still got some error msg

Original comment by manal...@gmail.com on 2 Dec 2008 at 12:03

GoogleCodeExporter commented 8 years ago
Anyone know how to use this function without getting the error message?

Original comment by bettylar...@gmail.com on 5 Mar 2009 at 12:46

GoogleCodeExporter commented 8 years ago
You can simply comment out line 263-4.

Original comment by bettylar...@gmail.com on 5 Mar 2009 at 5:10