Author Topic: textarea form  (Read 5657 times)

0 Members and 1 Guest are viewing this topic.

Offline poisonkit

  • Pre-Newbie
  • Posts: 1
    • View Profile
textarea form
« on: December 05, 2008, 07:32:46 AM »
помогите пожалуйста разобраться, хочу чтоб под картинкой было поле, где писалась полная ссылка картинки:
открываем в шаблоне details.html, вот под самой картинкой {image} хочется чтоб выводился ее путь, я вписал:
Code: [Select]
...
<div align="center">
{image}
Путь <input value={image}>
...
но это не верно  :( , подскажите пожалуйста как надо?  :oops:
получись вот так  :cry:


а очень хочется видеть вот так:

« Last Edit: December 05, 2008, 09:09:13 AM by poisonkit »

Offline denisnovikov

  • Test group
  • Full Member
  • *
  • Posts: 125
    • View Profile
Re: textarea form
« Reply #1 on: December 10, 2008, 04:27:33 PM »
Вторая картинка не грузится.

Добавь строчку в includes/functions.php, строка 426:
Code: [Select]
"image_path" => get_file_path($image_row['image_media_file'], "media", $image_row['cat_id'], 0, 1),
В шаблоне details.html смени на:
Code: [Select]
<div align="center">
{image}
Путь <input value="{image_path}">

Надо только придумать теперь как прикрутить имя сервера, попозже посмотрю.
check

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: textarea form
« Reply #2 on: December 10, 2008, 04:59:39 PM »
Hello and welcome to 4image forum (both of you ;))

[Mod] Display image codes on details page (image permalink)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)