Hello,
i wanted to add a line for the BB-Code like in Chevereto 1.9 , but something is wrong in my code.....
I hope you can help me.
I edited in the viewer.php
after:
i added:
after it, i edited the chevereto_lang.php
after:
i added:
in the template.functionc.php
after:
i added:
I think i've forgotten something.... but don't know what
When i update my files with this new code, the script is just showing the directlink of an image and the headline: BB-Code, views, html, bbcode+thumb etc. aren't displayed.
Hope you can help me!
Regards
i wanted to add a line for the BB-Code like in Chevereto 1.9 , but something is wrong in my code.....
I hope you can help me.
I edited in the viewer.php
after:
Code:
<div class="input-item"><label for="direct-link"><?php show_lang_txt('txt_show_directly_link'); ?>:</label> <input type="text" id="direct-link" value="<?php show_img_url(); ?>" /></div>
i added:
Code:
<div class="input-item"><label for="bbcode"><?php show_lang_txt('txt_show_bbcode_link'); ?>:</label> <input type="text" id="bbcode-link" value="<?php show_img_bbcode(); ?>" /></div>
after it, i edited the chevereto_lang.php
after:
Code:
$lang['txt_show_viewer_link'] = 'Viewer';
i added:
Code:
$lang['txt_show_bbcode_link'] = 'BB-Code';
in the template.functionc.php
after:
Code:
/**
* show_img_url
* echoes the img url
*/
function show_img_url() {
echo get_img_url();
}
i added:
Code:
/**
* show_img_bb-code
* echoes the img bb-cide
*/
function show_img_bbcode() {
echo get_img_bbcode();
}
I think i've forgotten something.... but don't know what
When i update my files with this new code, the script is just showing the directlink of an image and the headline: BB-Code, views, html, bbcode+thumb etc. aren't displayed.
Hope you can help me!
Regards