blackthirteen
-
Posts
13 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by blackthirteen
-
-
hey thanks jesh! It doesn't look too difficult seeing it this way
-
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!
-
Thanks guys, I understand this subject now. I've even created my own template now as a test.
-
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 tryYeah, 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 -
.tplI think it have something to do with "templates" but I didn't find any websites explaining it.
-
yeah "main" problably insert code from another scritp.but what's the { } syntax? where do we learn about them?
-
I've found this code;
<div id="main">{main}</div>
what's the {main} part?I tried to search on w3school but I didn't find to which discipline it belongs. I would like to learn more about it.
-
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!
-
hey, it doesn't work to embed javascript inside php? Example;<?phpecho '<script type="text/javascript">';echo '<br>';echo 'document.write("Hello World!");';echo '</script>';?>
-
thanks!sorry if I posted in the wrong section, I wasn't sure if PHP was responsible of this stuff or not.
-
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?
inserting code around select text in textarea
in JavaScript
Posted
hey when testing javascript on my computer, I always get this annoying message;see this imagehow can I desactivate it forever?