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

Pages: [1] 2
1
Discussion & Troubleshooting / removing root url from javascript link
« on: October 26, 2007, 05:00:30 PM »
I wanted to insert some javascript but the 4images script keeps inserting automatically the root url in front of it.

Code: [Select]
<a href="javascript:jah('map.htm','change');">test</a>
How do I disable that.

Version 1.7.4
Php: 4.4.7
mysql: 4.1.22

Dennis

2
Mods & Plugins (Releases & Support) / Re: [MOD] Slideshow II
« on: October 21, 2007, 11:55:07 PM »
Can anyone help me with this problem here:
http://www.4homepages.de/forum/index.php?topic=19133

Thanks,
Dennis


3
The answer to both questions: yes

4
Thanks! Here's the complete error message:

Code: [Select]
Notice: Undefined index: image_postcards in includes/functions.php on line 423

Notice: Undefined index: alt_slideshow_off in categories_slideshowII.inc on line 25

Notice: Undefined index: alt_slideshow in categories_slideshowII.inc on line 39

Notice: Undefined index: image_postcards in includes/functions.php on line 423

Notice: Undefined index: image_postcards in includes/functions.php on line 423

An unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in includes/db_mysql.php on line 116

Dennis

5
I'm not seeing any error message in the admin panel. Maybe I have turned that off. How do I turn it on?

Dennis

6
Our host made some errors and after the back-up was restored I'm not seeing images online but they do show up in the admin panel. All categories show up fine on the site. I've done repairs but no faults were found. Our host said that cannot do anything more.

Version: 1.7.4
Mysql: 4.1.22 (And the brackets that are mentioned in the mysql 5 threads are all there).
PHP Version 4.4.7

error message I'm receiving on the site:

Code: [Select]
An unexpected error occured. Please try again later.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in includes/db_mysql.php on line 116

and this one:

Code: [Select]
Warning: Cannot modify header information - headers already sent by (output started at  includes/db_mysql.php:190) in includes/functions.php on line 126
Any help is much appreciated.

Dennis

7
Okay, no posting of a session id link. But I'm not experiencing any logging problems and I couldn't get access to the acp by pasting that part in the address field as I always logout after I'm done. Any other thoughts of where the problem of the additional field options could be?

Dennis

8
the file image.php in admin is now exactly the same as the original. Still there are some differences in the ACP. In 'adding images' the additional fields are missing, but not in 'editing images'.

I implemented the hack I found here:
http://www.4homepages.de/forum/index.php?topic=12583.0
to force the settings of the radio buttons of the additional fields to no but it doesn't work in the new version of 4images. (both are 1.7.4)

And finally, the radio buttons of the additional fields in the first version of 4images turn all to no again, no matter what the settings were before, when I edit the image again at a later time. In the fresh installation this does work well though.

Another difference I noticed that in the fresh version, the address field in the browser shows after the index, for example:
Code: [Select]
?sessionid=059c862e7d4d5441a6ebe541294d3790
In the first version, it shows nothing after the index
I have Pretty Urls installed.

It's becoming complicated!

Dennis

9
After having installed a fresh folder of 4images, the additional fields being set on zero in the db_field_definitions come up as yes in the ACP. I haven't implemented the solution to this as I mentioned earlier because that part worked well. But the rest seems to be okay. The options of the additional fields that I tagged yes, stay yes with the next time I edit a picture. Do I have to compare each page to see where the difference lies or do you know which file is responsible for it?

Dennis

10
I'm not sure what you mean. Do you want me to create a whole new database?

D.

11
Here it is:

Code: [Select]
bool(true) Image edited
It's not much but I hope it's helpful. Thanks again for your time.

Dennis

12
the view source for the additional fields in ACP are:

Code: [Select]
<td><p class="rowtitle">Standard RF sale</p></td>

<td><p><input type="radio" name="sale" value="1"> Yes&nbsp;&nbsp;&nbsp;
<input type="radio" name="sale" value="0" checked="checked"> No </p></td>
</tr><tr class="tablerow2">
<td><p class="rowtitle">RM Request</p></td>
<td><p><input type="radio" name="rm_photo" value="1"> Yes&nbsp;&nbsp;&nbsp;
<input type="radio" name="rm_photo" value="0" checked="checked"> No </p></td>
</tr><tr class="tablerow">
<td><p class="rowtitle">Promotion</p></td>

<td><p><input type="radio" name="image_promotion" value="1"> Yes&nbsp;&nbsp;&nbsp;
<input type="radio" name="image_promotion" value="0" checked="checked"> No </p></td>
</tr><tr class="tablerow2">
<td><p class="rowtitle">Add Promotion Pic</p></td>
<td><p><input type="radio" name="promopic" value="1"> Yes&nbsp;&nbsp;&nbsp;
<input type="radio" name="promopic" value="0" checked="checked"> No </p></td>
</tr><tr class="tablerow">
<td><p class="rowtitle">Price (euro)</p></td>

<td><p><input type="text" size="30" name="price3" value=""></p></td>
</tr>
<tr class="tablefooter">
<td colspan="2" align="center">
&nbsp;<input type="submit" value="   Save changes   " class="button"  onClick='showProgress()'>
<input type="reset" value="   Reset   " class="button">

I hope this is what you meant.

Dennis

13
The update is in ACP. Everything works like it should, except when the photographer of the site wants to edit a picture, the options of the additional field are set to zero (no). So he has to look in his papers what the old setting of the option was, to tag it as yes again, before hitting the 'save changes' button. After the initial save, it shows right, but as soon as you click on edit and going to the picture again, they're back to zero.

Dennis

14
In the database
Code: [Select]
$additional_image_fields['price3'] = array('Price (euro)', "text", 0);is called: varchar.

Should I change it to text in the database?

The radio button options in the admin panel are linked to the individual settings of a price for the picture.


Dennis

15
1.

$additional_image_fields['sale'] = array("Standard RF sale", "radio", 0);
$additional_image_fields['rm_photo'] = array("RM Request", "radio", 0);
$additional_image_fields['image_promotion'] = array("Promotion", "radio", 0);
$additional_image_fields['promopic'] = array("Add Promotion Pic", "radio", 0);
$additional_image_fields['price3'] = array('Price (euro)', "text", 0);

2.

I used this upload for each additional field to the database:

Code: [Select]
<?php

define
('ROOT_PATH''./');
include(
ROOT_PATH.'config.php');
include(
ROOT_PATH.'global.php');

$sql_data = array(
   
"ALTER TABLE `".IMAGES_TABLE."` ADD `promopic` tinyint (1) NOT NULL",
);

foreach (
$sql_data as $val){
if ($site_db->query($val)) {
 
  $log[$val] = "Succesfully updated Database";
}
else {
  $log[$val] = "<font color=\"red\">Error</font>";
  $error 1;
    }
}

if (!
$error) echo "Succesfully updated Database";
else echo 
"an Error occured";

?>

-------
PHP version: 4.4.6
Mysql: 4.1.22

Thanks for helping finding an answer. It's much appreciated.

Dennis, Sweden

Pages: [1] 2