форум vBSupport.ru > vBulletin > Вопрос — Ответ
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
Dismal
Простоузер
Default Как продублировать кнопку "управление вложениями?"
0

Всем привет!

Подскажите плз, как продублировать кнопку "Управление вложениями".
Только с текстом "Загрузить фото"



В шаблоне editpost только переменная $attachmentoption, как бы из нее выковырять кнопку?

Dismal добавил 10.05.2010 в 07:05
Короче добавил код в шаблоны.

PHP Code:
        <!-- upload photo --> 
<if 
condition="$show['member']"
             <
script type="text/javascript"
            <!-- 
            
document.write('<input type="button" id="manage_attachments_button" class="button" tabindex="1" style="font-weight:normal" value="Загрузить фото" title="$vbphrase[add_edit_files_attached]" onclick="vB_Attachments.open_window(\'newattachment.php?$session[sessionurl]$attachurl&amp;poststarttime=$poststarttime&amp;posthash=$posthash\', 480, 480, \'$postid\')" />'); 
            
//--> 
            
</script> 
            <noscript> 
            <a href="newattachment.php?$session[sessionurl]$attachurl&amp;poststarttime=$poststarttime&amp;posthash=$posthash" target="manageattach" title="$vbphrase[add_edit_files_attached]" tabindex="1"><strong>Загрузить фото</strong></a> 
            </noscript> 
</if> 
        <!-- / upload photo --> 
все работает

Last edited by Dismal : 05-10-2010 at 07:58 AM. Reason: Добавлено сообщение
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 03:39 PM.


Powered by vBulletin® Version 3.0.15
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...