View Single Post
  #139  
Old 08-03-2004, 05:22 AM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician,

After using the hack for some days, I would like to ask for an additional feature.

I am using the dfh_announcement, in a ... hidden way, in other words, my members have to click on a link to see whatever I have in there. The link is shown only when there are announcements. However, if there is more than one announcements in there, people see the link and visit it. Then next day, they see it and visit it again, and they see nothing new, because I haven't added anything new.

I would like to add a field in the dynamic_fha group, which will be a date field. I can change that manually, when I enter a new announcement. Then, next to my "announcements" link on forumhome, I can add that date, so that members can check and see if this is something new or not. (I might even check if this date is newer than their "last_visit" date, dreaming!!!).

My problem is that I have no idea on how to add that "date" field in the admincp. I think I can handle it from there, but I have no idea on how to add the Code Option etc, so I would appreciate your help in adding the "dynamic_fha_date" in the admincp. The date does not have to be fancy to enter, with drop-down menus etc, a simple "28/07/2004" field is fine.

Many thanks and best regards

After some experimentation: Please have a look at http://forum.m1911.org.

Notice, right below the navbar, there is an announcement link. Also notice that there is a date there. Well, this is just a text, it's not a date. I managed to create a "dynamic_fha_date" item, in the admincp, but the Code Option I used, is text area. If I could make this a date, then I could compare it with the last date the member visited, and hide or show the link accordingly. However, I have no idea how to make that a valid "date" field. This is where I would need your help.

Many thanks and kind regards again.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01154 seconds
  • Memory Usage 1,765KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete