Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Panels and Infusions

Help and support for problems with infusions and panels
3,769 posts | Last Activity on 16-08-2019 18:42 by douwe_yntema
douwe_yntema
douwe_yntema 16-08-2019 18:42, 2 days ago
Re: Looking For someone to build an infusion Maybe I can help you.
I will send you a pm
nazio
nazio 16-08-2019 17:25, 2 days ago
Re: Looking For someone to build an infusion Hello Every body,

First of all sorry for my poor English my native language is french...
I am looking for somebody who would like to build an infusion GUI for me
I have already made the tables and need help for the interface and the logic in some points.

I am ready to discuss the coast (money) if we agree.

The infusion is for version 7 and is for managing short messages (SMS); I have an sms provider and I can send SMS through their API.

The infusion should :
- allow to send single SMS or grouped SMS ( a form with specific requirements)
- allow to list all sent and received SMS
- allow SMS scheduling (SMS for duture time)
- allow group creation
- allow credit management for users
- allow invoice management for users
-...
All sections should be CRUD with admin right for delete...

And finally it will be very interesting if the person knows a bite of french (but it is not an obligation)

P.S Sorry I forgot , I use Materializecss as css framework

Please don't bypass my post!

Thanks in advance
Z
zizub 25-05-2019 22:25, 3 months ago
Re: Random News Panel Infusion Excuse me. I forgot to say that my news is slightly modified. My image in the thumbs (t1 and t2) folder is ignored.
This panel shows news with similar words in the title.
The panel shows images from the ..../../images/news/xxx.jpg folder.
The picture for the news is added via the button: Select file. See attached photo
afoster
afoster 25-05-2019 17:58, 3 months ago
Re: Random News Panel Infusion I have been able to adapt the random_articles_panel code to work with random_news_panel and it works by displaying one news item at a time randomly. I will try your code however zizub and see how that works.

Merged on 05/25/2019:
Zizub, after adding your code, all that was displayed were blank squares where I assume images were supposed to show. This is below the news article that I was trying to read. What images is it supposed to be pulling up?
Z
zizub 25-05-2019 15:15, 3 months ago
Re: Random News Panel Infusion If you want, you can try to test the panel for PF-7.02 - Related News
Code


//----------*Related News panel*--------------//

if ((FUSION_SELF == 'news.php') && isset($_GET['readmore']) && isNum($_GET['readmore']))
 {
 list($news_subject) = dbarraynum(dbquery("SELECT news_subject from ".DB_NEWS." WHERE news_id=".$_GET['readmore']));
 
 $rel_news_res = dbquery("SELECT news_id, news_subject, news_news, news_image FROM ".DB_NEWS." WHERE MATCH (news_subject) AGAINST ('".$news_subject."' IN BOOLEAN MODE) AND news_id != ".$_GET['readmore']." ORDER BY news_datestamp DESC LIMIT 10");

$langPanel['001'] = "Related News:";
$counter = 0;
$columns = 2; //number of columns per line
 
 if(dbrows($rel_news_res))
 {
 opentable($langPanel['001']);
 echo "\n\n";
 while($news = dbarray($rel_news_res))
 {
 if ($counter != 0 && ($counter % $columns == 0)) // comment out if you want to output in one line
echo "\n\n";
 echo "\n";
 $counter++; // comment out if you want to output in one line
   }
 echo "\n
\n";
echo "\n\n";
 echo "\n\n";
 echo "
".trimlink(strip_tags(stripslashes($news['news_subject'])), 39)."".trimlink(strip_tags(stripslashes($news['news_news'])), 69)."
\n
\n";
 closetable();
 }
 }
//-------------*The end*--------------//


Embed code in the file news.php
Below the line:
Code
echo ""; 

Search at the bottom of the code https://github.com/php-fusion/PHP-Fus...s.php#L138
afoster
afoster 24-05-2019 17:51, 3 months ago
Re: Random News Panel Infusion Thanks for your response Chan. I am trying to adapt the random_articles_panel into a random_news_panel that will work with either 7.02.07 and/or 8.00.21.

I have tried to adapt the code from random_arcticles_panel and am making progress except that instead of pulling up the news_id from the random pull, it is pulling up all of the news items on the website. I will keep trying and will update the forum with my results.
Chan
Chan 24-05-2019 05:17, 3 months ago
Re: Random News Panel Infusion Hello, please state the news infusion version please.

The reason being the latest news infusion doesn't have news image information on the same table and have better filter searching using OOP.

For random news, typical, you can just code into the panel itself with Allow PHP Execution settings turned on if you're on Version 9. Just drop the code into a new panel.


Code

$result = dbquery("SELECT * FROM ".DB_NEWS." ORDER BY rand() LIMIT 10");
if (dbrows($result)) {
 while ($data = dbarray($result)) {
 // do your news design here.
 print_p($data);
 }
}
afoster
afoster 24-05-2019 04:40, 3 months ago
Re: Random News Panel Infusion Is anyone aware of an infusion/panel that provides random news posts? If so, where can I download it. I found a random articles infusion/panel but I don't have the coding skills to adapt it to pulling news posts.
SkeeredOfMyMind
SkeeredOfMyMind 09-04-2019 05:34, 4 months ago
Re: Ajax shoutbox-mod - for v 7.02.x
I have always loved the Ajax Shoutbox for PHP-Fusion and now it looks like it won't work on PHP-Fusion 9. Any plans to update the Ajax Shoutbox so that it works with version 9? I am going to miss it if it doesn't get updated and I can't get it fixed. angry I am going to mess with it a bit and see if I can get it to work.
helmuth
helmuth 27-10-2018 08:19, 10 months ago
Re: print doesn't work tested ... but sorry to say, it made no difference - no pop up to print :-(
Falk
Falk 27-10-2018 07:58, 10 months ago
Re: print doesn't work Try place
Code

 function printDiv(divName) {
 var printContents = document.getElementById(divName).innerHTML;
 var originalContents = document.body.innerHTML;
 document.body.innerHTML = printContents;
 window.print();
 document.body.innerHTML = originalContents;
 }

 


Last in the file.
helmuth
helmuth 26-10-2018 05:49, 10 months ago
Re: print doesn't work I tried the code - tested it in Chrome, Opera, Firefox and Safari

neither of them worked

clicking the print button has only the mouse-over effect :-(
Falk
Falk 26-10-2018 04:23, 10 months ago
Re: print doesn't work Try,

Code

   function printDiv(divName) {
         var printContents = document.getElementById(divName).innerHTML;
         var originalContents = document.body.innerHTML;
         document.body.innerHTML = printContents;
         window.print();
         document.body.innerHTML = originalContents;
   }

 
   $result = dbquery("
   SELECT user_id as user_id, user_name, user_email, user_phone_mobile, user_phone_home, user_geo
   FROM ************_users // altered the correct name with *
   WHERE user_status = 0 ORDER BY user_name ASC"
   );

echo "
";
   if (dbrows($result)) {
      while ($data = dbarray($result)) {

         if (!empty($data['user_geo'])) {
         $a = explode("|", $data['user_geo']); // it becomes array and it will break into 6 parts
         $street1 = $a[0];
         $street2 = $a[1];
         $country = $a[3];
         $region = $a[4];
         $city = $a[5];
         $zip = $a[6];
         $data['user_geo'] = "$street1, $street2, $city, $region, $country, $zip";
         }
   echo "
Navn: ".$data['user_name']."
";
   echo "
Mail: ".$data['user_email']."
";
   echo "
Mobil: ".$data['user_phone_mobile']."
";
   echo "
Tlf.: ".$data['user_phone_home']."
";
   echo "
Adresse: ".$data['user_geo']."
";
   echo "

";
      }
   } else {
   echo "No data in table.";
}
echo "
";
echo ">";
?>
helmuth
helmuth 25-10-2018 08:51, 10 months ago
Re: print doesn't work I use this code in an custom page - the page is populated with the data it's supposed to show, but the print button does not function?

any ideas why?

Code
 
 function printDiv(divName) {
 var printContents = document.getElementById(divName).innerHTML;
 var originalContents = document.body.innerHTML;
 document.body.innerHTML = printContents;
 window.print();
 document.body.innerHTML = originalContents;
 }
 
$result = dbquery(
 "SELECT user_id as user_id, user_name, user_email, user_phone_mobile, user_phone_home, user_geo
 FROM ************_users // altered the correct name with *
 WHERE user_status = 0 ORDER BY user_name ASC"
 );
 echo "
";
 if (dbrows($result)) {
while ($data = dbarray($result)) {

if (!empty($data['user_geo'])) {
$a = explode("|", $data['user_geo']); // it becomes array and it will break into 6 parts
$street1 = $a[0];
$street2 = $a[1];
$country = $a[3];
$region = $a[4];
$city = $a[5];
$zip = $a[6];
$data['user_geo'] = "$street1, $street2, $city, $region, $country, $zip";
}
echo "
Navn: ".$data['user_name']."
";
echo "
Mail: ".$data['user_email']."
";
echo "
Mobil: ".$data['user_phone_mobile']."
";
echo "
Tlf.: ".$data['user_phone_home']."
";
echo "
Adresse: ".$data['user_geo']."
";
echo "

";
}
 } else {
 echo "No data in table.";
 }
echo ">
";
?>
Grimloch
Grimloch 20-10-2018 17:15, 10 months ago
Re: My Event Calendar/Birthday Infusion Hey thanks afoster; I appreciate that!

Merged on 10/20/2018:
@helmuth

I've modified/added to the english locale file.
I now consider my Event Calendar infusion complete. Lots of features have been added. Please visit my test site to see it. rogue.whisperwillow.com ... click on the Month in the side calendar to see the full calendar center display with events. The download link in the first post has been updated to point to the new archive.
afoster
afoster 15-10-2018 15:17, 10 months ago
Re: My Event Calendar/Birthday Infusion Great job Grimloch, looks and works great.
Grimloch
Grimloch 15-10-2018 12:07, 10 months ago
Re: My Event Calendar/Birthday Infusion Thanks helmuth; man you're really quick ! I will of course add your Danish locale to the archive.
grin
helmuth
helmuth 15-10-2018 09:19, 10 months ago
Re: My Event Calendar/Birthday Infusion attached Danish locales ;-)
Grimloch
Grimloch 14-10-2018 23:45, 10 months ago
Re: My Event Calendar/Birthday Infusion I am hoping that my new birthday/event calendar infusion will be of use to members that are struggling to understand Fusion9.0... I don't wish to take away from all the hard work that the Fusion developers have put into ver9 but I know a lot of people are just average webmasters and cannot grasp the complications of ver9 yet; myself included. I have been using Wibix' aw_ecal_panel for a lot of years now and like it very much. However I discovered that it will not function under PHPver7. I took some ideas from his calendar, added my own and created a basic event calendar with birthdays. It includes my birthday PM to users feature from my Site Statistics Panel and of course my image slideshow(Credit: Dynamic Drive Scripts), for the calendar which I have had in aw_ecal_panel for a number of years. Any feedback from anyone will be greatly appreciated.
www.whisperwillow.com/downloads/bday_...fusion.zip
Falk
Falk 08-09-2018 19:03, 11 months ago
Re: error with eshop infusion Make sure you only have panels enabled per page and not all pages , nor a global center panel.
You can view all discussion threads in this forum.
You can start a new discussion thread in this forum.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.