![]() |
Ok don't give me a bunch of crap if I'm posting this wrong, this is my first little contribution to VB.
In the short time I've been playing around with VB, I've already become annoyed at editing templates. I added two little javascript buttons to the page to make things easier. Copy - click the button to highlight all the text in the textarea and copy it to the clipboard in one step Preview - opens a new window displaying the html from the message area. It doesn't replace the variables with any value, but does gives you an idea of layout and color changes for VB v2.0.1 updated attachment below |
Nice hack. I try it tomorrow :)
and welcome aboard Mutt ;) |
doesnt work
and yes i did change the php3 to php ;) |
what didn't work?
maybe I left something out |
I edited the directions so try it again
the forum seems to be spliting the word javascript up into 2 words java and script with a space between them. make sure you remove that space |
Hey there, I was doing alot of template editing today and needed an easy way to search an individual template. It got so bad that I finally added one.
new feature Find - adds a small input field and a form button so you can search the textarea. very handy While editing the directions I realized that I left out a step before. This attachment has complete instructions and all 3 features. I also moved the buttons for esthetic reasons. |
heres a screen shot
|
great job! looks usefull. i'll try it right now
|
Thanks Mutt , this will help out alot. I would recommend this to anyone. The only problem I see sometimes is the way the preview turns out, not enough to matter though.
Great Job. |
Quote:
|
In your admin control panel under templates. This adds copy,preview, and find buttons to the box you view when looking at your templates.
You select copy it copies all in the template you are looking at for clipboard pasting, Select find and you can search the template you are viewing fot strings. Select preview and you can preview the template. |
Damn!!! This is useful ;) ;)
|
fantastic hack! That bloody 'find' is brilliant
|
wheres the attachment for this hack went to ?
|
woooowwwwwwwwwww!!! GREAT HACK! :D
|
Quote:
|
what can I say Mutt
you were great with UBB and I think you will be one of the greatest with VB very very well done :) |
Class hack m8, less than 30 secs to install.
I could have done with this 2 days ago lol. :) |
can you maybe put it so in a post that you very good can see what you exactly must change??
in the attachment everything is uhh... how can i say this in english... in dutch it is: alles staat naast elkaar van wat je moet doen! can you maybe do it so: templates to edit: and then bv: find in the template ..... and place after it .... tnx! Killer |
can maybe someone tell it me how to install!
the file is not so clear! can it maybe like this thread: http://vbulletin.com/forum/showthrea...threadid=22148 tnx Johnny |
ok here's another post from me! :(
i don't know why the people here don't tell me the answer on my questions! In the attachtment Quote:
pleazz tell it me! this is a great hack and i want it too!!! tnx Johnny |
Ahhhh my find button dont work, damn!!!! what can be wrong??Nothing happends at all. it just clicks,
any suggestions |
The find feature doesn't work for me either.. there must be some wrong coding in the java cause everytime I push the find button I get the Error on Page message in the status bar of IE.
Ok.. after I posted this I went back to the templates to try it again and found out this: The Find button will ONLY work until you hit the preview button. Once the preview button loads up the new page.. the Find will NO longer work.. simply refresh the template page and the find will work again.. however your code changes will be lost. It still works after you press copy.. but for some reason it must not like the popup feature of the preview. |
Just wanted everyone to know that this works in 2.03 and I fixed the javascript bug that kills find after using the preview. the only changes were where $ButtonExtra is defined.
I'd like to add an undo button. Alt+U will undo changes to the text area and I need a way to make a button that simulates pressing Alt+U. Any ideas? If you know of anything where you can use javascript to make a link simulate a key press, let me know. thanx! |
Tremendous hack!
Very useful, easy to install, simply great! :D |
Excellent work, Mutt! Can't beat the ease of installation.
|
Can anyone make something like this for 2.0.3?
|
I am running 2.0.3 runs fine for me.
|
Did you follow the same instructions or did you have to modify different files?
|
i followed same instructions in the opening post of this thread
|
thanks I look forward to installing. the reason i'm being so annoying is because I wasi nstalling hack before and kept fouling up my forum. now I use all 2.0.3 hacks and they seem to work :D go figure.
|
Can this hack work with this one? [RELEASE] Template Control Panel for 2.0
|
don't know never installed that one
|
1) the instructions, seem to say..."edit templete.php right at the begining of the script just after function displayHTML() "
now, I dont know where the function display HTML went, but its not in any template.php file i have. Could this be clarified>? 2) the only function that is shown somewhere even resembling the beginning, is Start search area, which is a quarter of the way down. I might add, there is nothing said about display HTML there either...just this... PHP Code:
The instuctions send mixed signals. Is it function display HTML, is it after the function, we add the code, is it after functionhtml we add code? Is the php file, template.php, which is found in the admin folder?? Either way, im not finding this elusive display HTML code, and it is on 2.03... any help would be greatly appreciated. |
Quote:
|
Quote:
One last question, and than im off to install this bad boy. exactly where do you start with the hacked code to add below the error 7? this? PHP Code:
|
Quote:
$ButtonExtra=" I assume that was right because it works. It's really a nice tool to have, too. |
one thing i was going to ask about, was the preview feature. will this actually show a HTML preview of the template>?
It looks to me like a very usefull hack. The documentation is a little loose on the edges, but other than that, it sounds like he did one hell of a job on it. |
Here is the problem I add that long code, under the error 7,
PHP Code:
Now i am getting a parse error, on line three, which is the code under the error 7. Any hints? This documentation needs work. |
I had the same problem the anser is in the error. I think its like template.php and you'll see the rroer infront of <?php or something. I got the same thing I installed the hack by the instructions..goodluck that fix worked for me
|
All times are GMT. The time now is 02:41 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|