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 Subforums

Post your code snippets and functions related to v9 here


11 posts | Last Activity on 26-06-2019 03:11 by ikandi
ikandi
ikandi 26-06-2019 03:11, 25 days ago
Re: Mastodon Feed Hi all,

I'd like to get a block of code working in PHP Fusion 9.0.0 if I may.

I use a micro client called Mastodon, which is similar to Twitter, but without the trolls and the censorship.

You can add your feeds into a CMS like PHP-Fusion, using an iframe code block.

Based on your Mastodon instance (or server) and your username, the code is generated, refer mastofeed.com for example settings.

However, I can't seem to get the code displaying correctly in my center panel. Not sure if double quote marks need to be replaced by single quotes. Or whether escape characters in the URL need to be replaced by the proper URL string..

The code looks like this in its raw form:



The width and height are changeable obviously, but I'm unsure about the URL,especially around escape keys and how PHP Fusion handles those. Where it says [ADD YOUR ACCOUNT NAME], just add in your account if you are on Mastodon.

Any assistance would be much appreciated.

Thanks.
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.