Hi,
The only post I could find about this topic, the poor chap had to fix it himself and his explanation was not very clear :)
It is a design flaw, so we should help each other find a quick fix..
When you click on 'View Original' in the PHOTO pages, the photo opens up in the same window, 9 out of 10 people would close the window and OOOPS leave the site, rather than use the BACK button to return to the album..
So, can anybody tell me WHERE the code for that button is hiding?? so we can add a target="_blank" at least or a pop-up script with right-click dissabled if we want to go FANCY :)
Calling all players!!
Regards, Ken |
Hello!
Try to apply this query:
UPDATE `sys_objects_actions` SET `Script` = 'window.open(''{moduleUrl}get_image/original/{fileKey}.{fileExt}'', ''_blank'')' WHERE `Caption` ='_bx_photos_action_view_original' LIMIT 1 ;
Regard
|
Hi, LeonidS I am sorry, I tried to locate this in MANAGE LANGUAGES but came up blank.. Where would I do this? do you have a document name??
Regards, Ken
|
He wants you to apply the query to your database I think. http://towtalk.net ... Hosted by Zarconia.net! |
Leonid, I applied the script to my database successfully, cleared my server cache as well as my browser cache and clicking the 'view original' button still opens the image in the same window. I agree with the threads author this needs to be fixed. http://towtalk.net ... Hosted by Zarconia.net! |
files to edit /templates/base/scripts/ BxBaseFunctions.php
around line 91 find this code
$sScriptActi alt= ($sScriptAction=='' && $aRow['Url']!='') ? " alt=\"window.open ('{$sSiteUrl}{$aRow['Url']}','_self');\" " : $sScriptAction; change to
$sScriptActi alt= ($sScriptAction=='' && $aRow['Url']!='') ? " alt=\"window.open ('{$sSiteUrl}{$aRow['Url']}','_blank');\" " : $sScriptAction;
EDIT: what's up with this forum it strips out codes wtf..... |
files to edit /templates/base/scripts/ BxBaseFunctions.php
around line 91 find this code
$sScriptActi alt= ($sScriptAction=='' && $aRow['Url']!='') ? " alt=\"window.open ('{$sSiteUrl}{$aRow['Url']}','_self');\" " : $sScriptAction; change to
$sScriptActi alt= ($sScriptAction=='' && $aRow['Url']!='') ? " alt=\"window.open ('{$sSiteUrl}{$aRow['Url']}','_blank');\" " : $sScriptAction;
EDIT: what's up with this forum it strips out codes wtf.....
LOL! You just now noticing that?
Thanks for the reply. I knew there had to be another step
http://towtalk.net ... Hosted by Zarconia.net! |
Just so I have this straight. We need to run the update on the database as well as make the change to the bxbasefunction.php file?
I did both and now it works perfectly. I just want to make sure both steps are required...
http://towtalk.net ... Hosted by Zarconia.net! |
Having ran Leonid's update:
UPDATE `sys_objects_actions` SET `Script` = 'window.open(''{moduleUrl}get_image/original/{fileKey}.{fileExt}'',
''_blank'')' WHERE `Caption` ='_bx_photos_action_view_original' LIMIT 1 ;
I am getting this error:
Query:
UPDATE `sys_objects_actions` SET `Script` = \'window.open(\'\'{moduleUrl}get_image/original/{fileKey}.{fileExt}\'\', \'\'_blank\'\')\' WHERE `Caption` =\'_bx_photos_action_view_original\' LIMIT 1 ;
Mysql error: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right
syntax to use near
'\'window.open(\'\'{moduleUrl}get_image/original/{fileKey}.{fileExt}\'\',
\'\'_bl' at line 1
How do I fix this?
Stuart
Hello!
Try to apply this query:
UPDATE `sys_objects_actions` SET `Script` = 'window.open(''{moduleUrl}get_image/original/{fileKey}.{fileExt}'', ''_blank'')' WHERE `Caption` ='_bx_photos_action_view_original' LIMIT 1 ;
Regard
There are none so blind as those that will not see. |
Just so I have this straight. We need to run the update on the database as well as make the change to the bxbasefunction.php file?
I did both and now it works perfectly. I just want to make sure both steps are required...
NO UPDATE NEEDED ? just make that change in bxbasefunction.php change _self to _blank
|
Hi, Guys
Thanks for the work, I knew it would be a 'simple' fix, but I was just unable to find where.. Thanks again!! |