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.


Messages - Pelle

Pages: [1]
1
It would be great if there was an option to select colspan when you upload thumbs. Not sure if it's worth the effort to add this option but I would find it really useful.

2
But that means there will be only one cell, right?

I'm currently showing 4 cells but if I have a wide image I want it to be shown in a merged cell so not to stretch the page.

For example:
1st row: 4 small images.
2nd row: 2 small images, 1 wide image

in ACP/General/settings/Image settings/
set "Image table cells" to "1"

Andi

3
Hi,
I'm showing full-size images on the category pages - no thumbs.
The problem is that some of the images are too wide for the table cells.
Is there any way to merge cells (colspan=2, 3 or 4) for images bigger than a fixed width?

(Using version 1.7.9)

Thanks for any suggestions

4
Hey thanks! Pretty obvious in the end...

5
Hi,

Sorry if this is an obvious question. My categories and subcategories only show in two rows. How do I add a third row?

Thanks,
Pelle

6
Discussion & Troubleshooting / Re: Qiuck Links to Images
« on: November 15, 2007, 07:15:24 AM »
After fiddling around a bit I managed to find a way of doing it myself.

If anyone is interested, here's what I did (maybe clunky, but still working quite nicely):

In header.html, add the following JavaScript between the HEAD tags:

Code: [Select]
<SCRIPT LANGUAGE="JavaScript">
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
<!--Link textboxes-->
var isReady = false;

function showAddress(What){
  if (isReady){
    document.Which.Where.value = '<a href="http://www.yoursite.com"><img src="' + What + '" border=0></a>';
document.Which2.Where2.value = '[URL=http://www.yoursite.com][IMG]' + What + '[/IMG][/URL]';
   
  }else{
    alert("This page is not fully loaded yet...\nPlease wait for the page to finish loading.");
  }
}

function clearAddress(){
  if (isReady){
    document.Which.Where.value = '';
document.Which2.Where2.value = '';
  }else{
    alert("This page is not fully loaded yet...\nPlease wait for the page to finish loading."); 
  }
}

</script>

In the same file, add the following snippet to the BODY tag:
Code: [Select]
onload="isReady=true"
In details.html, add the following after {image} (~line 193):

Code: [Select]
<br /><font size=-2>Click Image to get Link!</font><br />
<br /><form name="Which"><input type="text" size="50" name="Where" style="background-color: #ffffff; font-weight: bold; font-size: 7pt;"><br /><input type="button" value="Highlight Link" onClick="javascript:Where.focus();Where.select();" style="background-color: #dadada; font-weight: bold; font-size: 7pt;"></form>
<form name="Which2"><input type="text" size="50" name="Where2" style="background-color: #ffffff; font-weight: bold; font-size: 7pt;"><br /><input type="button" value="Highlight Link" onClick="javascript:Where2.focus();Where2.select();" style="background-color: #dadada; font-weight: bold; font-size: 7pt;"></form>

Feel free to change the style to fit your environment.

Finally, change gif.html to:

Code: [Select]
<img src="{media_src}" border="1" alt="{image_name}"{width_height} onMouseDown="showAddress(this.src)" /><br />
You should now end up with a clickable image that generates two codes in two textboxes under the image.
I'm not sure how this works with other file formats but and I take no responsibility for any mess-ups ;)

Pelle

7
Discussion & Troubleshooting / Re: Qiuck Links to Images
« on: November 15, 2007, 02:54:50 AM »
On a related subject, in details.php the HTML output for the image file looks something like this:

<img src="./data/media/3/9.gif" border="1" alt="Angel 9" width="45" height="72" />

Let's say I want to add data to the img tag, for example an align tag making it look like this:

<img src="./data/media/3/9.gif" border="1" alt="Angel 9" width="45" height="72" align="center" />

Where do I modify this?

Thanks,
Pelle

Ignore - I found the gif.html file...

8
Discussion & Troubleshooting / Qiuck Links to Images
« on: November 15, 2007, 01:06:32 AM »
Hi,

I'm new here so I apologize if you have discussed this before.

When viewing an image (details.php) I currently show the Lightbox button and the Download button.
I would like to add a button that generates a direct link to the image when the user clicks it.
There's a pretty good example of what I mean here: http://www.millan.net/minimations/smileys_people.html. When the user clicks one of the smileys 2 codes are generated at the bottom of the page through a pretty basic JavaScript.

Is this doable or has anyone found a way of doing it?

Thankful for any suggestions.

Pelle

Pages: [1]