TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 25, 2024, 09:25:46 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,173
  • Total Topics: 21,219
  • Online today: 319
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 133
  • Total: 134
  • @rjen

download item, bbcode version, missing text

Started by raid, December 31, 2010, 02:52:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

raid

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:
[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
SMF 2.0 + TP RC2

WillyP

Confirmed... sorta... for me the code did not disapper, but did not parse, either.

raid

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

WillyP

Can you give us a link directly to the page?  Or screenshots if your test server is offline?

WillyP

Here's what I got when I entered your code in both the item and category descriptions:


WillyP

I don't know what is wrong with that... it looks like what I would expect, from the code you posted.

WillyP

Quote from: raid on December 31, 2010, 03:48:08 PM
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?

raid

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

raid

#9
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__);
SMF 2.0 + TP RC2