Announcement

Collapse
No announcement yet.

Changing Thread Titles

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Chroder
    replied
    Ah, I see. Image click = edit thread title.

    Try this. An image with an onclick that calls the actuak ondblclick event from the table cell Edit the image, of course. (This is in the threadbit template).

    HTML Code:
    <if condition="$show['inlinemod']"><img class="inlineimg" src="$stylevar[imgdir_misc]/moderated_small.gif" alt="" onclick="if(obj=fetch_object('td_title_$thread[realthreadid]'))obj.ondblclick()" /></if>
    I tried it on localhost with FF1.5b2 and IE6, both worked. Not sure about other browsers though -- but it might give you a head start. If you need more help, try posting on vBorg.

    Leave a comment:


  • ProperMethodz
    replied
    Yeah... I didn't really explain that well.

    OK. I would like a link which allows you to edit the text there. If you have vB 3.5 you can actively edit that from the site. But how the active editing is "activated" which allows you to type is hard to find. I'd like to know how the code works so that I can possibly create an image which would link to that capability. Currently it is not so easy to do. It is something which happens by mistake. I'd like to know how it operates and hopefully be able to write the script or have help from someone who would like to help me with this.

    I'm not a coder. I'm barely an admin. It's something I'd like to learn to do and now I see something in a site which I feel I have an idea to make a mini hack for to make my life easier.
    Last edited by ProperMethodz; Sat 8 Oct '05, 12:14am.

    Leave a comment:


  • Chroder
    replied
    An image where? Inside the text box?

    There is no way to add it easily (ie. via a plugin or template system) as it is done entirely with Javascript. If you are fluent with JS, then try looking into clientscript/vbulletin_ajax_threadslist.js in the vB_AJAX_TitleEdit.edit() method (around line 155).

    You will have to ask on vBulletin.org for exact details on how to achieve what you want.

    Leave a comment:


  • ProperMethodz
    started a topic Changing Thread Titles

    Changing Thread Titles

    Hello...

    Just installed 3.5 last weekend.

    How is the script linked to so I can do this:



    I would like to place an image there.

Related Topics

Collapse

Working...
X