Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 11-23-2012, 04:48 PM
Easy5s.net Easy5s.net is offline
 
Join Date: Jun 2011
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Anyway we can actually see the results of your plugin on a page?
This is MAIN SCRIPT and one plug-in https://vborg.vbsupport.ru/showpost....06&postcount=1

Code:
if (!$vbulletin->options['enable'])
{
	eval(standard_error(fetch_error('enable')));
}

if ($vbulletin->userinfo['userid']==0)
{
	print_no_permission();
}


$navbits[''] = 'Posting System';
$navbits = construct_navbits($navbits);
$navbar = render_navbar_template($navbits);
$templater = vB_Template::create('page_main');
	$templater->register_page_templates();
	$templater->register('navbar', $navbar);
	$templater->register('mytest', $mytest);
print_output($templater->render());
Reply With Quote
  #12  
Old 11-23-2012, 04:55 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your plugin shouldn't look like the one in the first post any longer after the changes.

I was wondering if we can see this actually working on your site.
Reply With Quote
  #13  
Old 11-23-2012, 05:03 PM
Easy5s.net Easy5s.net is offline
 
Join Date: Jun 2011
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Your plugin shouldn't look like the one in the first post any longer after the changes.

I was wondering if we can see this actually working on your site.
now I'm just working on localhost, no website. You can view video again
http://www.youtube.com/watch?v=sNtKvZ90Ews
Reply With Quote
  #14  
Old 11-23-2012, 05:12 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sometimes it's the obvious that will kill you.

Newthread editor is a form and you can't have a form inside of a form like you have now.

Just add the <div> sections without the form attributes.

Code:
<vb:if condition="$show['member'] AND $vboptions['enable']">
	<div>Select ThreadID To Post: 
		<select id="threadid" name="threadid" onChange="javascript:get(this.parentNode);">
<option value="0" selected="selected">0</option>
			{vb:raw mytest}
		</select>
	</div>
	<div id="threadid"></div>
</vb:if>
Reply With Quote
Благодарность от:
Easy5s.net
  #15  
Old 11-24-2012, 12:54 AM
Easy5s.net Easy5s.net is offline
 
Join Date: Jun 2011
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nhawk View Post
Sometimes it's the obvious that will kill you.

Newthread editor is a form and you can't have a form inside of a form like you have now.

Just add the <div> sections without the form attributes.

Code:
<vb:if condition="$show['member'] AND $vboptions['enable']">
	<div>Select ThreadID To Post: 
		<select id="threadid" name="threadid" onChange="javascript:get(this.parentNode);">
<option value="0" selected="selected">0</option>
			{vb:raw mytest}
		</select>
	</div>
	<div id="threadid"></div>
</vb:if>
But change with code above, i can't Select ThreadID To Post, because it is not show value.

In temp, line:
Code:
<form name="threadid" action="javascript:get(document.getElementById('threadid'));" id="threadid" method="POST">
error:
Code:
Parse error: syntax error, unexpected T_STRING in C:\server\htdocs\testvb4\includes\class_core.php(4633) : eval()'d code on line 82
(I have to leave it temporarily is no value to be free from defects)

--------------- Added [DATE]1353760275[/DATE] at [TIME]1353760275[/TIME] ---------------

pls help me fix

--------------- Added [DATE]1353771301[/DATE] at [TIME]1353771301[/TIME] ---------------

bump bump
Reply With Quote
  #16  
Old 11-24-2012, 05:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't help since I can't see the problem, sorry. I need to be able to view source code and such to see what is up.
Reply With Quote
  #17  
Old 11-25-2012, 01:50 AM
Easy5s.net Easy5s.net is offline
 
Join Date: Jun 2011
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I can't help since I can't see the problem, sorry. I need to be able to view source code and such to see what is up.
this is plugin and temp, pls view attach file.
Reply With Quote
  #18  
Old 11-25-2012, 01:56 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't actually have the <?php at the beginning of the plugin, right?

The code doesn't help me since I can't install it on my site - I have no table vcardposting so I get no results.
Reply With Quote
  #19  
Old 11-25-2012, 02:06 AM
Easy5s.net Easy5s.net is offline
 
Join Date: Jun 2011
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You don't actually have the <?php at the beginning of the plugin, right?

The code doesn't help me since I can't install it on my site - I have no table vcardposting so I get no results.
pls check again
Reply With Quote
  #20  
Old 11-25-2012, 01:17 PM
Easy5s.net Easy5s.net is offline
 
Join Date: Jun 2011
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Who can help me, pls
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04473 seconds
  • Memory Usage 2,263KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete