![]() |
Hi, Xenon!
I am using your Editing Hierarchy Hack (quite happily, I might add) , and as such - I have no need or desire to install the Edit Permissions portion of this particular hack. However, I do need the other features - specifically, the ability to edit the Author, Timestamp, IP, etc... What portions would I need to keep/remove from your Instructions in order to do this? Thanks! :) |
well, you have to remove the selection menue from the additional template, and then in editpost.php all you have to do is to change
PHP Code:
PHP Code:
|
Hmm... well, since this will only be used for Admins, I think I can trim out quite a bit more in order to keep things efficient.
For example, I think I can remove the entire Permission Checking routines (in addition to the Database Modification), by simply enclosing the Template additions like so: Code:
Yes? If so, than I should be able to remove a good section of this hack. I have made an absolutely amateurish attempt at doing so. If you happen to have the time, and are in the mood to do so - I would be grateful if you could look over my revised version, and tell me just how badly I screwed up. <grin> |
erm, you shouldn't hardcode the usergroupids, that's why i used the editlevel things.
as for the rest, there is no need to struck out much, the better efficiency is not remarkable, especially not for the prize to work on that more time than really needed to achieve the goal ;) |
Quote:
So, keeping that in mind - did I actually alter the original code correctly? Or did you notice something that I missed? (p.s. thanks for taking any time at all to look at it! ) :) |
well it seems you trimmed way too much, as there is an ending } but not an opening one....
as said, just do the changes i suggested and you will be fine. |
Quote:
So, clearly, I must have missed something. I guess I'll just have to spend some more time on it when I get the chance. :) Great hack, though! I can't wait until I get this ready for use. :) (Yeah, I know - I'm making this hard on myself - I can't help it. :nervous: ) |
*gg*
well i wish you good luck then :) Your way will be very hard, but then on the other hand you will know each line of the code afterwards, good for upgrades :p |
Quote:
However, if, 20 or 30 years from now, you should happen to choose to ruin my "fun" by telling me what I missed - I just want you to know that you shouldn't feel too bad about it - I won't hold it against you. :) :) :) |
yeah, in 20 or 30 years, with vb10 ;)
|
Thanks Xenon! (and Sandman for referring me to this Thread at vB.com)
This will be a tremendous help to change usernames of posts that I moved over from our yahoogroups. Not sure yet whether I will need to update user post counts etc after making the changes... Is it important to change the username IP too when I make the changes? It just means an extra chore to find the user IP as I have a lot of posts needing username changes. I want the author to be able to edit content of posts. Mark |
This is useful, but how about adding a feature to edit the thread title? As VB is now, only the post title can be edited after x time. It would be nice to be able to edit the actual thread title without having to open phpMyAdmin..
|
Quote:
|
@006: sandman already said, the threadtitle is editable in a normal vb already
@MJM: nope, it's not needed to change the IP. The username is the important field, as a username change changes the userid of that specific post, and that will lead to that the new user can edit the post instead of the old one :) Updating postcounts, would be needed, correct, thats something i will change in the next version :) |
Great job once again Xenon
:) Quick question tho, as posted here : Quick Edit Hack Quote:
Thanks :) |
well, that's a problem of the quick edit hack.
you have to add the additional fields from my hack into the quick edit hack. or another way would be to post another variable when using quickedit, and then add an if condition, if this var is set, do nothing of the advanced features. I'm sure you can figure that out :) |
No not reallly
Any chance of bit more assistance ? |
nah, not really, as i don't know the code of the quick edit hack, and i do not have the time to install it on a testboard to find it out..
maybe someone who has installed that hack as well can assist? |
No worries
Thanks anyway :) Has anyone manged to get both these hacks working together ? |
Quote:
- quick edit uses showthread php and functions showthread advanced doesnt -quickedit makes u create a new template called quickedit and edit posbit/postbit legacy and the advanced hack doesnt - so wheres the conflict? plus there are no calls in the install to replace any text in advanced i gotta step out for a bit but im gonna try and install both on a test board im using the original quick edit in the first post with the added reason and delete fields so if you want to try it again thats what im testing it on this just doesnt make sense... ill update this post later tonight |
well it conflicts, that the quickedit send to editpost.php as well, but doesn't fill the admin edit fields as well, so all those are considered as empty...
|
Quote:
Code:
<if condition="THIS_SCRIPT=='showthread' and $bbuserinfo[usergroupid]!=5 and $bbuserinfo[usergroupid]!=6 and $bbuserinfo[usergroupid]!=7"> |
this is for those that have the quick edit hack installed
ok i got it to work .... somewhat... i just need one more step this is what i did so far.... i have this code in the showthread_quickedit Code:
<span id="quickedit_$post[postid]"> im not sure what i have left to add... any suggestions? |
well, to see the correct infos, they have to be prepared/parsed before.
so you better use a different way: in MY hack find: PHP Code:
PHP Code:
HTML Code:
<input type="hidden" name="quickedit" value="true" /> but it means the special edit options can just be used in real edit, not quick edit :) |
This has been working great! Can't thank you enough.
Couple things.... If the day/month boxes could be a little bigger to show the 2 numbers... They only show one number each, and when making date changes it's a bit of a pain. Any way username changes can be made in calendar of event? Thanks, thanks and thanks again, Mark |
hmm, they show two numbers for me.
seems to be browser related, or maybe font relatad. just change the sizevalue in the template: Code:
<input type="text" name="newday" value="$posttime[mday]" size="1" maxlength="2" id="tb_dateline_day" />. |
Using IO on a Mac, maybe thats why
...will pass this on to my partner Thanks Mark No problems about the calendar/username change. We now post calendar events under pseudonym `EventsDesk' and wanted to change our personal username entries, which we can by deleting, then re-entering info under new username, as the date of entry is irrelevant. The only thing we can't do is change the name to another member username, but we'll just have the member re-enter the info. |
Anyone try installing this on 3.0.3 yet?
|
actually not, but it should work with 3.0.3 as well, there weren'T in deep changes in editpost.php
|
Nice hack, just wanted to mention that it installed fine on vBulletin 3.0.3.
Had a little problem with another hack but I managed to fix it. I fyou have the quick edit hack installed and tried to quick edit a post, all the options get reset like IP, userid and name, the date and so on. If anyone else has this problem heres a quick fix, in the template "showthread_quickedit" find: HTML Code:
<form enctype="multipart/form-data" name="vbulletinform" style="display:inline;" action="editpost.php" method="post"> HTML Code:
<input type="hidden" name="quickedit" value="true" /> PHP Code:
PHP Code:
Also I notice a small problem with this hack, if you change the user of the post, the original poster count doesn't decrese and the new user post count doesn't increase so you would have to update the counters to get them accurate again. Other then that, its a good hack. |
Quote:
|
@Sly: hmm, a lint to that post
would have fit also ^^ As for the postcount, yes i know, will have to add that in my next update (when i find the time to add what i want to add ^^) |
Quote:
I made some changes to your hack that fixed up a couple things, one is corectly setting the users pos count and the other is updating the forum last poster and first poster info if you change the user. After you install this hack, find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Thx for sharing your changes :)
i might add, that your code for the postcounts isn't correct 100% if you have forums where post's aren't counted, then of course you would not have to change the postcount ;) but i'm sure a lot can use this, until i can come up with the next version (which hopefully has all of that implemented and the special additions i want to have ;)) |
Quote:
&& $foruminfo['countposts'] To the If statement. The only problem now is updating the user's usertitle if they gain/lose enough posts for a different one. |
:)
now you see why i didn't add that things to the first version of my hack ;) |
If you edit the date, does it bump the post up the list/to the top? Or is it just whats displayed when the post is viewed?
|
it does bump the post up/down the list (in linear mode)
in threaded mode it just changes the displayed time |
Hi, Xenon! I was wondering if you had any ideas as to when you'll be releasing the next version of this hack? :)
|
unfortunatelly not.
I'm currently totally overworked with other things, but i will at some day. I expect when i'm back at university *gg* |
All times are GMT. The time now is 07:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|