1 samredman Mar 15, 2007 05:37
3 samredman Mar 15, 2007 12:44
Thanks, ¥åßßå. That displays exactly the information I needed. Excellent coding. It will enable me to make a great index page.
I have two further questions.
1. How can I get that to display properly as a list?
The way it shows now, there are breaks between entries, but only after each blog name, so that the next blog name appears on the same line as the description of the previous one. I would like to add a <br> after each blog description, but I can't figure out how to make that happen.
2. How can I make the list bulleted?
Sam
4 samredman Mar 15, 2007 13:07
Ok, I figured out my first question.. I just enclose the long description inside of
<p></p>.
That does the trick for that.
Now, how to make the list bulleted, that's the challenge.
5 yabba Mar 15, 2007 13:15
If you look slightly further up the file you have the parameters for the bloglist :
# this is what will start and end your blog links
if(!isset($blog_list_start)) $blog_list_start = '<ul>';
if(!isset($blog_list_end)) $blog_list_end = '</ul>';
# This is what will separate items in the list
if(!isset($blog_list_separator)) $blog_list_separator = '';
# this is what will separate your blog links
if(!isset($blog_item_start)) $blog_item_start = '<li>';
if(!isset($blog_item_end)) $blog_item_end = '</li>';
If you add a classname to the ul you can then use css to add in the bullets and margins
¥
6 samredman Mar 15, 2007 13:38
That sounds like a great solution... if I can get it over where I am using css then I'm home free (css I understand).
But, adding a classname to the ul, is beyond my current range of knowledge. I am now (after seeing the power of b2evo) going to study php, but I'm not there yet.
If you could show me how to add that classname to the ul I will be very grateful.
7 yabba Mar 15, 2007 13:39
if(!isset($blog_list_start)) $blog_list_start = '<ul class="a_funky_class">';
;)
¥
8 samredman Mar 15, 2007 13:48
Thanks... that does the trick!! I am marking this one [Solved] in the topic heading.
9 yabba Mar 15, 2007 13:48
Now you can remove the <p> tags and use css to add margins to the <li>'s ;)
¥
First off make a copy of _bloglist.php ( call it something funky like _bloglistplus.php )
Then find this bit and add the extra line :-
Finally, just include the file in your skine wherever you want it :-
Job done ;)
¥