Blog dates.
Posted November 28th 2011, 8:42pm
The blog dates show up like this

Could I change the month to like Nov and ect.
I can't find the code to edit if anyone could help me find the code to change I would be grateful.
Posts: 71
Joined: October 14th 2011, 11:00pm
Location: CompuTalks
Likes Given: 1
Blog dates.
Posted November 28th 2011, 9:43pm
The standard date format in the topics_blog_box template is in a hidden PHP variable.


I wonder how many of the template "experts" know of this hidden PHP variable. I wonder how many even know that hidden PHP variables exist. Heh.
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
Re: Blog dates.
Posted December 19th 2011, 5:59pm
PLEASE NOTE: this script is incomplete and will need stuff in to prevent crashing on other pages. It loops through the blog dates on the page.
(i think there is only one on topic pages, but on the voew-forum page there is more so would need a loop).

It has gets the innerHTML of month, turns it into a number and fetches from an array the correct month.

var x=$('.blog_cal-month').get();
var months=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
for (i=0;i<x.length;i++) {
  var num=parseInt(x[i].innerHTML);
Posts: 509
Joined: July 9th 2011, 11:00pm
Location: England
Likes Given: 15
Likes Received: 26

Who is online

Users browsing this forum: No registered users and 1 guest