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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 431
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 159
  • Total: 159

editing own uploaded item as user

Started by raid, March 08, 2011, 12:53:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

raid

hi,

I cannot find reported issue about it.

I am using my localhost installation so smf 1.1.13 and tp 1.0 rc1, english language. all default, no mod installed.

I configured that all uploaded item must be approved by an admin, so a user with the upload rights but not admin one, can upload. then an admin approve it. so now the item is online, and the uploader (the user) is able to edit this item but editing the item no editor is loaded, bbc or html (actually I have bbc enabled, but I see in source that no editor is present on that speficic action)

am I wrong? is it a known bug/missing?
SMF 2.0 + TP RC2

IchBin

Looks like a bug IMO. I'll go ahead and add this to the bug tracker.

raid

#2
I fixed, I think, I post to share:

TPdlmanager.template.php
Code (Find) Select
<textarea  rows="40" cols="10" style="width: 90%;" name="dladmin_text'.$cat['id'].'" id="dladmin_text'.$cat['id'].'" wrap="on">'.$cat['description'].'</textarea>';

Code (Replace with) Select
';
if($context['TPortal']['dl_wysiwyg'] == 'html')
TPwysiwyg('dladmin_text'.$cat['id'], html_entity_decode($cat['description'],ENT_QUOTES), true,'qup_dladmin_text');
elseif($context['TPortal']['dl_wysiwyg'] == 'bbc')
TP_bbcbox('dl_useredit','dladmin_text'.$cat['id'], html_entity_decode($cat['description'],ENT_QUOTES));
else
echo '<textarea name="dladmin_text'.$cat['id'].'" style="width: 99%; height: 300px;">'. html_entity_decode($cat['description'],ENT_QUOTES).'</textarea>';


EDIT: on useredit the preview button isn't working, it's just the published page, not a preview
SMF 2.0 + TP RC2

IchBin

Thanks for posting that, I'll review this when I get a chance. In the middle of major changes for TP. Converting all the database queries to $smcFunc. :(

This website is proudly hosted on Crocweb Cloud Website Hosting.