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

Pages: [1]
1
I was tring to do this:
 move the comment form  into a popup window when user click post a comment button, which will make details pages shorter for a better looking. but somehow I run into some problem which stop me from going any further.
Here is what I do:
#1st step: I deleted {comment_form} in details.html, and insert this instead
Quote
<input TYPE="button" VALUE="POST A COMMENT" ONCLICK="NewWindow()">
<script language="JavaScript">
<!--
function NewWindow(){window.open("index.php?template=comment_form","","height=400,width=300,left=10,top=10,status=no,location=no,toolbar=no, directories=no,menubar=no");}
// -->
</script>

#2nd step: in the comment_form.html, I di the follow change :
insert
Quote
<script language="javascript" type="text/javascript">
<!--

  var captcha_reload_count = 0;
   var captcha_image_url = "{url_captcha_image}";
  function new_captcha_image() {
    if (captcha_image_url.indexOf('?') == -1) {
        document.getElementById('captcha_image').src= captcha_image_url+'?c='+captcha_reload_count;
      } else {
        document.getElementById('captcha_image').src= captcha_image_url+'&c='+captcha_reload_count;
      }

    document.getElementById('captcha_input').value="";
    document.getElementById('captcha_input').focus();
    captcha_reload_count++;
  }
--></script>
<link rel="stylesheet" href="{template_url}/style.css" />

into top of the page, then I delete all the {} tags, because they doesn't show any thing in the popup window, and replace words with them  manualy, and in the
Quote
<form name="commentform" action="{self}" method="post" onsubmit="postbutton.disabled=true;">
and I changed into this
Quote
<form name="commentform" action="details.php?image_id={image_id}" method="post" onsubmit="postbutton.disabled=true;">

and now when I click POST A COMMENT button, it will  insert comment into the diffenren image id, for example: if I am in image_id=1 page , but it will insert comment into some another image like image_id=**. I really can't figure out what did I missing, is there something else I have to change? and also, how to make the popup window return a message after I posted a comment?

2
Templates & Styles (Requests & Discussions) / Need help with template?
« on: August 27, 2006, 06:21:26 AM »
Recently, I am trying to do a Template myself, but I run into some diffcult time now. I don't know how to make a navegitor menu like the one below in that attached image. Here is the url http://www.uume.com

3
Is there any way to import user data from phpbb?

4
Ok, this is very weird issue that I am having while I update my 4images scripts.  I forgot when I have done, when I click on a thumbnail, then wrong image display on detail page, and if I refresh the page, the image even changes to another one. I have [Mod]friendly url installed, even I try to uninstall that mod, it remain the same. 

5
Hi, everyone.

I have more than 1000s categories with 3 level on my site, I always have hard time when i have to deal with them, things like
edit, change premission of any of the category.
     now my question is, is there anyway to make thoes categories in Admin side as a tree menu, which will make much easier to deal with the categories? or maybe also do the same thing to the category dropdown menu , too. thanks...

6
well, I am so confuse at this point, the upgrade look so simple as it says it the txt file. but my 4images has work with phpbb for a quite some time , and many 4images mod have installed. now my question is where do I to start to upgrade?
thanks

7
Since I am very happy with 4image, I think I need to do some thing for the community.
Here is a template I just made, it's deep blue background, light blue layout. please note:  it may not compitible with your 4image script, you might aslo need to do some modify to suit your site.

http://www.2ufj.com/blueground.rar

8
I have a category, which has 154 pics in it, but when visiting the category, it only shows 17 pics.   
really have no idea how did it happen, anyone have  any idea maybe?

9
Discussion & Troubleshooting / strenge comment problem
« on: June 17, 2005, 05:49:22 AM »
when I try to post a comment, it will come out with two same message at one time. and this is the error message
Quote
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /hsphere/local/home/terryjia/2ufj.com/includes/db_mysql.php on line 92


10
hello every one:
I just have one question, which is: how to keep footer table at the bottom of the screen?
because I use background image at the footer table, so when user open a page like search page, the background will move to the middle of the screen.  it looks ugry.  here is example
http://www.2ufj.com/search.php
I have tried in many way , and still have no clue how to make it right.

Pages: [1]