boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

B2Links - A Link Manager for B2
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 9, 10, 11  Next
 
Post new topic   Reply to topic    boardom Forum Index -> Hacks
View previous topic :: View next topic  
Author Message
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Fri Jan 17, 2003 10:58 pm    Post subject: Reply with quote

Hmmm...


It looks like you have to
Code:

include_once("$b2inc/b2template.functions.php");

just before the b2vars.php line.

You must have $use_smartquotes turned on in b2config.php. I don't, which is why I never spotted that.

Hope this helps,
Mike
_________________
Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't."
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
mostly



Joined: 16 Jan 2003
Posts: 7

PostPosted: Sat Jan 18, 2003 10:06 am    Post subject: Reply with quote

i've gotten the link manager installed, but when i try to add a new category, i get this error:

"Couldn't add category categoryname"

any ideas?

thanks!
Back to top
View user's profile Send private message
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Sat Jan 18, 2003 6:27 pm    Post subject: Reply with quote

See this post earlier in this topic
http://tidakada.com/board/viewtopic.php?t=1262&postdays=0&postorder=asc&start=59

Mike
_________________
Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't."
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Mon Jan 20, 2003 3:05 am    Post subject: New Version of B2 Link Manager Reply with quote

Folks,
I've just released version 1.1 of my B2 Link Manager.
This update incorporates the recent bug fixes discussed on this forum, and
contributions from Loyd and Fullo.

See the B2 Link Manager home page for download and details.

Loyd, Fullo, I've made minor layout/structural changes to both your contributions. D/load the files and see what you think.

As usual, comments, bug fixes, etc. to this forum.

Mike
_________________
Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't."


Last edited by mikelittle on Tue Jan 21, 2003 11:07 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
SmackDaddy



Joined: 21 Jan 2003
Posts: 3

PostPosted: Tue Jan 21, 2003 2:34 pm    Post subject: Reply with quote

Great Mod/Hack!!! I am a new B2 blogger and have "successfully" installed this hack.....but how do I control the look of the text?

http://www.familytreasures.us/

The Link Manager links are a different size and font than the other links in that column......how do I adjust this?

The Categories are: "General", "Family Sites" and "Home and Garden" -- and the description text for the one link is as large as the category text. Arg!

Thanks in advance for your help.
Back to top
View user's profile Send private message Visit poster's website AIM Address
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Tue Jan 21, 2003 10:49 pm    Post subject: Reply with quote

Hi SmackDaddy,
Thanks for you comments. I'm glad you like it.

You could specify the font style in your style sheet.
In layout2b.css there is a style
Code:

#menu a {
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 10px;
}

You could add font attributes to this style.

Alternatively, in the call to get_links you can specify text/html to go before the link, after the description, and between the link and description (in that order).

So, for example
[php:1:ed702c9a6a]
<?php get_links(1, '<span class="myLinkClass">', '</span><br />','</span> <span class="myDescriptionClass">'); ?>
[/php:1:ed702c9a6a]

Will give you
Code:

<span class="myLinkClass"><a href="someurl" title="description">the link text</a></span> <span class="myDescriptionClass">the description</span<br />

for each link. You just need to define those classes in your style sheet.

The first option is the 'more correct' on. Span elements are frowned upon
Sad

Hope this helps,
Mike
_________________
Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't."
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
SmackDaddy



Joined: 21 Jan 2003
Posts: 3

PostPosted: Wed Jan 22, 2003 3:26 am    Post subject: Reply with quote

I adjusted the font size to look like the following:

Code:

#menu a {
    font-size: 8px; margin: 0px; padding-left: 10px; padding-right: 0px;
    padding-top: 0px; padding-bottom: 0px
}


And the links change, but not the "Category title" text or the following "description" text (text after the link). I changed the #menu H4 font size in layoutb2.css, but that had no effect on it.

I am learning my way around CSS, but where are your text getting their attributes if the "#menu a" attribute only affects the link?

Thanks in advance.
Back to top
View user's profile Send private message Visit poster's website AIM Address
SmackDaddy



Joined: 21 Jan 2003
Posts: 3

PostPosted: Wed Jan 22, 2003 11:35 am    Post subject: Reply with quote

I ended up simply removing the link description text for the time being.....pain in the butt where you are just learning CSS.......

But if someone knows the answer to this....please let me know. I don't want to have to do the SPAN thing Mike talks about unless I absolutely have to.
Back to top
View user's profile Send private message Visit poster's website AIM Address
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Wed Jan 22, 2003 11:19 pm    Post subject: Reply with quote

Hi SmackDaddy,
What you need to do is specify a style for text in the stylesheet under #menu.

I notice you have one (font-size:8px;). This will be the default style unless a more selective style (like you have for #menu h4) overides it.

So the place to designate the style for the link descriptions is in #menu.

Note: you also have
body>#menu {width:150px; font-size:8px; font-style:italic}
which on IE (5.0) doesn't take effect (IE has a parsing bug), but which on Mozilla takes effect and makes everything in your side bar italic. I'm not sure that is what you intended.

If you wanted to put some non-link related text in the side bar, then another approach would be to define a new class for the links.
for example:
Code:

.linksection {
 color: red;
}
.linksection>h4 {
 color: green;.
}
.linksection>a {
 colour: blue;
}


You would have your links in a div like so:
[php:1:fe20505018]
some other text
<div class="linksection">
<h4>link category</h4>
some link related text
<?php get_links(1); ?>
</div>
some other text
[/php:1:fe20505018]

This would give you "some other text" in your default (for #menu) style, the headings in green, the links in blue, and "some link related text" and the descriptions in red.

I hope this makes sense.

Another thing. You didn't need to remove the link descriptions, the 7th parameter to get_links() hides the descriptions without you having to delete them from linkmanager.

Hope this helps,
Mike
_________________
Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't."
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
activemx



Joined: 19 Jul 2002
Posts: 5

PostPosted: Tue Jan 28, 2003 1:08 am    Post subject: Reply with quote

i installed it but on my template it gives me this error

Couldn't query the db for categories:No Database Selected
_________________
Gwen Stefani Forever! - No Doubt Fan Site!
Back to top
View user's profile Send private message Visit poster's website
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Tue Jan 28, 2003 1:18 am    Post subject: Reply with quote

Hi Activemx
Have you included b2links.php after the normal includes? Like say, after <?php comments_popup_script(400,620) ?> in the html head section.

Mike
_________________
Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't."
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
activemx



Joined: 19 Jul 2002
Posts: 5

PostPosted: Tue Jan 28, 2003 1:43 am    Post subject: Reply with quote

nope.. i just have the template file in the same directory and i am just including b2links.php
_________________
Gwen Stefani Forever! - No Doubt Fan Site!
Back to top
View user's profile Send private message Visit poster's website
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Tue Jan 28, 2003 1:52 am    Post subject: Reply with quote

Sorry, I meant to say that you should include it after the normal includes.

When you say you have it on your template file, is that the one which shows your blog? If so, as long as you include b2links.php after you include blog.header.php then it should work.
_________________
Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't."
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
wteening



Joined: 12 Jul 2002
Posts: 71

PostPosted: Wed Jan 29, 2003 11:11 am    Post subject: Reply with quote

Heya Mike,

I get a 'Couldn't execute query.You have an error in your SQL syntax near 'ORDER BY link_id' at line 1' error when showing ALL links in the link manager. This doesn't happen when selecting any other category.

Any idea?
Back to top
View user's profile Send private message Visit poster's website
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Wed Jan 29, 2003 4:58 pm    Post subject: Reply with quote

Hi wteening,

on line 431 of b2linkmanager.php there is a comented out line
//echo "$sql";
Could you please uncomment that line
//echo "$sql";
try the page again, and post the output of the page which includes the SQL and the error message.

Mike
_________________
Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't."
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Hacks All times are GMT + 1 Hour
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 9, 10, 11  Next
Page 6 of 11

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group