TinyPortal

Development => International => French => Topic started by: john013 on August 23, 2011, 11:18:57 PM

Title: Probleme permission écriture article
Post by: john013 on August 23, 2011, 11:18:57 PM
Bonjour,
donc je suis sous smf 2.0 tp
j'utilise la création d'article sans probleme , par-contre pour atribuer la fonction écriture a une personne:
-la page d'écriture s'affiche mais sans aucune option,
-une fois le texte écrit il soumet mais il y a une erreur "val" il ne trouve pas dans quel catégorie inséré
et il ne peut choisir la catégorie .
pouvais vous me dire comment réglé le pb merci.
Title: Re: Probleme permission écriture article
Post by: IchBin on August 24, 2011, 02:34:05 AM
Hello. Hope this helps.
http://www.tinyportal.net/index.php?topic=34184.msg273279#msg273279
Title: Re: Probleme permission écriture article
Post by: john013 on August 24, 2011, 08:50:10 AM
merci c parfait les 2 problèmes résolut .
Title: Re: Probleme permission écriture article
Post by: john013 on August 24, 2011, 09:11:19 AM
en fait non il me sort
"Incorrect parameter count in the call to native function 'FIND_IN_SET'
Fichier: /Sources/TPortalAdmin.php
Ligne: 1525"
quand je veut gérer les article
Title: Re: Probleme permission écriture article
Post by: IchBin on August 24, 2011, 05:37:58 PM
Please attach Sources/TPortal.php

Google translate:
S'il vous plaît joignez Sources/TPortal.php
Title: Re: Probleme permission écriture article
Post by: john013 on August 24, 2011, 09:44:11 PM
voici le fichier // fetch categories and subcategories
if(!isset($show_nocategory))
{
$request = $smcFunc['db_query']('', '
SELECT DISTINCT var.id as id, var.value1 as name, var.value2 as parent
FROM {db_prefix}tp_variables AS var
WHERE var.type = {string:type}
{string:whereval}
ORDER BY parent, id DESC',
array('type' => 'category', 'whereval' => isset($where) ? 'AND var.value2 = ' . $where : '')
);

if($smcFunc['db_num_rows']($request) > 0)
{
$context['TPortal']['basecats'] = isset($where) ? array($where) : array('0', '9999');
$cats = array();
$context['TPortal']['cats'] = array();
$sorted = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
$row['name'] = html_entity_decode($row['name'], ENT_QUOTES, $context['character_set']);
$sorted[$row['id']] = $row;
$cats[] = $row['id'];
}
$smcFunc['db_free_result']($request);
if(count($sorted) > 1)
$context['TPortal']['cats'] = chain('id', 'parent', 'name', $sorted);
else
$context['TPortal']['cats'] = $sorted;
}
}

if(isset($show_submission) && $context['TPortal']['total_submissions'] > 0)
{
// clean up notices
$request2 =  $smcFunc['db_query']('', '
SELECT id, value5
FROM {db_prefix}tp_variables
WHERE type = {string:type}',
array('type' => 'art_not_approved')
);
if($smcFunc['db_num_rows']($request2) > 0)
{
$ids = array();
while($row = $smcFunc['db_fetch_assoc']($request2))
$ids[$row['id']] = $row['value5'];
$smcFunc['db_free_result']($request2);
}
$request = $smcFunc['db_query']('', '
SELECT id, approved
FROM {db_prefix}tp_articles
WHERE FIND_IN_SET(id, {array_int:ids})',
array('ids' => $ids)
);
if($smcFunc['db_num_rows']($request) > 0)
{
while($row = $smcFunc['db_fetch_assoc']($request))
{

}
$smcFunc['db_free_result']($request);
}
Title: Re: Probleme permission écriture article
Post by: IchBin on August 24, 2011, 10:18:45 PM
Remove this section:
$request = $smcFunc['db_query']('', '
SELECT id, approved
FROM {db_prefix}tp_articles
WHERE FIND_IN_SET(id, {array_int:ids})',
array('ids' => $ids)
);
if($smcFunc['db_num_rows']($request) > 0)
{
while($row = $smcFunc['db_fetch_assoc']($request))
{

}
$smcFunc['db_free_result']($request);
}
Title: Re: Probleme permission écriture article
Post by: john013 on August 25, 2011, 10:07:36 AM
bonjour,
celà re fonctionne , merci
par-contre quand une personne autoriser veux éditer un texte qu'il a écrit il voie le texte effacé, comment faire?  moi en mode admin pas de souci.
Title: Re: Probleme permission écriture article
Post by: john013 on August 27, 2011, 09:13:09 AM
up?
Title: Re: Probleme permission écriture article
Post by: IchBin on August 27, 2011, 09:30:04 PM
Sorry I don't understand what you are asking.
Title: Re: Probleme permission écriture article
Post by: john013 on August 28, 2011, 10:50:14 AM
le dernier Problème  ok .
autre problème: quand une personne autoriser veux éditer son  texte il voie le cadre d'écriture blanc, donc il ne peut le modifié. Moi en mode admin aucun problème. auriez vous une solution?

Google Translate:
ok the last problem.
Another problem: when a person want to edit the text to allow it way through writing white, so it can not be changed. Me in admin mode no problem. would you have a solution?
Title: Re: Probleme permission écriture article
Post by: WillyP on August 28, 2011, 03:38:48 PM
Don't understand the question. What text are you talking about? Articles? Or something in articles? Do you want to lock an article so no one else can edit it, while you are editing it? Or lock it completely?
Title: Re: Probleme permission écriture article
Post by: john013 on August 28, 2011, 05:34:19 PM
en mode admin aucun problème.
mais si une perssone qui écrit un texte/article et que je valide . c'est ok.
mais si la personne veut modifier son texte avec la fonction édition,il regarde le cadre du texte qu'il veut modifier mais il est vide
? moi je le voit bien

google translate:
admin mode no problem.
but if a persson who writes a text / article and I agree. it's ok.
but if the person wants to change its text editing function, he looks the part of the text he wants to change but it is empty?Me no concern
Title: Re: Probleme permission écriture article
Post by: WillyP on August 29, 2011, 12:52:41 AM
Ok, lets see if I got this:

1. No problems if you are admin.

2. Someone else, non-admin, can write an article.

3. Admin can edit an article.

4. The person who wrote the article cannot edit the article. He gets a blank (white) text-field.

Correct?

What version of SMF and TP are you using?
Title: Re: Probleme permission écriture article
Post by: IchBin on August 29, 2011, 02:50:58 PM
Can you post a link to your site?

Google Translate:
Pouvez-vous poster un lien vers votre site?
Title: Re: Probleme permission écriture article
Post by: john013 on August 29, 2011, 04:38:05 PM
yes ok 1-2-3-4
smf 2.0 Tp 1.104
Title: Re: Probleme permission écriture article
Post by: john013 on August 31, 2011, 03:50:32 PM
up?
Title: Re: Probleme permission écriture article
Post by: WillyP on August 31, 2011, 04:44:26 PM
Quote from: IchBinâ,,¢ on August 29, 2011, 02:50:58 PM
Can you post a link to your site?

Google Translate:
Pouvez-vous poster un lien vers votre site?
Title: Re: Probleme permission écriture article
Post by: john013 on September 01, 2011, 08:53:58 PM
voici l'adresse
http://www.ssd-handball.com/index.php
Title: Re: Probleme permission écriture article
Post by: john013 on October 27, 2011, 04:28:54 PM


Bonjour
j'ai installé un bloc sur le portail en texte html pour avoir 2-3 info rapide. moi je peut le modifié sans soucis par contre mes modérateurs ne peuvent pas , il ont ce message erreur: " Wrong value type sent to the database. Integer expected. (blockid) "

google translate:
Hello
  I installed a block on the portal for 2-3 text html info fast. I can change without worries in against my moderators can not he have this error message: "Wrong value type feel to the database. Integer expected. (blockid)"
   
Title: Re: Probleme permission écriture article
Post by: IchBin on October 31, 2011, 08:04:18 PM
English:
I need the error line number and filename please.

French (google translate):
J'ai besoin du numéro de ligne d'erreur et s'il vous plaît nom de fichier.
Title: Re: Probleme permission écriture article
Post by: john013 on November 01, 2011, 05:56:23 PM
je ne sais pas

translate google:
I do not know
Title: Re: Probleme permission écriture article
Post by: IchBin on November 01, 2011, 06:10:05 PM
In the SMF error log (Admin > Error Log) it should show an error with the line number and file name.

Google Translate:
Dans le journal des erreurs SMF (Admin > Erreur), il devrait afficher une erreur avec le numéro de ligne et le nom du fichier.
Title: Re: Probleme permission écriture article
Post by: john013 on November 02, 2011, 10:42:28 AM
Appliquer le filtre: Afficher les messages d'erreurs pour cet URL seulement
http://www.ssd-handball.com/index.php?action=tpmod;sa=saveblock14
Appliquer le filtre: Montrer les erreurs qui ont un message identique
Wrong value type sent to the database. Integer expected. (blockid)
Function: tpmodules
Appliquer le filtre: Ne montrer que les erreurs provenant de ce fichier
Fichier: /Sources/TPmodules.php
Ligne: 903
Title: Re: Probleme permission écriture article
Post by: IchBin on November 02, 2011, 03:05:49 PM
Looks like there is a bug in the code I will have to figure out.

Google Translate:
On dirait qu'il ya un bug dans le code, je dois trouver.
Title: Re: Probleme permission écriture article
Post by: IchBin on November 02, 2011, 06:15:21 PM
If you'd like to try these files, please make a backup before you try them. There are too many changes for this fix to list here. Replace your files with the files I have attached.

Sources/TPmodules.php, TPSubs.php, and TPortal.php
Themes/default/TPmodules.template.php
Title: Re: Probleme permission écriture article
Post by: john013 on November 03, 2011, 02:24:44 PM
jai fais les modification pas d'erreur pour le moment , mais toujours le même problème . / Google translate : jai fais les modification pas d'erreur pour le moment , mais toujours le même problème .
:
http://www.ssd-handball.com/index.php?action=tpmod;sa=saveblock14
Wrong value type sent to the database. Integer expected. (blockid)
Function: tpmodules
Fichier: /Sources/TPmodules.php
Ligne: 903
Title: Re: Probleme permission écriture article
Post by: IchBin on November 03, 2011, 06:28:49 PM
Can you show a screen shot of the block page before you click submit?

Google:
Pouvez-vous montrer une capture d'écran de la page de bloc avant de cliquer sur soumettre?
Title: Re: Probleme permission écriture article
Post by: john013 on November 05, 2011, 04:25:27 PM
voilà:
Title: Re: Probleme permission écriture article
Post by: IchBin on November 08, 2011, 06:43:50 PM
Hmm... it should not be happening. At this point I don't know what to tell you. Let me see if anyone else can reproduce the same problem.
Title: Re: Probleme permission écriture article
Post by: john013 on November 27, 2011, 12:09:24 PM
up?
Title: Re: Probleme permission écriture article
Post by: MkC on December 10, 2011, 03:54:02 PM
Bonjour,

Editer le fichier TPmodules.php

Rechercher les lignes:
Quote$val = substr($what,10);

Remplacer par:
Quote$val = (int) substr($what,10);

Explication: On extrait un champ texte que l'on place dans un champ numérique, c'est incompatible.




Hello,

Edit the file TPmodules.php

Search lignes:
Quote$val = substr($what,10);

Replace by:
Quote$val = (int) substr($what,10);

Explain: The code extract a string for insert into a numeric column, it's not possible.