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 - waynenort

Pages: [1]
1
Chit Chat / linking html template variables to php
« on: October 25, 2009, 12:23:21 PM »
Forgive me if my request is confused...I'm just trying to understand a little more about html interacting with php

Does anyone know any tutorials on linking/assigning html variables to php?   EG: Opening or linking a php webpage via a html template file using something like {sampleName}.
It's seems all good php programs like 4 images make use of separate html templates to keep them apart from the php functions.

Thanks, Wayne

2
Mods & Plugins (Requests & Discussions) / JW player skin for FLV player
« on: August 28, 2009, 05:02:49 PM »
Hi,

Have just added the V@no helpful hint FLV player plugin at http://www.4homepages.de/forum/index.php?topic=23885.0
It uses the JW player from longtailvideo.com.
On the longtail site it has skins available to make the FLV player look better. at http://www.longtailvideo.com/addons/skins/30/Metarby-10?q=.
The site gives this code to add into the flv.html file

Code: [Select]
si.addParam('flashvars', 'skin=/path/to/skinfile/skin.swf');
But it doesn't direct the downloaded skin.swf to the flv player. This extra piece of code also stops the player from running.
Why?

Thank Wayne

3
Hi,

I've been working on a new style progress window for members when uploading a new image. This uses absolute divs to display the progress upload window within the member.html webpage instead launching a popup html window. The main reason is that popup html windows can be blocked by internet browsers and absolute divs won't.
This new style upload progress window also places a semi transparent curtain effect over the rest of the member.html web page. All works great accept for a couple of minor bugs. Once fixed it'll be added to the Mods & Plugins (Releases & Support) section for all to use.
The first flaw is with the animated gif progress bar(image) during upload. This gif animates fine in Firefox and Opera, but freezes in Internet Explorer. The problem I understand is that IE won't fully render gifs until the upload is complete.The solution is to delay the members image upload until the gif is fully rendered. Although I'm not sure how to do it. This link explains it better: http://www.west-wind.com/Weblog/ShowPost.aspx?id=1227
The second problem is with the semi transparent curtain. If the #overlay{} height is set to height:100%; the semi transparent curtain will cover only 70% length of the complete web page. My temp fix is to set it to height:145%; to cover all the webpage.... Not ideal, but it works for now.
Other than these two things the progress upload window launches on upload, auto closes when upload is complete, doesn't get blocked by internet browsers and looks pretty good.
If anyone can offer suggestions or a solution for either of these issues, then that'll be great. Especially the animated gif problem in IE.

Here's the files to change/add to:
    * templates/<your_template>/member.html
    * templates/<your_template>/member_uploadform.html
    * templates/<your_template>/style.css
    * templates/<your_template>/images/

1. Step -
   At the very beginning of member.html insert:
Code: [Select]
<script type="text/javascript">
function popup() {
document.getElementById('overlay').style.display='block';
document.getElementById('popup').style.display='block';
}
</script>
<div id="overlay"></div>
<div id="popup"><span>Please wait while we process your request...
<br />
<br />
       <br />
       <img src="{template_url}/images/uploading.gif" width="128" height="15" /></span></div>

2. Step -
   In  member_uploadform.html  find:
Code: [Select]
<input type="submit" name="uploadbutton" value="{lang_submit}" class="button" />and replace with:
Code: [Select]
<input type="submit" name="uploadbutton" value="{lang_submit}" class="button" onClick= "popup();" />
3. Step -
  In  style.css  insert at the end, or anywhere really - as long it goes after a set of closing brackets { } :
Code: [Select]
#overlay {
display: none;
position:absolute;
top:0px;
left:0px;
width:100%;
height:145%;
background:#000;
opacity:0.32;
filter:alpha(opacity=32);
-moz-opacity:0.32;
z-index:14;
}

#popup {
display: none;
position:absolute;
top: 50%;
left: 50%;
height:150px;
width: 300px;
margin-left: -150px;
text-align:center;
border:1px solid #666666;
z-index:15;
background-color: #FFFFFF;
padding-top: 50px;
}

4. Step -
   Add the attached  uploading.gif  into the images/ folder

That's it.  :D

Cheers, Wayne


4
I notice 4 images is in need of an Ajax hover over star rating system. I've have one attached. Its functional, but just needs to be turned into a 4 images mod. If anyone wants to use convert it and use it for the Mods section. Your more than welcome.

5
Mods & Plugins (Requests & Discussions) / Image resizing
« on: July 28, 2009, 01:29:35 PM »
Hi Guys,

Is there a modifation that allows auto resizing of the main image when a user uploads it. Like what happens for a thumbnail when a user uploads the image. I just don't want to have to batch resize all the main mages afterward  in the admin area that are uploaded by the users.

Thanks Wayne

Pages: [1]