31
mCity
Re: SOLVED - Making Xoops CONTENT Multilingual *Fixed Code Quote problem*
  • 2003/9/9 13:45

  • mCity

  • Just popping in

  • Posts: 52

  • Since: 2003/3/31


Chad, I enjoy to hack and share for multilingual. Well, I should say many thanks to you all first. You all start my engine to hack XOOPS.

In Admin->News->Modify Topic, it would decode the topic title if we try to modify it. We have to retype all again for all language title. But I found XOOPS is Good and well prepared. Lets correct this file.

Open /modules/news/admin/index.php

goto line 241 in function modTopic()

modify Quote:
<input type='text' name='topic_title' size='20' maxlength='40' value='".xt->topictitle().


tobe Quote:
<input type='text' name='topic_title' size='50' maxlength='50' value='".xt->topictitle('E').


This function used default format 'S' 4show (but we hacked). The function has been well prepared to accept parameter 'E' 4Edit format which we should use in this file.

Hope XOOPS developer update this file.

PS. I changed maxlength of title to 50 as database defined, and thinking why XOOPS defined 40 in this file.



32
mCity
Re: SOLVED - Making Xoops CONTENT Multilingual *Fixed Code Quote problem*
  • 2003/9/8 13:22

  • mCity

  • Just popping in

  • Posts: 52

  • Since: 2003/3/31


This is really a great hack that I could modify XOOPS by myself from all your information.

Let me share a little hack for checkbox in Adv. Search to have modules list in multilingual.

open /class/xoopsform/formcheckbox.php

after function addOptionArray($options){

add
Quote:


$myts =& MyTextSanitizer::getInstance();

before $this->addOption($k, $v);
add Quote:

$v = $myts->makeTboxData4Show($v);

Happy to share in here.

ERROR Let's take out this, this would affect group admin by showing up html link <a...> for each blocks.



33
mCity
Re: Some pointers on how to build a theme
  • 2003/5/14 7:27

  • mCity

  • Just popping in

  • Posts: 52

  • Since: 2003/3/31


Thanks for your hardwork on docs for themes and templates.

However, I still couldn't decide how to place the main, login, and user menu to header as dropdown menus without modify the core php code. That is the limitation of template.

mCity



34
mCity
Re: How to - "Welcome Block"
  • 2003/4/18 8:48

  • mCity

  • Just popping in

  • Posts: 52

  • Since: 2003/3/31


Gloria

All you need to know about to change is the WEIGHT. You may find the answer in this link

If you want more, search 'welcome block' in forum. There will be a lot.

mCity



35
mCity
Re: How to - "Welcome Block"
  • 2003/4/17 10:26

  • mCity

  • Just popping in

  • Posts: 52

  • Since: 2003/3/31


OK. After searching forum for "welcome block", I got the way to issue that. However, I don't want to assign the administration access right of [block] and [group] to whom work for issuing announcement/public notice/welcome.

Is there any module built/download to provide the way to do so?

mCity




TopTop
« 1 2 3 (4)



Login

Who's Online

68 user(s) are online (45 user(s) are browsing Support Forums)


Members: 0


Guests: 68


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