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)
-   -   New Posting Features - AutoDate (https://vborg.vbsupport.ru/showthread.php?t=123095)

scan-pa 01-30-2007 01:54 PM

Quote:

Originally Posted by Incendium (Post 1170290)
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.

OndaReal 01-30-2007 09:38 PM

Thank you

ForumOrtami 03-19-2007 09:28 PM

How is do transparent??

HS2005 10-15-2007 07:36 AM

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.:)

ibuddy 12-08-2007 10:50 PM

love this mod.....can you update another version to where you can possible have ALL forum ids to autodate new topics?

Incendium 12-08-2007 11:18 PM

If you leave the forum id field blank, it will prefix all of them.

ibuddy 12-19-2007 10:41 PM

anyway to detect if a user already has it in their title so it doesnt duplicate

scan-pa 04-30-2008 10:10 AM

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

MeMySelfNi 05-29-2008 11:51 AM

its working fine on my 3.7

The Notorious 02-11-2009 03:24 PM

Is there a way to do this with vbulletin's "Thread Prefixes"?


All times are GMT. The time now is 03:22 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.01024 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
  • (3)bbcode_php_printable
  • (1)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