Les avertissements suivants se sont produits :
Warning [2] Undefined array key 0 - Line: 1640 - File: showthread.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 1640 errorHandler->error_callback
/showthread.php 915 buildtree




Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
Utilisation de DownCnt avec CGBlog
#1
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: 1.11.4
#~ Hébergeur / Soft : OVH
#~ Informations Système :
#~ ----------------------------------------------
#~ Cms Version: 1.11.4
#~ Installed Modules:
#~ CMSMailer: 5.2.1
#~ FCKeditorX: 1.1.0
#~ MenuManager: 1.8.4
#~ ModuleManager: 1.5.5
#~ News: 2.12.10
#~ Search: 1.7.7
#~ ThemeManager: 1.1.7
#~ AkismetCheck: 0.2.1
#~ Bookmarks: 2.0.1
#~ NMS: 2.7
#~ FileManager: 1.4.3
#~ Printing: 1.1.2
#~ CGExtensions: 1.31.3
#~ FormBuilder: 0.7.3
#~ Captcha: 0.4.5
#~ Statistics: 1.1.3
#~ Gallery: 1.6
#~ CGCalendar: 1.10.0.1
#~ CGSimpleSmarty: 1.5.2
#~ CGGoogleMaps: 2.4.3
#~ JQueryTools: 1.1.1
#~ CGFeedback: 1.5.10
#~ TinyMCE: 2.9.11
#~ SiteMapMadeSimple: 1.2.6
#~ CMSPrinting: 1.0.3
#~ MicroTiny: 1.2.5
#~ FrontEndUsers: 1.21.2
#~ CustomContent: 1.8.3
#~ CGUserDirectory: 1.3
#~ FormBrowser: 0.4.2
#~ CGSmartImage: 1.9.5
#~ SelfRegistration: 1.7.2
#~ CGJobMgr: 1.2.11
#~ CGBlog: 1.9.8
#~ JM_Forum: 1.0.0
#~ JQueryFU: 1.0.5
#~ BBCode: 1.1
#~ FEUMailer: 0.9.4
#~ DownCnt: 2.3.0
#~ Config Information:
#~ php_memory_limit:
#~ process_whole_template:
#~ output_compression:
#~ max_upload_size: 64000000
#~ url_rewriting: none
#~ page_extension:
#~ query_var: page
#~ image_manipulation_prog: GD
#~ auto_alias_content: true
#~ locale:
#~ default_encoding: utf-8
#~ admin_encoding: utf-8
#~ set_names: false
#~ Php Information:
#~ phpversion: 5.2.17
#~ md5_function: On (True)
#~ gd_version: 2
#~ tempnam_function: On (True)
#~ magic_quotes_runtime: Off (False)
#~ E_STRICT: 0
#~ memory_limit: 128M
#~ max_execution_time: 120
#~ output_buffering: On
#~ safe_mode: Off (False)
#~ file_uploads: On (True)
#~ post_max_size: 64M
#~ upload_max_filesize: 64M
#~ session_save_path: /tmp (1777)
#~ session_use_cookies: On (True)
#~ xml_function: On (True)
#~ xmlreader_class: On (True)
#~ Server Information:
#~ Server Api: cgi
#~ Server Db Type: MySQL (mysqli)
#~ Server Db Version: 5.1.49
#~ Server Db Grants: Could not find a suitable "GRANT ALL" permission. This may mean you could have problems installing or removing modules. Or even adding and deleting items, including pages
#~ ----------------------------------------------
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~



Salut,

J'aimerai compter le nombre de clicks sur un article dans mon blog. Pour ce faire, j'utilise CGBlog et DownCnt.

Voici le code utilisé:

Citation :{foreach from=$items item=entry}
<tr>
<td>{$entry->postdate|cms_date_format}</td>
<td>
{DownCnt name="{$entry->id}" link="{$entry->detail_url}" assign='blog_counter'}
<a href={$blog_counter}>{$entry->title|escape}</a></td>
<td>{$entry->extra}</td>
</tr>
{/foreach}

L'id de l'article est affichée correctement, mais le lien ne fonctionne pas, puisque les signes spéciaux sont transformés et donnent un lien totalement inutilisable:
Citation :index.php?mact=DownCnt,cntnt01,click,0&cntnt01name=33&cntnt01link=http%253A%252F%252Fwww.groupe-animateur.lu%252Findex.php%253Fmact%253DCGBlog%252Ccntnt01%252Cdetail%252C0%2526amp%253Bamp%253Bcntnt01articleid%253D33%2526amp%253Bamp%253Bcntnt01returnid%253D17&cntnt01returnid=17
Même quand j'entre le lien directement sans utiliser de variable (c-à-d: link="index.php?mact=CGBlog,cntnt01,detail,0&cntnt01articleid=33&cntnt01returnid=17"), les signes sont transformés de la même manière.

J'ai déjà essayé différents signes " " ' ' , mais je n'ai pas encore trouvé de solution qui marche...
Est-ce que qqn sait ce que je fais mal et comment résoluer ce problème?

Merci beaucoup d'avance!

Lex
Répondre


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)