vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How Do I change the display icons (https://vborg.vbsupport.ru/showthread.php?t=245917)

Ruairidh 07-05-2010 12:03 PM

How Do I change the display icons
 
I need help as I am a "noob" to VB Forums and I need to know how to change the icons such as the New Post and forum locked icons etc... Could anyone help me?

Thanks So Much!

Ruairidh

eSekar 07-05-2010 01:30 PM

the "forum locked (& others)" are located in your forum root folder inside images/statusicon

The "New Post (& Others)" are located in images/buttons

Just go to your images folder, everything is self explained in there ;)

Attitude5ire 07-06-2010 05:23 AM

New post, New thread, Closed thread are no longer icons they css buttons.

Steph H 07-15-2010 01:15 AM

Quote:

Originally Posted by Attitude5ire (Post 2065129)
New post, New thread, Closed thread are no longer icons they css buttons.

Anyone know of an easy way to revert this? We worked so hard on our buttons for 3.x that it would be a sacrilege to have to give the up. :(

Thank you!

abualk 07-28-2010 06:09 PM

Here is the way to change them :

open SHOWTHREAD template :

Find :
Code:

<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1"  class="newcontent_textcontrol" id="newreplylink_top"><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
Replace with :
Code:

<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1"  id="newreplylink_bottom"  >  <vb:if condition="$show['closethread']"><img src="{vb:stylevar imgdir_button}/reply.gif" alt="{vb:rawphrase reply}" border="0" /><vb:else /><img src="{vb:stylevar imgdir_button}/threadclosed.gif" alt="{vb:rawphrase closed_thread}" border="0" /></vb:if></a>
Find :
Code:

<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1"  class="newcontent_textcontrol"  id="newreplylink_bottom"  ><vb:if condition="$show['closethread']"><span>+</span> {vb:rawphrase reply_to_thread}<vb:else />{vb:rawphrase closed_thread}</vb:if></a>
Replace with :
Code:

<a href="newreply.php?{vb:raw session.sessionurl}p={vb:raw LASTPOSTID}&amp;noquote=1"  id="newreplylink_bottom"  >  <vb:if condition="$show['closethread']"><img src="{vb:stylevar imgdir_button}/reply.gif" alt="{vb:rawphrase reply}" border="0" /><vb:else /><img src="{vb:stylevar imgdir_button}/threadclosed.gif" alt="{vb:rawphrase closed_thread}" border="0" /></vb:if></a>
Save your changes, then go to FORUMDISPLAY template and find :

Code:

<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow"  class="newcontent_textcontrol"  id="newthreadlink_top"><span>+</span> {vb:rawphrase post_new_thread}</a>
Replace with :
Code:

<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow"  id="newthreadlink_top"><img src="{vb:stylevar imgdir_button}/newthread.gif" alt="{vb:rawphrase post_new_thread}" border="0" /> </a>
Find :
Code:

<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow"  class="newcontent_textcontrol"  id="newthreadlink_bottom"><span>+</span> {vb:rawphrase post_new_thread}</a>
Replace with :
Code:

<a href="newthread.php?{vb:raw session.sessionurl}do=newthread&amp;f={vb:raw foruminfo.forumid}" rel="nofollow"  id="newthreadlink_bottom"><img src="{vb:stylevar imgdir_button}/newthread.gif" alt="{vb:rawphrase post_new_thread}" border="0" /> </a>
Then, save your changes and see the new changes.

Steph H 07-30-2010 03:55 PM

Yay! This worked! Thanks so much!

The only button I don't seem to have now is the "Quote" button, but I will go through the code you just gave me and see if I can find it and replicate the alterations for that one.

Again, thanks so much!!!

--------------- Added [DATE]1280535275[/DATE] at [TIME]1280535275[/TIME] ---------------

Unfortunately, I have proven unsuccessful in my ability to find the code for the last three buttons I would like to include in VB4. They are the three buttons at the bottom of each post: Edit, the small Reply option, and the Quote option. If anyone can help me find the proper code for this, I would be most appreciative. Thank you!

Attitude5ire 07-31-2010 07:55 AM

You'll find those icon in postbit or postbit_legacy template

Steph H 07-31-2010 11:46 AM

Thank you!! I'll dig through that and see if I can figure out the changes to make. :)

abualk 08-01-2010 05:47 PM

Try to open postbit_legacy template, then Find :
PHP Code:

<div class="textcontrols floatcontainer"

And remove it . Then remove the closing "div" for it which is located under this :
PHP Code:

<!-- </div> --> 

Note: You can change the class istead of removing it.

Now, To change the edit button, find :
PHP Code:

<class="editpost" href="{vb:raw post.editlink}" name="vB::QuickEdit::{vb:raw post.postid}"><img src="{vb:raw vboptions.cleargifurl}" id="editimg_{vb:raw post.postid}" alt="{vb:rawphrase edit_delete_message}" /> {vb:rawphrase edit_post}</a

And replace it with :
PHP Code:

<class="editpost" href="{vb:raw post.editlink}" name="vB::QuickEdit::{vb:raw post.postid}"><img src="{vb:stylevar imgdir_button}/edit.gif" id="editimg_{vb:raw post.postid}" alt="{vb:rawphrase edit_delete_message}" /></a

So, can you now see how to change the rest ?

My regards.

Steph H 08-02-2010 01:30 AM

Yes! I got them all!! Thank you SO much, abualk...you are a lifesaver!! :D


All times are GMT. The time now is 08:23 PM.

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.01088 seconds
  • Memory Usage 1,747KB
  • 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
  • (8)bbcode_code_printable
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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