vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Signature "Line Limiter" (https://vborg.vbsupport.ru/showthread.php?t=67111)

paulyy 07-17-2004 02:52 AM

I don't understand number 2, or how to turn debug on?

Can someone explain this a little better please.

assassingod 07-17-2004 07:45 AM

To turn on Debug Mode, open includes/config.php and find:
PHP Code:

$cookieprefix 'bb'

Beneath that, add
PHP Code:

// Debug Mode, 1 on 0 off
$debug '1'

I suggest turning this off when you're finished as well.

royals 07-17-2004 08:29 AM

Is there a way to put in a maximum image size if images are allowed in signature? That would be WONDERFUL!

paulyy 07-17-2004 04:30 PM

Thanks Assassingod :)

paulyy 07-17-2004 04:56 PM

This code stops the viewing of sigantures completely?

EDIT: Nevermind yes it does

tHe Rk 07-17-2004 06:17 PM

Quote:

Originally Posted by KirbyDE
This is what I did on our board several month ago (moreless copy&paste, hope it does work)
  1. Create the following phrase in phrasegroup Front-End Error Messages
    varname = sigtoomanylines
    text = Your signature can not be longer than $vboptions[maxsiglines] lines.
  2. In vBulletin Options/User Profile Options create the following setting:
    varname = maxsiglines
    title = Maximum signature lines
    description = The maximum number of lines anyone can use in their signature.
    default = 4
    vBulletin Standard = No
  3. In profile.php FIND
    PHP Code:

    if ($vboptions['maximages'] != 0)
    {
      require_once(
    './includes/functions_bbcodeparse.php');
      
    $parsedsig parse_bbcode($signature0$vboptions['allowsmilies'], 1); 

    REPLACE that with
    PHP Code:

    if ($vboptions['maxsiglines'] != 0) {
      require_once(
    './includes/functions_misc.php');
      require_once(
    './includes/functions_bbcodeparse.php');
      
    $parsedsig parse_bbcode($signature0$vboptions['allowsmilies']);
      
    $siglines 0;
      
    $siglines += fetch_character_count($parsedsig'<br');
      
    $siglines += fetch_character_count($parsedsig'<blockquote');
      
    $siglines += fetch_character_count($parsedsig'<pre');
      if (
    $siglines $vboptions[maxsiglines]-1) {
        
    $preview 'true';
        eval(
    '$errors[] = "' fetch_phrase('sigtoomanylines'PHRASETYPEID_ERROR) . '";');
      }
    }

    if (
    $vboptions['maximages'] != 0)
    {
      if (!
    $parsedsig) {
        require_once(
    './includes/functions_bbcodeparse.php');
        
    $parsedsig parse_bbcode($signature0$vboptions['allowsmilies'], 1);
      } 


I also have NO IDEA how to do #2??? :ermm:

Andreas 07-17-2004 06:38 PM

Turn on Debug mode, go into that Options Page and Create the Setting.

I think "How do I create a new setting" should be added to vB.org FAQ (if it is not already there), as this is a common task ;)

paulyy 07-17-2004 07:01 PM

On the first page of this thread assassingod explains how to do it ;)

I also got it working on my forum, so if you need a hand PM me :)

Illuvatar 08-14-2004 02:55 AM

[high]* Illuvatar bows low!
[/high]

KirbyDE.....you so rock!!

This has been a pain in my side since version 2.0!! lol

The old sig hack was easily worked around by not using line breaks, and what you did works a charm!! :)

I wish I could click installed! :p

Lion's Heart 08-14-2004 03:56 AM

Quote:

I also have NO IDEA how to do #2???
Open Config.php
After ?>
Add Debug=1;


do follow
Quote:

In vBulletin Options/User Profile Options create the following setting:
varname = maxsiglines
title = Maximum signature lines
description = The maximum number of lines anyone can use in their signature.
default = 4
vBulletin Standard = No


All times are GMT. The time now is 07:23 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.01166 seconds
  • Memory Usage 1,748KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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