1. Skip to Menu
  2. Skip to Content
  3. Skip to Footer>

IT TheLodge 2 We are proud to announce the release of our January 2012 Premium Joomla Template IT TheLodge 2
A complete hotel based template that accepts instantly your website bookings, even through PayPal..

View Demo or Read More

Welcome, Guest
Please Login or Register.    Lost Password?

Characters like !?@ ect dont show on the mainmenu
(1 viewing) (1) Guest
Go to bottom
Post Reply
Post New Topic
Page: 1234567
TOPIC: Characters like !?@ ect dont show on the mainmenu
Re:Characters like !?@ ect dont show on the mainmenu 2 Years, 8 Months ago #5321
here it is... Thanks


This attachment is hidden for guests. Please login or register to see it.


Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
rnunes
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/05/13 07:10 By rnunes.Reason: file
Reply Quote
 
Re:Characters like !?@ ect dont show on the mainme 2 Years, 8 Months ago #5341
Hi,

I only get missing accent é,è,à in the main_menu when I switch my server from php4 to php5. I've tried changing the helper.php file and nothing can arrange it.

Thanks


Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
jplante
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
Re:Characters like !?@ ect dont show on the mainme 2 Years, 8 Months ago #5342
Hi

Is there any solution with this problem?
I don't want to change my template to solve that problem.


Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
kixon
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
!MUCH SIMPLER FIX! (i hope it works for you too :) 2 Years, 8 Months ago #5343
I have modified my earlier fix for all main-menu UTF-8 and separation problem. I found out that I didn't have to write the whole string splitting function again, just use the explode function, that is utf-8 compliant.

I am now working on a veranda template, but probably works ok in all other IT menu, that uses the same method for splitting the menu item name.

So please around line 296 in helper.php, add this line:

Code:

$var = explode('|', $item->name, 2);


*AFTER* the previous $var declaration, so you can see something like this:

Code:

$var = str_word_count($item->name, 1,'123456789!@#$%^&*()?><');
$var = explode('|', $item->name, 2);



It will make your string split at the first pipe char (|).

It's seems stupid I know to override the same array but commenting out the first line drops an error. This way worked me excellent.

I can send you a helper.zip by mail upon request (feovenyessy at gmail dot com)

cheers


Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
feovenyessy

Reply Quote
 
Re:!MUCH SIMPLER FIX! (i hope it works for you too :) 2 Years, 8 Months ago #5357
Thanks feovenyessy, now mainmenu work fine.
-jyrki-
www.petxpress.fi (test site)


Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
jyta65
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
Re:!MUCH SIMPLER FIX! (i hope it works for you too :) 2 Years, 8 Months ago #5360
The problem is that the function str_word_count doesn't accept 3 parameters but only 2.

Best regards


Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
rnunes
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 1234567
Moderators: Andel, juljan, Brunilda, Tomi

Earn 20% of every sale that is generated from your website and generate and extra income! Join Affiliate Program

Newsletter Subscribe

Subscribe to our newsletters to be notified about our important news.