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.

Code Snippet and functions - 9

Post your code snippets and functions related to v9 here
17 posts | Last Activity on 17-09-2019 19:07 by Grimloch
Grimloch
Grimloch 17-09-2019 19:07, 2 days ago
Re: Table Responsive Delima Well I solved the description heading and field problem by taking it completely out of the table and putting it in a div with class='post_message'. It works fine. I need to learn more div techniques anyway.
Chan
Chan 17-09-2019 08:48, 3 days ago
Re: Table Responsive Delima The design is a bit limited for

The doc for bootstrap for a table tag is found here - https://bootstrapdocs.com/v3.3.0/docs...ss/#tables

What it does is just to add a horizontal scrollbar when screen width collapses.

[attach]attachid=2705&size=md[/attach]
Grimloch
Grimloch 16-09-2019 13:48, 4 days ago
Re: Table Responsive Delima This is a browser width of 752. If I drag the window even slightly smaller then the description field jumps back to straight across with no auto-flow:
www.whisperwillow.com/my_panels/752.jpg

I cannot figure out how to make it continue to flow left at lower widths.
Grimloch
Grimloch 15-09-2019 23:37, 4 days ago
Re: Table Responsive Delima

tocrah wrote:

@tocrah
- I would take the grid system from bootstrap. Would that be a solution for you?


Sure that would probably be a solution if I knew how to apply the coding to my infusion. I am a table person and don't use divs and really have a hard time understanding how to use divs. I suppose one day I'll figure it out if I live that long! LOL grin
tocrah
tocrah 15-09-2019 18:55, 4 days ago
Re: Table Responsive Delima I would take the grid system from bootstrap. Would that be a solution for you?
Grimloch
Grimloch 15-09-2019 18:18, 4 days ago
Re: Table Responsive Delima I know you guys must get tired of my piece-meal efforts to understand v9. I'm sorry but I need to know how to re-code things to conform to the new deal. I have tried to apply table-responsive to my infusion but this is what I'm getting. This 1st screen is full width:
www.whisperwillow.com/my_panels/fullscreen.jpg

This next image is when I reduce the screen to a smaller size to test table-responsive:
www.whisperwillow.com/my_panels/smallscreen.jpg
Notice the functional scroll-bar at the bottom.

And this is my code:
Code
            opentable($locale['INF_TITLE'].$locale['title2'].$data['book_title']);
            add_to_title($locale['title2'].$data['book_title']);
            echo "
\n";
            echo "
\n";
            echo "
\n";
            $new = "";
            if ($data['book_datestamp'] + 604800 > time() + (date_default_timezone_set($settings['default_timezone']) * 3600)) {
               $new = "".$locale['book_410']."";
            }
            echo "
\n";
            echo "
\n";
            echo "
\n";
            echo "
\n";
            echo "
\n";
            echo "
\n";
            echo "
\n";
            if ($data['book_pubdate']) {
               echo "
\n";
               echo "
\n";
               echo "
\n";
            }
            if ($data['book_publisher']) {
               echo "
\n";
               echo "
\n";
               echo "
\n";
            }
            if ($data['book_language']) {
               echo "
\n";
               echo "
\n";
               echo "
\n";
            }
            if ($data['book_format']) {
               echo "
\n";
               echo "
\n";
               echo "
\n";
            }
            echo "
\n";
            echo "
\n";
            echo "
\n";
            echo "
\n";
            echo "
\n";
            $drating = dbarray(dbquery("SELECT SUM(rating_vote) sum_rating, COUNT(rating_item_id) count_votes FROM ".DB_RATINGS." WHERE rating_item_id='".$data['book_id']."' AND rating_type='B'"));
            $num_votes = $drating['count_votes'];
            $rating = ($num_votes > 0 ? str_repeat("",ceil($drating['sum_rating']/$num_votes))." [".$locale['book_428'].": ".$num_votes."]" : $locale['book_429']);
            echo "
\n";
            echo "
\n";
            echo "
\n";
            echo "
\n";
            echo "
\n";
            if ($asettings['read_epub'] && ($data['book_format'] =="EPUB")) {
            echo "
\n";
            echo "
\n";
            } elseif ($data['book_format'] =="PDF") {
            echo "
\n";
            echo "
\n";
            } else {
            echo "
\n";
            echo "
\n";
            }
            echo "
\n";
            if ($data['book_description']) {
            echo "
\n";
            echo "
\n";
            echo "
\n";
            }
            echo "
\n";
            echo "
\n";
            echo "
".$data[\n";
            if ($asettings['social_sharing']) {
               echo "
\n";
               $link = $settings['siteurl'].str_replace("","",INFUSIONS)."booklib/book.php?book_id=".$_GET['book_id'];
               echo "Facebook \n";
               echo "Twitter \n";
               echo "Digg \n";
               echo "Reddit \n";
               echo "Del.icio.us \n";
               echo "
\n";
            }
            echo "
".$locale['book_411'].":".$data['book_title']." ".$new."
".$locale['book_417'].":".($data['book_author'] ? $data['book_author'] : "-")."
".$locale['book_413'].":".cat_parents($data['book_cat'])."
".$locale['book_419'].":".$data['book_pubdate']."
".$locale['book_415'].":".$data['book_publisher']."
".$locale['book_436'].":".$data['book_language']."
".$locale['book_438'].":".$data['book_format']."
".$locale['book_422'].":".($data['book_filesize'] ? $data['book_filesize'] : "-")."
".$locale['book_418'].":".$rating."
".$locale['book_424'].":".$locale['book_416']." [".$data['book_count']."] ".(!$can_download ? "".$locale['book_432']."" : "")."
".$locale['book_443'].":".$locale['book_439']."".$locale['book_443'].":".$locale['book_445']."".$locale['book_443'].":".$locale['book_444']."
".$locale['book_423'].":
".html_entity_decode(parseubb(parsesmileys($data['book_description'])))."
".$locale['book_433']." ".profile_link($data['user_id'], $data['user_name'], $data['user_status'])."
".$locale['book_437']." ".showdate("shortdate", $data['book_datestamp'])."
\n";
            closetable();



Please someone help me to understand what I am doing wrong!
26-06-2019 03:11, 3 months ago
Re: Mastodon Feed
E
Re: Transfer of unique visitors from the bottom to online_users_panel, added a date. Transfer of unique visitors from the bottom to online_users_panel, added a date.
Code
echo "
\n".showcounter()  .showsubdate()."
\n";

daimonbok1
daimonbok1 29-07-2017 01:40, 2 years ago
Re: Instead of using an iframe to load content into a page Found this today, easier than iframes and seem better accepted maybe?

RobiNN
RobiNN 11-05-2017 18:39, 2 years ago
Re: Content Creator for PHP Fusion 9 Thanks https://github.com/RobiNN1/Content-Creator/commit/e9e7f913d322eeb720a38aeaaee6c5bcc00f6e6b

Small update https://github.com/RobiNN1/Content-Creator/commit/8e5e7a0702de1c76883fed5ad70f020bfe166f3f
O
omikron20 11-05-2017 18:36, 2 years ago
Re: Content Creator for PHP Fusion 9 If you need it. I made Polish locale
RobiNN
RobiNN 11-05-2017 14:38, 2 years ago
Re: Content Creator for PHP Fusion 9 Thanks. Added: https://github.com/RobiNN1/Content-Creator/commit/4de141aa2371557097b9b2f611cd6ecf2d6df963
keddy
keddy 11-05-2017 14:15, 2 years ago
Re: Content Creator for PHP Fusion 9 Romanian.php

Code

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: content_creator/locale/Romanian.php
| Author: Keddy
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
$locale['CC_title'] = 'Creator conţinut';
$locale['CC_descr'] = 'Un simplu creator de conţinut pentru dezvoltatori.';
$locale['CC_001'] = 'Crează';
$locale['CC_002'] = 'şters.';
$locale['CC_003'] = 'creat.';
$locale['CC_004'] = 'Membri';
$locale['CC_005'] = 'Administratori';
$locale['CC_006'] = 'Grup';
$locale['CC_007'] = 'Descriere';
$locale['CC_008'] = 'Grupuri utilizatori';
$locale['CC_009'] = 'Categorie';
$locale['CC_010'] = 'Articol';
$locale['CC_011'] = 'Categorii de articole';
$locale['CC_012'] = 'Articole';
$locale['CC_013'] = 'Blog';
$locale['CC_014'] = 'Categorii de blog';
$locale['CC_015'] = 'Bloguri';
$locale['CC_016'] = 'Pagină';
$locale['CC_017'] = 'Pagini personalizate';
$locale['CC_018'] = 'Descărcare';
$locale['CC_019'] = 'Categorii de descărcări';
$locale['CC_020'] = 'Descărcări';
$locale['CC_021'] = 'Întrebare';
$locale['CC_022'] = 'Categorii de întrebări frecvente';
$locale['CC_023'] = 'Întrebări frecvente';
$locale['CC_024'] = 'Ştire';
$locale['CC_025'] = 'Categorii de ştiri';
$locale['CC_026'] = 'Ştiri';
$locale['CC_027'] = 'Sondaj';
$locale['CC_028'] = 'Prima opţiune';
$locale['CC_029'] = 'A doua opţiune';
$locale['CC_030'] = 'Sondaje';
$locale['CC_031'] = 'Shouts';
$locale['CC_032'] = 'Shoutbox';
$locale['CC_033'] = 'Legătură pe internet';
$locale['CC_034'] = 'Categorii de legături pe internet';
$locale['CC_035'] = 'Legăruri pe internet';
$locale['CC_036'] = 'Nu există %s definite.';
$locale['CC_037'] = 'A nu se utiliza într-un sait online!';
$locale['CC_038'] = 'Te poţi conecta ca orice membru cu';
$locale['CC_039'] = 'Parolă';
$locale['CC_040'] = 'Parolă administrare';
?>

Falk
Falk 29-04-2017 09:37, 2 years ago
Re: Content Creator for PHP Fusion 9 Nice one RobiNN :G
RobiNN
RobiNN 28-04-2017 16:16, 2 years ago
Re: Content Creator for PHP Fusion 9 Thanks. https://github.com/RobiNN1/Content-Creator/commit/05d14432645d85ba2ddd8c4b2d038a05683da318
helmuth
helmuth 27-04-2017 22:32, 2 years ago
Re: Content Creator for PHP Fusion 9 Danish.php

Code

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: content_creator/locale/Danish.php
| Author: Helmuth Mikkelsen (helmuth)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
$locale['CC_title'] = 'Indholdsudfylder';
$locale['CC_descr'] = 'En enkel indholdsudfylder til udviklere.';
$locale['CC_001'] = 'Opret';
$locale['CC_002'] = 'slettet.';
$locale['CC_003'] = 'oprettet.';
$locale['CC_004'] = 'Brugere';
$locale['CC_005'] = 'Admins';
$locale['CC_006'] = 'Gruppe';
$locale['CC_007'] = 'Beskrivelse';
$locale['CC_008'] = 'Brugergrupper';
$locale['CC_009'] = 'Kategori';
$locale['CC_010'] = 'Artikel';
$locale['CC_011'] = 'Artikelkategorier';
$locale['CC_012'] = 'Artikler';
$locale['CC_013'] = 'Blog';
$locale['CC_014'] = 'Blogkategorier';
$locale['CC_015'] = 'Blogs';
$locale['CC_016'] = 'Side';
$locale['CC_017'] = 'Brugeroprettede sider';
$locale['CC_018'] = 'Download';
$locale['CC_019'] = 'Downloadkategorier';
$locale['CC_020'] = 'Downloads';
$locale['CC_021'] = 'Spørgsmål';
$locale['CC_022'] = 'Faqkategorier';
$locale['CC_023'] = 'Faqs';
$locale['CC_024'] = 'Nyheder';
$locale['CC_025'] = 'Nyhedskategorier';
$locale['CC_026'] = 'Nyheder';
$locale['CC_027'] = 'Afstemning';
$locale['CC_028'] = 'Første valg';
$locale['CC_029'] = 'Andet valg';
$locale['CC_030'] = 'Afstemninger';
$locale['CC_031'] = 'Replikker';
$locale['CC_032'] = 'Replikboks';
$locale['CC_033'] = 'Link';
$locale['CC_034'] = 'Linkkategorier';
$locale['CC_035'] = 'Links';
$locale['CC_036'] = 'Der er ikke oprettet nogen %s.';
$locale['CC_037'] = 'Er ikke til brug i et produktionsmiljø!';
$locale['CC_038'] = 'Du kan logge ind som bruger med';
$locale['CC_039'] = 'Kodeord';
$locale['CC_040'] = 'Admin kodeord';

RobiNN
RobiNN 27-04-2017 21:46, 2 years ago
Re: Content Creator for PHP Fusion 9 I created simple Content Creator for easy theme development.
Do not use in a live environment!

You can create or delete: Members and Admins, Groups, Articles, Blogs, Custom Pages, Downloads, Faqs, News, Polls, Shouts and Web Links.
In one click you can create max 2000 items.

Download: https://github.com/RobiNN1/Content-Creator
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.