Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

[2.0 RC1]My calendar have a limit of letters

Aloittaja tigas3000, tammikuu 21, 2009, 11:51:45 AP

« edellinen - seuraava »

tigas3000

I went to PhpMyAdmin and what appear after the changes is in anex.

I repair that exist a tabel called smf_calendar_holidays but in the title seems to be the same as what I send in anex.

best regards

Rumbaar

In $source/Calender.php

Try altering this portion of code
// Check the title isn't too long - iCal requires some formatting if so.
$title = str_split($event['title'], 30);


$source/ManageCalender.php
// Not too long good sir?
$_REQUEST['title'] = substr($_REQUEST['title'], 0, 30);
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

tigas3000

thanks for the tip, I will try that.
I have jus repaired that I ahd in the titlethat my forum is 2.0 beta 4 but the truth is that meanwhile I upgraded to 2.0 RC1. Is it makes any change of what have been said?

best regards

Rumbaar

Lainaus käyttäjältä: Rumbaar - helmikuu 24, 2009, 10:53:42 IP
For SMF 2.0 RC1, should be the same for 2.0 BETA 4 though.
All my posts relate to 2.0 RC1.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

tigas3000

I went to forum/sources/calendar.php
and changed for this:

   // Check the title isn't too long - iCal requires some formatting if so.
   $title = str_split($event['title'], 60);


I went to forum/Sources/ManageCalendar.php
and I put this:
// Not too long good sir?
$_REQUEST['title'] = substr($_REQUEST['title'], 0, 60);


The Problem continues.
Are you certain that in PhpMyAdmin is everything alright?
I say that because in the image I passed to you the title, varchar etc is the only parameter of smf_calendar that is with a "Sim" (in portuguese is yes) and the others are all in Não (No).


best Regards

Rumbaar

The (60) is the important part.  The fact it's cutting off still at the 30 character mark and allowing utf8 characters would indicated it's being truncated elsewhere as well.  I'm not sure where else it could be doing do.

How is it stored in the db?  The full length or shortened?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

tigas3000

Sorry, but I don't know what is that full and shortened lenght. Could you explai, please?


abraços!

Rumbaar

I mean in the database is the title stored as Data da Criação da Comunidadade Jogos RPG or as Data da Criação da Comunidad?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

tigas3000

I will be sincerely, I write that but I don't know where it appears in the database.  ???


Rumbaar

The smf_calendar table and the record for the entry in question.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

tigas3000

I went there and as I have deleted that holiday I created one again. For some reason I cannot explain the holiday appeared normally, and so the problem is solved. O_o"
I don't know... Maybe there should be some time until the modification of the table?


best regards

Rumbaar

There shouldn't be a time delay.  But if it's working now that that main thing.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: