vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   vBulletin Blog - how to put an "Edit Button" in the article blog next to "Report Button" (https://vborg.vbsupport.ru/showthread.php?t=234286)

ToNetU 01-26-2010 10:00 PM

how to put an "Edit Button" in the article blog next to "Report Button"
 
1 Attachment(s)
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:
Code:

<ul class="entrycontrols">
add below it:
Code:

<vb:if condition="$show['editentry']">
                <li><a href="blog_post.php?{vb:raw session.sessionurl}do=editblog&amp;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..

Entonadoscl 01-27-2010 12:58 PM

any demo??

ToNetU 01-27-2010 01:38 PM

updated screen shot.

- when you post an article into vb4 blog, there's no "edit button" with the control button, and the only way to edit an article/entry is to put the mouse on the entry title then click on the pencil icon!

OldSchoolDSL 12-27-2010 10:16 PM

Working and installed

4.1 PL2

Edit: Does anyone know that this is the ONLY mod released to help improve the blogs? :eek:


All times are GMT. The time now is 01:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01024 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete