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)

Incendium 08-04-2006 10:00 PM

AutoDate
 
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

Snake 08-05-2006 04:32 PM

Awesome! :)

MrNase 08-05-2006 05:08 PM

Can you show a screenshot?

BlueEyesOnly 08-05-2006 06:48 PM

Quote:

Originally Posted by MrNase
Can you show a screenshot?

yeah, please add a screenshot.

listening nice.

Incendium 08-05-2006 09:10 PM

Added screenshots. =P

BuRNZau 08-08-2006 05:06 AM

Nice plugin. :)

Is there anyway you can have it so the user must enter the date in a set layout like this?

Sat 5th Aug - Thread title
TBC - Thread title

I have an meets forum for when we have dinners pub nights etc. I would like it so that a member must enter a date or TBC at the start of the thread title.

dragonhart 08-08-2006 08:21 PM

very nice Thank you:D
Dragonhart

I||usi0nz 08-08-2006 09:01 PM

I like, cool mod :)

Dennis B 08-10-2006 11:27 PM

Instead of prefixing the thread name, can the start date just be shown right beneath it, before the thread starter name?

COBRAws 08-17-2006 03:33 AM

can we sort threads by AutoDate Prefixes?

teedizz 08-18-2006 07:42 PM

Very nice mod....This is just what i needed. Is there anyway, to make the date prefix Bold & in Red?

Iceazuk 09-07-2006 05:22 AM

Hey, I notice a bug in the script. If you hit preview it adds the date over and over for every time you hit preview. I found a simple fix that probably isn't the best way to fix it.

Find
Code:

if ((!is_array($dateadd['forums'])) OR (in_array($foruminfo['forumid'], $dateadd['forums']) AND !empty($_POST['subject'])))
and Replace It With
Code:

if ((!is_array($dateadd['forums'])) OR (in_array($foruminfo['forumid'], $dateadd['forums']) AND !empty($_POST['subject']))AND !$_POST['preview'])

Prince 09-08-2006 01:22 AM

I installed it and it is not working?

I agree with above, it would be nice to just have the date the thread was started below the thread title.

jacki 09-08-2006 05:17 AM

thank you

İnstall forum

COBRAws 09-08-2006 02:08 PM

Quote:

Originally Posted by Iceazuk
Hey, I notice a bug in the script. If you hit preview it adds the date over and over for every time you hit preview. I found a simple fix that probably isn't the best way to fix it.

Find
Code:

if ((!is_array($dateadd['forums'])) OR (in_array($foruminfo['forumid'], $dateadd['forums']) AND !empty($_POST['subject'])))
and Replace It With
Code:

if ((!is_array($dateadd['forums'])) OR (in_array($foruminfo['forumid'], $dateadd['forums']) AND !empty($_POST['subject']))AND !$_POST['preview'])

I believe this hack uses almost the same procedures as the Event Forums hack by Hellcat, both have the same bug.

Iceazuk 09-10-2006 11:50 PM

Quote:

Originally Posted by COBRAws
I believe this hack uses almost the same procedures as the Event Forums hack by Hellcat, both have the same bug.

If so then by adding the
Code:

!$_POST['preview']
part to the right area it will check if your hitting the preview button or the submit button. Its so simple its probably easy to overlook.

aLReeMi 09-13-2006 07:18 AM

nice.. thanks

bing11 09-13-2006 11:32 AM

thank you

Incendium 09-19-2006 01:26 AM

The problem is with the way vBulletin stores the data before it makes a post. The only way to change the data is to directly edit the submitted data before the vbulletin gpc parser gets to it. Once it's parsed, it's unchangeable for obvious security reasons.

iran.gs 09-20-2006 01:26 PM

Installed now this is great cuz i help when someone like me has a lot of threads and most of them after awhile are not really worth looking at the date will help the members to not waste time on those older than what ever amount of months past .... kool thanks

iran.gs 09-22-2006 08:55 PM

installed and works perfect at first i must say in my forum news section was taking too much of space till today i learned u can change the DATE showing system so now i am very happy :D

MeMySelfNi 11-18-2006 03:15 PM

*installed*

OndaReal 01-19-2007 10:48 PM

I noticied something, i run a UK based bored and the date stays set on EST timezone, anyway i can change it so the date is set on GMT, i mean its 12:47am on January 20 but if i make a thread on my bored it still says January 19. It wont change for another 5 hours.

Anyways i can edit that so its GMT and before anyone asks, yes my boards set on GMT timezone.

davis31b 01-19-2007 11:00 PM

i defiantly agree with some of the others and wish that it could somehow be posted under the thread link itself.

Incendium 01-21-2007 02:02 PM

If it's showing up as EST, my best guess is that your server is running on EST time. I'll look into allowing users to specify a timezone.

As for the thread link, I don't have the free time to do that right now but that is a possibility in the future.

iGlobe.Com.Cn 01-25-2007 02:03 PM

Thanks a lot

xsamet 01-26-2007 03:07 AM

Thanx....

scan-pa 01-27-2007 05:00 AM

Thanks - installed

How about also doing this mod for all posts in the thread? It can add it to the subject line?

thanks again.

scan-pa 01-30-2007 01:52 AM

Anyway to move the timestamp to the end of the Thread title?

Incendium 01-30-2007 03:09 AM

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.

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 05:51 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.01372 seconds
  • Memory Usage 1,824KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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