Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Exapnding the date range choice in Blog

Asked Modified Viewed 2,097 times
S
songiuno
S
  • Member, joined since
  • Contributed 55 posts on the community forums.
  • Started 13 threads in the forums
  • Started this discussions
asked
Member

I am wanting to consolidate blog/journal data form various other sources (offline journal, a Wordpress blog, etc.) into the v8.00.21 blog now that I have one consolidated place to have all located. In doing so, I'd have to add entries into my PHPFusion v8.00.21 blog with original dates. The only choices for years in the "from" date dropdown starts with current year.

Is there a setting or other way to expand the year choices in the "from" date, particularly, to say 1975 or the standard 1/1/1970?
0 replies

4 posts

F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

You find it in administration/blog.php line 393,
for ($i = (isset($blog_start['year']) && $blog_start['year'] != "----" ? $blog_start['year'] : date('Y')); $i <= date("Y", strtotime('+10 years')); $i++)

You can fiddle with that or just hard code the option.
0 replies
S
songiuno
S
  • Member, joined since
  • Contributed 55 posts on the community forums.
  • Started 13 threads in the forums
  • Started this discussions
answered
Member

To programmers this will be a dumb question but I know nothing about programming in PHP.

Do I change ($blog_start['year']) in every instance on that line to the year I want the year choice to start?
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

A quick sample,

// for ($i = (isset($blog_start['year']) && $blog_start['year'] != "----" ? $blog_start['year'] : date('Y')); $i <= date("Y", strtotime('+10 years')); $i++)
// echo "<option".(isset($blog_start['year']) && $blog_start['year'] == $i ? " selected='selected'" : "").">$i</option>\n";
    echo "<option value='1990'>1990</option>\n";
      echo "<option value='1991'>1991</option>\n";


If you still don´t get the hang of it. Use phpMyAdmin and enter values of dates manually directly on the blog date entries.
This converter tool will help you get the epoch values https://www.epochconverter.com/
Edited by N/A on 29-05-2019 18:50,
0 replies
S
songiuno
S
  • Member, joined since
  • Contributed 55 posts on the community forums.
  • Started 13 threads in the forums
  • Started this discussions
answered
Member

I believe I got it, thanks!
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
S
S
  • Member, joined since
  • Contributed 55 posts on the community forums.
  • Started 13 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet