PHP-Nuke Services - Addons, Modules, Blocks Vizitati www.westdesign.ro Select Interface Language:EnglishRomanian
  Login or Register HomeForumsDownloadsYour AccountWeb LinksContact   
SectionsShow\Hide
MultiheadlinesShow\Hide
LoginShow\Hide
~ Welcome, alien
Nickname Password
(Register)

~ Membership:

Greetings to the newest member danial
~ New Today: 0
~ New Yesterday: 1
~ Overall: 3668

~ People Online:
~ Visitors: 8
~ Members: 0
~ Total: 8
~Aikon is offline
on Yahoo Msg.
Link to meShow\Hide

aikons.net
Search in FeedsShow\Hide
Search in feeds
HistoryShow\Hide
On 3 December


Speed Up   Pause   Speed Down
DictionaryShow\Hide
Enter the word

Romanian users only

Situl personal NICU RANCOV Forum Index


This topic is locked: you cannot edit posts or make replies. Page 1 of 2
Goto page 1, 2  Next
Multiheadline
Message Author
Reply with quote
Post Posted: Saturday 08 March, 2008 16:17

Hello everyone, first of all I would like to excuse me for my somewhat weak English.

My problem is the following:

I use the module multiheadline, to recover this file, but unfortunately I find myself confronted with a problem of accent.

I have already to try to solve the problem with the solutions given on this forum but without succé.

It would be necessary that I manage to say to the module of decodes the utf8 file xml. I think that with the “utf8_decode” Ca could gone but I am not strong enough in php.

Can you help me?

Thank you very much, in a friendly way

View user's profile Send private message
Reply with quote
Post Posted: Saturday 08 March, 2008 19:55

Hi bentinma and welcome.

The feeds are already utf8_decoded[if needed, if the backend file or xml file is utf8 encoded]

I'm not sure how did you tried to solved this issue but there is here a forum post that might help.

To be more precisely: open functions.php and on filtering function, and comment this three lines:
Code:
   if ($encoding=="UTF-8") {
      $string=utf8_decode($string);
   }


If this isn't working please post here the feed file, from where you get the feeds and I'll check it later.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Saturday 08 March, 2008 20:36

Thank you for your prompt response, but the method that I had to try to solve this problem was exactly that which you describe me.

To give you more information I use phpnuke Stefvar site, than you can download at this link And here the link towards the xml file

Thanks a lot

View user's profile Send private message
Reply with quote
Post Posted: Saturday 08 March, 2008 21:05

Is this right?

http://www.aikons.net/multiheadlines-site-67-page-1.html

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Saturday 08 March, 2008 22:02

Yes it's right

View user's profile Send private message
Reply with quote
Post Posted: Saturday 08 March, 2008 22:04

But how did you make so that goes? or then that do not come from your module but from the phpnuke: /

View user's profile Send private message
Reply with quote
Post Posted: Saturday 08 March, 2008 23:42

I didn't do anything to the module...perhaps it's your browser, something with your default browser encoding.

I don't know for sure...can you post a link to your site to see how it looks...live.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Sunday 09 March, 2008 00:04

this is the link ok my site : MadDevils

my friends have to test with their navigator and the result is identical to me

View user's profile Send private message
Reply with quote
Post Posted: Sunday 09 March, 2008 00:21

You are talking about the center block, right? multiheadlines-center-block.php.
I thought your were talking about the module itself.

Let's try this
on functions.php around line 621 replace the following line
Code:
$content .= "<strong>&raquo;</strong> <a href=\"".$link."\" target=\"blank\">".$title."</a></br>";

with
Code:
$content .= '<strong>&raquo;</strong> <a href="'.$link.'" target="_blank">'.filtering($title, $info['encoding']).'</a></br>';

exactly

After, the content of this block must be refreshed. You cand wait until it refreshes itself or you can go to Admin Panel->Multiheadlines->Multiheadlines Block Management->Multiheadlines Center Block[Edit]->Dont't change anything just hit the Change button, and now you can go to your home page and see the refreshed content of this block.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Sunday 09 March, 2008 00:23

I meant block-Multiheadlines-center.php Mr. Green

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Sunday 09 March, 2008 00:37

Yes forgiveness, I spoke well about the block center.

I made all the modifications well but it is always similar

View user's profile Send private message
Reply with quote
Post Posted: Sunday 09 March, 2008 01:13

Ok, then replace
Code:
$content .= "<strong>&raquo;</strong> <a href=\"".$link."\" target=\"blank\">".$title."</a></br>";


with
Code:
$content .= '<strong>&raquo;</strong> <a href="'.$link.'" target="_blank">'.filtering($title, $encoding).'</a></br>';

and refresh the block again.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Sunday 09 March, 2008 01:37

Unfortunately it is always similar

For my part I will sleep.
Still thank you for your assistance.

I wish you a good night or a good day following the hour that it makes at home, I return for my part in a few hours: D

View user's profile Send private message
Reply with quote
Post Posted: Sunday 09 March, 2008 12:04

If you set your browser the show the content of the site on UTF-8 encoding you'll see that everything it's fine.
So because the content of this block is UTF-8 encoded, you should utf8_encode() this content. Filtering function does this, so what I've told you before should work.
Perhaps you did something wrong,missed something or some changes to the MH core.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Sunday 09 March, 2008 19:15

You are right.

- navigator in UTF8: no problem

- if I edict the file xml and that I remove encoding UTF8 in the first line: no problem

- if I make your handling: problem

Thus I will compare your version of Multiheadlines with the version which is pre-to install in the phpnuke of Stefvar

View user's profile Send private message
Display posts from previous:
This topic is locked: you cannot edit posts or make replies. Page 1 of 2
Goto page 1, 2  Next
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Page Generation: 0.49 Seconds