Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-22-2011, 03:58 PM
revo70 revo70 is offline
 
Join Date: Apr 2011
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Newbie Needs Help with Buttons

can someone help out a newbie?

I added the Blue Web 2 buttons for default vB skin buttons, but the background text still shows (for example, 'ply' still shows underneath the Reply button.

Here's the code from that section, maybe you can tell me which one to delete? Thanks in advance.

<a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="images/buttons/quickreply.gif" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a>
Reply With Quote
  #2  
Old 04-22-2011, 04:05 PM
Tasking Mickey's Avatar
Tasking Mickey Tasking Mickey is offline
 
Join Date: Jun 2010
Location: United States
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by revo70 View Post
can someone help out a newbie?

I added the Blue Web 2 buttons for default vB skin buttons, but the background text still shows (for example, 'ply' still shows underneath the Reply button.

Here's the code from that section, maybe you can tell me which one to delete? Thanks in advance.

<a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="images/buttons/quickreply.gif" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a>
Uhh, let's see.

This is your code:
PHP Code:
<a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="images/buttons/quickreply.gif" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a
Try this,

PHP Code:
<a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="images/buttons/quickreply.gif" alt="{vb:rawphrase quick_reply_to_this_message}" /> </a
Reply With Quote
  #3  
Old 04-22-2011, 04:06 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try removing this from right before the </a> - {vb:rawphrase reply}
Reply With Quote
  #4  
Old 04-28-2011, 01:52 PM
revo70 revo70 is offline
 
Join Date: Apr 2011
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really screwed things up. By adding new buttons they just either end up on top of each other or don't show up at all; or if I revert back (below), the Edit Post/Reply/Quote buttons seems to have disappeared.

Here's my code:
HTML Code:
<vb:if condition="$post['editlink']">
                        <a 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> 
                    <span class="seperator">&nbsp;</span>
                    </vb:if>
                    <vb:if condition="$show['quickreply'] AND !$show['threadedmode']">
                        <a id="qr_{vb:raw post.postid}" class='quickreply' href="{vb:raw post.replylink}" rel="nofollow"><img id="replyimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase quick_reply_to_this_message}" /> {vb:rawphrase reply}</a> 
                    <span class="seperator">&nbsp;</span>
                    </vb:if>
                    <vb:if condition="$post['replylink']">
                        <a id="qrwq_{vb:raw post.postid}" class="newreply" href="{vb:raw post.replylink}" rel="nofollow"><img id="quoteimg_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase reply_with_quote}" />  <vb:if condition="$post['forwardlink']">{vb:rawphrase reply_to_private_message}<vb:else />{vb:rawphrase reply_with_quote}</vb:if></a> 
                    <vb:if condition="$show['multiquote_post']"><span class="seperator">&nbsp;</span></vb:if>
                    </vb:if>
                    <vb:if condition="$show['multiquote_post']">
                        
                         <a class="multiquote" href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;" id="mq_{vb:raw post.postid}"><img id="mq_image_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase multi_quote_this_message}" />&nbsp;</a> 
</vb:if>
My images are:
images/buttons/edit.gif
images/buttons/multiquote_off.gif
images/buttons/quickreply.gif
images/buttons/quote.gif

Any help is appreciated!
Reply With Quote
  #5  
Old 04-28-2011, 04:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You've posted some code but not a link for us to actually see what it does. We need to be able to see the results in order to help fix an issue.
Reply With Quote
  #6  
Old 04-28-2011, 06:58 PM
revo70 revo70 is offline
 
Join Date: Apr 2011
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Apologies Lynne.

The screenshot attached shows how it currently looks -- the buttons have disappeared and the Multi-Quote falls off the page.
Attached Images
File Type: jpg screenshot.jpg (147.5 KB, 0 views)
Reply With Quote
  #7  
Old 04-28-2011, 08:06 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So... you are using vb4 and you uploaded new images to your site and you are not seeing them on the page? You do realize that the button images get shown via CSS. For instance, for the edit button when viewing:
HTML Code:
.postbitlegacy  .postfoot .textcontrols a.editpost, .postbit .postfoot .textcontrols  a.editpost, .eventbit .eventfoot .textcontrols a.editevent {
....

    background-image: url("images/buttons/edit_40b.png");
}
The edit button when hovering:
HTML Code:
.postbitlegacy  .postfoot .textcontrols a.editpost:hover, .postbit .postfoot  .textcontrols a.editpost:hover, .eventbit .eventfoot .textcontrols  a.editevent:hover {
....
    background-image: url("images/buttons/edit_40b-hover.png");
}
So, adding a file called edit.gif is going to do nothing unless you somehow change the whole way that the buttons are done. You will need to get rid of the css for those buttons and then replace the cleargif image and edit text here:
HTML Code:
<img src="{vb:raw vboptions.cleargifurl}" id="editimg_{vb:raw post.postid}" alt="{vb:rawphrase edit_delete_message}" /> {vb:rawphrase edit_post}
with just your own image code:
HTML Code:
<img src="images/buttons/edit.gif" id="editimg_{vb:raw post.postid}" alt="{vb:rawphrase edit_delete_message}" />
That is true for all the buttons in the postbit for vB4.

Alternately, call the images by the same names used in vB4 and replace them and they will show up instead of the old ones. Then, just remove the text if you don't want the text.
Reply With Quote
  #8  
Old 04-29-2011, 09:06 PM
revo70 revo70 is offline
 
Join Date: Apr 2011
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your help, Lynne. I'm getting there, but not all the way yet.

I changed the images to reflect their name in the CSS.....but when I delete {vb:rawphrase reply} after each, they disappear again. But without doing that, the text shows underneath the buttons again.

So here's what I have now:
Attached Images
File Type: jpg screenshot2.jpg (111.2 KB, 0 views)
Reply With Quote
  #9  
Old 04-29-2011, 11:02 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Replace the text with non-breakable spaces - & n b s p ; (spaces added so it doesn't get parsed into nothingness).
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:51 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.04039 seconds
  • Memory Usage 2,282KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_html
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete