1
panigrc
Wordbook 1.16 multi language
  • 2006/12/22 12:25

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


Hi everybody, here I give you your christmas gift. Its the wordbook 1.16 modified to support multiple languages.
Notice that it supports utf-8 and it has been tested only with MySQL 5 (cause older versions have problems in sorting the alphabet properly).

Here is the version with greek only, but you can easily modify it to support every language, again only utf-8 or else you have to convert the hacked files to your encoding.

Download here the hacked wordbook

Download here the differences generated by csdiff

To add more languages or to modify greek just edit line 115 in file functions.php.

For example the existing line is:
Quote:
$alpha = array('Α', 'Β', 'Γ', 'Δ', 'Ε', 'Ζ', 'Η', 'Θ', 'Ι', 'Κ', 'Λ', 'Μ', 'Ν', 'Ξ', 'Ο', 'Π', 'Ρ', 'Σ', 'Τ', 'Υ', 'Φ', 'Χ', 'Ψ', 'Ω');


You can modify it to support two languages:
Quote:
$alpha = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');
$alpha = $alpha + array('Α', 'Β', 'Γ', 'Δ', 'Ε', 'Ζ', 'Η', 'Θ', 'Ι', 'Κ', 'Λ', 'Μ', 'Ν', 'Ξ', 'Ο', 'Π', 'Ρ', 'Σ', 'Τ', 'Υ', 'Φ', 'Χ', 'Ψ', 'Ω');
X-Park Greek Pc Modding Community
Official Greek Support at XoopsGreece.gr



2
panigrc
Re: How to use different editor in a module?
  • 2006/7/13 20:18

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


There is an alternative. Its a little off topic but I thought that I can help with my reply.

There is an firefox extention called Xinha and is an wysiwyg editor but loads on the client machine and not from server. So its much quicker to load and has many functions

Try It !! You 'll not regret it
X-Park Greek Pc Modding Community
Official Greek Support at XoopsGreece.gr



3
panigrc
Re: wfchannels- google adsense code.
  • 2006/7/13 17:27

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


I have this problem too !! The solution (not the best) is to comment the lines wich are replacing new line characters like "\n". Seems that google adsense has a problem with having all the code of the script in one single line.

Comment the lines 146 to 152 in file index.php of wf-channel.

Then the ads should appear correctly
//$articletag['maintext'] = str_replace("rn", "", $articletag['maintext']);
    //$articletag['maintext'] = str_replace("n", "", $articletag['maintext']);
    //$articletag['maintext'] = preg_replace("/s+/", " ", $articletag['maintext']);
    //$articletag['maintext'] = preg_replace('/(n|r|rn){2,}/', '', $articletag['maintext']);
    //$articletag['maintext'] = preg_replace("/nn+/", "nn", $articletag['maintext']);
    //$articletag['maintext'] = preg_replace(array('/[ t]{2,}/', '/(n|r|rn){2,}/'), array('', ''), $articletag['maintext']);
    //$articletag['maintext'] = $myts->oopsStripSlashesGPC(trim($articletag['maintext']));
X-Park Greek Pc Modding Community
Official Greek Support at XoopsGreece.gr



4
panigrc
Re: how does webmaster add xoops registered users?
  • 2006/7/11 19:19

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


I think you can't. You couldn't with the last versions either.
That you can do is simple register yourself many times, and then edit the profiles.
X-Park Greek Pc Modding Community
Official Greek Support at XoopsGreece.gr



5
panigrc
Re: Love the idea of xoops...now how to customize it???
  • 2006/7/11 13:36

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


Check plz your firewall.
Specific customization is only paid one. Here you'll find general information. Download some themes wich are heavy customized so you'll learn some things. I suggest the themes of xoopsfactory.
X-Park Greek Pc Modding Community
Official Greek Support at XoopsGreece.gr



6
panigrc
Re: install in linux
  • 2006/7/11 13:18

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


I don't understand your question ?
I suppose that you are asking about how to install apache and MySQL on linux and not xoops.
X-Park Greek Pc Modding Community
Official Greek Support at XoopsGreece.gr



7
panigrc
Re: Hosted images gallery ?
  • 2006/7/11 13:14

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


I think that every image managing module like myalbum-p can with little customisation be used as image host. And a lot better whith many more features !
X-Park Greek Pc Modding Community
Official Greek Support at XoopsGreece.gr



8
panigrc
Re: Love the idea of xoops...now how to customize it???
  • 2006/7/11 13:12

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


First I want to welcome you to this community.

I suggest you search the f.a.q.'s first and then search the forums.
Then if you have still questions we are here to help you.
X-Park Greek Pc Modding Community
Official Greek Support at XoopsGreece.gr



9
panigrc
Re: Xoops PowerTools a Java Project
  • 2006/7/11 12:43

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


I respect your point of view. I also know german so I understood what you are talking about. You believe that having a util for everything is wrong. You want focus here is my focus:

I want to make XOOPS as easy as possible for everyone ! And yes this app will not be perfect but I wanna implement many features that are done manually by now.
Answer please to a simple question. How much time spend to apply a hack such as autologin ?
Ok you say a few its quite simple you have one hack only so you dont have to think about it.
Lets say you wanna update xoops, then some hacked files will be overwritten, so you loose your hack.
You should apply it again but with new files downloaded from the developer of the hack.
Then apply it, again a few more minute.
Now think if you have 3 hacks or a php developer who hacked XOOPS to death !!!!
When a patch is released the developer punches its head against the WALL.
But fortunately we have demokracy so you are free to use whatever you wish.
X-Park Greek Pc Modding Community
Official Greek Support at XoopsGreece.gr



10
panigrc
Re: Xoops PowerTools a Java Project
  • 2006/7/10 21:37

  • panigrc

  • Not too shy to talk

  • Posts: 133

  • Since: 2005/4/14


birdseed I knew from the beginning that making an application in user side doesn't match the idea of the XOOPS cms.
But when it comes to file handling you must admit that the userside is much powerful. Accessing directories, reading files etc is much simpler as in the online world. Or else ftp clients wouldn't exist.
Also what if something goes wrong up there, you know line down , corrupted files, the website should close then for hours. Also not everyone owes a dsl line, so being all time online is painful.
I know that this is out of bounds of XOOPS cms, but I also know many many many cms's or blogs that have such user side applications (blog posting is common).

My greatest purpose of all is to make valid Hacks. And so anybody should be able to understand and apply them.
X-Park Greek Pc Modding Community
Official Greek Support at XoopsGreece.gr




TopTop
(1) 2 3 4 ... 11 »



Login

Who's Online

60 user(s) are online (40 user(s) are browsing Support Forums)


Members: 0


Guests: 60


more...

Donat-O-Meter

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

Latest GitHub Commits