Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #61  
Old 12-21-2002, 08:26 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We can "ADD" templates in vBulletin now? Damn!
Reply With Quote
  #62  
Old 12-26-2002, 03:53 AM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, right in the CP too.
Reply With Quote
  #63  
Old 12-26-2002, 04:03 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh, what a funny thread. It's funny to see how long it took you guys to notice that one particular bracket, which I spotted erroneous from the first page

Code:
($threadinfo['forumid']!=22]))
Reply With Quote
  #64  
Old 12-26-2002, 01:08 PM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well! Where were YOU? LOL
Reply With Quote
  #65  
Old 04-11-2003, 01:57 AM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In case you don't feel like reading this entire thread, I'll sum it up for you. This is a hack to exclude autoparsing url's in a single forum....not globally.

Ok, a new interesting, but horrible issue has developed with this hack. My quickreply box ignores this code.
PHP Code:
if (!isset($parseurl)) {
      if (
$foruminfo[forumid]!=22) {
            
$parseurlchecked="CHECKED";
        } else {
            
$parseurlchecked '';
        }
  } 

I assume it's because of this line in the replybox template:
Code:
<input type="hidden" name="parseurl" value="yes">
[edit] Nope, actually, I just tried setting it to no, and it still parsed.
[edit2] But if I remove that line, it stops parsing globally. Hmmmm

Does anyone know how I can edit this to exclude just one of my forums, but not all? Can someone help stop the madness, please?
Reply With Quote
  #66  
Old 05-13-2003, 12:20 PM
notorious notorious is offline
 
Join Date: Mar 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have looked at this code and instead of just one forum how would i use it so it was gobal and so that all the auto parse codes was unchecked
Reply With Quote
  #67  
Old 05-13-2003, 08:34 PM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could be wrong, but try replacing this

Code:
$parseurlchecked="CHECKED";
with this

Code:
$parseurlchecked = '';
(That is two single quotes - not one double. Not sure if it matters.)

Or, this is a way that it could be done globally without hacking. Although, I haven't tried it.

'newthread' and 'newreply' templates (I'd guess the edit template too)

Edit the following code in those templates. (Should be pretty self explanitory)

Code:
<input type="checkbox" name="parseurl" 
value="yes" $parseurlchecked> <b>Automatically parse URLs:</b>
automatically adds http://and around internet addresses.
Reply With Quote
  #68  
Old 05-13-2003, 09:13 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wouldn't it be?

PHP Code:
if (!isset($parseurl)) {
            
$parseurlchecked '';
        } else {
            
$parseurlchecked="CHECKED";
        } 
Reply With Quote
  #69  
Old 05-13-2003, 09:28 PM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, I don't think so. There is no "else" in the original lines.

Code:
if (!isset($parseurl)) {
    $parseurlchecked="CHECKED";
  }
Reply With Quote
  #70  
Old 05-17-2003, 11:16 AM
notorious notorious is offline
 
Join Date: Mar 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is the way my php is set up

i did as SloppyGoat said

and changed this

Code:
<br><input type="checkbox" name="email" value="yes" $emailchecked > 
<b>Email Notification
to this


Code:
<br><input type="checkbox" name="email" value="yes" $email> 
<b>Email Notification

thx for your help
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 03:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04940 seconds
  • Memory Usage 2,267KB
  • 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
  • (8)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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