Loading...
 
Features / Usability

Features / Usability


Unpredicted User Module results

posts: 4

Note: In all the code all the HTML opening and closing tags have been replaced with brackets.

I'm in the process of upgrading a 1.8.4 tiki install to 1.9.0. However, I am getting some unpredicted results with "User Modules". A few of my user modules have no "Title", and I'd like to keep it that way, however, after the upgrade, if you leave out the "Title", you get some odd code.

Where it would normally put the Title: Image
Copy to clipboard
[div class="box"][div class="box-title"]TITLE[/div][/div]
it instead places the first few letters of whatever the "Name" attribute is, however, it does so in a div. So my resulting User Module (when viewing the completed HTML source) is: Image
Copy to clipboard
[div class="box"][div class="box-title"] [div id="Us... [/div][div class="box-data] [div id="User Menu" style="display:block;"] [a class="linkmodule" href="tiki-user_preferences.php"]Preferences[/a] [/div] [/div][/div]


Where it actually has those "..." in there (module named "User Menu".
I can place " " in the Title field when editing the module and get it to work that way, however it breaks the design slightly.

Has anyone had this problem?

posts: 4656 Japan

> Has anyone had this problem?

No, but I see something here that may be related. CSS identifiers can't have spaces, but it seems at least some of your module names do contain a space. Try changing "User Menu" to "user_menu" and see if that has any effect. (The module names are for internal use only and don't display, as opposed to the titles, which do, in case anyone is wondering what the difference is.)

-- Gary


posts: 4

Same problem.
It won't allow you to save a module without a title.
If you enter " " it adds a blank line (semi-breaking the layout)
and if you enter a space " ", you get the above (a broken div).

I tried switching it to user_menu, but without luck, I could see why that would make a difference, and some dev. might want to eliminate spaces from the name field (or auto-replace with underscores), as it might be a problem for someone later on.

posts: 4
That first " " should be "&nb.sp;" (no period), but Tiki is parsing it, and I can't edit my post for some reason.
posts: 4656 Japan

> Same problem.
> It won't allow you to save a module without a title.
> If you enter " " it adds a blank line (semi-breaking the layout)
> and if you enter a space " ", you get the above (a broken div).
>
> I tried switching it to user_menu, but without luck, I could see why that would make a difference, and some dev. might want to eliminate spaces from the name field (or auto-replace with underscores), as it might be a problem for someone later on.

At my 1.9.0 Tiki site, I have one user module with no name, so I looked at the HTML source, which is like this (the module tags up til the beginning of the module data, and parentheses in place of angle brackets):

Copy to clipboard
(div class="box module_a") (div class="box-title")(/div) (div id="mod-module_a" style="display: block" class="box-data") (div id="module_a" style="display:block;")


So it looks like nothing breaks or gets substituted if there isn't a module title. (Curiously, the information used — module_a in my code there — is the name of another user module, not this one, but that's another issue and doesn't effect what we're talking about, I imagine.) So maybe you'll need to upgrade to version 1.9.0 to get the behavior you want.

-- Gary

posts: 4

> So it looks like nothing breaks or gets substituted if there isn't a module title. (Curiously, the information used — module_a in my code there — is the name of another user module, not this one, but that's another issue and doesn't effect what we're talking about, I imagine.) So maybe you'll need to upgrade to version 1.9.0 to get the behavior you want.

Thats what I'm working on doing.
Might it have something to do with the upgrade of a 1.8.4 module into 1.9?
I'll try building new modules from the old ones and see what I get...


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting