Fork me on GitHub
Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

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

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

- 2 2.5 2.6 3.0 4 6 2013 Abuse adslight Android AntiHarvesting AntiMalUser AntiSpam Apple Battlefield billige Blocks Bootstrap Captcha cell cent chronolabs CHUNG Clicks content CĂN demo docek download Dresses evden eve facebook Fat floor Food for free Gateway Google Guide herre Home Honeypot HP html5 Human HỘ IP iPhone jQuery List log Loss mobile module modules Monster new newbb news NHÀ online PARK phone PHP Prevention profile project Protector publisher RESIDENCE responsive review Rights rmcommon Room security Sentry site Smartphone Smoking Spam Studio support tags tdmcreate template The Theme themes User userlog web weight xoops Xortify

New Users

Registering user

# 137304

fr0g

Welcome to XOOPS!

Forum Index


Board index » All Posts

Bottom   Previous Topic   Next Topic

(1) 2 3 4 ... 29667 »


#1 Posted on: Today 11:22 Re: Inserting multiple rows in database table
Be aware that the coding error I pointed out is still in place and you need to address the use of $datas[]...

Should just need to remove the []'s.

Otherwise when you get to the foreach loop you will go through every instance of $datas that is currently in memory. So the first time you will iterate through just one value of $datas but the second time you will have the same value as you had the first time as well as the new second value and the third time through will have the first two and an additional. Plus when you send your array to setVars you will have the whole array you just setup sent to it instead of each item.

Removing the []'s should get the foreach loop to work as intended.

Should step through the contents of $datas and send each entry to setVars.

Rodney

Top

redheadedrod
Home away from home
Home away from home
Joined:
2008/2/26 10:05
From Grand Rapids, MI
Group:
Registered Users
Posts: 1251
(Show More) (Show Less)
Topic | Forum


#2 Posted on: Today 9:18 xTransam - New Chronolabs API to be Implemented
Notabily something I have found is the length of time it takes to poll translation api's, my solution to this was to build : https://translator.labs.coop/ - The Chronolabs Translation API.

This stores translations and can be passed a storage token which for a module would be something like for xtransam as a module as md5('xoops-module-xtransam') - so that if someone else has ran for the translation your after; it will retrieve it from the cache for upto 24 months from the initial translations rather than having to wait to poll google, bing or mymemory.

This uses a file storage method not a database with similar classes to the cache class that comes with XOOPS - this is cause flat files are always much quicker than using a Database store and more manageable on mass.

In the next few weeks I will update xTransam, to this API for it provider methods this is so we eventually have fast and quick translations stored in the cache on this API. I will then after making a new Major Version of xTransam, looks too see if the language files have been finalised for XOOPS 2.6 and make a version for this as well.

I will post a thread here when both are complete!

Thanks

Simon - wishcraft/mynamesnot

Top

wishcraft
Module Developer
Module Developer
Joined:
2007/5/18 15:56
From Dulwich Hill, Sydney, Australia
Group:
Registered Users
Posts: 2110
(Show More) (Show Less)
Topic | Forum


#3 Posted on: Today 7:52 Re: text lines
Sorry, but where can I find that

Top

fla-ts
Friend of XOOPS
Friend of XOOPS
Joined:
2005/1/4 11:03
From Belgium
Group:
Registered Users
Posts: 120
(Show More) (Show Less)
Topic | Forum


#4 Posted on: Today 7:38 Re: text lines
in your style.css and/or styleNN.css find
.itemBody{
and add line
text-align: justify;

Top

Bleekk
Theme Designer
Theme Designer
Joined:
2002/12/14 9:13
From Vienna
Group:
Registered Users
Designer Group
Posts: 393
(Show More) (Show Less)
Topic | Forum


#5 Posted on: Today 4:05 Re: text lines
Tiny content
for the moment nothing special or urgent to change tekst but it's a good thing to know how to format the space between lines.
My url : fla-ts.com



Top

fla-ts
Friend of XOOPS
Friend of XOOPS
Joined:
2005/1/4 11:03
From Belgium
Group:
Registered Users
Posts: 120
(Show More) (Show Less)
Topic | Forum


#6 Posted on: Today 3:58 Re: text lines
what theme are you using? what text should be formatted?
do you have a link to your website?
it works with all languages

Top

Bleekk
Theme Designer
Theme Designer
Joined:
2002/12/14 9:13
From Vienna
Group:
Registered Users
Designer Group
Posts: 393
(Show More) (Show Less)
Topic | Forum


#7 Posted on: Today 2:32 Re: text lines
In the html file !!
Don't think it will work in my language

Top

fla-ts
Friend of XOOPS
Friend of XOOPS
Joined:
2005/1/4 11:03
From Belgium
Group:
Registered Users
Posts: 120
(Show More) (Show Less)
Topic | Forum


#8 Posted on: Today 2:27 Re: text lines
In the style.css file, add:
div.mytext {text-alignjustify;}


and in the html file :
<div class="mytext">Ipsam vero urbem Byzantiorum fuisse refertissimam atque ornatissimam signis quis ignorat</div>


Top

alain01
Not too shy to talk
Not too shy to talk
Joined:
2003/6/20 4:07
From FRANCE
Group:
Registered Users
Posts: 195
(Show More) (Show Less)
Topic | Forum


#9 Posted on: Yesterday 7:37 Re: text lines
Before or after entering tekst.
I see I should have to do some test to use it

Top

fla-ts
Friend of XOOPS
Friend of XOOPS
Joined:
2005/1/4 11:03
From Belgium
Group:
Registered Users
Posts: 120
(Show More) (Show Less)
Topic | Forum


#10 Posted on: Yesterday 7:32 Re: language select
Hi,
i understand, but for me,
if i try to change langage and if it's not available, i prefered stay on this url.
Coming back at the home page will be (for me) not efficient.

Top

alain01
Not too shy to talk
Not too shy to talk
Joined:
2003/6/20 4:07
From FRANCE
Group:
Registered Users
Posts: 195
(Show More) (Show Less)
Topic | Forum



Top
(1) 2 3 4 ... 29667 »



[Advanced Search]