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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2005, 07:44 PM
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default can oreint of button be made "vertical" somehow?

Can the orient of button be changed without creating a gif?
Basically I want to display a button next to image downloads.
But, I want to use the $css[button] variables.

Obviously a button looks dumb "next to" an image and a vertical button would save me from redesigning several vbulletin postbit templates, but I want to keep keep language and style compliance.
Reply With Quote
  #2  
Old 07-31-2005, 08:17 PM
m0nde's Avatar
m0nde m0nde is offline
 
Join Date: Mar 2005
Location: Toronto, ON Canada
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr Blunt
Can the orient of button be changed without creating a gif?
Basically I want to display a button next to image downloads.
But, I want to use the $css[button] variables.

Obviously a button looks dumb "next to" an image and a vertical button would save me from redesigning several vbulletin postbit templates, but I want to keep keep language and style compliance.
with dhtml anything is possible :devious:
But seriously, just open up photoshop and rotate the button...

- Sid
Reply With Quote
  #3  
Old 07-31-2005, 08:35 PM
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by m0nde
with dhtml anything is possible :devious:
But seriously, just open up photoshop and rotate the button...

- Sid
That's the problem buddy.
I have no image to rotate.

PHP Code:
<input type="button" class="button" value="$vbphrase[blunts_whodl_who_downloaded]onclick="window.open('blunts_whodownloaded_ip.php?$session[sessionurl]attachmentid=$attachment[attachmentid]','blunts_whodownloaded_ip','toolbar=no,scrollbars=yes,resizable=yes,width=$show[blunts_whodl_width],height=450,top=50,left=50'); return false;" /> 
If I make a gif, then I have to hardcode size, text, color, backround, etc... which I'm trying to avoid.

I'd rather see if I can create a new CSS definition or just insert manual html code to make a vertical button .... so it can still feed off vbulletin's vars.

Here's the CSS code for a "button":
HTML Code:
<template name=".button" templatetype="css" date="1120222838" username="Kier" version=""><![CDATA[
a:4:
{
s:10:"background";
s:0:"";
s:5:"color";
s:0:"";
s:4:"font";
a:3:
{
s:5:"style";
s:0:"";
s:4:"size";
s:4:"11px";
s:6:"family";
s:70:"verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif";
}
s:5:"EXTRA";
s:0:"";
}
]]></template>
So I guess what I'm praying for is some s:X value that's preset or that I can declare somehow that will rotate the button for me .... and I'd call it "blunts_verticalbutton" for example.

I notice <box> has an option for orient="vertical" so this is where I got the idea from.
Reply With Quote
  #4  
Old 08-24-2005, 06:38 AM
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to follow this up....
I did find a partial solution.

HTML Code:
<if condition="is_browser('ie', '5.5')">
	<input type="button" class="button" value="Forum Index" onclick="index.php" title="This is an example of an IE 5.5 vertical button" style="writing-mode:tb-rl" />
<else />
	<a href="index.php"<if condition="$show['newwindow']"> target="_blank"</if>><img class="button" src="$stylevar[imgdir_attach]/myverticalbutton.gif" alt="Forum Index" border="1" title="Sorry, no IE 5.5 so this button has to be an image" /></a>
</if>
Too bad it has compatability limits.
Here's the key:

style="writing-mode:tb-rl"

http://msdn.microsoft.com/library/de...ritingmode.asp


It's only going to work for IE 5.5 and above so you have to have a secondary .GIF file for other browsers .... which would make it pointless for most coders I suppose .... but I like the language compatability so I'm going to utilize it as best as I can for my hacks.

Sorry I don't have a full list of what browsers can/can't show this. The only thing I do know is Netscape 8.0 "IE Mode" can show it while it's "Firefox Mode" cannot. It would be nice if other members could give feedback if/as they test this with other browsers. I'd love to add more browsers into the conditional if they test ok.
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 04:52 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.06803 seconds
  • Memory Usage 2,199KB
  • 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_html
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete