vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Whodownloaded_IP with Dates (https://vborg.vbsupport.ru/showthread.php?t=93167)

bashy 12-13-2005 09:08 AM

Hi Mr Blunt

Please can you tell me where i can edit the button as it looks a little too long?

Regards

bashy

Mr Blunt 12-13-2005 09:43 AM

Quote:

Originally Posted by bashy
Hi Mr Blunt

Please can you tell me where i can edit the button as it looks a little too long?

Regards

bashy

I wish I could.
That's the best I.E. can do.

Your not going to save a lot, but I suppose you could force the "postbit_attachmentthumbnail" template to use my BMP file instead of the html code (or your own picture).

Find this:
Code:

        <if condition="is_browser('ie', '5.5')">
                <input type="button" class="button" value="$vbphrase[blunts_whodl_who_downloaded]" tabindex="1" onclick="window.open('blunts_whodownloaded_ip.php?$session[sessionurl]fid=$attachment[attachmentid]','blunts_whodownloaded_ip','toolbar=no, scrollbars=yes, resizable=yes, width=$show[blunts_whodl_width], height=450, top=50, left=50'); return false;" title="$vbphrase[blunts_whodl_who_downloaded]: $attachment[attachmentid]" style="writing-mode:tb-rl" />
        <else />
                <a href="blunts_whodownloaded_ip.php?$session[sessionurl]fid=$attachment[attachmentid]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="button" src="$stylevar[imgdir_attach]/blunts_whodl_vertical.bmp" alt="$vbphrase[blunts_whodl_who_downloaded]" border="1" title="$vbphrase[blunts_whodl_who_downloaded]: $attachment[attachmentid]" /></a>
        </if>

And change it to this to use my button image file:
Code:

        <a href="blunts_whodownloaded_ip.php?$session[sessionurl]fid=$attachment[attachmentid]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="button" src="$stylevar[imgdir_attach]/blunts_whodl_vertical.bmp" alt="$vbphrase[blunts_whodl_who_downloaded]" border="1" title="$vbphrase[blunts_whodl_who_downloaded]: $attachment[attachmentid]" /></a>
Edit this part to use your own image file:
src="$stylevar[imgdir_attach]/blunts_whodl_vertical.bmp"



Another way would be to change the phrase which gets displayed to something shorter, which is in the same area of code, and then it will shrink to fit .... for IE only of course.


P.S. - I was assuming you meant the vertical button next to images. If the horizontal one is too long, it works the same way so find the similar code for each of the 4 templates we edit instead of just the thumbnails.

bashy 12-13-2005 10:11 AM

Hi

Ok thanks Mr Blunt, I will give this ago...

It is the normal Who Downloaded Button (horizontal) that needs shortening..

So let me get this right...all i need to do is shorten the phrase, if so how and where, sorry for sound like a thickett..

Just the word "who" would be great...

Regards

Bashy

Mr Blunt 12-13-2005 10:52 AM

Something like this:
Code:

        <if condition="is_browser('ie', '5.5')">
                <input type="button" class="button" value="who" tabindex="1" onclick="window.open('blunts_whodownloaded_ip.php?$session[sessionurl]fid=$attachment[attachmentid]','blunts_whodownloaded_ip','toolbar=no, scrollbars=yes, resizable=yes, width=$show[blunts_whodl_width], height=450, top=50, left=50'); return false;" title="$vbphrase[blunts_whodl_who_downloaded]: $attachment[attachmentid]" style="writing-mode:tb-rl" />
        <else />
                <a href="blunts_whodownloaded_ip.php?$session[sessionurl]fid=$attachment[attachmentid]"<if condition="$show['newwindow']"> target="_blank"</if>><img class="button" src="$stylevar[imgdir_attach]/blunts_whodl_vertical.bmp" alt="$vbphrase[blunts_whodl_who_downloaded]" border="1" title="$vbphrase[blunts_whodl_who_downloaded]: $attachment[attachmentid]" /></a>
        </if>

See where I put the....
value="who"
Where this used to be:
value="$vbphrase[blunts_whodl_who_downloaded]"

bashy 12-13-2005 11:34 AM

Hi again...

Thanks for this, i have just changed it to what you said but its still showing Who Downloaded, I copied all your text and pasted over so there could not have been any mistakes!

Any ideas?

Sorry for the messing about :(

Bashy

mhammed 12-13-2005 01:53 PM

GREAT JOB

thanks

install and work 100%

Mr Blunt 12-13-2005 09:16 PM

Quote:

Originally Posted by bashy
Hi again...

Thanks for this, i have just changed it to what you said but its still showing Who Downloaded, I copied all your text and pasted over so there could not have been any mistakes!

Any ideas?

Sorry for the messing about :(

Bashy

The edit I gave only changes the button for thumbnails in Internet Explorer 5.5+.

Thumbnails in any other browser still use a real picture for the button because other browsers don't have ability to show a vertical html button, so you would have to design your own small button and edit code to insert your image's filename.

For the horizontal buttons, you still have to edit the other 3 templates.
You edit them the same way.
Find the button, change the value parameter.

bashy 12-13-2005 09:51 PM

Hi m8...

I think im gonna have to leave it as it is.... :o the more i look at it the more appealing it becomes lol.....All is working, so i think im gonna leave it this way :)

Thanks again for your time...

Regards

Bashy

Arios 12-14-2005 05:46 AM

All seems to work just fine except for when I go to post

Quote:

The following errors occurred when this message was submitted:

1. You did not specify a username for your post.
Any solution to this?

Bullethead21 12-17-2005 12:02 PM

Awsome!! Works VERY well! The only complaint I would have is having "Blunts Whodl" in my control panel....dont look right. Other than that, AWSOME!!


All times are GMT. The time now is 10:54 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.01343 seconds
  • Memory Usage 1,750KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete