Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2007, 03:54 AM
Tact7626 Tact7626 is offline
 
Join Date: Feb 2007
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Logged off user Postbit Issue

hello everyone. I was hoping to get some help on a little problem of mine. I hope this is the correct place. It's basically related to the custom images i used for the control inside each post.

EDIT: SORRY. FORGOT TO MENTION THIS IS ONLY FOR THE "CRUSIFIXION" STYLE!
If you would be so kind as to direct yourselfs to that style. (i don't think it's the default yet. ) sorry for the trouble.

"edit, quote, multiquote, quickreply"

I made it so that it looks like one large image. (like an imagemap) but it's not. i just made all the buttons float left using divs and css.

here's a screenshot:


The problem comes when you log out. for some reason the "quote" button is positioned on the far left of the post. (i know it's the float tag, but why did it go outside the div wrapper?)

here's the code if you'd like to take a look at it, please.


Code:
<div style="border:0px dotted black; width:400px;padding-top:10px;margin-top:0px;float:right;" align="$stylevar[right]">

<!-- controls -->
<if condition="$post['editlink']">
<img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />

<div style="float:left">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/nailbg_01.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
</div>


<div style="float:left">
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
</div>


<div style="float:left">
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />nailbg_02</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
</div>

<div style="float:left">
<if condition="$show['multiquote_post']">
<a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/<if condition="$show['multiquote_selected']">on<else />nailbg_03</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
</if>
</div>


<div style="float:left">
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/nailbg_04.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
</div>


<div style="float:left">
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
</div>


<div style="float:left">
<if condition="$show['deletedpost']">
<img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
</if>
</div>


<div style="float:left">
<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>

</div>
<!-- / controls -->

</div>

here's a random thread i picked out so you can see what happens with logged off users.


http://www.legionofangels.net/forum/...read.php?t=510


I'm well aware that I will never be able to keep the whole nail perfectly intact for a number of reasons (regular mods, regular members, permissions) that would affect how many buttons appear and the like.

the only thing that bugs me, is that when you're offline, the only remaining button is located on the far left of the post.

the owner of the site would greatly appreciate if someone would know to either, make it stay inside it's div wrapper and remain on the right side, (the div wrapper is float:right) or make it not show any buttons at all for logged off users. he's ok with any of these solutions if at all possible.


any tips, advice, thoughts, comments, help, are greatly appreciated.

thank you very much for your time.
Reply With Quote
  #2  
Old 04-24-2007, 08:15 PM
CyberAlien's Avatar
CyberAlien CyberAlien is offline
 
Join Date: Mar 2002
Posts: 438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should move all <if> before <div>, and </if> after </div> for those buttons. That might fix problem.
Reply With Quote
  #3  
Old 04-24-2007, 09:12 PM
Tact7626 Tact7626 is offline
 
Join Date: Feb 2007
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome! it worked! (for the most part)

it definately made the quote button stay inside its wrapper div that's for sure.

now i just need to tackle the width of the wrapper or something.

I don't know if it will be enough for the site owner to like it. Would you happen to know of a way to get rid of all buttons for logged off users instead? Because I think I'm not gonna be able to figure out how to make the quote button float right for logged off users when it needs to float left for logged on users. o_o
Reply With Quote
  #4  
Old 04-24-2007, 11:16 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This may get messy, but you can use it to control the width based on the user's logged in status;

HTML Code:
<if condition="$vbulletin->userinfo['userid']">
<!-- User is logged in -->
<else />
<!-- User is not logged in -->
</if>
Reply With Quote
  #5  
Old 04-27-2007, 01:13 AM
Tact7626 Tact7626 is offline
 
Join Date: Feb 2007
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok. can i copy that exactly letter for letter, or does it need just a teeny bit of customization?

cause something tells me, i should enter a value for 'userid'. just that i'm not familiar with the values. i remmeber seing some in the breadcrumb menu when i added some links there. i'll look at those and copy the desired one.

thanks again. i'll post again with updates. (i've never done <if> tags. i hope i do ok )



edit: ok. i got confused. those were accesskey's. yah. i don't understand those. i'll just try this out word for word then and hope for the best.




EDIT#2:

OK. so far. not really working out. my logged in users are getting the logged off users line. here's how i put the code you suggested. did i do it right? i'm totally noob with <if> tags sorry.

Code:
<if condition="$vbulletin->userinfo['userid']">
<!-- User is logged in -->
<div style="border:0px dotted black; width:400px;padding-top:10px;margin-top:0px;float:right;" align="$stylevar[right]">

<else />
<!-- User is not logged in -->
<div style="border:0px dotted black; width:100px;padding-top:10px;margin-top:0px;float:right;" align="$stylevar[right]">
</if>

<!-- controls -->
Reply With Quote
  #6  
Old 04-27-2007, 07:09 AM
CyberAlien's Avatar
CyberAlien CyberAlien is offline
 
Join Date: Mar 2002
Posts: 438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't need <else /> and anything after it. Guests shouldn't see quote buttons, so that whole block can be skipped for them. Use <if condition="$vbulletin->userinfo['userid']"> here is your buttons code </if> without <else /> block.
Reply With Quote
  #7  
Old 04-27-2007, 10:12 PM
Tact7626 Tact7626 is offline
 
Join Date: Feb 2007
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok. after some more messing around with, i'm sorry to say, there is no progress.

but cyberalien, you're making me think twice now. you say guests shouldn't see the quote buttons to begin with, but i tested every style in my board, and even the default style that came with my vb, (which i never altered in anyway...i think) has the "reply with quote" button for logged off users. (the button itself just says "quote" btw)

is it possible i'm attacking the problem from the wrong angle? because if you say guests shoudln't see such buttons (maybe all buttons) at all, then how come it shows up?





hmm. and here i thought this was only happening in my crucifixon skin. darn it.


i'd love it if guests would se no buttons at all. >.<
Reply With Quote
  #8  
Old 04-28-2007, 05:01 AM
CyberAlien's Avatar
CyberAlien CyberAlien is offline
 
Join Date: Mar 2002
Posts: 438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They show up because style code allows it. User still must login/register before posting, so even if quote button is shown it won't work. It only redirects to login page.
Reply With Quote
  #9  
Old 04-29-2007, 02:26 AM
Tact7626 Tact7626 is offline
 
Join Date: Feb 2007
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes that is correct. it does just re-direct to a register page. and to be honest, i'd just ignore this and let it slide because it really doesn't bother me atall.

in actually, it's the owner of the site, (whom i work for, kinda) who really hates it. (i don't get paid, he's my friend and i'm just helping him out because i believe in the purpsoe of his forum too and i think it's nice)

so yah. it'd be great if someone could tell me how to get rid of it.

OR,

can teach me the proper way to use the <if> tags to make it so that logged off users get a diffrent width than logged in users. they werne't working for me at all sadly no matter how i re-arranged them.
Reply With Quote
  #10  
Old 04-29-2007, 07:01 AM
CyberAlien's Avatar
CyberAlien CyberAlien is offline
 
Join Date: Mar 2002
Posts: 438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tact7626 View Post
so yah. it'd be great if someone could tell me how to get rid of it.
see 3 posts above
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 09:59 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.07835 seconds
  • Memory Usage 2,269KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete