Sebastian Corneliu Vîrlan

less info
28 reputation
6
bio website
location
age
visits member for 1 year, 3 months
seen May 14 '13 at 18:58

Feb
5
awarded  Popular Question
May
13
revised Get page type to display content
added 6 characters in body
May
13
awarded  Editor
May
13
comment Get page type to display content
I updated the post, can you see if you understand?
May
13
revised Get page type to display content
added 135 characters in body
May
12
asked Get page type to display content
May
3
awarded  Tumbleweed
Apr
29
asked get_option include <br /> in my adsense
Apr
26
asked Get image URL from media library in input
Apr
19
comment Pass PHP variable to javascript
Thank you, the idea was to pass variables without using a js file. Something like pass_var(js_var_name, php_array) and that is all.
Apr
18
awarded  Commentator
Apr
18
comment Pass PHP variable to javascript
I dont want to use php and js code in same line, in wordpress are some automatically functions ...
Apr
18
comment Pass PHP variable to javascript
I made the changes, is working but I`m sure the code is not optim, I think is a mess there, is against to this site rules if I ask someone in private to look at my code? Is not a big deal and if you want I pay.
Apr
18
comment Pass PHP variable to javascript
My theme have 2 files: custom-functions.php and theme_functions.php, in custom I have something like: function my_deregister_scripts() { wp_deregister_script( 'jquery' ); wp_enqueue_script('jquery'... wp_enqueue_script('jquery-ui'... wp_enqueue_script('jquery-superfish' ... wp_enqueue_script('jquery-slider' And in theme functions: function mytheme_enqueue_scripts(){ wp_enqueue_script( 'jquery' ); } add_action( 'wp_enqueue_scripts', 'mytheme_enqueue_scripts'); Where should I register my php variables?
Apr
18
comment Pass PHP variable to javascript
Sorry for missunderstandings, I want to make the code clean, php to php file and js to js file as Johannes Pille said.
Apr
18
comment Pass PHP variable to javascript
This is my page: funny-videoro.com/the-dark-knight-rises-trailer-oficial, after you press on the player and login, at the bottom of player is a button, when you press to off should delete the facebook post. I will try to make a js file for all functions. Hope will work.
Apr
18
awarded  Scholar
Apr
18
accepted Pass PHP variable to javascript
Apr
18
comment Pass PHP variable to javascript
So for any small javascript action I should create a file? If you are avaible can you add on skype: sebyku17 ?
Apr
18
comment Pass PHP variable to javascript
No, this is the page where I am working: funny-videoro.com/the-dark-knight-rises-trailer-oficial . If you want you can login to the website. Then you will see a jquery ios style button. When I slide to off I must delete with fb api a post. The post id is in the db.