vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Cyb - Change vBForms Defaults (https://vborg.vbsupport.ru/showthread.php?t=139561)

Valter 02-15-2007 10:00 PM

Cyb - Change vBForms Defaults
 
vB 3.7 VERSION HERE:
https://vborg.vbsupport.ru/showthread.php?t=177934


======

Info:
If you don't like some defaults in vBulletin forms and there is no built-in function to change it, this may be a solution...

You can change default values for the following options:
-NewThread - Automatically parse links in text
-NewReply - Automatically parse links in text
-EditPost - Automatically parse links in text
-Poll - Allow multiple choice
-Poll - Make votes public
-Poll - Automatically parse links in text
-NewPM - Request a read receipt for this message
-NewPM - Save a copy of this message in Sent Items
-NewPM - Automatically parse links in text
-Login - Remember Me?
-Move Thread(s) - Leave No Redirect
-Delete Thread(s) - Physically remove
-Give Infraction - Request a read receipt for this message
-Give Infraction - Save a copy of this message in Sent Items
-Give Infraction - Automatically parse links in text


Installation:
1. Import XML file as product: AdminCP > Plugin System > Manage Products > [Add/Import Product]


To set options:
Go to: AdminCP > vBulletin Options > Cyb - Change vBForms Defaults


Versions:
v1.0 - Feb 16. 2007.
-Initial release
v1.1 - Jul 24. 2007.
-New: change default for "Leave No Redirect" in Move Thread(s)
-New: change default for "Physically remove" in Delete Thread(s)
-New: change defaults for PM options in "Give Infraction" (request receipt, save copy, parse links)
-Expanded: change default for "Remember Me?" in all login forms
-Minor bug fixed

Feckie (Roger) 02-16-2007 12:13 PM

Nice One

TheBlackPoet 02-16-2007 12:26 PM

cyb always come out with the best hacks that admins need...

nexialys 02-16-2007 12:53 PM

would be cool to have something like "Force This Feature"... so when it is forced, the checkbox is not displayed on the page but replaced with a hidden field... i've done that with the parse_url thingy... not displayed anywhere, replaced by a hidden field!

(ok, and yes, i'm back!)

Shazz 02-16-2007 01:19 PM

Looks so sexy cyb

projectego 02-16-2007 01:43 PM

/me clicks install

rasun 02-16-2007 02:00 PM

Very nice!

Thank you, the "parse links" thing is very useful. :up:

Ascor 02-16-2007 09:14 PM

Thank you Cyb :)

DementedMindz 02-19-2007 02:29 AM

would be nice for a on/off for the Disable smilies in text too.

fifko 03-03-2007 06:02 PM

Thanks man...

*installed

rjmjr69 03-28-2007 03:43 PM

LOL Yes I'm a noob instead of installing this and trying it out I'm going to ask WHAT does this do? lol Sorry guys but I just do not understand what it really does?

kaptanblack 03-28-2007 03:55 PM

Thanks...

zhou 03-28-2007 03:58 PM

nice job thx

rjmjr69 04-11-2007 05:24 AM

Great answer thanks....lol

Terminatoronly 04-14-2007 01:23 PM

thanks alot nice hack :)

i get this error when i edit a post:

Quote:

Warning: Unknown(/home//public_html/includes/class_autopm_checker.php): failed to open stream: No such file or directory in /editpost.php(538) : eval()'d code on line 1

Warning: (null)() [function.include]: Failed opening '/home//public_html/includes/class_autopm_checker.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /editpost.php(538) : eval()'d code on line 1

Warning: Unknown(/home//public_html/includes/class_autopm_parser.php): failed to open stream: No such file or directory in /editpost.php(538) : eval()'d code on line 2

Warning: (null)() [function.include]: Failed opening '/home//public_html/includes/class_autopm_parser.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /editpost.php(538) : eval()'d code on line 2

Warning: Unknown(/home/kingofwa/public_html/includes/functions_autopm.php): failed to open stream: No such file or directory in /editpost.php(538) : eval()'d code on line 3

Warning: (null)() [function.include]: Failed opening '/home//public_html/includes/functions_autopm.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /editpost.php(538) : eval()'d code on line 3

Fatal error: Call to undefined function: mod_autopm() in /home//public_html/editpost.php(538) : eval()'d code on line 5

Mrdby 05-12-2007 02:05 AM

any demos?

Valter 05-12-2007 09:34 AM

Quote:

Originally Posted by Mrdby (Post 1246021)
any demos?

It just changes defaults in forms.

For example "Remember Me" checkbox is unchecked by default in login form. Using this mod you can set it to be always checked by default.

Here it's checked by default thanks to this mod: www.bihforum.com (look at "Zapamti" in navbar login form, it's checked when you load page)

Mrdby 05-12-2007 11:59 AM

Thanks cyber...lol cool beans *dapz*

Eagle Creek 05-13-2007 01:50 AM

Very nice, but too less options (yet) :).

Valter 05-13-2007 01:51 AM

Quote:

Originally Posted by Eagle Creek (Post 1246567)
Very nice, but too less options (yet) :).

Is there something you would like to be added?

Eagle Creek 05-13-2007 04:06 AM

For example:

The default behavior when moving/copying/merging threads. The forum places redirects, but on all my forums I don't want to have those added by default :).

Valter 05-13-2007 08:55 AM

LOL I'm also always changing this to "Leave No Redirect". ;)

I'll add this in next version.

Silvio 06-28-2007 07:00 PM

really gorgeous hack - perfectly working. *installed*

if it could also take care - as option - of CMPS vbadvanced 'Rememberme??' would be really gorgeous :P:up:

ty Mr. your work is really good and always appreciated. ty to share

rustybones 07-05-2007 01:19 AM

Great hack thanks for this. One question though, if I have some custom templates how can I make the "Remember Me" checkbox all checked? What hook is the plugin looking for?

thanks again!

rustybones 07-05-2007 01:45 AM

Okay forget the last post, just edited the custom header template to have checked="checked" on the remember me input field

Valter 07-24-2007 02:55 PM

v1.1 - Jul 24. 2007.
-New: change default for "Leave No Redirect" in Move Thread(s)
-New: change default for "Physically remove" in Delete Thread(s)
-New: change defaults for PM options in "Give Infraction" (request receipt, save copy, parse links)
-Expanded: change default for "Remember Me?" in all login forms
-Minor bug fixed

To upgrade: Import product XML, allow overwrite.

Mrdby 07-24-2007 05:24 PM

i updated..but still lost..what do i suppose to see?

GekkoPixie 07-24-2007 11:11 PM

Thank you SO much. Somehow the sent items weren't being saved at all, and I couldn't fix it. You saved me from having an angry mob! XD

Makc666 07-25-2007 06:44 AM

Cybernetec, there is a misprint in this phrase:
Make votes public)

Code:

<phrase name="setting_cybcvbfdef_poll_pub_desc" username="Cybernetec"><![CDATA[Make votes public)]]></phrase>

Hornstar 04-04-2008 02:54 PM

I wonder if this will still work for vb 3.7 and if it is still needed. Anyone know?

deLi_kurT 04-29-2008 11:29 AM

Thanks

ThE LeAdEr 06-10-2008 09:03 PM

Hello!
I need to put a forum predetermined to move threads (forum "trash").
That's possible?

==================
Spanish version
hola!
yo necesito poner un foro predeterminado al mover un tema (foro "papelera").
Eso es posible?


All times are GMT. The time now is 04:54 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.01172 seconds
  • Memory Usage 1,774KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete