AllNews Module - FLEXIcontent support! (v 2.5.5)

  • Anonymous
  • Visitor
  • Visitor
14 years 8 months ago #4818 by Anonymous
Replied by Anonymous on topic AllNews Module - FLEXIcontent support! (v 2.5.5)
Hi

i'd like to know how it's possible to add itemid joomla in the module or a way to deal with it ? maybe i don't understand everything with flexicontent.

THx
The topic has been locked.
More
14 years 8 months ago #4824 by Olinad

newbieinprogress wrote: Je ne sais si cela sera utile ou non (étant tout sauf une pro du codage) mais sous php 5.3 avec la version 2.4.3 de allnews, la ligne 276 du fichier default.php de allnews renvoyait "function split () is deprecated in" :

J'ai résolu mon problème lié à l'usage de php 5.3 en remplaçant à la ligne 276 :

Code:
list($flexiimg) = split('"', $flexiimg1);

par
Code:
list($flexiimg) = explode('"', $flexiimg1);

Plus qu'à corriger les 3 autres erreurs que je rencontre à savoir :
[attachment=0:140fjhd1]<!-- ia0 -->allnews.JPG<!-- ia0 -->[/attachment:140fjhd1]

Si quelqu'un à une idée je suis preneuse :-) merci d'avance.


I still haven't tried using PHP 5.3 as most web servers still don't run it. I'll keep this post in mind before releasing v 2.5 though, so I assure you this will be solved :) Thanks for showing me this bug :D

Mans2017 wrote: Hi

i'd like to know how it's possible to add itemid joomla in the module or a way to deal with it ? maybe i don't understand everything with flexicontent.

THx


The module actually has a "force itemid" option (or smth similar), but it wasn't me that coded it (the module was originally coded by another guy). You can try using it, and if it doesn't work or do what you need please explain me what you need in detail so that I can try coding it :)
The topic has been locked.
More
14 years 8 months ago - 14 years 8 months ago #4826 by newbieinprogress
Et un autre problème lié à l'usage de php 5.3, cette fois ligne 30 de la version 2.4.3 de allnews qui renvoyait "function ereg () is deprecated in" :

Remplacer :
Code:
if (ereg ("([0-9]{1,5})",$item_id, $result)) {

par
Code:
if (preg_match ('/([0-9]{1,5})",$item_id, $result)) {

Plus que 2 erreurs à corriger et mon allnews sera fonctionnel, j'en vois le bout :-) .
Last edit: 14 years 8 months ago by newbieinprogress.
The topic has been locked.
More
14 years 8 months ago #4827 by Olinad

newbieinprogress wrote: Et un autre problème lié à l'usage de php 5.3, cette fois ligne 30 de la version 2.4.3 de allnews qui renvoyait "function ereg () is deprecated in" :

Remplacer :

Code:
if (ereg ("([0-9]{1,5})",$item_id, $result)) {

par
Code:
if (preg_match ("([0-9]{1,5})",$item_id, $result)) {

Plus que 2 erreurs à corriger et mon allnews sera fonctionnel, j'en vois le bout :-) .


I just did that, right before reading your post :)

EDIT: you'd better add a couple of "/" in the code, this way:
Code:
if (preg_match ('/([0-9]{1,5})/',$item_id, $result)) {
The topic has been locked.
More
14 years 8 months ago #4828 by newbieinprogress
And I've just edited my post to adopt your solution.
And thanks for your quick answers :-)
The topic has been locked.
More
14 years 8 months ago #4829 by Olinad
Thank you for pointing out bugs :D
The topic has been locked.
Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.643 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline