Member Log In
Site Navigation
Latest Modifications
- [vB 3.8.4] THX - Hack for VB. 3.8.4
By: bluedog - [vB 3.8.4] Cyb - Chatbox V.2.3
By: bluedog - [vB 4.0.x] PHPKD - Advanced Quick...
By: PHPKD - [vB 3.6.x] StopSpam
By: flappi282 - [vB 3.8.x] vBulletin Chat Addon for...
By: 123flashchat
Latest Template Mods
- [vB 4.0.x] Remove My Profile Link...
By: Ak Worm - [vB 3.8.x] Images DownloadBox...
By: cRs!MP - [vB 3.8.x] Adviertise Mod On Forum...
By: MG4 - [vB 3.8.4] Images PassWordBox...
By: cRs!MP - [vB 3.8.4] Footer Follow Ups
By: Ak Worm
Latest Styles
- [vB 4.0.x] 4.0.3 - VB4STYLE-TWEETA...
By: Belon - [vB 4.0.x] [4.0.3] vbdesigns.de...
By: Belon - [vB 3.8.4] CompletevB - Skylight
By: DreadKnight - [vB 3.8.3] [vB 3.8.4] Barcelona...
By: hoiquantinhoc.com - [vB 3.8.3] Natures Walk by vBSkin...
By: Chri5
Latest Graphics
- [vB ] [anim.]Team Ranks
By: cRs!MP - [vB ] Abstract Circles (3...
By: cRs!MP - [vB ] PlayStation Rank Images
By: cRs!MP - [vB 3.6.12] Heavy Stroked Button...
By: Shelley - [vB ] Minature Ranks.
By: Shelley
vBulletin Modifications »
vBulletin Modifications »
vBulletin 3.5 / 3.6 Hack Releases »
Major Additions - [AJAX/Flatfile] vBShout 2.1
![]() |
| |||||||||||||||||||||||||||
| |
#251 | |||||||||
| vB Newbie
![]() |
Status: Offline Hey again ,Cheers Roger .Ohkay, another type of timestamp - more conventional this time (24 hour format timestamps and if the shout was from another day, a datestamp too) - done via javascript. Some of the changes made in the version above still stand, outlined in the quote below. Quote:
New edit is to the template "forumhome_vbshout": This needs to be inserted after: Code: <script type='text/javascript'> <!-- Code: postingShout = false Code: /* Begin Jedifans's Timestamp Modification */
var ts_timeFormat='%H:%m:%S';// %H for hours, %m for minutes, %S for seconds
var ts_dateFormat='%d/%M/%Y';// %d for day of month, %M for month, %Y for year
var ts_timestampFormat='%D %T';// %D for the Date, %T for the Time
function doConvert(time){
time=parseFloat(time);
time=(time.toString()=='NaN') ? parseFloat('0') : time;
time=time*1000;
var t=new Date();
t.setTime(time);
var n=new Date();
var t_date=(t.getDate()==n.getDate() && t.getMonth()==n.getMonth() && t.getFullYear()==n.getFullYear()) ? '' : dateFormatReplace(t);
var t_time=timeFormatReplace(t);
var timestamp=ts_timestampFormat.replace(/%D/,t_date).replace(/%T/,t_time);
return timestamp;
}
function dateFormatReplace(t){
var ret=ts_dateFormat.replace(/%d/,addPrevZero(t.getDate())).replace(/%M/,addPrevZero(t.getMonth())).replace(/%Y/,t.getFullYear());
return ret;
}
function timeFormatReplace(t){
var ret=ts_timeFormat.replace(/%H/,addPrevZero(t.getHours())).replace(/%m/,addPrevZero(t.getMinutes())).replace(/%S/,addPrevZero(t.getSeconds()));
return ret;
}
function addPrevZero(into){
var out;
into=into.toString();
if(into.length<2){
out='0'+into;
}
else{
out=into;
}
return out;
}
/*
[[[This is for XML response rather than Text response, IGNORE]]]
var ts_timestampRegex=new RegExp(/([0-9]+)/);
*/
var ts_timestampRegex=new RegExp(/\<span class=\"ts\"\>\[ ([0-9]+) \]\<\/span\>/);
var ts_results,ts_timestamp,ts_unixTimestamp,ts_converted;
function triggerTimestampConvertions(todo){
/*
[[[This is for XML response rather than Text response, IGNORE]]]
var spans=todo.getElementsByTagName('span');
for(var i=0;i<spans.length;i++){
if(spans[i].className=="ts"){
ts_results=ts_timestampRegex.exec(spans[i].innerHTML);
ts_unixTimestamp=ts_results[(ts_results.length-1)];
ts_timestamp=doConvert(ts_unixTimestamp);
spans[i].innerHTML=spans[i].innerHTML.replace(ts_unixTimestamp,ts_timestamp);
}
}
*/
while(ts_timestampRegex.test(todo)){
ts_results=ts_timestampRegex.exec(todo);
ts_timestamp=doConvert(ts_results[1]);
todo=todo.replace(ts_results[1],ts_timestamp);
}
return todo;
}
/* End Jedifans's Timestamp Modification */
Code: Shouts.innerHTML = '<table cellpadding="1" cellspacing="3" border="0" width="95%" align="left">' + ShoutRequest.handler.responseText + '</table>' Code: Shouts.innerHTML = '<table cellpadding="1" cellspacing="3" border="0" width="95%" align="left">' + triggerTimestampConvertions(ShoutRequest.handler.responseText) + '</table>' .Cheers, Kieren Last edited by jedifans; 08-27-2006 at 02:55 PM. | |||||||||
|
| | #252 | ||||||||
| vB Newbie
![]() |
Status: Offline Nice, thank you, tested on Opera and IE6, the time is showing. Only problem left: The special chars are still not showing and on the cmps shoutbox it's showing instead the time: 1156699204 Any hint for me? Thanks | ||||||||
| |
| | #253 | ||||||||
| vB Newbie
![]() |
Status: Offline rogersnm again when i post many times fast i get message shouting in progres......... help ? | ||||||||
| |
| | #254 | ||||||||
| vB Newbie
![]() |
Status: Offline Erm not entirely sure about what the "cmps" shoutbox is?? Cant help with the special chars. | ||||||||
|
| | #255 |
| |
Status: Offline That would be the vb number format not working, you will have to do a bit of coding for that as well. Cmps is in basic terms content management, normally referring to vB advanced. |
| |
| | #256 | ||||||||
| vB Newbie
![]() |
Status: Offline If this occurs in the javascript solution, you should insert the same forumhome_vbshout edit into the related template for the cmps... not sure which that would be. If it occurs with the other solution (XX seconds etc ago) then not sure what to do :p. | ||||||||
|
| | #257 | ||||||||
| vB Newbie
![]() |
Status: Offline Yes, I did so put it into the related template, but the problem is I think that the regular shoutbox path is pointing to /forum and the cmps path is outside the forum on index.php. | ||||||||
| |
| | #258 | ||||||||
| vB Newbie
![]() |
Status: Offline I havent touched anything to do with paths and whatnot ... is cmps even done via this shoutbox? | ||||||||
|
| | #259 |
| |
Status: Offline hm, well your using a time function which you made your self and the cmps may be trying to use an old function which doesn't exist, mid you that should error. |
| |
![]() |
LinkBacks (?)
LinkBack to this Thread: http://www.vbhackers.com/f76/major-additions-ajax-flatfile-vbshout-2-1-a-4536/ | ||||
| Posted By | For | Type | Date | |
| vB Shout 2.1 - Shoutbox no vB - vBulletin Brasil | This thread | Pingback | 02-06-2007 03:41 PM | |
| ShoutBox - vBulletin.org Forum | This thread | Refback | 02-04-2007 08:17 PM | |
| vbShout v2.1 on ALL pages! (Below NavBar) - Page 2 - vBulletin.org Forum | This thread | Refback | 02-03-2007 05:15 PM | |
| Vb Shout Help - vB Nova | This thread | Refback | 02-03-2007 05:10 PM | |
| [Additions majeures] - BVShoutbox - Page 13 - vBulletin-fr | This thread | Refback | 02-02-2007 11:21 AM | |
| [AJAX] vBShout v2.0 - Page 155 - vBulletin.org Forum | This thread | Refback | 01-31-2007 01:37 AM | |
| Shoutbox - SSF | This thread | Refback | 01-30-2007 08:55 PM | |
| Shoutbox - SSF | This thread | Refback | 01-30-2007 07:02 PM | |
| Shoutbox - SSF | This thread | Refback | 01-30-2007 06:46 PM | |
| Shoutbox - SSF | This thread | Refback | 01-30-2007 04:53 PM | |
| vBTEAM.org - Redirecting... | This thread | Refback | 01-27-2007 01:14 PM | |
| vBTEAM.org - Redirecting... | This thread | Refback | 01-26-2007 10:02 AM | |
| vbShout v2.1 on ALL pages! (Below NavBar) - Page 3 - vBulletin.org Forum | This thread | Refback | 01-26-2007 04:19 AM | |
| vBTEAM.org - Redirecting... | This thread | Refback | 01-25-2007 02:39 PM | |
| [AJAX] vBShout v2.0 - Page 165 - vBulletin.org Forum | This thread | Refback | 01-25-2007 02:12 AM | |
| [Additions majeures] - BVShoutbox - Page 13 - vBulletin-fr | This thread | Refback | 01-23-2007 08:42 AM | |
| [AJAX/Flatfile] vB Shout 2.1 [On All Pages] - Page 3 - vB Nova | Post #549 | Refback | 01-23-2007 12:58 AM | |
| [vB 3.6.x] vBshoutbox 2.1 - Page 10 - vBulletin-Ressources | This thread | Refback | 01-22-2007 06:38 AM | |
| Quick question about the Shoutbox trend - vBulletin Setup Optimization | This thread | Pingback | 01-19-2007 10:37 PM | |
| vbShout v2.1 on ALL pages! (Below NavBar) - Page 2 - vBulletin.org Forum | This thread | Refback | 01-18-2007 08:36 AM | |
| vbShout v2.1 on ALL pages! (Below NavBar) - vBulletin.org Forum | This thread | Refback | 01-17-2007 02:46 AM | |
| vbShout v2.1 on ALL pages! (Below NavBar) - vBulletin.org Forum | This thread | Refback | 01-16-2007 11:26 PM | |
| vbShout v2.1 on ALL pages! (Below NavBar) - vBulletin.org Forum | This thread | Refback | 01-16-2007 11:21 PM | |
| [AJAX] vBShout v2.0 - Page 157 - vBulletin.org Forum | This thread | Refback | 01-15-2007 01:59 PM | |
| The Best Mods For The Average vBulletin Site? - vBulletin Box | This thread | Refback | 01-15-2007 01:09 PM | |
| Admins Helping Admins[AHA] : Myleague Admins Help Community - Viewing Shoutbox Archive | This thread | Refback | 01-12-2007 09:12 PM | |
| Game Zone | Evolution - Viewing Shoutbox Archive | This thread | Refback | 01-12-2007 04:38 PM | |
| vBTEAM.org - Redirecting... | This thread | Refback | 01-12-2007 07:46 AM | |
| Game Zone | Evolution - Viewing Shoutbox Archive | This thread | Refback | 01-12-2007 06:35 AM | |
| vBTEAM.org - Redirecting... | This thread | Refback | 01-09-2007 11:33 PM | |
| [AJAX] vBShout v2.0 - Page 155 - vBulletin.org Forum | This thread | Refback | 01-08-2007 10:07 AM | |
| ShoutBox? - vBHacks-Germany | This thread | Refback | 01-07-2007 10:38 PM | |
| ShoutBox? - vBHacks-Germany | This thread | Refback | 01-07-2007 08:59 PM | |
| Shoutbox 2.1 - deutsche Zeichen - Timestamp - Integration VBa - vBHacks-Germany | This thread | Refback | 01-06-2007 02:58 PM | |
| Shoutbox 2.1 - deutsche Zeichen - Timestamp - Integration VBa - vBHacks-Germany | This thread | Refback | 01-06-2007 01:51 PM | |
| vBTEAM.org - Redirecting... | This thread | Refback | 01-05-2007 06:33 PM | |
| ShoutBox? - vBHacks-Germany | This thread | Refback | 01-05-2007 09:47 AM | |
| ShoutBox? - vBHacks-Germany | This thread | Refback | 01-04-2007 01:35 PM | |
| ShoutBox? - vBHacks-Germany | This thread | Refback | 01-04-2007 05:40 AM | |
| ShoutBox? - vBHacks-Germany | This thread | Refback | 01-03-2007 10:28 PM | |
| ShoutBox? - vBHacks-Germany | This thread | Refback | 01-03-2007 09:38 PM | |
| [AJAX] vBShout v2.0 - Page 165 - vBulletin.org Forum | This thread | Refback | 01-03-2007 07:43 PM | |
| Shoutout Box? - vBulletin.org Forum | This thread | Refback | 01-03-2007 11:13 AM | |
| [AJAX] vBShout v2.0 - Page 157 - vBulletin.org Forum | This thread | Refback | 12-31-2006 05:43 PM | |
| [vB 3.6.x] vBshoutbox 2.1 - Page 2 - vBulletin-Ressources | This thread | Refback | 12-29-2006 10:35 PM | |
| [vB 3.6.x] vBshoutbox 2.1 - Page 10 - vBulletin-Ressources | This thread | Refback | 12-29-2006 10:15 PM | |
| vBTEAM.org - Redirecting... | This thread | Refback | 12-27-2006 01:04 AM | |
| [vB 3.6.x] vBshoutbox 2.1 - Page 9 - vBulletin-Ressources | This thread | Refback | 12-26-2006 04:41 PM | |
| [AJAX] vBShout v2.0 - Page 165 - vBulletin.org Forum | This thread | Refback | 12-24-2006 05:19 PM | |
| ShoutBox on 3.6.4 version - vBulletin Setup | This thread | Pingback | 12-24-2006 04:36 PM | |
| 3.5.x - [Module] [AJAX] vBShout v2.0 - Page 4 - vBadvanced Forums | Post #587 | Refback | 12-23-2006 04:43 AM | |
| 3.5.x - [Module] [AJAX] vBShout v2.0 - Page 4 - vBadvanced Forums | Post #587 | Refback | 12-22-2006 11:01 AM | |
| need help with vbshout 2.1 - vBulletin FAQ Forums | This thread | Refback | 12-20-2006 05:37 PM | |
| need help with vbshout 2.1 - vBulletin FAQ Forums | This thread | Refback | 12-18-2006 10:51 PM | |
| [AJAX] vBShout v2.0 - Page 162 - vBulletin.org Forum | Post #251 | Refback | 12-06-2006 09:35 PM | |
| Statistics for forum.vbulletinsetup.com (2006-12) | This thread | Refback | 12-06-2006 09:04 PM | |
| [AJAX] vBShout v2.0 - Page 162 - vBulletin.org Forum | Post #251 | Refback | 12-06-2006 07:10 PM | |
| [AJAX] vBShout v2.0 - Page 162 - vBulletin.org Forum | Post #251 | Refback | 12-06-2006 05:45 PM | |
| [vB 3.6.x] vBshoutbox 2.1 - Page 3 - vBulletin-Ressources | This thread | Refback | 12-06-2006 12:38 PM | |
| [vB 3.6.x] vBshoutbox 2.1 - Page 3 - vBulletin-Ressources | This thread | Refback | 12-06-2006 12:16 PM | |
| [vB 3.6.x] vBshoutbox 2.1 - Page 3 - vBulletin-Ressources | This thread | Refback | 12-05-2006 05:51 PM | |
| [vB 3.6.x] vBshoutbox 2.1 - vBulletin-Ressources | This thread | Refback | 12-05-2006 01:29 PM | |
| vB-UG @ vBteam.org - We Are Redirecting You To Your Link... | This thread | Refback | 12-04-2006 10:57 PM | |
| vB-UG @ vBteam.org - We Are Redirecting You To Your Link... | This thread | Refback | 12-04-2006 12:13 PM | |
| Chatbox - vBulletin.org Forum | This thread | Refback | 12-03-2006 11:41 PM | |
| 3.5.x - [Module] [AJAX] vBShout v2.0 - Page 4 - vBadvanced Forums | Post #587 | Refback | 12-03-2006 01:57 AM | |
| 3.5.x - [Module] [AJAX] vBShout v2.0 - Page 4 - vBadvanced Forums | Post #587 | Refback | 12-01-2006 09:45 PM | |
| vB-UG @ vBteam.org - We Are Redirecting You To Your Link... | This thread | Refback | 12-01-2006 11:50 AM | |
| [AJAX] vBShout v2.0 - Page 157 - vBulletin.org Forum | This thread | Refback | 11-29-2006 05:55 PM | |
| [AJAX] vBShout v2.0 - Page 155 - vBulletin.org Forum | This thread | Refback | 11-26-2006 09:53 AM | |
| TP-Forum - Viewing Shoutbox Archive | This thread | Refback | 11-22-2006 05:23 AM | |
| Suche eine Shoutbox für die Aktuelle vB Version - vBHacks-Germany | This thread | Refback | 11-18-2006 02:33 AM | |
| [AJAX] vBShout v2.0 - Page 157 - vBulletin.org Forum | This thread | Refback | 11-16-2006 07:13 PM | |
| Chatbox - vBulletin.org Forum | This thread | Refback | 11-15-2006 12:04 PM | |
| [AJAX] vBShout v2.0 - Page 157 - vBulletin.org Forum | This thread | Refback | 11-13-2006 12:48 AM | |
| Untitled document | This thread | Refback | 11-08-2006 02:37 PM | |
| Chatbox - vBulletin.org Forum | This thread | Refback | 11-07-2006 11:02 PM | |
| Chatbox - vBulletin.org Forum | This thread | Refback | 11-07-2006 10:27 PM | |
| Chatbox - vBulletin.org Forum | This thread | Refback | 11-07-2006 10:10 PM | |
| [AJAX] vBShout v2.0 - Page 156 - vBulletin.org Forum | This thread | Refback | 11-07-2006 09:05 PM | |
| [AJAX] vBShout v2.0 - Page 157 - vBulletin.org Forum | This thread | Refback | 11-06-2006 05:39 PM | |
| [AJAX] vBShout v2.0 - Page 157 - vBulletin.org Forum | This thread | Refback | 11-05-2006 01:14 AM | |
| [AJAX] vBShout v2.0 - Page 155 - vBulletin.org Forum | Post #268 | Refback | 11-04-2006 01:13 PM | |
| vBulletin.org Forum - View Single Post - [AJAX] vBShout v2.0 | This thread | Refback | 11-04-2006 06:56 AM | |
| [AJAX] vBShout v2.0 - Page 157 - vBulletin.org Forum | This thread | Refback | 11-03-2006 09:43 PM | |
| [AJAX] vBShout v2.0 - Page 157 - vBulletin.org Forum | This thread | Refback | 11-03-2006 08:44 PM | |
| [AJAX] vBShout v2.0 - Page 156 - vBulletin.org Forum | This thread | Refback | 11-02-2006 06:26 PM | |
| [AJAX] vBShout v2.0 - Page 156 - vBulletin.org Forum | This thread | Refback | 11-02-2006 02:59 PM | |
| [AJAX] vBShout v2.0 - Page 156 - vBulletin.org Forum | This thread | Refback | 10-31-2006 10:00 PM | |
| Suche eine Shoutbox für die Aktuelle vB Version - vBHacks-Germany | This thread | Refback | 10-30-2006 04:31 PM | |
| Suche eine Shoutbox für die Aktuelle vB Version - vBHacks-Germany | This thread | Refback | 10-30-2006 04:29 PM | |
| Suche eine Shoutbox für die Aktuelle vB Version - vBHacks-Germany | This thread | Refback | 10-30-2006 04:28 PM | |
| [AJAX] vBShout v2.0 - Page 156 - vBulletin.org Forum | This thread | Refback | 10-29-2006 12:37 AM | |
| [AJAX] vBShout v2.0 - Page 156 - vBulletin.org Forum | This thread | Refback | 10-28-2006 06:00 PM | |
| [AJAX] vBShout v2.0 - Page 155 - vBulletin.org Forum | Post #268 | Refback | 10-28-2006 04:33 PM | |
| [AJAX] vBShout v2.0 - Page 155 - vBulletin.org Forum | This thread | Refback | 10-28-2006 03:50 PM | |
| [AJAX] vBShout v2.0 - Page 155 - vBulletin.org Forum | This thread | Refback | 10-27-2006 01:54 PM | |
| [AJAX] vBShout v2.0 - Page 155 - vBulletin.org Forum | This thread | Refback | 10-27-2006 11:02 AM | |
| Thread Tools | |
| |
All times are GMT. The time now is 05:28 AM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
















,










