Kbeever, any idea why my live page looks like the image i've posted above :-/
Thanks


![]() |
| | Thread Tools | Display Modes |
| |||
|
Kbeever, any idea why my live page looks like the image i've posted above :-/ Thanks |
| |||
|
A nice gimmick, maybe I´ll give it try if it works with v9.5+. BTW: Does anyone know how to suppress voting messages at the live view? (http://forums.pligg.com/general-help...html#post35983, just this post) |
| ||||
|
@nothingman mine looked the same as yours when i tried it |
| |||
| |||
|
Thanks for the reply kbeever, just wondering what this legend is about? and where do I need to place this in the live.php file ![]() Quote:
|
| |||
|
The legend is the 3 icons above the "live" section that tell what each image means. Basically it's just html with some <img> tags and html. I you'll probably have to put it towards the top of the live .tpl file.
|
| |||
|
Sorry for bothering you so much kbeever, but its just not working. Could you post your live.php file? (sorry, if i'm asking too much ![]() |
| |||
|
It's probably because this css class isn't used anymore Code: <div class="sneaker-who"> |
| |||
|
Thanks Kbeever, worked like a charm. Here's the modified code just in case (after replacing all instances of sneaker) Code: function to_html(data) {
var ts=new Date(data.ts*1000);
var timeStr;
var hours = ts.getHours();
var minutes = ts.getMinutes();
var seconds = ts.getSeconds();
timeStr = ((hours < 10) ? "0" : "") + hours;
timeStr += ((minutes < 10) ? ":0" : ":") + minutes;
timeStr += ((seconds < 10) ? ":0" : ":") + seconds;
html = '<div class="live2-ts">'+timeStr+'</div>';
if (data.type == 'problem')
html += '<div class="live2-type"><span class="live2-problem">'+data.type+'</span></div>';
else if (data.type == 'new' || data.type == 'published')
html += '<div class="live2-type"><img src="templates/yget/images/spy_new.gif"></div>';
else if (data.type == 'comment')
html += '<div class="live2-type"><img src="templates/yget/images/spy_comment.gif"></div>';
else if (data.type == 'vote')
html += '<div class="live2-type"><img src="templates/yget/images/spy_vote2.gif"></div>';
else
html += '<div class="live2-type">'+data.type+'</div>';
html += '<div class="live2-votes">'+data.votes+'</div>';
html += '<div class="live2-story"><a href="story.php?id='+data.link+'">'+data.title+'</a></div>';
if (data.type == 'problem')
html += '<div class="live2-who"><span class="live2-problem">'+data.who+'</span></div>';
else if (data.uid > 0)
html += '<div class="live2-who"><a href="user.php?login='+data.who+'">'+data.who+'</a></div>';
else
html += '<div class="live2-who">'+data.who+'</div>';
html += '<div class="live2-status">'+data.status+'</div>';
return html;
} |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| select images for submission in development | ivytony | Questions and Comments | 74 | 02-20-2010 05:26 PM |
| RSS importer doesn't import images from feeds | lostdeviant | Questions and Comments | 12 | 03-22-2009 10:35 PM |
| Profile Badges and Images EASY work 30 usd winner! | bbrian017 | Questions and Comments | 0 | 04-25-2008 11:47 AM |
| Images with Lightbox in Desc w/ popup Thumb | kanedaguy | Questions and Comments | 4 | 02-05-2007 09:12 PM |
| Images with Lightbox in Desc w/ popup Thumb | kanedaguy | Questions and Comments | 0 | 02-02-2007 02:51 AM |