![]() |
Question: Does this add queries? If so, how many and on what pages?
|
Quote:
g-force2k2 |
Good, I shall install it then ;)
On a side note: g-force: how's those requests coming along [the hacks i requested a while ago] |
I have a problem, PHP people, help me please! :(
if ($thread[open]) { $replyclose="https://vborg.vbsupport.ru/images/reply.gif"; $thread[closereason]=""; } else { $replyclose="https://vborg.vbsupport.ru/images/threadclosed.gif"; if (trim($thread[closereason])) { $thread[closereason]=bbcodeparse2($thread[closereason],0,1,1,1); eval("\$thread[closereason] = \"".gettemplate("showthread_closereason")."\";" ); } else { $thread[closereason] = ""; } } That is what I have in my showthread.php file... I have to replace it with: // +++++++ Super Close Thread Hack [ g-force2k2 ] +++++++ if(($thread[open] == 0) OR ($thread[open] == 2)) { $replyclose='https://vborg.vbsupport.ru/images/threadclosed.gif'; } else { $replyclose='https://vborg.vbsupport.ru/images/reply.gif'; } // +++++++ Super Close Thread Hack [ g-force2k2 ] +++++++ I'm sure there's an easy fix for this but I don't know what it is :D |
Attached is a PHP file of my instructions so hopefull it doesn't parse the image code.
|
bump, please help! :(
|
Ok I managed to fix it for myself! Ok it took me a bit of thinking though [I had no idea where to start!], but in the end I just used some intelligence and tried a few tricks and looked at the PHP, tried to understand it and got a grip of it and fixed it for myself! At first I had a problem that it wasn't calling the template for closereason but I also fixed that, but then I had a problem with it showing the reply image instead of close image but I fixed that too!
Thanks for a great hack, now i can superclose threads :D |
how do i integrate this hack with close reason hack. im having problems with the showthread.php modifications. please help
|
i hate to double post but can someone help me with this?
|
It's a nice hack but it would be nice if moderators couldn't alter these threads at all. Currently they can move/delete them still.
I fixed that on my board by adding the code to more sections of postings.php. eg, at the top of a section under (for example) PHP Code:
PHP Code:
PHP Code:
PHP Code:
Also, in postings.php, it would be better if 'the thread has been successfully superopen/superclose'' read 'super-opened/super-closed or something. Just change PHP Code:
PHP Code:
|
All times are GMT. The time now is 03:30 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:
|