مدیر کل بازنشسته سایت علی مددی 1689 ارسال شده در 6 مرداد، ۱۳۹۳ مدیر کل بازنشسته سایت اشتراک گذاری ارسال شده در 6 مرداد، ۱۳۹۳ سلام با این روش می توانید برای پیوست هایی که در داخل پست ها قرار می دهید شکل و شمایلی بهتر اعمال کنید 1- از آدرس زیر از قسمت تمپلت ، بیت Show_attachments باز کنید. Look & Feel >> Manage Skin Sets & Templates > > انتخاب قالب >> Topic View >> Show_attachments کد های زیر را با کدهای فعلی جایگزین کنید. <div class="attachment-box"> <div class="attachment-url"> <a href="{parse url="app=core&module=attach§ion=attach&attach_id={$data['attach_id']}" base="current"}" title="{$this->lang->words['attach_dl']}"><img src="{$this->settings['public_dir']}<if test="hasmime:|:$data['mime_image']">{$data['mime_image']}<else />style_extra/mime_types/unknown.gif</if>" alt="{$this->lang->words['attached_file']}" /></a> <a href="{parse url="app=core&module=attach§ion=attach&attach_id={$data['attach_id']}" base="current"}" title="{$this->lang->words['attach_dl']}"><strong>{$data['attach_file']}</strong></a> </div> <span class="attachment-button"> <a href="{parse url="app=core&module=attach§ion=attach&attach_id={$data['attach_id']}" base="current"}" title="{$this->lang->words['attach_dl']}">{$this->lang->words['attach_dl']}</a> </span> <div class="attachment-meta"> <strong>{$this->lang->words['attach_size']}</strong> {$data['file_size']} <strong>{$this->lang->words['attach_ahits']}</strong> {$data['attach_hits']} </div> </div> 2- در قسمت استایل (Css) کدهای زیر را به انتهای کدهای ipb_styles اضافه کنید (یا اینکه یدونه استایل جدید Add CSS File اضافه کنید) #attach_wrap li.attachment { display: block; } .attachment-box { margin: 0 auto; max-width: 300px; border: 4px solid #9acfea; background: #fff; text-align: center; } .attachment-button a { display: inline-block; margin: 5px 0; padding: 4px; border: 1px solid #9acfea; border-radius: 2px; background-color: #d9edf7; background-image: -webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%); background-image: linear-gradient(to bottom,#d9edf7 0,#b9def0 100%); color: #31708f; text-transform: uppercase; filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0); } .attachment-button a:hover { background-color: #b9def0; background-image: -webkit-linear-gradient(top,#b9def0 0,#d9edf7 100%); background-image: linear-gradient(to bottom,#b9def0 0,#d9edf7 100%); } .attachment-url { padding: 5px 0; background: #d9edf7; } .attachment-meta { padding: 5px 0; background: #d9edf7; color: #3F4249; font-size: 11px; } موفق باشید و سربلند.... لینک ارسال به اشتراک گذاری در سایت های دیگر تنظیمات بیشتر اشتراک گذاری ...
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.