![]() |
@boofo: This post is meant ;)
@brauner: Code:
else $closereason=" closereason='Wurde wegen Spam von ".$bbuserinfo[username]." geschlossen!', "; PHP Code:
|
Der vordefinierte Text funzt nun einwandfrei mit Name und Zeit etc.
Allerdings geht das nicht mit der Zeit Datum und Username wenn ich den Standarttext nicht benutzen m?chte. In Englisch: PHP Code:
|
dope i shall install this
|
Can anyone please tell me why I am getting this all of a sudden on a closed thread?
Quote:
|
Wow nice hack you guys. :)
I will proble install tommorrow. Once again VERY NICE HACK. Keep up the good work. |
Nice hack, very usefull :)
|
Boofo: seems you have corupted the timeformat part of the date/time addition of the hack ;)
|
But I didn't chnage anyting in it. Any idea how to fix it? :)
Quote:
|
if you haven't changed something then i don't have an idea ;)
|
Well, Xenon, it kept bugging me so I kept at it until I found out (with some help) what the time problem was I was having. It turns out that it was my fault after all. You were right. The code you gave me for the time had this in it:
Code:
".vbdate($dateformat." ".$timeformat,time())."', "; Code:
".vbdate($dateformat." at ".$timeformat,time())."', "; Code:
".vbdate($dateformat,time())." at ".vbdate($timeformat,time())."', "; |
Ok, now I am lost with this mixture of english and german. I saw per post the porblem about closing and then opening a thread still displays the closed reason but without the box but I couldnt work where the fix was.
Can someone help me to what I need to change to sort this out :) (in english would be cool ;)) |
completly deinstall the hack and install the really newest version there are no problems in it...
@boofo: :) yeah timeformat-string is no real outputstring ;) |
Quote:
is that not the latest one? |
So when I want to put an "at" between the date and the time, I need to use the "long" string and if I don't need that, then I can used to "condensed" vesrion of the string, is that right? I mean, that is basically what I did there, isn't it? :)
Quote:
|
yes it's because the "at" is also a formating option of date/timeformat.
look at http://www.php.net/manual/en/function.date.php to see which chars you cannot use in a formatstring because they are converted |
Thanks for taking the time to help me understand this a little better. Now that I know what I did wrong, maybe I can avoid this in the future when working with the date and time string in vb. :)
|
Can ANYONE tell me why this is happening? It only happened after I added this hack.
Dark Shogun |
Problem fixed.
Dark Shogun |
Quote:
|
I will have to go over the code again and tell you abit later. I works like a charm now.
Dark Shogun |
When it says in the instructions to find:
Code:
if ($s!=$session['dbsessionhash']) { Code:
if ($s!=$session['dbsessionhash'] && $reasonentered!=1) { Code:
$s == $session['dbsessionhash'] )) { Code:
$s == $session['dbsessionhash'] && $reasonentered!=1)) { I am having a small problem though. When you close a topic and put in the reason it works fine but when you open it the reason stays there except it isn't in the box. Dark Shogun |
Quote:
are you sure you've no parts of an old version in your files? |
Xenon can you attach or tell me which version is the most up todate and how to make it so it shows who closed the topic?
Dark Shogun |
of course :)
latest version is in the attachment :) to show who closed the topic: change this line in the instructions: $closereason=" closereason='".addslashes($reason)."', "; into this: $closereason=" closereason='".addslashes($reason)." (by $bbuserinfo[username])', "; |
Works perfectly. :)
Dark Shogun |
Quote:
PHP Code:
PHP Code:
|
yes it should work with vb228 too (it does at my forum)
the code has changed a bit from 227 to 228, so normally all should be ok if you just leave out this step: Code:
Find: |
Installed the latest Version....still got a problem!
When you close a thread.....then open a thread....and then go to close it again....it has the last message in there and if you replace it all and type something new then it dosent have the thread closers username there...... |
it should be that it still have the old message until you delte it and write another one..
the username isn't included in the official release, if you use the modifications i told in the thread, they should work, but it's not 100% because i didn't test em |
how can i make it so it whys why a topic was closed in the topic list of a forum?
so its something like this topic name why it was closed if its a closed topic |
you should be able to use $thread[closereason] in your forumdisplaybit templates...
|
Tryed that did not work
PHP Code:
|
Quote:
|
sorry c.birch my fault, you have to edit forumdisplay.php
find this PHP Code:
add ,closereason ziru$: well i can't give full support on add-on i posted i the thread because some wanted as long as i don't test them myself how the work... i've planned to update the hack but i don't have much time these days... |
Zirus: I have this installed on 2.2.8, the instructions that Xenon posted a page back or so, they work fine. I closed a thread. It showed the reason and who did it. I opened it. I closed it, deleted the full reason already there, put in something else and it still showed who closed it.
|
I've found a problem, when I close a thread, give a reason, then open it and then I go to newreply.php [I have a hack so that there's a checkbox to close thread upon newreply and newthread], when I close the thread in that way, the thread is closed but the reason comes up again! [it shouldn't, as I haven't given a reason!] and it uses the same username as the person who gave that reason when it was closed first...
|
Tha Rock, that's a problem with your quickclose hack.
i don't know it exactly, but somewhere in newreply you'll find something similar like this: Code:
$DB_site->query("UPDATE thread SET open=0..... Code:
$DB_site->query("UPDATE thread SET open=0,closereason=''..... |
the screen shots dont work.
|
Xenon: I can't find anything like that in newreply.php...I can't even find open=0...
|
well i don't know the hack, so i can't help you out then, you should ask in the supportthread of that hack...
normally such a line has to be in it, because that would be the query to close a thread.. |
All times are GMT. The time now is 09:16 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:
|