![]() |
oh right, it's in the install file *gg*
(sometimes i forgot what i've already included in the hacks ^^) PHP Code:
be sure you have enabled the showedited by thing.. |
oh, sorry, you were right :)
there was a little bug in it. i've uploaded a new version, it should work now, also i've optimized the querie a bit, so i think it's good for everyone to install the new version :) |
How do we get the subject (title) back in the line now? ;) I have this but it doesn't seem to work.
PHP Code:
|
yeah, it's right it would work normally..
that part hasn't changed in my update, just a part before ;) |
I tried it with title and $lastpost[title] and all I get is a black line where the title should be. I'm looking at the old code I had from 6 months ago for this and seeing if I can figure it out. ;)
|
Oh cool. Thanks Xenon.
I have a question though, I tried making the edited by part the same as it is in editpost.php, which would look like: PHP Code:
PHP Code:
Thanks. :) |
use that 006:
PHP Code:
|
I tried that and it shows the "edited by" no matter what I have selected in Admin CP. It's weird. :(
I have no clue why. :ermm: Any ideas? |
sorry, no idea, it should work...
have you tried it on a post where the edited by wasn't there already, because it won't delete it if it's already ther.. |
yeah I made two new posts and then waited two minutes, then replied to one with "Show Admin Edit" turned on, and one with it turned off, and it showed "edited" both times.
|
hmm, no idea then, it should work normally...
|
lol
Well if you don't know then it must be REALLY weird... I thought that would work too... Oh well, I can just tell admins if they don't want it to show "edited by" to just actually edit the post instead of replying. That's alright I guess. ;) Thanks anyway. :) |
Man this hack rules!!
Exactly what i?ve been looking for!! Thanks Stefan!! [high]* Kars10 klicks install! ;)[/high] |
I love this hack. It pisses most the members off because they cant get more posts.
|
works perfect man
thanks for another amazing hack 1 quick eustion am i right in saying that if u want to change the amount of time given before a new post is made i just edit this line if ($showeditedby and $lastpost['dateline'] < (time() - ($noeditedbytime * 60))) { and change the 60 into whatever i want? |
this is a great hack, should be a default in vB will have to install it later
|
Quote:
nope, you have to change the 3600 in this line: PHP Code:
|
oooops
ok thanks for the help man :) that 3600, is that seconds? lets say i wanted to make it for 24 hours, would i just find out how many seconds are in 24 hours, and put it in? |
exactly ;)
or to make it easier to read just write 3600 * 24 ;) |
I think I may have found a bug. I have the post limit at 18000 characters. I have posts being ammended going beyond that. One guy kept reposting and reposting and it kept being ammended to the previous post so his single post has 42000 characters now.
|
hmm, yeah i know that "bug".
but i wasn't sure if it would disturb or not... at least sometimes that could have been the reason for the "doublepost" for a quickfix use this: before: PHP Code:
PHP Code:
|
Thanks a lot for the hack and help. On my board the post limit has its reasons cause of too many people making too many points that by the time someone responds they have to deal with 30 points instead of a simple 2-3 point rebuttal so this helps significantly.
|
ok anche in vb 230 :)
bello script!!! :D jancarlo ok also in vb 230:) beautiful script!!! :D jancarlo |
installed and works great, should really be default to vB, very awesome hack Xenon
and you're an admin now, add the mini section ;) |
Can someone let me know how to exclude some forums from the hack? I only want it on a few.
Also a way to stop if from counting points(store hack) if it was a double post? |
for the storehack i can't help ya, because i don't use it.
i think all you have to do ist to put the add to storpoint part of newreply under the user post count update part. to exclude forums: change this: PHP Code:
PHP Code:
|
Is the guy who wrote this (in the message above)
$threadinfor['forumid'] the same guy who got me on the nothing and anything words the other day? ;) :p Is this a new variable in vb3? ;) |
:p
mine is just a typing, yours was sensechanging :p ;) but yeah i try to convince the devs to add this as a new vb3 var ;) |
Quote:
Yes, but I'm allowed to butcher the English language because it is my native language. ;) Quote:
|
small easy and cool hacks by Xenon. this is vey cool as most of the users dunno what the edit button does and most of the times the reply 3-4 times with a newreply instead of editing.
|
i have one question....heh....i hope this thread is like....still loooked at!!!!
anyway.... the attachment is the Double Post Prevention Hack before I installed Anime-loo 's Post Redirect Hack. I was wondering what i would change in the code so that it will show "Double Posting are we?" between each post, instead of right after the text like it's doin now....if needed, i'll attach another screenshot of how it looks now.... I hooooppppe someone can answer this *dances* |
:bunny: well...i'm bored....so i'll show ya how it looks now...
the attachment actually shows (1) how it was [in the quote] (2) how it is now [after i installed Anime loo's Post Redirect hack. heeelp?? :bunny: |
hmm, i can't really see the sense for this, but all you have to change is this:
PHP Code:
if you left out the \n tags, it will lead to your problem. if they're in, maybe you have to ask anime about his hack ;) |
*dances*....
THANKS !!!!!!!! \n\n did the trick! w00t! |
Quote:
Parse error: parse error, unexpected ',' in /home/opie/public_html/forums/newreply.php on line 296 I'm running 2.2.7 if that matters. |
if you have made everything right, there couldn't be such a parse error.
you should check your php syntax on mistakes you have made |
Code:
if($threadinfo['forumid'], array(10,11,13)) or $lastpost['userid'] != $bbuserinfo['userid'] OR (time() - $lastpost['dateline']) > 3600 OR ($attachmentid and !$foruminfo['moderateattach'])) { That's what I put and those are valid forum ids, but still the error... weird. |
whats wierd?
you clearly forgot half of the codechanges...... why haven't you put the word in_array in your code as i stated? |
Sorry I don't know too much about php, so instead of array put "in_array" ?
I didn't see where you said put "in_array". |
use this code instead, it seems VB took out in_array :p lol:
[sql] if(in_array($threadinfo['forumid'], array(x,y,z)) or $lastpost['userid'] != $bbuserinfo['userid'] OR (time() - $lastpost['dateline']) > 3600 OR ($attachmentid and !$foruminfo['moderateattach'])) { [/sql] |
All times are GMT. The time now is 08:07 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:
|