Recent Topics

1 Jan 20, 2005 12:59    

Hi everyone,

I've nearly finished tweaking my <a href="http://www.maryams.net/dervish">site</a>, but I would like to know how to remove the permanent links (accompanied by icon_minipost.gif) that sit next to each blog entry in my linkblog. I've searched for the appropriate reference in _main.php and _linkblog.php but to no avail. Can any brainy b2evo-er help me?

2 Jan 21, 2005 00:23

Hmmm, is anyone out there or do I ask questions that are just too hard?

3 Jan 21, 2005 00:56

ummyasmin wrote:

... I've searched for the appropriate reference in _main.php and _linkblog.php but to no avail ...

You checked out those files and didn't find where the image is called? That's odd... It's in there. Here's a hint: line 73. You won't need 72 or 74 either, but that's up to you.

4 Jan 21, 2005 14:41

No luck :'( I'm using my own adapted version of Stockholm and in _main.php line 72 to 74 is some of my added javascript. In the original Stockholm it's in the "start of main area" (which isn't correct because the bit I'm talking about is called up into the sidebar). It reads:

		<div class="bText">
		  <?php $Item->content(); ?>
		  <?php link_pages("<br />Pages: ","<br />","number") ?>

There are no lines 72 to 74 in _linkblog.php

My gut feeling is that it should be in _linkblog.php because that gets called into _main.php but I'm not a programmer so I'm winging it with the php stuff. Can you give me the actual standard code to delete so I can try and find it?

5 Jan 21, 2005 15:00

There are two linkblog files - one in skins and one in skins/skinnames. You are looking at skins/skinname. It ends with "require skins linkblog". That way each skin can have different display options set for the linkblog, like an unordered list in one and an ordered list in another or good old p tags in a third. Right before the call to the skins folder it has a comment that indicates you could copy the whole file from skins into skins/skinname and take total control of the function. It's the better way so that your changes are only in skins/skinname.

6 Jan 21, 2005 15:58

If a link on linkblog haves some description,
this description are showed inside of <p> </p>

So, the Permalink that comes after the description appears in a new line.

ex:

<h4>Category</h4>
<ul><li>
<a href="http://somelink.org.br">Link Name</a>
<p>here is the description</p>
<a href="http://sonho.hofo.net/index.php/links/2005/01/13/linkname" title="Permalink"><img src="img/icon_minipost.gif" alt="Permalink" class="middle" height="9" width="12"></a>
</li></ul>

I'm trying to put the Permalink inside the <p> </p>, next to the description.

But it seems to be not simple, because it is not on /skins/_linkblog.php

I found the line

$Item->content( 1, 0, T_('more'), '[', ']' );    // Description + more link 

But I don't know what it does, because $Item->content are not documented.

7 Jan 21, 2005 16:32

this is the thing you have to search for :

<a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><img src="img/icon_minipost.gif" alt="Permalink" width="12" height="9" class="middle" /></a>

8 Jan 21, 2005 16:40

http://doc.b2evolution.net/0.9.1/evocore/Item.html#methodcontent covers $Item->content, but the answer isn't there. To be honest I don't remember why some skins have the new line for the permalink icon, but it is a function of the skin.

You blog looks like the clean skin but clean in the skins repository doesn't do that. http://skins.b2evolution.net/a.php?skin=clean custom in the skins repository (the old version of custom) also doesn't. http://skins.b2evolution.net/a.php?skin=custom

Try adding the 'custom' that comes with the installation zip and see how your linkblog looks. Assuming the extra line is not there then you will know it must be in your skins/skinname folder. If not then it must be in the skins folder, but I just don't remember what it took to fix that.

9 Jan 21, 2005 19:21

I found that the cause os the <p> </p> was the Auto P render :lol: :lol: :lol:

Disable it on posting can solve for now.

I will try to disable it to the entire linkblog if posible.

10 Feb 05, 2005 19:45

Thanks for posting this question, henrique. I have had the same frustration. Here's what I've found. None of the WordPress skins that I've seen have the icon_minipost icon displayed in their linkblogs. Almost all of the native b2e skins have it.

If you want to permanently disable it for your site, go into the .../skins folder, and select the _linkblog.php file. Note that this is not the same file that is specific to a particular skin, it affect ALL of the skins, so you'll want to be careful what you tinker with in here.

Find the code that reads

<a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><img src="img/icon_minipost.gif" alt="<?php echo T_('Permalink') ?>" width="12" height="9" class="middle" /></a>

and delete it. Viola, you just removed it throughout the entire site, regardless of which skin you use.

If anyone is interested in helping, I'd like to accomplish the same thing, but for a specific skin. I'm hoping to complete my own skin and post it for all, and I don't want for it to have that icon. Why don't the WPC skins display it? What am I overlooking?

Thanks,
Chris

11 Feb 05, 2005 20:02

Okay, right after I posted this last solution, two thoughts occured to me, and I'm wondering which would work best.

1) replace everything that's in .../skins/custom/_linkblog.php with the contents of .../skins/_linkblog.php

2) would using the blogroll instead of a linkblog accomplish this?

I can see that #1 would take care of my question, because the 'main' linkblog file wouldn't even be called by the custom skin, though the rules would still apply to every other skin on the site. It almost seems like #2 would be a more intuitive approach, but I don't think I understand the difference between a linkblog and a blogroll.

Not Giving Up,
Chris

12 Feb 05, 2005 20:47

The first is the expected method of customizing how any given sidebar bit behaves on a per-skin basis. Think of the one in the skins/skinname folder as the decorator and the one in skins folder as the generator. Each skin gets it's own decorator and uses the same generator. The note at the bottom of the decorator says if you want you can replace it with the generator, which means all the other skins will use the default generator.

The second is kinda odd. blogroll is the old name for linkblog.

13 Feb 05, 2005 21:47

I checked the WPC templates that I'm using, and this is exactly the same way that they lose the icon. So, I implemented it on my other skins, and it worked perfectly.

I'm slowly learning how to customize b2e. This is the only blogging tool that I've ever used, so I don't have a comparison, but I have to say that I'm very pleased with its flexibility, and the results that I'm getting with it.

14 Feb 06, 2005 12:13

Thanks guys - that has worked a treat. I was getting confused between the _linkblog.php in the skins directory and in the actual skin I wanted to modify. So, a very belated thank you.


Form is loading...