Loading...
 
Skip to main content

Category: Developer Training

Developer Training
Show subcategories objects

Name Type
Trackers; The tracker field country selector is not displaying country flags (edit)
On Tiki23 you can set a tracker and add a new field "Country Selector".
In the field options you can set if you want to display the country Name, Flag or both.

No matter what you select only the country name is displayed.

Tested on demo.tiki.org
tracker item
Trackers; Validation field length for a Regex pattern is limited
On a Tiki23 I create a tracker and add an email field.
I wanted to add a validation using the validation option (edit tracker field options).

I set for Type; Regular Expression (pattern)
Parameter:
{CODE()}
(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])
{CODE}

Error Message : Enter a valid email

Parameters comes from : https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression

On save I have the following error.

×
Error
Data too long for column 'validationParam' at row 1

Even if the pattern is a bit funky, this is another "legacy" value limitation that should be removed.
tracker item
Trackers: Need to be able sort as numerical instead of text
{img src=show_image.php?id=10 }

{img fileId="396"}
tracker item
User Interface, UX; http:// in placeholder and help should be changed for https
We have a few places where with placeholders and help text for link that shows "http://".
They should display more modern link usage: "https://".

{img fileId="1774" thumb="box"}
tracker item
When a package is missing interface should help to fix the issue
If a package is missing the help/warning information displays a link to the external missing package repository.

{img fileId="1682" thumb="box"}

It is __important to note__ that we have already a similar mechanism when looking to a page (not the admin control panels) that display a message for admins (I hope for admins only ?)

{img fileId="1683" thumb="box"}

---

At http://bsfez-11581-7999.show2.tikiwiki.org/tiki-admin.php?page=fgal&cookietab=6&highlight=feature_docs, enable "Use PDF.js".

It will display an alert (red background):

The first link "Missing tiki package :" with a link to : tiki-admin.php?page=packages

Then "npm-asset/pdfjs-dist-viewer-min" with a link to :https://asset-packagist.org/package/npm-asset/pdfjs-dist-viewer-min

It should display:
"A Tiki package is missing: Install mpdf/mpdf"
"Install mpdf/mpdf" should be a link to : tiki-admin.php?page=packages

1. Tells the user of a problem
2. Explain what is the problem
3. Suggest the user a way to solve the issue
4. Give the user the direction/action to solve the issue

That's the way a missing package should handled, anywhere.

I added "anywhere" because it seems we have different behaviours.
IE: Go to http://bsfez-11581-7999.show2.tikiwiki.org/tiki-admin.php?page=print
For the "PDF from URL" dropdown, select mPDF. The "PDF Orientation" error will show
"Missing tiki package: mpdf/mpdf" with parts with the same link. (not needed)

{file type="gallery" fileId="1771" showicon="y"}
tracker item
When viewing the bottom of a page the re-captcha shouldn't overlap with footer content
When you use re captcha the Privacy Terms panel overlap (right) element of the page.
You can always scroll to see what is under unless you are at the bottom of the page where the footer and bottom_modules elements are under it.

When recaptcha is enable we should add a margin-bottom so it is always possible to see the footer content.

{img fileId="1640" thumb="box"}
tracker item
Wiki page title (pagetitle) display has some problems
{syntax type="tiki" editor="plain"}
The first problem is that even when the admin preference to display the page title is turned off, there is still an empty h1 tag and heading link in the page. This takes up vertical space and the link icon is visible if the space is hovered over. Turning off the page title display should also "turn off" the heading and link code in the template. When the pref to display the page title is activated, the page title text that displays does have an h1 tag but it has no link code or icon.

The second problem is that the preference option "Display page name as page title" causes the page title to be displayed ''above'' the ''main'' element. This is not good HTML or DOM structure, not good for accessibility, etc.

The third problem is that the preference option "Display the page name inside the page content" doesn't actually cause the page name to be displayed inside div class="content". It's not clear to me why this div was added when there was already an article element and a div id="page-data" (or why the "content" class wasn't added to the div id="page-data"), but IMO the preference name and HTML should be consistent. (Usually there's no visible difference, but a theme might give the page content a different style than the rest of the page, so in this case it's a significant distinction.) The h1 heading tag and link icon that has no text, described in the first paragraph, is actually located correctly, inside div class="content", IMO.

Comparing to versions 27 and 28, it looks like to me that the admin handling of the wiki page title display hasn't been good for a while now so I can understand the motivation to make some changes but there appears to be more work to do.
tracker item
Wiki plugins; Embed a PDF document in a Wiki page from a Google drive
Using Plugin Web Doc Viewer (https://doc.tiki.org/PluginWebDocViewer) I can embed in a Wiki page a PDF from a Tiki file gallery or an external URL (if it end with .PDF from my test) or a Google doc file (documents, spreadsheet, etc) from a Google drive.

Using the plugin Plugin Google Doc (https://doc.tiki.org/PluginGoogleDoc) I can embed a Google doc file (documents, spreadsheet, etc) on a Wiki page.

However I couldn't find a way to embed on a Wiki page a PDF file stored on a Google drive.
It just failed.
tracker item
Wiki, Flagged Revisions; The select categories field is not showing all categories
{syntax type="tiki" editor="plain"}
On a Tiki23, I can activate the "Revision approval" feature for Wiki Pages at -+tiki-admin.php?page=wiki#contentadmin_wiki-3+-
Admin => Wiki page => Flagged Revision => Revision approval

This function then requires the user to select the categories that will be governed by this feature using the field "Revision approval categories".

This is workable if you have a few categories (like 10 or 20). However, if you have many categories and subcategories, it becomes very complicated and hard to understand how to manage them.

To add to the confusion, there is an "invisible" limit on the number of categories that will be displayed. By default, you will see only 50 category results because of the setting:
Look&Feel => Navigation => Limits => Maximum number of records in listings: 50

It is very hard to understand why you don't see all the categories if you are not a super power user.
tracker item
Wikiplugin Media player; It should be possible to directly select or upload a file from the Tiki file galleries
Update: The img plugin insert action will automatically select the mediaplayer plugin if a video is detected. (not well documented)
---
Still:
It is possible using the plugins img or files to select or upload directly a file from the Tiki File Galleries. It would be nice in 2023 to have also this select functionality in the media player plugins.
tracker item
Wikiplugin mediaplayer, webdocviewer, googleDoc; Allow to display a PDF document from a google drive
Using the wiki plugins mediaplayer, webdocviewer or googleDoc we can display PDF and documents from many sources.
Almost everything BUT not PDF document stored on a google drive.

We need to add an option in one of our plugins to allow user to do so.
tracker item
Wikiplugin, memberpayment; The period tooltip is not consistent with available options
On a Tiki23 I set a group (admin groups) to have a membership expiration date.
{img fileId="1718" thumb="box"}

Then on a wiki page I set up a memberpayment plugin : https://doc.tiki.org/PluginMemberPayment
I can set the hideperiod parameter with a dropdown of yes or no

Issues:
# The tooltip for "hideperiod " tells me the default is "1" (not yes or no)

Update: Re-tested on Tiki25 still here.
tracker item
Wikiplugins; Tiki has 2 plugins with the same name "Signature"
On Tiki24 I found out we have 2 wikiplugins Signature.
We should have a different name for different things the sooner the better.
tracker item
File gallery; File description cannot be emptied once it have been filed with a value
On Tiki24 on file gallery => edit properties you can add a description to a file.
If you come back and remove it, it will stay... forever ! ??‍♂️

http://bsfez-11581-8072.show2.tikiwiki.org/tiki-list_file_gallery.php?galleryId=1

Tested with 2 files.
Try to edit/remove save the description.
tracker item
In a file gallery with several pages, the Slideshow should start from the picture displayed on the page
On file gallery you have a slideshow option (admin => listing).
Once enabled it will display a slideshow button at the top of gallery pages.
In browse mode you can navigate from page to page: http://bsfez-11581-7931.show2.tikiwiki.org/tiki-list_file_gallery.php?galleryId=4


When clicking it start a slideshow that display images ===from the first file in the gallery.===

When you have several pages this is not user friendly and is bad UX. (imagine you have hundreds of pictures)

To demonstrate:
*In the edit gallery Iisting setting I set 2 image per pages (row) to have several pages
* I used small images but bigger images or on mobile the image will cover all the screen (you won't see the screen below the slideshow like in my screenshot)

{img fileId="1635" thumb="box"}

ADDITIONAL INFORMATION;
Seems that the URL and the slideshow should use an offset parameter but it is not working.
Exemple: http://bsfez-11581-7931.show2.tikiwiki.org/tiki-list_file_gallery.php?galleryId=4&offset=4
tracker item
Tracker, plugin Trackerfilter; Compute function (sum or avg) calculation are broken
As show on the instance, compute display always a result of "1" and doesn't perform a sum calculation as expected.

Average calculation is working fine so it should be a very hard task.
Something was broken.

Would be great as an "extra" to have the total aligned as the column value (if a col is part of a calculation align it values right).
---
Update 31/01/2022. I updated the instance and check back the case and I confirm the issue.

More details, I'm not using table sorter but the sum parameter from the tracker plugin.
There is no doc available at https://doc.tiki.org/PluginTrackerFilter so my setup relies on the inline documentation in the plugin.

{img fileId="1721" thumb="box"}

Using this I setup 2 trackerfilter to test "sum" and "avg" and both failed.
tracker item
Wrong link on "Add module" button and Edit module tab label isn't accurate
{syntax type="tiki" editor="plain"}
On tiki-admin_modules.php, the "Add module" button should link to the first tab "Edit module", not "Custom modules", because in most cases an existing module will be assigned, not a new custom one created. (The Edit module tab content contains the heading "Assign new module", which reflects that process.)
* So the "Add module" button link should be tiki-admin_modules.php?edit_assign=0&cookietab=1, not tiki-admin_modules.php?edit_assign=0&cookietab=2.
* Thinking about it more, it seems like the first tab label should be "Configure new module", not "Edit module", to better reflect the content of the tab. Modules are edited after being assigned, from their actions link, not in this tab, or else are edited as custom modules, but again not here.
* The "Assign new module" heading in the first tab content can then be removed, as it would be redundant.
I believe the button link issue is a regression but I don't know when it happened offhand.

Another thing, after selecting the module to assign, the page refreshes to an "Edit module" tab and there's a heading "Edit this assigned module: login_box". This is a smaller issue, maybe, but this heading is incorrect because the module is not yet assigned, which might confuse new users. To be accurate, it should be "Edit module: login_box".
tracker item
Create a profile for an improved Issue Tracker (with linked trackers) using the latest improvements in 14x
Create a profile for an improved Issue Tracker (with linked trackers) using the latest improvements in 14x

See this discussion:
[http://irc.tiki.org/irclogger_log/tikiwiki?date=2015-03-17,Tue&sel=180#l176]
tracker item
Delete should not be a default first choice in an admin action dropdown
When you load a tracker list at the bottom you have an action dropdown to do bulk modifications.
By default "Delete selected" (items) is selected.

{img fileId="1607" thumb="box"}

This is not safe and shouldn't be like this as manipulation or unwanted click (on mobile, delays between display and click, etc) may have catastrophic consequences.

Empty selection is the safest option but anything else should be better.
tracker item
Double check footer links on tiki sites after upgrading
Just compare the footer of profiles.tiki.org to dev.tiki.org

{img fileId="300"}


(previously titled: ''dev.tiki.org: The footer links are squished after the upgrade from 10.x to 11.x'')
tracker item
Disallow printing links to be indexed by search engines
This is from Google monthly report for Doc.

{img fileId="1628" thumb="box"}

Obviously we want people searching in google to land on real and good content that promote Tiki, give information or help (support).
Not printing...
tracker item
edit wiki page with strasa.css shows popup boxes hidden below the text area
Using strasa.css in demo.t.o/11.x (reproduced else where also)

Log in as admin
Edit a wiki page,
click at a tool in the toolbar (help icon clicked in the screenshot below)
popup box is shown under the text area, no button are shown, most controls are hidden, etc.

See screenshot

{img fileId="288" thumb="y" rel="box[g]"}

tracker item
Emoji feature isn't working in master
{syntax type="tiki" editor="plain"}
When I click the emoji icon on the toolbar in master, nothing happens.
tracker item
Empty comments shouldn't be possible or they shouldn't be displayed in Since your last visit
There is an empty comment from Adrien at https://dev.tiki.org/tiki-view_tracker_item.php?itemId=7935&threadId=9839
It is displayed as "" in the plugin Since last visit...

{img fileId="1642" thumb="box"}
{img fileId="1643" thumb="box"}
tracker item
Empty slides are added on the Wiki page slideshow
{syntax type="tiki" editor="plain"}
Empty slides are added on the Wiki page slideshow

Visible here : https://doc.tiki.org/slideshow
tracker item
Show PHP error messages