PDA

View Full Version : not change when edit plugin..



lordmen99
03-25-2010, 11:59 AM
When i modify some plugin such as submit plugin, why not change in the form. Coz, i add some field. My sites used hotaru 1.1.2

ties
03-25-2010, 12:31 PM
what did you change? where did you change it? what is your goal by changing it?

You can read in here how you can make it easy for us to help you:
Before Posting, PLEASE READ THIS FIRST!!! (http://hotarucms.org/showthread.php?606-Before-Posting-PLEASE-READ-THIS...)

i know its alot but in the end it will save everyone a lot of time.
bye

lordmen99
03-25-2010, 03:35 PM
i am edit submit2.php in plugin "submit". Add some preview with jquery. but not shown. Can be check at http://beta.cekberita.com

ties
03-25-2010, 03:41 PM
EDIT: see post below
do you have a submit2.php in your theme folder? if so: you should edit that one. if not: the page doesnt load any additional javascript, so the preview doesn't show
can you please add all the info we need, view here (http://hotarucms.org/showthread.php?606-Before-Posting-PLEASE-READ-THIS...)

ties
03-25-2010, 03:48 PM
sry, my bad it is loaded, it triggers onkeypress you might want to add update to the $(document).ready(function(){})
like this

$(document).ready(function(){
$('#preview').hide();
$("#post_title").keypress(update);
$("#post_content").keypress(update);
update();
})

lordmen99
03-25-2010, 03:48 PM
i have and attach here,

1.Hotaru 1.1.2

2. All Plugin-pack

mabujo
03-25-2010, 03:54 PM
I think this relates to this from yesterday (http://hotarucms.org/showthread.php?596-Submit-With-Preview-like-DIGG) but I can't work out what you are trying to do now.

ties
03-25-2010, 03:59 PM
me neither, lordman can you use google translator and then tell in fine detail what you want, how you want it and what the problem is from reaching your goal

ties
03-25-2010, 04:02 PM
maybe we should just do a preview plugin, work it all out make it work with all the extra fields. like submit 3 page on the submit 2 page with ajax
@mabujo: i read the thread of yesterday but its just as much jibberish as this one to me, its just hard to understand for me

edit
i think the best option is
1. set all the retrieved fields
2. do a <?php $h->displayTemplate('sb_post', 'sb_base') ?> to get the full picture
3. wrap it in a preview box
4. add some js to fill in all the gaps when changing fields

lordmen99
03-25-2010, 04:16 PM
the problem is in the themes, i think. Coz, when i change for example like put <table> in submit2.php can't be shown after upload and replace it.

ties
03-25-2010, 08:14 PM
i dont understand what you mean by:

... when i change for example like put <table> in submit2.php can't be shown after upload and replace it.

Nick
03-26-2010, 01:25 AM
@lordmen99, you said you are editing submit2.php in the Submit plugin, but you haven't answered ties earlier question: "Do you have submit2.php in your theme folder?". Because if you do have submit2.php in your theme folder, it will override submit2.php in the Submit plugin, which explains why your changes are not showing.

So, to be clear:

1. What theme are you using?
2. Do you have submit2.php in that theme?