81
nachenko
Showing the right block in the worng place: Top page wrong detection
  • 2007/10/11 11:30

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Hi!

I found sometihng that could not be considered a bug, but just wrong behavior of the theme engine.

Suppose you config a block to be shown on top page and ONLY on top page. Suppose your top page is some module's top page, News module for example.

So you open the page and you have News front page and the block. You click on some category's name to see all articles in a category.

Block is still there.

You click on an article.

Block is NOT there.

???

I think the problem is this: News uses index.php for both showing the front page and the category index page, with leads XOOPS engine into confusion on "what is the front page".

I'm trying to find the code that controls this and change it, but this is a part of XOOPS i've never touched and I don't find the stuff.

This is the site:

http://www.anince.es

Thank you



82
nachenko
Re: Testing Xoops Total 2.0.18 Package.
  • 2007/10/11 10:51

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Oooh... a EXM edition based version... great news... EXM admin interface should be the official one.

As this is a version developed by non-english people, please check this bug:

http://sourceforge.net/tracker/index.php?func=detail&aid=1799931&group_id=41586&atid=430840

Check also the comments on this bug.



83
nachenko
Re: How do you add buttons to the main menu?
  • 2007/10/10 8:24

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


You can include PHP code in your templates. I think this is the cleanest way, as you're adding your stuff keeping the XOOPS code safe.

This is the way:

<{php}>
Put your PHP code here
<{/php}>



84
nachenko
Re: Server delivering files in wrong charset
  • 2007/10/8 17:42

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Hi!

I found something about this:

mysql_query("SET NAMES 'utf8'", ...

What is that? It says something like PHP defaults to latin1 on MySQL queries.

Quote:
I found the cause of my problem - after doing many hours of reading - to be a default PHP setting:

A PHP MySQL connection (...) defaults to a latin1 connection, so, your first query after connection should be:

mysql_query("SET NAMES 'utf8'");


http://www.adviesenzo.nl/examples/php_mysql_charset_fix/



85
nachenko
Re: Server delivering files in wrong charset
  • 2007/10/8 17:23

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Still no luck.

Server keeps doing exactly the same.

Moreover, i've converted ALL FILES and database to utf8. Opened in Dreamweaver, saved in UTF-8. Database was exported, SQL file converted to UTF-8, reviewed the file so "collation" and "character" is always utf8, then created a new UTF-8 database using the previously exported file, loaded as UTF-8.

Using PHPmyAdmin shows special characters correctly.

But then, I open the page in local using XAMPP, everything is UTF-8, the output received by the browser, the character set specified is UTF-8... but the database output looks scrambled, special characters are all wrong...

WTF!!!

The db is UTF-8, the php files are all them utf-8, the output is UTF-8, but I change the charset in the browser to Latin1 and the DB output in the browser looks right!!!

What's wrong?



86
nachenko
Re: Server delivering files in wrong charset
  • 2007/10/8 9:12

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Thanks, JMorris, I'll try today.



87
nachenko
Re: Reading and computing group-ids with smarty
  • 2007/10/5 10:39

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Hi, FrankBlack.

I wrote a hack like this some time ago, don't know what's exactly your problem:

I added this code in header.php about line 100:
Quote:
$xoopsTpl->assign( 'xoops_usergroups', $xoopsUser->getGroups() );



And this is the result in the Smarty console:

Quote:
{$xoops_usergroups} Array (4)
0 => 1
1 => 2
2 => 15
3 => 16


See? It gives an array. What method did you use to attach it to the template? Did you use $xoopsTpl->assign() or did you use any other method?



88
nachenko
Server delivering files in wrong charset
  • 2007/10/5 10:04

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Man, when a server wants to piss off...

Some of you know that I do stuff for a University, and every time I have to cope with their servers is like a pain in the ass.

This time the problem is that the server is ignoring this:

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

Pges are ISO-8859-1 encoded, as usual in spanish XOOPS installations, but it delivers the pages in UTF-8 instead. In Firefox, you go into "page properties", and it's very clear: meta charset blablabla ISO-8859-1, page encoding UTF-8. Spanish special characters totally [the f... word here] up! Force the browser to use ISO-8859-1 encoding instead of autodetect, and everything looks fine.

What's wrong, why can't it simply autodetect the charset from the META field as most sites do?

I'm sure it's a server configuration, but we can't touch it, we need a solution that can be used in a .htaccess file.

I've tried this:

AddDefaultCharset ISO-8859-1

in a .htaccess file, no luck.

Suggestions welcome, thank you.



89
nachenko
Re: WF-Channel V2 RC released
  • 2007/10/4 16:22

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Many people defends Smartsection as the final solution, but the interface is too complicated for non-tech people. Too many options. It would be fine if we could hide all those extra options via permission system, but we can't. SmartSection is a Tank, which is good, but I'm looking for a BMW Mini / Transformer.



90
nachenko
Re: WF-Channel V2 RC released
  • 2007/10/3 17:41

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Good news!

BTW, I can't find a feature list for this version. Could you paste them?

EDIT: Sorry, my mistake, I found them into the "docs" folder.

There are some other modules like this out there, but there is no perfect solution.

· Yours has per-page permission. Great feature.
· Mastop Publish can do subcategories. Very important.
· TinyD is easily clonable, which allows different templates for different sections. Otherwise, it's very simple.
· piCo... I tried to install and failed.

News could be the perfect module for this if it supported manual sorting of categories and articles.

So... while the perfect static content module arrives, you coming with an update of your module is great news for me.




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



Login

Who's Online

240 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 240


more...

Donat-O-Meter

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

Latest GitHub Commits