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

Reply
 
Thread Tools Display Modes
  #11  
Old 04-26-2013, 02:03 AM
AzzazelCyC AzzazelCyC is offline
 
Join Date: Apr 2013
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Basically, if you check over the HTML code, it is inserting the "row 1, cell 1" "row 1, cell 2" as data; what I am trying to accomplish here is that, using this statement:

[table (=head if needs title)] Data 1 | Data 2 [press enter to go to the next line or terminate this row]
Data 1.1 | Data 2.1 [press enter again]
Data 1.2 | Data 2.2[/ table]

Gets to print this:



With the data the user has entered, obviously; therefore, I don't see a need to use php whatsoever if this is some simple HTML code that should work, as, basically, the HTML code for the table above is:

Code:
<table border="1"> 
	<tr> 
		<td>Data 1</td> 
		<td>Data 2</td> 
	</tr> 
	<tr> 
		<td>Data 1.1</td> 
		<td>Data 2.1</td> 
	</tr> 
	<tr> 
		<td>Data 1.2</td> 
		<td>Data 2.2</td> 
	</tr> 
</table>
Reply With Quote
  #12  
Old 04-26-2013, 03:41 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not sure where our communication problem is. I do not understand how you can use your construct under vBulletins BBCODE system without some custom coding.

vBulletin default bbcode only accepts two parameters {param} and {option}. It is a simple two input system that is parsed.

I have not spent two much time pouring over the vbulletins BBCODE system, I do not use it all that much: since it is limited for safety. So if I am incorrect, please correct me, and refer me to an example using the method you are talking about.

In order to pass complex data I have always written back-end code and used the vB_bbcode_parser class. (may have spelled the class incorrectly).

----

Maybe what you are referring to is creating an HTML form. I see from this example you are using simple user prompts?
Reply With Quote
  #13  
Old 04-26-2013, 04:58 AM
AzzazelCyC AzzazelCyC is offline
 
Join Date: Apr 2013
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I guess this was more complicated than I thought.

I got a question though, taking what you said "bbcode accepts two parameters" how does the "common" or bult-in table tags work? it needs, obviously, to be built like on HTML by using table, tr and td, but this isn't taking just 2 parameters; I see like going up to php code and everything is a bit excessive just to be able to create simple table tags, I might be mistaken though, in which case, I don't see how it is worth putting so much work into this.
Reply With Quote
  #14  
Old 04-26-2013, 06:03 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AzzazelCyC View Post
Well, I guess this was more complicated than I thought.

I got a question though, taking what you said "bbcode accepts two parameters" how does the "common" or bult-in table tags work? it needs, obviously, to be built like on HTML by using table, tr and td, but this isn't taking just 2 parameters;
You're right the [TABLE] tag is not a standard BBCODE. A couple of files to look at.

/includes/class_bbcode.php
/packages/vbform/bbcodehelper/table.php.

'class_bbcpde.php'
class vB_BbCodeParser
method 'parseTableTag'
method 'build_parse_array'
function 'fetch_tag_list'
Then look at 'table.php' ...

It will help you gain a little insight.

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

It occurred to me last night that you might not know that if you double click on an image in the editor you can align it left or right, change the image size and target. It is not a complete fix for image alignment in posts, but it does help.

We have altered vbulletin so that it is adaptive especially for tablets. So I did some modifications how photos are shown in the posts, depending on the number of photos. Thus extending vbulletins image positioning. Essentially creating a auto-formatted output.
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 07:04 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.03815 seconds
  • Memory Usage 2,192KB
  • 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
  • (1)bbcode_code
  • (1)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
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete