I'm not sure of your use case but if you are looking to add something like SOLD to the title, the prefix actions add-on allows you to edit the prefix even when the edit time has passed in which case you could use a "SOLD" prefix etc. Just FYI.
Permissions don't allow edit thread title unless you have edit own post permissions.
Doers anyone know an addon (or even better a template modification or edit) that would allow this?
Thanks
<xf:if is="{$thread.user_id} == {$xf.visitor.user_id}">
<xf:else />
<xf:title>{{'Ooops Not your title! Please ---->'}}</xf:title>
</xf:if>
<xf:if is="{$thread.user_id} != {$xf.visitor.user_id}">
<xf:title>{{'Ooops.. Not your title?!'}}</xf:title>
<xf:else />
<xf:if is="$xf.time < $thread.post_date + 86400 * 3">
xf:title>{{ phrase('editthreadtitle_edit_thread_title') }}</xf:title>
....
<xf:else />
<xf:title>{{ Unfortunately the editing time has already expired! Please contact <u><b><a href="Add your link to staff here">Staffmember...</a></b></u>'}}</xf:title>
</xf:if>
</xf:if>
This won't prevent non-owners from editing thread titles if the PHP code does allow that (which seems to be the case by judging your comment, I don't have the Add-on so I can't say for sure).Open: /admin.php?styles/default-style.1/templates&type=public (XF2.1.10 Default Style here)
[..]
That's all, save, exit, enjoy.
This won't prevent non-owners from editing thread titles if the PHP code does allow that (which seems to be the case by judging your comment, I don't have the Add-on so I can't say for sure).
Thanks for the offer, I've "successfully" tested it:You can test that, it works.
So before making such statements you might want to check the facts ...Therefore, you should never make a public statement without first checking that it is correct.
So far I've only talked from the GUI perspective and specifically that the modification works. With the technique you use you can influence some modifications, but you can also turn that off.Thanks for the offer, I've "successfully" tested it:
View attachment 228247
So before making such statements you might want to check the facts ...
"Hiding" functions from the GUI never stops users from using them.
It's your forum, so do whatever you wantFor me in the forum, or in normal forums at all, there is no reason for that - there is nobody who knows so far, or someone who wants to prove themselves in this way.
It's your forum, so do whatever you want
I consider this a serious security issue and recipe for desaster (as it would allow any registered user to nuke off a lot of (all?) thread titles using a script) but YMMV.
Found
Edit thread title
Premium upgrade: This XF2 add-on along with the entire collection can be purchased for $35.00 USD. Your Premium upgrade will allow you to download as many XF2 add-ons as you like for one year. Please see the entire collection located in the...xenforo.com
Super tool, does what it promises, but a little too well.
Unfortunately, this not only gives the user group access to its own headings, the user group can then edit every title, including the titles of other users.
To prevent this, I have a little code for you here, so a workaround.
This means that (with this Tool) everyone in the user group can only edit their own topic titles ...
Open: /admin.php?styles/default-style.1/templates&type=public (XF2.1.10 Default Style here)
and edit template: andy_edit_thread_title.
@Line 1, before, insert:
Code:<xf:if is="{$thread.user_id} == {$xf.visitor.user_id}">
at the end of the template replace </xf: if>
with the following code:
That's all, save, exit, enjoy.Code:<xf:else /> <xf:title>{{'Ooops Not your title! Please ---->'}}</xf:title> </xf:if>
Edit 2.
Let's add a time limit and Link to Staff (Thanks again @Jeremy P )
replace:"<xf:title>{{ phrase('editthreadtitle_edit_thread_title') }}</xf:title>"
Code:<xf:if is="{$thread.user_id} != {$xf.visitor.user_id}"> <xf:title>{{'Ooops.. Not your title?!'}}</xf:title> <xf:else /> <xf:if is="$xf.time < $thread.post_date + 86400 * 3"> xf:title>{{ phrase('editthreadtitle_edit_thread_title') }}</xf:title> ....
Replace the last </xf:if>by this code:
Code:<xf:else /> <xf:title>{{ Unfortunately the editing time has already expired! Please contact <u><b><a href="Add your link to staff here">Staffmember...</a></b></u>'}}</xf:title> </xf:if> </xf:if>
You could still use phrases here instead of using the notes directly in the code. But I don't like to take all the joy out of experimenting
And always remember to create a backup before changing the code!
I know that.
This is the case with a whole range of other addons that we (and others) use as well. Parameters passed via URL are no secret.
We're happy to. If you can let us know which add-ons allow data to be manipulated without proper permission checks which may cause data loss to any of our customers via passing simple URL parameters, we'd like to know so we can remove them from the resource manager and perhaps reconsider whether the author should be releasing their products here.Why don't you make such an uprising there?
I just pointed out that a template modification does not prevent users from exploiting this functionality, you accused me that this statement was incorrect and offered to test this, I did that to confirm my statement was correct.Why don't you make such an uprising there? Do you want to prove something to me or the others here?
We use essential cookies to make this site work, and optional cookies to enhance your experience.