21
EyeKeeper
Re: Liaise 1.24 with Xlanguage 3
  • 2007/2/23 13:09

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


I finally found the solution to my problem...

First of all I might say it's for one specific case so I didn't really care of making the "[br]" tags as variables but you can easily adapt it according to your needs...

what you need to do is:

edit the file \include\form_execute.php

around lines 68-70 you have:

if( $ele_caption != '' ){
   
$msg[$ele_id] = $myts->stripSlashesGPC($ele_caption)." ";
 }        }


change it to:

if( $ele_caption != '' ){
   
$er '~(.*?)[br](.*?)[/br](.*?)~sUi';
   
$tagless_caption preg_replace($er'\2'$ele_caption).": ";
   
$msg[$ele_id] = $myts->stripSlashesGPC($tagless_caption)." ";
 }


in this part I defined that I wanted to copy only the string between the tags [br] and [/br] because it was only the caption in Portuguese I needed. After I associated the back without all the rest...

Second you have to make sure that the form title will be changed too...
For that edit around line 198 the following line:

$xoopsMailer->setSubject(sprintf(_LIAISE_MSG_SUBJECT$myts->stripSlashesGPC($form->getVar('form_title'))));


and change it to:

$tagged_subject $form->getVar('form_title');
$er '~(.*?)[br](.*?)[/br](.*?)~sUi';
$tagless_subject preg_replace($er'\2'$tagged_subject);
$xoopsMailer->setSubject(sprintf(_LIAISE_MSG_SUBJECT$myts->stripSlashesGPC($tagless_subject)));


the explanation is the same as previous but here you make sure the subject in the message is tagless too...

that's it!

I hope it can be usefull for anyone else!



22
EyeKeeper
Re: Liaise 1.24 with Xlanguage 3
  • 2007/2/22 12:41

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


well... no luck with the change...

In fact I wouldn't consider it a porblem with liaise but it's an issue with the tags that should be removed...

I just need in the email the Portguese text but I don't know how to remove the text and the tags I don't want to keep



23
EyeKeeper
Re: Liaise 1.24 with Xlanguage 3
  • 2007/2/21 22:17

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


just bumping for help...



24
EyeKeeper
Liaise 1.24 with Xlanguage 3
  • 2007/2/16 12:18

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


Hello!

I'm running both above mentioned modules on a XOOPS 2.016 site, php4 and MySQL 4 too...

No problem at all with the details above but in order to test XLanguage I created two tags [br] por Portuguese and [spanish].

I use this tags to thread the way the text before the fields is displayed and it runs fine

Example:
[br]Nome[/br][spanish]Nombre[/spanish] --> Field to be completed

The problem is with the email that I receive after the form is sumitted.

The template that is liaise.tpl forsees receiving the smarty tag {MSG} that contains the fields and their contents but the display is horrible once it gets the field's introductory name, e.g.:

(this is the email, ok?)
[br]Nome[/br][spanish]Nombre[/spanish]: field_content
etc...

How can I remove the tags and let only the field according to the language?

Thanks



25
EyeKeeper
Re: xcGallery Thumbnails question.
  • 2007/1/19 16:17

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


as far as I know there isn't anything regarding recreating thumbs...
but maybe taking a look at the function included with myalbum you could find a place to start with



26
EyeKeeper
Re: News 1.51/ RssFit 1.21 - Xoops 2.016
  • 2007/1/19 16:00

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


I found the solution!

reading the comments on the release of news 1.51 there was a reference for xmspotlight regarding a change for the following function:

getmoduleoption();

renaming it to

news_getmoduleoption() solves the issue



27
EyeKeeper
News 1.51/ RssFit 1.21 - Xoops 2.016
  • 2007/1/19 9:25

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


Hello!

I'm having some conflict with the above mentioned modules and when I try to access the rss url provided by the RssFit module and I get this fatal error

Quote:

Fatal error: Call to undefined function: getmoduleoption() in /var/www/html/cbol/html/modules/rss/plugins/rssfit.news.php on line 66


Can anyone help me?

Thanks



28
EyeKeeper
Re: Mx-Directory 3 RC1 Blank page under xoops 2.016
  • 2006/12/19 18:17

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


well in fact I don't know exactly if this code will help me further because I had trouble installing the module...it means I couldn't install it at all...

so I didn't know if I would get any answers over here so I did the following...

I entered via phpMyAdmin to manage my database and executed the following query (adapt XOOPS to your table prefix, ok)

INSERT INTO `xoops_modules` (`mid`, `name`, `version`, `last_update`, `weight`, `isactive`, `dirname`, `hasmain`, `hasadmin`, `hassearch`, `hasconfig`, `hascomments`, `hasnotification`) VALUES (100'Mx_directory'301115955996111'mxdirectory'111111);


with this insert I could tell XOOPS the module was installed...


after I copied the content of the file /sql/mysql.sql and executed the query again to create all the tables

third, I entered xoops' admin area and updated the module...

to conclude I had to reset permissions for the module under group management to have access to the icon under the admin

voilá... it was working...

but thanks anyway for the help



29
EyeKeeper
Re: MyAlbum-p to ??? conversion script
  • 2006/12/19 15:56

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


ok... thanks for the reply...
but in this case it won't help so far...



30
EyeKeeper
Re: Mx-Directory 3 RC1 Blank page under xoops 2.016
  • 2006/12/19 15:55

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


bump




TopTop
« 1 2 (3) 4 5 6 ... 17 »



Login

Who's Online

75 user(s) are online (37 user(s) are browsing Support Forums)


Members: 0


Guests: 75


more...

Donat-O-Meter

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

Latest GitHub Commits