rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - stit

Pages: 1
1
RAWR-Designs / Picture Preview without TPGen
« on: July 14, 2009, 07:12:34 PM »
Hi all,

for everyone who doesn't want to use TPGen to create a preview for pictures, here the edited script for preview from original files:

Edit in .tpl file
Code: [Select]
[file]
<tr>
<td class="iconCol">
<a href="%item-url%"><div style="background:url('/~img_file') center center no-repeat"></div> </a>
</td>
<td class="fileCol{.if not|{.get|can access.}|protected.}">
<div class="fileInfo">
<a href="%item-url%" {.$target.}>%item-name%{.if|{.get|is new.}|&nbsp;-&nbsp;<b class="new">{.!lv_new.}</b>.}</a><br/>
%comment%
<div class="info"><b>{.!lv_size.}:</b> %item-size%</div><div class="info"><b>{.!lv_hits.}:</b> %item-dl-count%</div><div class="age"><b>{.!lv_age.}:</b> %item-modified%</div>
</div>
</td>
<td class="quickCol">{.switch|%item-ext%|,|jpg,jpeg,png,gif,bmp,tif,tiff,mp3,flv,mp4,m4a,mov,3gp,aac,avi,divx,wmv,wma,swf|{.$preview-btn.}|<div class="quickBtn disabled hide"></div>.}
<noscript><div class="quickBtn disabled"></div></noscript>
<div class="quickBtn1 {.if not|{.get|can access.}|disabled.}"><a href="%item-url%" {.$target.}><img src="/template/{.!theme.}/images/download.gif" alt="DL" title="{.!lv_downloadTitle.}"/></a></div>
</td>
</tr>

Edit in rawr_preview.js
Code: [Select]
// Insert Image
function spawnIMGBox(target,file) {
img = new Image();
img.src = file;
if(img.complete) {
spawnBox(target,img.width,img.height);
setIMGBox(target,file,'none');
} else {
setTimeout('setIMGBox("'+target+'","'+file+'","none");',10);
}
}
function setIMGBox(target,file,status) {
if(img.width!=0) {
if(status == 'none') {
if(img.width>'700') {
spawnBox(target,700,img.newheight);
} else {
spawnBox(target,img.width,img.height);
}
status = 'boxLoaded';
}
if(status == 'boxLoaded') {
setTimeout('setIMGBox("'+target+'","'+file+'","setImage");',325);
} else if(status == "setImage") {
if(img.complete) {
gEBI(target+'Content').innerHTML = '<img src="'+img.src+'" width="100%" id='+target+'ImageBox style="filter:alpha(opacity=0);opacity:0"/>';
boxFade(target,'img');
setName(file);
img = null;
} else {
setTimeout('setIMGBox("'+target+'","'+file+'","setImage");',200);
}
} else if(status == 'setImmediatly') {
gEBI(target+"Content").innerHTML = '<img src="'+img.src+'"/>';
setName(file);
img = null;
}
} else {
setTimeout('setIMGBox("'+target+'","'+file+'","none");',50);
}
}

Have fun.

stit

2
RAWR-Designs / Bug on playing Video Files (url cut off)
« on: July 12, 2009, 06:18:12 PM »
Hi all,

i detected a bug concerning the streaming of videos.
if i want to preview an .avi video the url is not completely going to the video.

e.g. the folder is called "the house" and the video is called "video1.avi"

the link in the preview windows is going only to "/the", so the bug seems to be a missing "" in the embed code.

maybe s.o. knows where to find the specific term in the template.


hopefully i could help solving a bug!?


greetz
stit

3
RAWR-Designs / Enable preview function for other files (.jpg)
« on: July 12, 2009, 05:02:21 PM »
Hi all,

is it possible to display the pictures in the same windows, with a preview funktion like for videos.
i don't want to install the extra Thumbnail & Preview Generator because i don't want images to be thumbnailed.
simply show the pictures in the same window in a new <div> by klicking the preview button.

i tried to delete the all  "disabled" marks in here but it didn't work.

Code: [Select]
<td class="quickCol">{.switch|%item-ext%|,|
jpg,jpeg,png,bmp,tif,tiff|
  {.if|{.filesize|%folder-resource%\previews_and_thumbnails\prev-%item-name%.jpg.}
    |{.$preview-btn.}
    |<div class="quickBtn disabled hide"><img src="/template/{!theme}/images/preview.gif" alt="" align="middle"/></div>
  .}
|mp3,flv,mp4,m4a,mov,3gp,aac,avi,divx,wmv,wma|{.$preview-btn.}|<div class="quickBtn disabled hide"></div>.}
<noscript><div class="quickBtn disabled"></div></noscript>
<div class="quickBtn1 {.if not|{.get|can access.}|disabled.}"><a href="%item-url%" {.$target.}><img src="/template/{.!theme.}/images/download.gif" alt="DL" title="{.!lv_downloadTitle.}"/></a></div>
</td>

hope s.o. can give me a hint how to realize it.

big thx so far.

greetz
stit

4
Bug reports / Chrome Bug with login -> Want to hide Statistics
« on: July 12, 2009, 12:36:13 PM »
hi all,

ich knows that the chrome but with login is known already.
I use the RAWR template and i want the statistics not to be displayed in unauthorized display page.

is this possible ?

hopefully
stit

Pages: 1