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.
Hello. Hope this helps.
http://www.tinyportal.net/index.php?topic=34184.msg273279#msg273279
merci c parfait les 2 problèmes résolut .
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
Please attach Sources/TPortal.php
Google translate:
S'il vous plaît joignez Sources/TPortal.php
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);
}
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);
}
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.
up?
Sorry I don't understand what you are asking.
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?
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?
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
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?
Can you post a link to your site?
Google Translate:
Pouvez-vous poster un lien vers votre site?
yes ok 1-2-3-4
smf 2.0 Tp 1.104
up?
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?
voici l'adresse
http://www.ssd-handball.com/index.php
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)"
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.
je ne sais pas
translate google:
I do not know
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.
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
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.
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
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
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?
voilà :
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.
up?
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.