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?

January 31, 2023, 10:10:44 AM

Login with username, password and session length
Members
  • Total Members: 3856
  • Latest: Bixby
Stats
  • Total Posts: 193910
  • Total Topics: 21127
  • Online today: 49
  • Online ever: 3540
  • (September 02, 2022, 06:38:54 PM)
Users Online
Users: 1
Guests: 35
Total: 36

Author Topic: download item, bbcode version, missing text  (Read 3020 times)

0 Members and 1 Guest are viewing this topic.

Offline raid

  • Full Member
  • ***
  • Posts: 162
    • http://www.darkforge.it/
download item, bbcode version, missing text
« on: December 31, 2010, 07:52:12 AM »
Link to my site: http://www.darkforge.it
SMF version: SMF 1.1.12
TP version: TP 1.0 RC1
Default Forum Language: English
Theme name and version: default theme used for tests
Browser Name and Version: FF 3.6.13
Mods installed: none
Related Error messages: none


I used as ever a testing board to confirm bug, so just installed no mod no customization.

using bbcode version for download section, adding this text on text field body:
Code: [Select]
[center][size=13pt][b]SharkX 2.0[/b][/size][/center]
[center][img]http://i54.tinypic.com/jf93rr.png[/img][/center]

[quote]SharkX v2.0 Based on eMuleFuture v1.1 [0.50a]

remove IRC
remove scheduler
remove webserver
remove peer cache & URL client [netfinity/taz]
remove EMF Toolbar
add official toolbar (no skins only bitmaps)
remove WebBrowser
change sorting upload slots logic [taz] - ReSortUploadSlots is called only upon file priority (and or PS) change
add Mod home - open forum based on selected mod language
add check user hash [DLP]
add 80% score for non SI clients [Xman]
remove score punish for Nick/Mod thieves & Mod fakers [taz]
add zero wait time each new identification for Mod thief/faker [taz] - \"new\" session
add no PowerShare for leechers [taz]
change PowerShare selection on SharedFilesCtrl - back to previous style
change CA not clearing bad DL counter on count <12k download sessions as failed (Xman\'s idea) - too easy for leechers to go clean [taz]
add FakeAnalyzer [netfinity]
add One-queue-per-file [Maella (idea bloodymad)]
change from client datarate selection to number of slots [taz]
add Variable corrupted blocks ban threshold [Spike2]
add Version Check [Stulle/taz] + splahed version [taz]
replace country name to Remote Queue Status [Yun.SF3/IceCream] on upload list
change 1\'st time wizard : most values are now loaded from preferences [taz]
add Don\'t remove dead servers on 0 retries [Stulle]
add protect static servers [Mighty Knife]
add Nice Hash [CB/WiZaRd]
add Don\'t allow file hot swapping [taz/Xman/idea Maella] : it\'s not about our file UL priorities, rather on client position in queue
add mask out main toolbar buttons in preferences due to IRC removal
fix remove duplicate deletes for ICS & AntiHideOS [Gear]
fix storing AutoHL options selection[/quote]

Lingua Italinana integrata nei binari

[url=http://www.darkforge.it/board/emule-sharkx-release-e-supporto/%280-50a%29-sharkx-v2-0/]Discussione di Supporto - Supporto topic[/url]

I am missing everything after tag QUOTE, and if I change the quote with CODE it isn't parsed well. (but on edit, the text isn't missed so on DB is written well, but not parsed when opening the download page as normal user

then there is a bad behavior with  " ' adding \ on every edit.

is it "known", I didn't find nothing about

regards
« Last Edit: December 31, 2010, 08:24:36 AM by raid »
SMF 2.0 + TP RC2

Offline WillyP

  • Support Team
  • *
  • Posts: 769
    • Planet Descent
Re: download item, bbcode version, missing text
« Reply #1 on: December 31, 2010, 08:45:59 AM »
Confirmed... sorta... for me the code did not disapper, but did not parse, either.

Offline raid

  • Full Member
  • ***
  • Posts: 162
    • http://www.darkforge.it/
Re: download item, bbcode version, missing text
« Reply #2 on: December 31, 2010, 08:48:08 AM »
I checked once more, and the quote is parsed good, but is dropped, something like on cat list dropped shorter.

we found a problem on bbc parser, I love bbc version, thx for your work guys
SMF 2.0 + TP RC2

Offline WillyP

  • Support Team
  • *
  • Posts: 769
    • Planet Descent
Re: download item, bbcode version, missing text
« Reply #3 on: December 31, 2010, 08:49:26 AM »
Can you give us a link directly to the page?  Or screenshots if your test server is offline?

Offline WillyP

  • Support Team
  • *
  • Posts: 769
    • Planet Descent
Re: download item, bbcode version, missing text
« Reply #4 on: December 31, 2010, 08:57:40 AM »
Here's what I got when I entered your code in both the item and category descriptions:

Offline raid

  • Full Member
  • ***
  • Posts: 162
    • http://www.darkforge.it/
SMF 2.0 + TP RC2

Offline WillyP

  • Support Team
  • *
  • Posts: 769
    • Planet Descent
Re: download item, bbcode version, missing text
« Reply #6 on: December 31, 2010, 09:17:29 AM »
I don't know what is wrong with that... it looks like what I would expect, from the code you posted.

Offline WillyP

  • Support Team
  • *
  • Posts: 769
    • Planet Descent
Re: download item, bbcode version, missing text
« Reply #7 on: December 31, 2010, 09:26:24 AM »
I checked once more, and the quote is parsed good, but is dropped, something like on cat list dropped shorter.

we found a problem on bbc parser, I love bbc version, thx for your work guys

Are you saying you found a fix?

Offline raid

  • Full Member
  • ***
  • Posts: 162
    • http://www.darkforge.it/
Re: download item, bbcode version, missing text
« Reply #8 on: December 31, 2010, 09:31:35 AM »
I am making screenshot, I will be back in a minute

EDIT: you can see on first image that something is missing, the first is online forum, the second is th test board on localhost with smf1.1.12 just installed and tp rc1 just downloaded from this site now. the same error
SMF 2.0 + TP RC2

Offline raid

  • Full Member
  • ***
  • Posts: 162
    • http://www.darkforge.it/
Re: download item, bbcode version, missing text
« Reply #9 on: December 31, 2010, 09:49:41 AM »
and I can solve this issue replacing on TPdlmanager.php:

Code: (Search for) [Select]
$context['TPortal']['dlitem'][] = array(
'id' => $row['id'],
'name' => $row['name'],
'description' => $context['TPortal']['dl_wysiwyg']=='bbc' ? parse_bbc(trim(strip_tags(html_entity_decode($row['description'],ENT_QUOTES)))) : html_entity_decode($row['description'],ENT_QUOTES),

and:
Code: (Replace with) [Select]
$context['TPortal']['dlitem'][] = array(
'id' => $row['id'],
'name' => $row['name'],
'description' => $context['TPortal']['dl_wysiwyg']=='bbc' ? parse_bbc(trim(html_entity_decode($row['description'],ENT_QUOTES))) : html_entity_decode($row['description'],ENT_QUOTES),

so I removed "(strip_tags" and  ")"

other problem is the \ added everytime I edit download item before " and '

even on TPdlmanager.php
Code: (Search for) [Select]
tp_query("UPDATE " . $tp_prefix . "dlmanager SET description = '" . mysql_real_escape_string($value) . "' WHERE id=". $id, __FILE__, __LINE__);
Code: (Replace with) [Select]
tp_query("UPDATE " . $tp_prefix . "dlmanager SET description = '" . mysql_real_escape_string(stripslashes($value)) . "' WHERE id=". $id, __FILE__, __LINE__);
« Last Edit: December 31, 2010, 10:38:15 AM by raid »
SMF 2.0 + TP RC2