|
View previous topic :: View next topic |
| Author |
Message |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
Posted: Tue May 24, 2011 6:44 pm Post subject: modifyalb.php problem |
|
Not sure when this started but suddenly my 'Update album' page no longer works. The button 'Update album' links to
| Quote:: |
| http://www.lasourcetranquille.com/'.getlink( |
which obviously goes nowhere. I don't think I've changed any files - the code at line 390 of modifyalb.php (version 9.6) says
| PHP: |
<tr><form method="post" action="'.getlink("&file=db_input").'" enctype="multipart/form-data" accept-charset="utf-8">
|
I'm sure it used to work!
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) ChantillyExpat.com - Others-
|
|
| Back to top |
|
 |
unigene Gold Supporter


Offline Joined: Apr 07, 2005 Posts: 120 Location: Luxembourg
|
Posted: Tue May 24, 2011 8:11 pm Post subject: Re: modifyalb.php problem |
|
I guess you use IE9. Click the 'Compatibility View' button and everything will work again. I had the same issue.
_________________ | Luxembourg Amateur Radio RL | RC Heli | My Site |
unigene's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/ 2.6.18 / 5.1.52 / 5.3.2 / 9.3.2.0
|
|
| Back to top |
|
 |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
|
| Back to top |
|
 |
InspectorClueNo Heavy poster


Offline Joined: Mar 26, 2008 Posts: 211
|
Posted: Tue May 24, 2011 10:53 pm Post subject: Re: modifyalb.php problem |
|
the code is parsed by the server, not by browsers ... how weird.
are you sure that changing compatibility mode fixed the issue?
InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) none available
|
|
| Back to top |
|
 |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
|
| Back to top |
|
 |
layingback Forum Admin


Offline Joined: Apr 19, 2004 Posts: 1040
|
Posted: Wed May 25, 2011 6:11 am Post subject: Re: modifyalb.php problem |
|
| rosbif wrote: |
I was going to say absolutely - but I've just gone back to try it and it is now working without compatibility mode.. How bizarre is that? I had to view it with compatibility mode to get it to work, and now I don't need that mode.
Odd |
Because the fully resolved link is now in your browser cache?
_________________ Pro_News: The complete module for Dragonfly - now available as version 3.3
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
|
|
| Back to top |
|
 |
InspectorClueNo Heavy poster


Offline Joined: Mar 26, 2008 Posts: 211
|
Posted: Wed May 25, 2011 6:52 am Post subject: Re: modifyalb.php problem |
|
nope ... it's parsed by the server and saved into website/cache.tpl ... probably a glitch?
InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) none available
|
|
| Back to top |
|
 |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
|
| Back to top |
|
 |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
|
| Back to top |
|
 |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
|
| Back to top |
|
 |
InspectorClueNo Heavy poster


Offline Joined: Mar 26, 2008 Posts: 211
|
Posted: Thu Jul 21, 2011 12:54 am Post subject: Re: modifyalb.php problem |
|
If you using older version of DragonflyCMS:
in modifyalb.php find a spot for:
| PHP: |
$cpgtpl->assign_var('U_DB_INPUT', getlink('& amp;file=db_input'));
|
in the template file change:
from
| Code:: |
action="'.getlink("& amp;file=db_input").'" |
to
| Code:: |
action="{U_DB_INPUT}" |
instead if you using the most recent version of DragonflyCMS without any additional php code you simply change your template to read:
from
| Code:: |
action="'.getlink("& amp;file=db_input").'" |
to
| Code:: |
action="U_('& amp;file=db_input')" |
note: "& amp;" should be without any space, it does have one here for display only
InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) none available
|
|
| Back to top |
|
 |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Fri Jul 22, 2011 12:11 am Post subject: Re: modifyalb.php problem |
|
change /modules/coppermine/modifyalb.php start at line 377
from:
| PHP: |
<?php # below starts line 377 $album_lb = alb_list_box(); $chset =_CHARSET; echo ' <tr> <td colspan="2" class="tableh1"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="statlink"><h2>'.UPDATE.'</h2></td> <td align="right">'.$album_lb.'</td> </tr> </table> </td> </tr> <tr><form method="post" action="'.getlink("&file=db_input").'" enctype="multipart/form-data" accept-charset="utf-8"> <input type="hidden" name="event" value="album_update" /> <input type="hidden" name="aid" value="'.$album.'" />
'; create_form($data);
|
to:
| PHP: |
<?php # below starts line 377 $album_lb = alb_list_box(); $chset =_CHARSET; $u_db_input = getlink('&file=db_input'); echo ' <tr> <td colspan="2" class="tableh1"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td class="statlink"><h2>'.UPDATE.'</h2></td> <td align="right">'.$album_lb.'</td> </tr> </table> </td> </tr> <tr><form method="post" action="'.$u_db_input.'" enctype="multipart/form-data" accept-charset="utf-8"> <input type="hidden" name="event" value="album_update" /> <input type="hidden" name="aid" value="'.$album.'" />
'; create_form($data);
|
Thanks for thanking me in advance ?!
However this is a revised version of InspectorClueNo's idea since modifyalb.php does not use any templates yet, in any case thanks ClueNo.
rosbif, let us know if this helps.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
layingback Forum Admin


Offline Joined: Apr 19, 2004 Posts: 1040
|
Posted: Fri Jul 22, 2011 4:47 pm Post subject: Re: modifyalb.php problem |
|
Actually there is a template in rosbif's case - reDesign 3. But fixing in it in the code surely saves fixing in each and every template.
I guess we all need to apply this fix if we expect IE9 users?
So could either of you who explain what is going wrong here with IE9, please? (Or is it just a(nother) case of shuffling the code to avoid an unidentified PHP source code problem?)
TIA.
_________________ Pro_News: The complete module for Dragonfly - now available as version 3.3
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
|
|
| Back to top |
|
 |
rosbif 500+ Posts Club


Offline Joined: Jan 13, 2005 Posts: 593 Location: Paris, France
|
Posted: Sat Jul 23, 2011 8:54 am Post subject: Re: modifyalb.php problem |
|
Nano,
It doesn't make any difference. I thought perhaps I had to change the similar getlink at line 338 - so I edited this to:
| PHP: |
if ($db->sql_numrows($result)) { $u_modifyalb = getlink('&file=modifyalb,0,1'); $lb = '<form method="post" action="'.$u_modifyalb.'" enctype="multipart/form-data" accept-charset="utf-8"><input type="hidden" name="name" value="'.$module_name." />
|
This link works correctly (it's the change album link) with either the original getlink or the version above.
For the second button IE9 is still showing a link to ".com/'.getlink(".
The source shows (correctly)
| Code:: |
</tr>
<tr><form method="post" action="coppermine/db_input.html" enctype="multipart/form-data" accept-charset="utf-8">
|
so it just appears to be IE9 interpreting it incorrectly.
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) ChantillyExpat.com - Others-
|
|
| Back to top |
|
 |
|
|