Jump to content

blackthirteen

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by blackthirteen

  1. Here's my dilemma; I would like to select a portion of text in a text area, and then when clicking a button, the selected text should get surrounded by [ b ] and [/ b ] in the text area. Exactly like in the posting form of a forum. How could I do this?Is someone could help me please? I just need very simple working code snippet to help me understanding the concept.Thanks!

  2. Yeah, in my phpBB2 forum, there is a lot of sites called for example index_body.tpl which have for example this:<a href="{url}" target="_blank">{site}</a>and in some files under language, there's like this:$lang['url'] = 'http://www.andersmoen.hotserv.dk';$lang['site'] = 'Anders Moen';And the result would be:Anders MoenI think that might be it :)
    Hi Anders, I tried your example, but I didn't succeed.here's a zip with two files. Can you tell me what's wrong and maybe send another zipped file with the working formula?zipped file with template try
  3. I'm studying PHPBB code source to learn methodologies from them. Anyone is familiar with the whole code source of PHPBB?however, I'm stuck with a small detail;

    message_die(GENERAL_MESSAGE, $lang['No_forums']);

    What is the GENERAL_MESSAGE in the message_die function? In C++ I would say they are macros, but I can't tell with PHP. Besides this variable doesn't have any $ symbol. Anyone know where GENERAL_MESSAGE is defined in PHPBB?Thanks!

  4. How can I make a clickable button that instantly adds text in the text area?Let’s suppose I just want to create a button that write “hello world” straight away in the text area during a form, how do I do it the simplest way? What do I need to know?Anyone could write a small working code so I can have a good idea of the basic thing?

×
×
  • Create New...