ToNetU
01-26-2010, 10:00 PM
hi there,
because alot of my members were asking how to edit their articles i use this edit, because the only way "in the default vb4 style" to edit an article is to put the mouse on the title article and click on the pencil!
this is how to put an "Edit Button" next to the "Report Button" in the article blog
search in blog_show_entry template for:
<ul class="entrycontrols">
add below it:
<vb:if condition="$show['editentry']">
<li><a href="blog_post.php?{vb:raw session.sessionurl}do=editblog&b={vb:raw bloginfo.blogid}" class="edit_blog"><img src="images/buttons/edit_40b.png" class="inlineimg" alt="{vb:rawphrase edit_blog_entry}" id="entry_edit_{vb:raw bloginfo.blogid}" /> {vb:rawphrase edit_blog_entry}</a>
<li class="separator">|</li></li>
</vb:if>
that's it :), please don't forget to click INSTALL
UPDATED:
- change the icon to the default "black" one.
- remove un-needed codes.
thanks..
because alot of my members were asking how to edit their articles i use this edit, because the only way "in the default vb4 style" to edit an article is to put the mouse on the title article and click on the pencil!
this is how to put an "Edit Button" next to the "Report Button" in the article blog
search in blog_show_entry template for:
<ul class="entrycontrols">
add below it:
<vb:if condition="$show['editentry']">
<li><a href="blog_post.php?{vb:raw session.sessionurl}do=editblog&b={vb:raw bloginfo.blogid}" class="edit_blog"><img src="images/buttons/edit_40b.png" class="inlineimg" alt="{vb:rawphrase edit_blog_entry}" id="entry_edit_{vb:raw bloginfo.blogid}" /> {vb:rawphrase edit_blog_entry}</a>
<li class="separator">|</li></li>
</vb:if>
that's it :), please don't forget to click INSTALL
UPDATED:
- change the icon to the default "black" one.
- remove un-needed codes.
thanks..