Loading...
 
Skip to main content

Category: Easy for Newbie Dev

Easy for Newbie Dev
Show subcategories objects

Name Type
Captcha, CAPTCHA questions and answers involving text string is not working anymore
{syntax type="tiki" editor="plain"}
At tiki-admin.php?page=login admin can set "CAPTCHA questions and answers".

A question with a single answer.
If I use -+1,3,5,7,?= :9+- it will work.

If I use a text string like -+What is the capital of France ? :Paris+- it won't work as it was previously.
tracker item
Categories in tracker items should be alphabetically sorted in tiki-view_tracker.php
Or else, new ones are added at the bottom and it looks bad.
tracker item
Categories, adding page should be easier and the field that display the pages expandable
At tiki-admin_categories.php?parentId=2&cookietab=3#content_admin_categories1-5, Add objects, you have a selector field that display all the pages available for categorization (the pages that are not in this category). It show only 5 pages and it make the user action quite uncomfortable.

https://ibb.co/yWDWL67

It should be possible to expand this selector and display more pages.

tracker item
Category field in Tracker should have autofill
I would like to take work from my users (so basically myself) and categorize automagically.

I am thinking of some kind of

Type: Category
Options: parentId, 1

where 1 would mean to automatically check all check-boxes.
Then I'd make the field invisible and mandatory(is that needed any more) and voila - no one realized you got some more metadata.. ;)
tracker item
Changed names of custom modules will create a new custom
When changing a name of custom module, a new module is being created with all the changes.
It should update the existing custom module and not create a new one.
tracker item
Cleaning and improving console.php batch:upload command feedback
{CODE()}[root@ip-xxxxx html]# php console.php files:batchupload 5 --confirm
<feedback>feedback: Image was reduced: %s x %s -> %s x %s
</feedback>{CODE}

*HTML feedback is returned when using the console.php: It should be returned without tag.
*Un-needed or malformed feedback was returned: If no reduction it should return nothing or something like "Images where upload at original size".
*Expected message is missing: Should return something like "n files were successfully uploaded" (can be improved with the files, path and galleryId ?)

Is it returned only when all files are images or even if files are PDF (message is not relevant and erroneous)

---

*HTML feedback is returned also for tracker:import
{CODE()}
<feedback>feedback: 9 tracker(s) item(s) updated
</feedback>
{CODE}

tracker item
Click on an already used tag doesn't add it anymore to the tags field
{syntax type="tiki" editor="plain"}
When editing a Wiki Page (properties) or an Article (classification), if you use the Tiki tags (freetags) you will see a "Tags" field with the list of the most popular or last used tags.

Normally when you click on a tag, it is added to the field.
This is not working anymore.

tracker item
Clicking on a tag at tiki-browse_freetags.php should initiate the tag search immediately
{syntax type="tiki" editor="plain"}
At https://nextdoc.tiki.org/tiki-browse_freetags.php you can see the list of all the tags.
When you click on a tag it add the term to the search field and wait for further action from the user.

When I click on the search button the term will stay in the search field and other terms will be added.

This is a bit wonky and bad for UX.

Clicking on a tag should do the job, initiate the search for the object with this tag.

Viewing this video from the file gallery is not working (anymore) download the file: https://dev.tiki.org/dl1629

Media player's way:
{mediaplayer src="display1629"}

Update and clarification {sign user="Bsfez" datetime="2021-11-30T08:44:36+00:00"}
At https://doc.tiki.org/tiki-browse_freetags.php I used 2 tags (that have results, they are displayed in bigger font size): configuration articles

All selected = 0 results (what ?)
{img type="fileId" fileId="1653" thumb="box"}
{img type="fileId" fileId="1652" thumb="box"}
---
One selected = results (not sure what was searched... look like both)
{img type="fileId" fileId="1657" thumb="box"}
{img type="fileId" fileId="1656" thumb="box"}
---
Last selected = results that seems to be articles (Good)
{img type="fileId" fileId="1654" thumb="box"}
{img type="fileId" fileId="1655" thumb="box"}

Not only the UI is not great but if this is what was intended it very confusing and look broken.
In comparison with "all selected" and "last selected" and the results displayed I don't know what a user is supposed to understand. The options descriptions are also adding confusion, terms in a input (search) field are not "selected" while terms clicked on should be considered as selected (mobile era).
tracker item
Console, translation:getstrings argument basedir not working outside a Tiki (documentation missing ?)
In the console.php translation:getstrings it is possible to use the "basedir" argument to set the directory from where you want to get the string (or so it seems). However you can only use it inside a Tiki root directory or at least a directory that contain a /lang/yourtargetlanguage directory. (ie: lang/en/)

See: lib/language/GetStrings.php
Line 171 ~pp~if (! file_exists($this->baseDir . '/lang/' . $lang)) {~/pp~

Else it throw an error "Invalid language code."

There should be a better documentation for this or a mechanism to ask if the user want to create the "missing" directory in the basedir.
(use case: getting strings of smarty template in themes/templates or inside a specific theme: themes/Bernard/templates)
tracker item
Contrast and padding issue on "Tracker item actions" dropdown
See the attachment
tracker item
Contrast issue on the auto-toc
See https://dev.tiki.org/Git-and-SVN-combined-workflow for example
tracker item
Convene plugin show one winner's day when there are several
{img fileId="1592" thumb="box"}

From a quick view it seems there is a best day for the meeting.
however if we take a better look, there 3 possible days.

Instead of pointing (green success colours) to the first top result, there should be a better way to visually mark the 3 possible options.
tracker item
Converting page from Wiki Syntax to Markdown (issues and workarounds)
{syntax type="tiki" editor="plain"}
During my test of converting pages created with Wiki Syntax to Markdown I encounter the following issues.
__Edit icons from action menu__
It has no effect anymore.
If it won't work, the menu item shouldn't be seen.

__Carriage return or line feed__
To display 2 empty lines I used the backslash sign.
{CODE()}
textA
\
\
textB
{CODE}

__Tables__
I used this syntax to create a table without headers
{CODE()}
||Perl version|5.036000
Path to Perl|/usr/bin/perl
Python version|3.11.2
Path to Python|/bin/python3.11||
{CODE}

I had to change it to:
{CODE()}
| Name | Version / Location |
| --------- | --------- |
|Perl version|5.036000|
|Path to Perl|/usr/bin/perl|
| Python version | /bin/python3.11 |
{CODE}
(space before or after a pipe (|) is not mandatory)

__Centering__
There is no alignement syntax in Markdown.
Pictures seems to be displayed without limit.
I used this syntax to create a table without headers
{CODE()}
::{img fileId="82" class="border"}::
{CODE}

In this case I changed it to:
{CODE()}
{img fileId="82" class="border img-fluid text-center"}
{CODE}

In other cases it is possible to use the center plugin.

{CODE()}
{CENTER()}this is centered ?{CENTER}
{CODE}

__Comments__
There is no comment syntax in Markdown.
I used this syntax to have a comment in a page
{CODE()}
~tc~FINAL CTA~/tc~
{CODE}

I had to change it to:
{CODE()}
{DIV(class="d-none")}FINAL CTA{DIV}
{CODE}
This kind of solution doesn't make the editor life easier...

__HTML icon__
For a complex bloc where I needed to display an icon I used
{CODE()}
<i class="fas fa-bolt"></i>
{CODE}

I had to use the wiki plugin
{CODE()}
{icon name="bolt" name="bolt"}
{CODE}

__DIV wiki plugin__
''may be not related to markdown as wiki plugin should work normally?''
I created a bloc as is:
{CODE()}
{DIV(class="container mt-5")}
{DIV(class="p-5 bg-primary text-white text-center rounded")}
{DIV(type="h3" class="font-weight-bold mb-3 text-info-light")}
{icon name="bolt" name="bolt"} Partner With Us !
{DIV}
{DIV(class="lead")}With a strong focus on OpenSource technologies, we bring years of expertise working with medium and large organizations. Our proven methodologies ensure smooth operations and the flexibility to evolve with your needs.{DIV}
{button href="HomePage#contact" _text="Let's discuss your project" _icon_name="paper-plane" _type="warning" _class="btn-lg font-weight-bold px-5 mt-3"}
{DIV}{DIV}
{CODE}

On Tiki29 it look like this.
{img fileId="3207" thumb="box"}

On master with markdown it look like this:
{img fileId="3208" thumb="box"}

To be continued...
tracker item
Converting pages from Wiki syntax (tiki) to Markdown syntax - Workaround
{syntax type="tiki" editor="plain"}
I upgraded a Tiki29 to master and enabled Markdown with the markdown syntax to used by default.
That didn't converted previous pages to markdown and I couldn't find a switch to do it page per page (like we had in previous version for the CKEditor).

The workaround I found;
# Open, Edit and save a page -> this will add this tag in the page data
# Go to you database, I used phpmyadmin and replace "tiki" with "markdown"

Your page will be converted to markdown and now you need to manually convert the content.

tracker item
Cookie consent form and shaded page background appear on every page load at dev.t.to
{syntax type="tiki" editor="plain"}
Recently at dev.tiki.org, the cookie consent form displays on every page load, even though I have consented to the default and selected "save preference". The form only displays for a few seconds but it shouldn't show at all for a user who has consented to cookies.
tracker item
Create smarty_modifier_slug
I'm finding i need a consistent way of creating urls with a sefurl version of the title (usually) on tracker items, and i'm doing loads of title|replace:' ':'-' which leads to mess.
So i need to make smarty_modifier_slug() to do that as title|slug to obey the pref setting for it.
So just a reminder fo myself really, unless someone else wants to have a go! :) {sign user="jonnybradley" datetime="2019-05-09T10:57:31+00:00"}

(don't forget about / chars {sign user="jonnybradley" datetime="2019-05-23T11:48:31+00:00"})
tracker item
Creating calendar events creates doubled entries
When creating calendar events I noticed that I created two events. Since this happend to me three times in a row I can exclude user error...

The events had this in common: They are whole day, they repeat every year, and they repeat 99 times (there is still no function in the calendar for endless repetition).

All doubles had precisely the same text, same date etc. The second entries could be manually deleted with no problems.

Thanks
hman
tracker item
Creating captions breaks flow of text around images
When I use the image plugin in TikiWiki 18.3 and set the text to flow around the image (imalign=right|left) then the text flows around as it should.

When I set a caption to the image (desc="") then the flow is immediately disrupted.

Captions, when no text flow is set, work perfectly, so these two features disturb each other. I posted this as a question in the forum, and got a workaround and the advice to report this as a bug.

Thanks for your help
hman
tracker item
Customsearch searchonload stopped working on Tiki27.x when minifying javascript is enabled
{syntax type="tiki" editor="plain"}
On a Tiki27.x updated the customsearch plugin stopped to automatically load the page load results.
{CODE()}
{CUSTOMSEARCH(tpl="featuredFaq_customsearch.tpl" id="faqCustomSearch" recalllastsearch="0" searchonload="1" requireinput="0" customsearchjs="1")}
{CODE}

I can see an error in the DOM

{CODE()}
min_main_635f6700bf01c878afa54f2ab788dacc.js:108
Uncaught ReferenceError: jQuery is not defined at min_main_635f6700bf01c878afa54f2ab788dacc.js:108:98
min_main_abcaaa9d363b26f17986183396fe6829.js:43
Uncaught ReferenceError: jQuery is not defined at min_main_abcaaa9d363b26f17986183396fe6829.js:43:37
wikipage:499
Uncaught ReferenceError: $ is not defined at trackeritemtitle:499:1
wikipage:596 Uncaught ReferenceError: $ is not defined at wikipage:596:1
wikipage:1
{CODE}

In the Settings -> Performances admin panel
Minify JavaScript
Minify late JavaScript
Are enable.

If I disabled them both, the searchonload work again

On demo Tiki29 we can see an error feedback.

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


tracker item
Date selectors on tracker items are broken after update to Tiki27.5 under certain conditions
{syntax type="tiki" editor="plain"}
I've updated a Tiki27.x (after the Tiki 25.7 release) and now the date and time selectors are broken.
It is visual and forbid entering a date. I found a workaround, see below.

This is an old Tiki (started in Tiki9x) that was updated years after years.
I couldn't reproduce on demo.

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

I don't see errors on the console on Brave.

On chrome:
{CODE()}
min_main_235ae2033a9c3fb4320e739db2fbcd55.js:137 JQMIGRATE: Migrate is installed, version 3.5.2
injected.js:3 [Detection] Sign in with intersection observer was watching an unacceptable node.
WI @ injected.js:3
injected.js:3 [Detection] Sign in with intersection observer was watching an unacceptable node.
WI @ injected.js:3
{CODE}

{CODE()}
if (!No(o)) {
console.error("[Detection]", "Sign in with intersection observer was watching an unacceptable node.") || logger.report(["Sign in with intersection observer was watching an unacceptable node."], {
severity: "error",
fileName: "js/b5x/ui/inline/frame-manager/src/sign-in-with/detection/manager.ts",
lineNumber: 230,
prefix: "[Detection]",
highlight: !1
}),
t.unobserve(o);
continue
}
{CODE}
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
Deleting a page yields error message
When you open the orphan pages function, select a page to be deleted and set "delete" as the action for the marked pages, you will be prompted with a dialog that asks whether this page shall be deleted (btw. cf. umbrella bug for missing tra: That dialog is only partially translatable). You are presented with the option to create a 301 redirection. The dialog has two buttons: Close and Delete. If you chose Delete and did not mark the checkbox for the redirect (because you just want to delete) then you get the error message that "no page was selected", although clearly a page had been selected, and in the above mentioned dialog it was displayed, so there can be no mistake that the selection took place...
tracker item
Deleting a thread in the forum should lead back to forum topic
On the Tiki forum if you delete a topic you will see 2 messages:
"Success"
"Error"

The topic page should be loaded as success and not a "lost in space" page. ?

{img fileId="1541" thumb="box"}
tracker item
Demo Tiki29 doesn't seems to use last code from Gitlab branch to upload a file
{syntax type="tiki" editor="plain"}
On my Tiki29.x constantly updated I can see a commit that was made to show the code to insert a file on a wiki page after the upload. It was broken and fixed recently.

At https://29x.demo.tiki.org/tiki-upload_file.php?galleryId=1 the fix is not displayed.

I also checked the git information module that says this Tiki was updated today.

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

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

tracker item
Dev tracker, user selector; removing a user from the "keep informed" field is hardly possible when there more than one user
{syntax type="tiki" editor="plain"}
On the tracker field selector user you may have several users selected.
Exemple: https://dev.tiki.org/item7083-Set-up-wish-reminder-system

Unless you want to remove the last user, it is super not user-friendly to remove a user from the field. You have to delete all and re-assign them one by one without the one you wanted to remove.

That's a pain and forbid changes in many cases.

{mediaplayer src="display2146"}
tracker item
Show PHP error messages