Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

November 26, 2022, 12:42:18 PM

Login with username, password and session length
Members
  • Total Members: 3853
  • Latest: tty456
Stats
  • Total Posts: 193612
  • Total Topics: 21103
  • Online today: 74
  • Online ever: 3540
  • (September 02, 2022, 06:38:54 PM)
Users Online
Users: 2
Guests: 52
Total: 54

Author Topic: Probleme permission écriture article  (Read 20446 times)

0 Members and 1 Guest are viewing this topic.

Offline john013

  • Jr. Member
  • **
  • Posts: 29
Probleme permission écriture article
« on: August 23, 2011, 04: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.
www.ssd-handball.com
smf 2.0
tp 1.104
Trad Fr de Tinyportal v1.0 RC1
theme epic 2.0
mode:  -Add GooglePlus to Posts    1.0    
-FB & Twitter Sharer Mod 2.0    2.0    
-Picasa Gallery Browser    0.6    
-Trad Fr de Tinyportal v1.0 RC1    1.0 RC1
-TinyPortal    1.104

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Probleme permission écriture article
« Reply #1 on: August 23, 2011, 07:34:05 PM »

Offline john013

  • Jr. Member
  • **
  • Posts: 29
Re: Probleme permission écriture article
« Reply #2 on: August 24, 2011, 01:50:10 AM »
merci c parfait les 2 problèmes résolut .
www.ssd-handball.com
smf 2.0
tp 1.104
Trad Fr de Tinyportal v1.0 RC1
theme epic 2.0
mode:  -Add GooglePlus to Posts    1.0    
-FB & Twitter Sharer Mod 2.0    2.0    
-Picasa Gallery Browser    0.6    
-Trad Fr de Tinyportal v1.0 RC1    1.0 RC1
-TinyPortal    1.104

Offline john013

  • Jr. Member
  • **
  • Posts: 29
Re: Probleme permission écriture article
« Reply #3 on: August 24, 2011, 02: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
www.ssd-handball.com
smf 2.0
tp 1.104
Trad Fr de Tinyportal v1.0 RC1
theme epic 2.0
mode:  -Add GooglePlus to Posts    1.0    
-FB & Twitter Sharer Mod 2.0    2.0    
-Picasa Gallery Browser    0.6    
-Trad Fr de Tinyportal v1.0 RC1    1.0 RC1
-TinyPortal    1.104

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Probleme permission écriture article
« Reply #4 on: August 24, 2011, 10:37:58 AM »
Please attach Sources/TPortal.php

Google translate:
S'il vous plaît joignez Sources/TPortal.php

Offline john013

  • Jr. Member
  • **
  • Posts: 29
Re: Probleme permission écriture article
« Reply #5 on: August 24, 2011, 02:44:11 PM »
voici le fichier
Code: [Select]
// 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);
}
www.ssd-handball.com
smf 2.0
tp 1.104
Trad Fr de Tinyportal v1.0 RC1
theme epic 2.0
mode:  -Add GooglePlus to Posts    1.0    
-FB & Twitter Sharer Mod 2.0    2.0    
-Picasa Gallery Browser    0.6    
-Trad Fr de Tinyportal v1.0 RC1    1.0 RC1
-TinyPortal    1.104

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Probleme permission écriture article
« Reply #6 on: August 24, 2011, 03:18:45 PM »
Remove this section:
Code: [Select]
$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);
}

Offline john013

  • Jr. Member
  • **
  • Posts: 29
Re: Probleme permission écriture article
« Reply #7 on: August 25, 2011, 03: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.
www.ssd-handball.com
smf 2.0
tp 1.104
Trad Fr de Tinyportal v1.0 RC1
theme epic 2.0
mode:  -Add GooglePlus to Posts    1.0    
-FB & Twitter Sharer Mod 2.0    2.0    
-Picasa Gallery Browser    0.6    
-Trad Fr de Tinyportal v1.0 RC1    1.0 RC1
-TinyPortal    1.104

Offline john013

  • Jr. Member
  • **
  • Posts: 29
Re: Probleme permission écriture article
« Reply #8 on: August 27, 2011, 02:13:09 AM »
up?
www.ssd-handball.com
smf 2.0
tp 1.104
Trad Fr de Tinyportal v1.0 RC1
theme epic 2.0
mode:  -Add GooglePlus to Posts    1.0    
-FB & Twitter Sharer Mod 2.0    2.0    
-Picasa Gallery Browser    0.6    
-Trad Fr de Tinyportal v1.0 RC1    1.0 RC1
-TinyPortal    1.104

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Probleme permission écriture article
« Reply #9 on: August 27, 2011, 02:30:04 PM »
Sorry I don't understand what you are asking.