Remove 'Shawn's Blog' From Posts.
shawnwasson - August 9, 2007 - 17:35
I want to remove the 'Shawn's Blog' from all of my posts.
http://www.shawnwasson.com
I'd also like to get rid of the login or register to post comments message.....
Any ideas?

Customize Blog template
In your themes directory copy node.tpl.php to node-blog.tpl.php. If you edit the node-blog.tpl.php file those changes will only show up for blog posts. Then you can customize them however you want.
If you do a search for node-blog.tpl.php on Google you'll find further discussion on this topic.
Good luck!
I think you need to learn to use views.
I'm, on Drupal 5 so it may be different...
I believe you need to install the views module, go to Site Building>Views and override the page that shows the blogs (frontpage by default). All the settings should be correct (since the view was responsible for showing the blogs & you create a copy by overriding it).
Then you use the Theme Wizard (needs the Views Theme Wizard Module) to create the code that creates the blog articles and formats it for your new frontpage view. You paste the code into files in your template folder (the wizard tells you the names to use, create them if they don't exist). Then you look for the part of the page to remove from the "views-view-frontpage.tpl.php" file and delete it.
I hope this helps, I'm new to drupal and just doing similar things. The above relies on using php templates, I can't say how it will translate to 4.7
If anyone knows better, I'd love to hear it.
Drew
To remove "Shawn's blog"
To remove "Shawn's blog" from your node links and breadcrumbs, you can use another content type instead of the blog module (a lot of people use story or create "weblog entry" or "journal entry" content types) and string it all together with Views.
If you're set on using the blog module, check the handbook pages on customizing blog layouts and removing "blog" from the breadcrumbs:
http://drupal.org/node/44699
http://drupal.org/node/73999
To remove "login or register to post comments" you can allow anonymous commenting, disable user registration or override the node links in your template.php.
An easy way!
If you go to Site Building > Themes > Configure there are options to show the 'submitted by Username on date text'. You can turn that of for any content types you desire.
D
just add some style to turn
just add some style to turn off the display
li .blog_usernames_blog{
display:none;
}
This turns the display of the li which contains the link to a users blog.
hth,
Folkert
I added this to my CSS (sky)
I added this to my CSS (sky) and it didn't worked :-( The webdev toolbar in Fx says that the "blog of $user" is
===============
li .first blog_usernames_blog
Attributes
class = first blog_usernames_blog
===============
if it does not want to - force it to!
this works:
thanks!
this works perfect with 6.1 / Framework
For some dumb reason this
For some dumb reason this worked at my site:
.blog_usernames_blog{
margin:-95px;
}
In fact, the button (sky theme) is now pushed away. It's only a cosmetic solution, not a hardcoded one (what i prefer).
So, if some one still can provide a way to change the array of $links (=what in fact is printed under the content), please tell me!
Thanks
li .blog_usernames_blog{
display:none;
}
This works for me, using the Zen theme.
However Im wondering where I find the original code that displays .blog_username_blog
It feels weird that it's first enabled then disabled with this new code which means more code to read.
I could be wrong about this since Im really new to css but I always want to keep things clean and light.
Do not use css to fix this issue.
Setting the .blog usernames to be hidden in css is not the way to go for a number of reasons...
Firstly the blog name is in the (x)html source, so if the browser has css disabled or has a custom stylesheet the blog username can appear.
The user may view your site using a screen reader, or text to speech browser so the name will show up for them too. Are you sure setting
display:none;removes it from all browsers? What does lynx or a screen reader do withmargin:-999;?The same is true of pda's, mobile phone browsers etc do they obey the css and remove the username?
The username may also get indexed and cached by Google and many other search engines.
It is far better to remove the item from the source code. Does the method I mentioned here not work?
Drew
Hmm
Site Building > Themes > Configure...
it doesn't remove "Shawn's Blog" it removes submitted - the date when the node was created.
in node.tpl.php:
<?php if ($links) print $links; ?>
The code above shows: Shawn's blog | Add new comment | 5 reads
Question 1:
How can we remove "shawn's blog" in another way?
Question 2:
How to control the alignment and what if you wan't to remove the | between the links?
I wan't Add new comment and 5 reads to float right.
I guess the answer is
I guess the answer is http://drupal.org/node/134444
try this patch
Florin has provided a patch (plus the very simple instructions about how to apply a patch). This patch will enable you to choose in Admin settings whether to turn off or on the "user's blog" link that appears beneath blog teasers - both for 4.x and 5.x.
You'll find Florin's patches in this thread: http://drupal.org/node/21373
I applied the 5.x version, and it works great.
s.
what about 6.x?
what about 6.x?
what about 6.x?
what about 6.x?
Try it…
Download and try 6.x and post a feature request if its not already there.
Lots of work is happening on 6, if you can find bugs, it really helps the developers.
Drew
my site is already 6x, are u
my site is already 6x, are u suggesting try the 5.x patch and see what happens? if thats what you mean, then i will try that
Try patches on test sites.
Take a look at the source and see if the same function exists, that try the patch (Always on a test site). Drupal 6 may change as more modules are ported over, so keep track of any patches you apply to it.
If it does work post back to the relevant Drupal 6 issue queue, or even as a feature request.
Drew
I commented line 117 on
I commented line 117 on blog.module and it removed the name for Drupal 6.
function blog_link($type, $node = NULL, $teaser = FALSE) {
$links = array();
// if ($type == 'node' && $node->type == 'blog') {
// if (arg(0) != 'blog' || arg(1) != $node->uid) {
// // This goes to l() and therefore escapes !username in both the title and attributes.
// $links['blog_usernames_blog'] = array(
// 'title' => t("!username's blog", array('!username' => $node->name)),
// 'href' => "blog/$node->uid",
// 'attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' => $node->name)))
// );
// }
// }
return $links;
}
As for your second question,
As for your second question, modify your access control permissions to allow anon users to post comments.