Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
AutoDate Details »»
AutoDate
Version: 1.1.2, by Incendium Incendium is offline
Developer Last Online: Feb 2014 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.4 Rating:
Released: 08-04-2006 Last Update: 01-24-2007 Installs: 42
Uses Plugins
Re-useable Code Translations  
No support by the author.

AutoDate 1.1.2
This plugin allows you to prefix a date in the title of a new thread. The date prefix, separator character, and forums with prefixing are all customizeable on the vBulletin Options page.

It should be noted that this will only work on new threads and not existing threads.

Changes from 1.1.1 to 1.1.2
- Added option to specify a specific timezone
- Added version checking

Changes from 1.1.0 to 1.1.1
- Fixed a bug in which prefixes were being repeated when hitting preview (when either all forums were prefixed or one specific forum)

Changes from 1.0.0 to 1.1.0
- Prefixed forums are now separated by spaces instead of commas
- Added option to prefix all forums
- Added preset prefix options
- Added master on-off switch

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 01-30-2007, 01:54 PM
scan-pa scan-pa is offline
 
Join Date: May 2006
Location: Lebanon Co. Pa. USA
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Incendium View Post
Find this code in the newthread_start plugin
PHP Code:
$_POST['subject'] = "$dateadd[dateformat]$dateadd[separator]$_POST[subject]"
and change it to
PHP Code:
$_POST['subject'] = "$_POST[subject]$dateadd[separator]$dateadd[dateformat]"
I'll add that to the next version when I get the time.

Thank You.
Reply With Quote
  #33  
Old 01-30-2007, 09:38 PM
OndaReal OndaReal is offline
 
Join Date: Feb 2006
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #34  
Old 03-19-2007, 09:28 PM
ForumOrtami ForumOrtami is offline
 
Join Date: Jun 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How is do transparent??
Reply With Quote
  #35  
Old 10-15-2007, 07:36 AM
HS2005's Avatar
HS2005 HS2005 is offline
 
Join Date: Jan 2006
Location: Earth
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this bug:

PHP Code:
Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
    
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
    
('1''5''AutoDate: Manipulate Thread Title''newthread_start''if ($vbulletin->options[\'adstatus\']) {\r\n  if ($vbulletin->options[\'adtimezone\'] != \'server\') {\r\n    if ($vbulletin->options[\'adtimezone\'] == \'GMT\')\r\n      $dateadd[\'dateformat\'] = ($vbulletin->options[\'adformat\'] != \'custom\') ? gmdate($vbulletin->options[\'adformat\']) : gmdate($vbulletin->options[\'adformatcust\']);\r\n    else {\r\n      if ($vbulletin->options[\'adtimezone\'] == \'vb\')      \r\n        $newtimestamp = gmdate(\"U\") + (intval($vbulletin->options[\'timeoffset\']) * 60 * 60);\r\n      else\r\n        $newtimestamp = gmdate(\"U\") + intval($vbulletin->options[\'adtimezone\']);\r\n      $dateadd[\'dateformat\'] = ($vbulletin->options[\'adformat\'] != \'custom\') ? gmdate($vbulletin->options[\'adformat\'], $newtimestamp) : gmdate($vbulletin->options[\'adformatcust\'], $newtimestamp);\r\n    }\r\n  }\r\n  else\r\n    $dateadd[\'dateformat\'] = ($vbulletin->options[\'adformat\'] != \'custom\') ? date($vbulletin->options[\'adformat\']) : date($vbulletin->options[\'adformatcust\']);\r\n  \r\n  $dateadd[\'forums\'] = (!empty($vbulletin->options[\'adforumids\'])) ? explode(\' \', $vbulletin->options[\'adforumids\']) : 0;\r\n  $dateadd[\'separator\'] = (!empty($vbulletin->options[\'adsep\'])) ? \' \' . $vbulletin->options[\'adsep\'] . \' \' : \' \';\r\n\r\n  if ((!is_array($dateadd[\'forums\']) OR in_array($foruminfo[\'forumid\'], $dateadd[\'forums\'])) AND !empty($_POST[\'subject\']) and !isset($_POST[\'preview\'])) {\r\n    $_POST[\'subject\'] = \"$dateadd[dateformat]$dateadd[separator]$_POST[subject]\";\r\n  }\r\n}''autodate');

MySQL Error  Unknown column 'executionorder' in 'field list'
Error Number 1054
Date         
MondayOctober 15th 2007 09:56:20 AM
Script       
http://forum.groundzero.nu/GZadmincp/plugin.php
Referrer     http://forum.groundzero.nu/GZadmincp/plugin.php?do=productadd
IP Address   145.116.127.222
Username     
HS2005
Classname    
vB_Database 
But because the file for 3.5 is not downloadable anymore i can't do much.
Reply With Quote
  #36  
Old 12-08-2007, 10:50 PM
ibuddy ibuddy is offline
 
Join Date: Apr 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

love this mod.....can you update another version to where you can possible have ALL forum ids to autodate new topics?
Reply With Quote
  #37  
Old 12-08-2007, 11:18 PM
Incendium Incendium is offline
 
Join Date: Apr 2004
Location: Dallas, TX
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you leave the forum id field blank, it will prefix all of them.
Reply With Quote
  #38  
Old 12-19-2007, 10:41 PM
ibuddy ibuddy is offline
 
Join Date: Apr 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyway to detect if a user already has it in their title so it doesnt duplicate
Reply With Quote
  #39  
Old 04-30-2008, 10:10 AM
scan-pa scan-pa is offline
 
Join Date: May 2006
Location: Lebanon Co. Pa. USA
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

after the move to vB 3.7.0 GOLD, I get the following when atempting to start new threads in forums that are set to be autodated and time stamped.

Fatal error: Cannot run code from this file in conjunction with non encoded files in /home/********/public_html/forum/includes/searchwords.php on line 653

Can we please get an update to this hack for 3.7.0

Thanks
Reply With Quote
  #40  
Old 05-29-2008, 11:51 AM
MeMySelfNi MeMySelfNi is offline
 
Join Date: Dec 2003
Location: west coast
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its working fine on my 3.7
Reply With Quote
  #41  
Old 02-11-2009, 03:24 PM
The Notorious's Avatar
The Notorious The Notorious is offline
 
Join Date: Jan 2006
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to do this with vbulletin's "Thread Prefixes"?
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 12:41 AM.


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.04520 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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