91
nachenko
Re: CBB 3.07 - Date and Time Format - Change to UK style
  • 2007/10/3 10:17

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


OK, same problem, fixed edting this frameworks/xoops22/etc file.

But I'm using XOOPS 2.0.16, why am I editing a file in a folder named xoops22? I think CBB should use the default date formats as defined in XOOPS_ROOT/language folder. Keep things simple.



92
nachenko
Re: How to declare a global variable?
  • 2007/10/2 9:19

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


From the code you've just put, you seem to use global before declaring the variable. If it's so, you're in a mistake.

global $cat is not used to declare a global variable, but inside functions and stuff like that to "tell the system" that when we "say" $cat we are talking about a global variable declared OUTSIDE functions.

I've had some problems like this before, and I found the solution searching for "variable scope" in the PHP manual.



93
nachenko
Re: Horizontal main menu - need smarty help
  • 2007/10/2 8:51

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


I see two "smarty" solutions on this.

· You have 8 possible locations for your block in XOOPS. Put the mainmenu block in a location that you don't use, then delete this location from the main template.

· Relocate one of those 8 possible locations to the position you want it to appear. This is how it's done in this site:

http://www.ugr.es/~ncog/modules/news/index.php?storytopic=8

The submenu left is located bottom left column. I relocated it in the template.

More info on blocks location and rendering process here:
http://www.xoopswiki.org/wiki/index.php?title=XOOPS_Page_Rendering


Another, more dirty trick should be to edit main menu template and add some CSS on the first tag:

style="visibility: hidden"

It's dirty, but it works.



94
nachenko
Re: Bug editing users profile
  • 2007/9/21 8:57

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Quote:
Does changing the "f" to "F" adversely affect those languages which use "." rather than ","?


It shouldn't, as lowercase "f" means "consider locale settings" and uppercase F means "ignore locale settings"



95
nachenko
Bug editing users profile
  • 2007/9/21 8:42

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Hi everyone.

I found a bug and a fix editing user's profile, but before inserting it in the bug tracker, I want to discuss some points:

1 - I found it in XOOPS 2.0.16 EXM, not in latest release

2 - It only happens in languages that use comma as float numbers separator, such as spanish.

This is the problem. A number with decimals is written this way in english...

Pi = 3.14

...and this way in spanish...

Pi = 3,14

Notice the comma instead of the dot.

OK, when editing user's profile, timezone offset is inserted in the database in float format IN A WAY THAT CONSIDERS LOCALE SETTINGS, so it tries to insert...

timezone_offset = 1,00,

...in the database, which causes a error.

This is the code that causes the problem:

file kernel/user.php, line 528

Quote:
$sql = sprintf("UPDATE %s SET uname = %s, name = %s, email = %s, url = %s, user_avatar = %s, user_icq = %s, user_from = %s, user_sig = %s, user_viewemail = %u, user_aim = %s, user_yim = %s, user_msnm = %s, posts = %d, pass = %s, attachsig = %u, rank = %u, level= %u, theme = %s, timezone_offset = %.2f, umode = %s, last_login = %u, uorder = %u, notify_method = %u, notify_mode = %u, user_occ = %s, bio = %s, user_intrest = %s, user_mailok = %u WHERE uid = %u", ...



And this is the fix: Ignore locale settings for this number.
Quote:
$sql = sprintf("UPDATE %s SET uname = %s, name = %s, email = %s, url = %s, user_avatar = %s, user_icq = %s, user_from = %s, user_sig = %s, user_viewemail = %u, user_aim = %s, user_yim = %s, user_msnm = %s, posts = %d, pass = %s, attachsig = %u, rank = %u, level= %u, theme = %s, timezone_offset = %.2F, umode = %s, last_login = %u, uorder = %u, notify_method = %u, notify_mode = %u, user_occ = %s, bio = %s, user_intrest = %s, user_mailok = %u WHERE uid = %u", ...


Notice the red uppercase F.

Now the bad news: it requires PHP 4.3.10 or higher. It works for me, but I'd prefer a more compatible solution.

Any comments, please?



96
nachenko
Re: problem getting started!
  • 2007/9/6 9:43

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


The exact error message is that you don't have permission to access this area, right?

So it accepted your username and password correctly, am I right?

After you're forbidden access and redirected, can you see the user menu on the left? "View account, Notifications, Logout" and all this stuff?



97
nachenko
Re: Which calendar module to use?
  • 2007/9/3 8:59

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


extCal is more simple, and works well. I'd recommend extCal over piCal unless you need lots of features. If you're looking for a simple calendar/event mod, get extCal



98
nachenko
Re: edit mass Users
  • 2007/9/3 7:08

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


You can't do it via XOOPS inteface. You should enter the database and change all them in a single query. If you don't know how to edit the database directly, you should meet PHPmyadmin, a free database administration tool.

When you modify anything in PHPmyadmin, it doesn't only do it, but it shows in screen the SQL query, the one that you should need to use if you wanted to do the same change by writing a program (that is, you learn the SQL syntax while you use PHPmyadmin.

You can try to change one user's email, just for test purposes, then put the SQL query here (skip the database name), we'll show you how to write the proper query to make the change you want.



99
nachenko
Re: Xoops 2.0.17 and XOOPS EXM
  • 2007/8/29 6:46

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


This is possible in the EXM edition. The admin interface is the default theme, just edit it and you're done. The drawback is that the classic interface is not available at all, but you can create your own.



100
nachenko
Re: Xoops 2.0.17 and XOOPS EXM
  • 2007/8/28 9:11

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Oh, yeah, Giba bringing us good news again.




TopTop
« 1 ... 7 8 9 (10) 11 12 13 ... 27 »



Login

Who's Online

179 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 179


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits