The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom Page parsing List BB's problem
Have a difficult time parsing List's using the vB_BbCodeParser function
PHP Code:
How do I fix this? |
#2
|
|||
|
|||
I tried this test program and it seems to work:
Code:
<?php require './global.php'; require_once('includes/class_bbcode.php'); $parser = new vB_BbCodeParser($vbulletin, fetch_tag_list()); $customPreText= '[list][*]Testing[*]Testing List 2[*][color=#ff0000][b][u]Testing Color[/u][/b][/color][/list][center][b][color=#333399]How to Join[/color][/b][/center]'; $customText = $parser->parse($customPreText); echo $customText; What do you do with $customText after it's set? |
#3
|
|||
|
|||
I don't understand why I'm having such troubles then
--------------- Added [DATE]1347281300[/DATE] at [TIME]1347281300[/TIME] --------------- I register it PHP Code:
PHP Code:
ugh. Maybe its working, but I just don't get the small bulletins that are suppose to appear.
It formats them to drop down over one another, but no bulletins. |
#4
|
|||
|
|||
Have you looked to see what the html looks like?
|
#5
|
|||
|
|||
Code:
<li style="">Testing</li><li style="">Testing List 2</li><li style=""><font color="#ff0000"><b><u>Testing Color</u></b></font></li></ul><div style="text-align: center;"><b><font color="#333399">How to Join</font></b> |
#6
|
|||
|
|||
Does it have <ul>...</ul> around it?
I'm thinking it's something to do with CSS (and I'm not really a CSS person). I was playing around with FireBug (it lets you see the CSS and change it to see what happens), and I notice there's a "list-style: disc outside" that comes from the vbulletin.css template, and if I remove it I get no bullets. |
#7
|
||||
|
||||
Yes i'm pretty sure it's a css problem, maybe you have this code somewhere?
Code:
list-style-type: none |
#8
|
|||
|
|||
nvm... I'll have to wait till I go home to try somethings with the CSS
|
#9
|
||||
|
||||
Oh i just remembered that vbulletin does it by default you can try to wrap you variable (on the template with a div like this
HTML Code:
<div id="test">{vb:raw custommsg}</div> Code:
#test { list-style-type: circle; } |
#10
|
|||
|
|||
Thing is, it's not evening indenting to the right or putting the bulletin.
I see nothing in the CSS's using firebug that has list-style-type: none. Only if I dig deep into the HTML (that I believe does not effect it) do I see that command. I also tired Scanu's css solution to no prevail. Though all that would do is change that to a bulletin, which didn't work. Even when I tried to force it on firebug. ------------------------------------------------------------------------- Something in the {vb:raw headinclude} is preventing me from using these bulletins. When removed it works as intended. But of course it messes up my display. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|