WebSite X5Help Center

 
MD Kamrul Hassan
MD Kamrul Hassan
User

Use show box on custom script?  en

Автор: MD Kamrul Hassan
Просмотрено 1647, Подписчики 1, Размещенный 0  
Тэги: custom,image,showbox

greetings every one..

i like to use showbox on my cutom script to show image :( show i use following code: (link)

http://bit.ly/12fz43g

but it's now working it, just showing me the image in the curent tab/window :(

can any one help me out?

best regards

Размещено
4 Ответы - 2 Полезно - 1 Корректно
Der Zwoemti
Der Zwoemti
Moderator

use correct syntax!

$strOutput = $strOutput . '<td width="100" align="center"><a href="' . $strUInfo[5] . '" onclick="return x5engine.imShowBox.Show({ startIndex: 0, media:[{type: \\'img\\', url: \\'files/Info.png\\', width: 638, height: 194, text: \\'\\'}]}, 0, this);">Click To View</a></TD>' . "\r\n";

Читать больше
Размещено От Der Zwoemti
MD Kamrul Hassan
MD Kamrul Hassan
User
Автор

thaks a lot for your reply sir..

but this returns :

Parse error: syntax error, unexpected 'img' (T_STRING) in <myPhpFile> on line 33

hope you can help me :)

best regards

Читать больше
Размещено От MD Kamrul Hassan
Der Zwoemti
Der Zwoemti
Moderator

The error message says it clearly:

Parse error: syntax error

The code above is not that I have entered, which was changed by the forum. I can here in this fu ... forum does not help. I also can not see your whole code. I try it via screenshot ...

you have to understand what you write when you yourself want to install code

Читать больше
Размещено От Der Zwoemti
MD Kamrul Hassan
MD Kamrul Hassan
User
Автор

wow! sir, you rocks.. it's almost works..

yes,  you are right. i am not very good at php coding/syntax..

however it almost works.. but only issue is file (image) is variable so, i need to use the code (attached).. can you please update/fixed where is the issue :) please?

please note this part:

url: \'$strUInfo[5]\',

please sir, leave a reply asap

best regards

Читать больше
Размещено От MD Kamrul Hassan