292401
biowan
htmlArea - WYSIWYG editor
  • 2003/7/23 11:46

  • biowan

  • Just popping in

  • Posts: 3

  • Since: 2003/3/1 7


Do XOOPS developement team know htmlArea WYSIWYG editor ?
htmlArea. Is it possible to integry this tool in the next release of XOOPS ?

This is a very powerfull editor. It's more easier to add text for more users and it's free.

Thanks
¦¬]



292402
Olorin
Re: Polish your theme CSS files
  • 2003/7/23 9:34

  • Olorin

  • Just popping in

  • Posts: 50

  • Since: 2003/7/5 1


First of all,Thanks sunsnapper

Here are my recommedations...

Table-less Sites
CSS Tableless Web Sites

How to make Multi-Colum with StyleSheet
W3C Home Page Table-less Layout: HOWTO and FAQ

Oops,these are our rival CMS...lol Although these are good sites.
Tiki v1.6.1 -Tau Ceti-DEMO site
Tikiwiki




292403
snow77
Re: Polish your theme CSS files
  • 2003/7/23 6:15

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


Greats hints, nice to try out a good CSS editor like TopStyle Pro, works real good when working with styles.



292404
Daigoro
Re: SOLVED - Making Xoops CONTENT Multilingual *Fixed Code Quote problem*
  • 2003/7/23 0:37

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


I have just hacked the tinyevent module v1.01 to be fully multilangual.

First there's a simple hack to the te_nextevents.php file located in /modules/tinyevent/blocks/

Just before the while-loop starts in line 43, I have added the following:
Quote:
$myts =& MyTextSanitizer::getInstance();


Then I replaced the following line:
Quote:
$events['event'] = $te_event['event'];

With this line:
Quote:
$events['event'] = $myts->makeTboxData4Show($te_event['event']);



Second there's also a small change to the display.inc.php file located in /modules/tinyevent/include/

I started by adding the following line as line 2, just after the php statement.
Quote:
include_once XOOPS_ROOT_PATH."/class/module.textsanitizer.php");


Then I replaced the two instanses of the following:
Quote:
printf(_TE_COMESFROM,$xoopsConfig['sitename']);


With this:
Quote:
$myts =& MyTextSanitizer::getInstance();
printf(_TE_COMESFROM,$myts->makeTboxData4Show($xoopsConfig['sitename']));


This seems to work for me.

I've noticed one tiny flaw, which I can't realy figure out.
If I have an event written in Japanese, then sometimes when I click on the 'printer frindly' icon, the encoding changes to 'Western European' instead of the 'Japanese (EUC)' I was just using on the previous page. If you have any idear why, please let me know!

I hope I remembered to mention all of the changes I made to the files to make it work.

--
Daigoro



292405
Daigoro
Re: SOLVED - Making Xoops CONTENT Multilingual *Fixed Code Quote problem*
  • 2003/7/22 8:01

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


Hsalazar,

I was aware of the structure, and I did change the lines for all four cases. To start with I only tried the title part, but it didn't work. Then to test, I tried the slogan-part, and it's working fine.

I still have the problem with the title part, but not the slogan part.

This is what I did:

For every instance of this line:
Quote:

$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name'));

I replaced the line with this:
Quote:

$myts =& MyTextSanitizer::getInstance();
$perro = $myts->makeTboxData4Show($xoopsModule->getVar('name'));
$xoopsTpl->assign('xoops_pagetitle', $perro);


And for every instance of this line:

Quote:

$xoopsTpl->assign('xoops_pagetitle', $xoopsConfig['slogan']);

I replaced the line with this:
Quote:

$myts =& MyTextSanitizer::getInstance();
$perro = $myts->makeTboxData4Show($xoopsConfig['slogan']);
$xoopsTpl->assign('xoops_pagetitle', $perro);


Just to make sure I'm not confusing things. The title part mentioned above means the browser title, currently reading XOOPS Official Site, and the slogan part is located just next to the title, currently reading Forum.

What did I do wrong?



292406
mliga
Re: File Upload Feature in Downloads Module
  • 2003/7/22 7:32

  • mliga

  • Just popping in

  • Posts: 1

  • Since: 2003/7/21


Here you have it:
MyDOwnloads Upload Hack



292407
hsalazar
Re: SOLVED - Making Xoops CONTENT Multilingual *Fixed Code Quote problem*
  • 2003/7/22 0:14

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


Daigoro:

If it works for the slogan part of the title, it might mean you changed the file in a different line.
The structure of this part of the file has something like this:

If the user IS registered...
--- If there's a module defined as initial
------ Assign $xoopsModule->getVar('name') to the variable xoops_pagetitle
--- Else (no module defined as initial)
------ Assign $xoopsConfig['slogan'] to the variable xoops_pagetitle
Else (the user IS NOT registered)
--- If there's a module defined as initial
------ Assign $xoopsModule->getVar('name') to the variable xoops_pagetitle
--- Else (no module defined as initial)
------ Assign $xoopsConfig['slogan'] to the variable xoops_pagetitle

So it might be possible that you included the wrapper to the conditions related to the assignment of the slogan to the variable xoops_pagetitle.



292408
Daigoro
Re: SOLVED - Making Xoops CONTENT Multilingual *Fixed Code Quote problem*
  • 2003/7/21 23:00

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


Hsalazar,

Thanks for your quick answer. I've tested the latest description you have posted, and it seems not to work. However, with a slight change it's working for the slogan part of the title. The main title remains a mixture of all languages. I guess you did change a bit more.

I'm aware of the new multilangual hack. I've looked very briefly at it, and it appears to be quiet limited in it's functionality. I ought to try to install it, but it will have to wait until I have abit more time (and an extra xoops-instalation) on my hands. If you try it, please let me know your opinion.

Best regards,
--
Daigoro



292409
hsalazar
Re: SOLVED - Making Xoops CONTENT Multilingual *Fixed Code Quote problem*
  • 2003/7/21 19:43

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


Daigoro:

No problem. In the original header.php file, there are, in lines 97 and 115, two instances of the same line:
Quote:

$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name'));

What I did was replace each line with this:
Quote:

$myts =& MyTextSanitizer::getInstance();
$perro = $myts->makeTboxData4Show($xoopsModule->getVar('name'));
$xoopsTpl->assign('xoops_pagetitle', $perro);

As you see, I used an intermediate variable, $perro, to store the name of the page once passed through the sanitizer, and then assigned this value to the Smarty variable xoops_pagetitle.
I thinks that's all I did. If you stumble into some trouble, please let me know.
Also, be aware there's a new option available to make sites multilingual. I haven't tried it yet, but in some ways (I just read one document) it seems easier than the route we've followed here. It rests to be seen how is it that you upload content in the other option. [This new option is available by registering in PetitOOps. Browse the recent news here.]



292410
Daigoro
Re: SOLVED - Making Xoops CONTENT Multilingual *Fixed Code Quote problem*
  • 2003/7/21 18:55

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


Hi again Hsalazar,

Quote:

PS: Also had to repeat the procedure in the file header.php to pass through the decoder the variable xoops_pagetitle.


I'm afraide I have to ask for a step by step description, on how to implement the above. It seems I'm only able to either make it do nothing or to make the complete website invisible. Please let me know how you did it. Thanks.

Best regards,







Login

Who's Online

184 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 184


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