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)

The Kiss 04-01-2005 06:37 PM

Quote:

Originally Posted by Mystics
You should consider using sub forums instead of categories.

ok, here is a typical exemple of what I'm trying to do:

Forum Nokia
Entry level | Middle class | Pro class


By clicking on 'Forum Nokia' members display threads of the 3 categories. If not, then they display only the selected category.

This possible with your hack but not by using sub-forums. Perhaps there is a special PHP command to do this but I don't know it..

TTG 04-01-2005 08:45 PM

In vB 3.0.6 "Edit the file: clientscript/vbulletin_stdedit.js"

Find this code:
Code:

function validatePost(tform, subjectVal, minLength, maxLength)
{
        return validatemessage(tform.message.value, subjectVal, minLength, maxLength, false, tform);
}

Replace it with this code:

Code:

function validatePost(tform, subjectVal, minLength, maxLength, categoryVal)
{
        if (typeof categoryVal == "undefined")
        {
                var categoryVal = 0;
        }
        return validatemessage(tform.message.value, subjectVal, minLength, maxLength, false, tform, categoryVal);
}

The Code in 3.0.6 :

Code:

function validatePost(tform, subjectVal, minLength, maxLength)
{
        postOK = validatemessage(tform.message.value, subjectVal, minLength, maxLength, false, tform);
        if ((postOK == true) & is_ie) {
          Copied = tform.message.createTextRange();
          Copied.execCommand("Copy");
        }
        return postOK;
}

What needs changin' ? Everything else went through nice and easy !

The Kiss 04-01-2005 10:43 PM

TTG,

Thank but what for? Can you explain?

TTG 04-02-2005 07:17 AM

Quote:

Originally Posted by The Kiss
TTG,

Thank but what for? Can you explain?

er.. my previous post was 'my problem' .. I can't edit the code as per the installation 'cos 3.0.6 code is different !?

Mystics 04-02-2005 11:06 AM

@TTG

You obviously have already modified vbulletin_stdedit.js....yours is not the original code...so either upload the original vbulletin_stdedit.js or use this:
Code:

function validatePost(tform, subjectVal, minLength, maxLength, categoryVal)
{
        if (typeof categoryVal == "undefined")
        {
                var categoryVal = 0;
        }
        postOK = validatemessage(tform.message.value, subjectVal, minLength, maxLength, false, tform, categoryVal);
        if ((postOK == true) & is_ie) {
          Copied = tform.message.createTextRange();
          Copied.execCommand("Copy");
        }
        return postOK;
}


TTG 04-02-2005 08:44 PM

Thanks Mystics .. that solved the problem.
Clicked Install ..

One of the best set of hack instructions I've used .. very well done m8

TouchStone 04-11-2005 11:25 AM

I installed Mystics' Prefix Hack but prefixes aren't showing on the cmps. Any idea on how to fix this?

PIKenPIK 05-03-2005 07:27 AM

I'm gonna use this :) Was looking it for ages ..... Excellent ....

** Clicks Install **

Kaishi 05-20-2005 03:48 AM

has anyone gotten this to work with vbadvance? i want to display the prefix in the news module

Kaishi 05-27-2005 04:37 PM

i don't know if it's a bug with this hack, or it's something else. but if someone is viewing a thread in a forum, it doesn't say (x Viewing). only people viewing the forum is counted as viewing.


All times are GMT. The time now is 04:28 PM.

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.01421 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