vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Thread Category / Prefix Hack (https://vborg.vbsupport.ru/showthread.php?t=61494)

Stray 03-26-2004 07:26 PM

So far this hack works excellent for me. This would be a great standard vb feature.

Geographic2 03-26-2004 10:06 PM

Word on the street is... Install.

Now if only I could teach the Talkerbot to do my installs....

djohn 03-27-2004 11:11 AM

5. Edit the file: postings.php
Find this code:
Code:

        $show['undeleteoption'] = iif ($threadinfo['isdeleted'] == 1 AND can_moderate($threadinfo['forumid'], 'canremoveposts') AND can_moderate($threadinfo['forumid'], 'canmanagethreads'), true, false);
I can't find this code in my postings.php (3.0 Gold, unhacked)

Mystics 03-27-2004 02:57 PM

New version released:

1.3.2 (03-27-2004 - 05:45 pm)
  • Bugfix: File: clientscript/vbulletin_quickreply.js
    Javascript error when using Quick Reply
  • Modified instructions for vBulletin 3.0.0 'Gold' (only the first modification of postings.php has changed)

To fix the Javascript error, edit the file clientscript/vbulletin_quickreply.js.

Find:
Code:

return validatemessage(fetch_object("qr_message").value, 0, temp_minchars, maxchars, false, tform);
Replace it with:
Code:

return validatemessage(fetch_object("qr_message").value, 0, temp_minchars, maxchars, false, tform, 0);

djohn 03-27-2004 03:32 PM

Thanks, Mystics! Luv your hack!

djohn 03-27-2004 04:27 PM

While installing the hack, i've noticed, that I have to edit the postbit template, but not postbit_legacy. Is it not supported?

Mystics 03-27-2004 04:56 PM

Quote:

Originally Posted by djohn
While installing the hack, i've noticed, that I have to edit the postbit template, but not postbit_legacy. Is it not supported?

You can edit the postbit_legacy template in the same way you have to edit the postbit template.

I have added it to the instructions, thanks :)

Stray 03-27-2004 05:22 PM

I still can't get over how nice this hack is.
Great job, extremely professional.

MeTaL_oRgY 04-04-2004 07:54 PM

i'm having a problem with this hack, thing is, when i'm in the middle of instalation I can edit the .php files, but no more, after that, this error appears

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in D:\web\www\sr\forums\includes\functions.php on line 1864

what the heck is going on, what should I do?

P.S. The forum is on a test server on my PC :)

Mystics 04-06-2004 09:04 PM

Quote:

Originally Posted by MeTaL_oRgY
i'm having a problem with this hack, thing is, when i'm in the middle of instalation I can edit the .php files, but no more, after that, this error appears

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in D:\web\www\sr\forums\includes\functions.php on line 1864

Replace line 1864 of includes/functions.php with:
Code:

                $debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') === false, '?', '&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') === false, '?', '&amp;') . "explain=1\">Explain</a>)<br />\n";
And do not use Dreamweaver for this!!!

PS: This has nothing to do with the hack...you will always get this error when editing that file with Dreamweaver :)


All times are GMT. The time now is 11:36 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
  • Page Generation 0.01290 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete