PDA

View Full Version : Delete entry, not there anymore in 1.0.3


ge66
10-06-2008, 11:44 AM
I upgraded dynamics to 1.0.3 a couple of hours ago.
I use it as a classifieds-system.
Before the upgrade users where able to soft-delete there classifieds (entrys) by choosing the edit button at the bottom of an entry.
At the top of the next page, the edit page, was the ability to choose delete this entry.
It is not there anymore.
Not for my member and not for me as admin.

I can still delete entrys from the drop-down at the top right of the entry.

I have looked at permissions but it all seems to be ok.

Hoping for a quick solution, thank you!

Brian
10-06-2008, 03:42 PM
Thank you for pointing this out. Looks like the changes to the 'ADV_DYNA_ADDEDIT' template were lost before the release. You can correct this though by looking in that template for the following code:
<if condition="$show['deleteopt']">
<form action="moderate.php" method="post">
<input name="s" type="hidden" value="$session[sessionhash]" />
<input name="entryid" type="hidden" value="$entry[entryid]" />
<input name="do" type="hidden" value="dodeleteentry" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat" width="100%"><phrase 1="$vbphrase[entry]">$vbphrase[delete_this_x]</phrase></td>
</tr>
<tr>
<td align="center" class="panelsurround">
<div class="panel">
<div align="$stylevar[left]" style="width:$stylevar[formwidth]">

<if condition="$entry['valid'] == 2">
<div class="fieldset">$vbphrase[item_deleted_would_you_like_to]</div>
<fieldset class="fieldset">
<legend>$vbphrase[deletion_status]</legend>
<input type="radio" name="confirmaction" id="cact_1" value="1" checked="checked" tabindex="1" /> <label for="cact_1">$vbphrase[leave_it_deleted]</label><br />
<input type="radio" name="confirmaction" id="cact_3" value="3" tabindex="1" /> <label for="cact_3">$vbphrase[undelete_it_restore]</label>
<if condition="$show['physremove']">
<br /><input type="radio" name="confirmaction" id="cact_2" value="2" tabindex="1" /> <label for="cact_2">$vbphrase[physically_remove]</label>
</if>
</fieldset>
<else />
<div class="fieldset"><phrase 1="$vbphrase[entry_lwr]">$vbphrase[delete_x_message]</phrase></div>
<fieldset class="fieldset">
<legend>$vbphrase[delete_options]</legend>
<input type="radio" name="confirmaction" id="cact_0" value="0" checked="checked" tabindex="1" /> <label for="cact_0"><phrase 1="$vbphrase[entry]">$vbphrase[do_not_delete_x]</phrase></label><br />
<input type="radio" name="confirmaction" id="cact_1" value="1" tabindex="1" /> <label for="cact_1"><phrase 1="$vbphrase[entry]">$vbphrase[delete_this_x]</phrase></label>
<if condition="$show['physremove']">
<br /><input type="radio" name="confirmaction" id="cact_2" value="2" tabindex="1" /> <label for="cact_2">$vbphrase[physically_remove]</label>
</if>
</fieldset>
</if>
<div class="fieldset">$vbphrase[reason_for_deletion]<br />
<input type="text" name="reason" value="$entry[reason]" size="60" maxlength="255" tabindex="1" />
</div>
</div>
</div>
<div style="padding-top:$stylevar[cellpadding]px">
<input class="button" type="submit" value="$vbphrase[delete]" tabindex="1" />
</div>
</td>
</tr>
</table>
</form>
<br />
</if>

And replace with this:
$deletebit

Note this change has been applied to the files in the download package here, so you could also download the files from here again, upload the forum/admincp/vbadyna_install_templates.php file, go to the forum/admincp/vbadyna_install.php file in your browser, and select the option to reinstall your templates if you do not want to have the template marked as being customized.

Our Sponsors
 

ge66
10-06-2008, 04:19 PM
Thank you!