Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 07-17-2004, 02:52 AM
paulyy paulyy is offline
 
Join Date: Jul 2004
Location: England, UK
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Can someone explain this a little better please.
Reply With Quote
  #12  
Old 07-17-2004, 07:45 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #13  
Old 07-17-2004, 08:29 AM
royals's Avatar
royals royals is offline
 
Join Date: Jul 2004
Location: kansas city
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to put in a maximum image size if images are allowed in signature? That would be WONDERFUL!
Reply With Quote
  #14  
Old 07-17-2004, 04:30 PM
paulyy paulyy is offline
 
Join Date: Jul 2004
Location: England, UK
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Assassingod
Reply With Quote
  #15  
Old 07-17-2004, 04:56 PM
paulyy paulyy is offline
 
Join Date: Jul 2004
Location: England, UK
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This code stops the viewing of sigantures completely?

EDIT: Nevermind yes it does
Reply With Quote
  #16  
Old 07-17-2004, 06:17 PM
tHe Rk tHe Rk is offline
 
Join Date: Jan 2004
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #17  
Old 07-17-2004, 06:38 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 07-17-2004, 07:01 PM
paulyy paulyy is offline
 
Join Date: Jul 2004
Location: England, UK
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 08-14-2004, 02:55 AM
Illuvatar's Avatar
Illuvatar Illuvatar is offline
 
Join Date: Apr 2002
Location: So. Cal
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[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!
Reply With Quote
  #20  
Old 08-14-2004, 03:56 AM
Lion's Heart Lion's Heart is offline
 
Join Date: Jan 2004
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:45 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.09743 seconds
  • Memory Usage 2,269KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete