View Full Version : Use of tables in Dynamics?
LenBackus
05-06-2008, 08:07 AM
If you look at my HOME page, I'd like to put the listing of my articles that you see there into Dynamics pages.
www.LongRangeHunting.com
When I try that it looks weird. The top has a large vertical area that is blank and the brown strips are taller than they should be.
http://www.longrangehunting.com/content/articles-1/test-of-tables-79/
It will be a fantastic saver of time if I can get this to work.
Brian
05-06-2008, 02:03 PM
From what I can tell, it looks like you've created that as BB Code module. You'll need to change that to a template module instead and move your code to a template. BB code modules will always replace each new line with a <br /> tag, so every new line in your code is being converted and that's where the space is coming from.
LenBackus
05-06-2008, 02:06 PM
I didn't do a good job in phrasing my help request. The HOME page stuff you see is already in a template and it works. I am now trying to use the same concept using tables but placing this same code in a Dynamics page. It works in the HOME page template but no in the Dynamics ppage.
Brian
05-06-2008, 03:05 PM
It's still the same problem with the BB code parser adding <br /> tags. Is your "Test of tables" item on that page a custom module or is that an article that was submitted using HTML?
LenBackus
05-06-2008, 05:16 PM
Article with HTML.
Brian
05-07-2008, 02:23 PM
Ahhhh, I see the problem then. You can correct that either by upgrading to v1.0.2, or you can look in your dynamics/newentry.php file for this code:
// Parse pagetext
$entry['message_parsed'] = $bbcode_parser->parse(
$entry['message'],
'nonforum',
$vbulletin->options['allowsmilies'],
true,
$entry['pagetext_parsed'],
3,
($vba_options['dyna_cachedlife'] AND $entry['dateline'] >= (TIMENOW - ($vba_options['dyna_cachedlife'] * 86400)) ? true : false)
);
And replace with this:
$entry['message_parsed'] = $bbcode_parser->do_parse(
$entry['message'],
cat_opt('allow_entry_html', $entry['catid']),
$vbulletin->options['allowsmilies'],
cat_opt('allow_entry_bbcode', $entry['catid']),
cat_opt('allow_entry_bbimgcode', $entry['catid']),
(cat_opt('allow_entry_html', $entry['catid']) ? false : true),
($vba_options['dyna_cachedlife'] AND $entry['dateline'] >= (TIMENOW - ($vba_options['dyna_cachedlife'] * 86400)) ? true : false)
);
Note that you will need to edit and save the entry to update the cache and remove the extra <br /> tags the BB Code parser was adding.
LenBackus
05-07-2008, 03:37 PM
BINGO again. Thanks.
==============================
Edit, premature.
if I log out and come back to it un-logged in, it is still not fixed.
One more note, it works when I am logged in as Admin. If I log in as my pseudonym Registered User it still doens't work.
=============================
Later, new problem.
Now when I copy/paste a new item that had normal line breaks, the breaks are gone and all the sentences run together with no breaks.
If the answer is to upgrade as mentioned above, my concern is for the tons of edits you and I did to templates and files.???
LenBackus
05-12-2008, 08:33 AM
Ok, I found a way to present my stuff that doesn't require the use of tables. So now I just need help in fixing it back where it was at the beginning of this thread in order to fix the new problems mentioned in my 05-07-2008 02:37 PM post. Sorry for the hassle...first thing on a Monday :(
Brian
05-12-2008, 01:25 PM
Sorry, I think I saw your previous post before it was edited.
Would you mind just submitting a support ticket so I can take a look at those things for you?
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.