vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Download button link (https://vborg.vbsupport.ru/showthread.php?t=138449)

anywares 02-03-2007 10:00 PM

Download button link
 
This is my first release so go easy on me okay :)

This will add a nifty little hyperlinked immage so that if someone were to post a download link, it would display a hyper-linked immage for the user to click on instead of a long download link to a file or w/e

Installation:
Goto adminCP ->Custom BBCodes-> Add new BBCode

Title:
Download

Tag:
dl

Replacement:
HTML Code:

<a href="{param}" target="_new"><img src="http://img186.imageshack.us/img186/9572/downloadzc4.png" /></a>

Example:

[dl]http://[/dl]

Description:

Hyperlinked download immage

Use {option}
No

Button Immage:

http://anywares.info/ImgHost/images/5639dl.gif

PLEASE NOTE: I uploaded the immage so if you wish to download it and upload it to your server, just change
Code:

http://img186.imageshack.us/img186/9572/downloadzc4.png
to the path of where its located at on your server :)

For instance, if you upload it to your /images file the code would look like this:
HTML Code:

<a href="{param}" target="_new"><img src=Forum/images/misc/IMAGE NAME /></a>


If you like it, click install ;)

Jorrit787 02-04-2007 07:35 PM

Nifty idea :)

anywares 02-05-2007 03:05 PM

Lol glad you like my "nifty" idea :p

stigz 02-07-2007 04:49 PM

after ive installed this hack my post show as this:

http://w12.easy-share.com/856073.html" target="_new">https://vborg.vbsupport.ru/

anywares 02-07-2007 05:29 PM

Did you close your <a> tags? make sure to start AND finish with <a> tags.... other than that its suppose to work. remember

HTML Code:

<a href="{param}" target="_new"><img src="http://img186.imageshack.us/img186/9572/downloadzc4.png" /></a>
the <a> tags HAVE to open AND close otherwise it wont work ;)

Jorrit787 02-07-2007 08:37 PM

You might want to include the image in a ZIP so that users can upload it to their own server, in case it ever gets taken off ImageShack.

anywares 02-08-2007 12:43 PM

Very well then. Thread updated :D

stigz 02-10-2007 07:37 PM

yep it works now thanks

anywares 02-11-2007 09:22 AM

np man glad you like it....and glad it works :)

Deadly Assassin 03-05-2007 10:39 AM

works like a charm and compliments your other hack that uses a similar image set.

http://www.game-image.com/uploads/b9fc922302.jpg

anywares 03-06-2007 03:10 PM

Glad you like them :D

smoovie 03-15-2007 04:21 AM

I'm new here and I really like this mod ... but. There's always a but, huh? When in use on the forums the image has a link hilight box around it. Is there any way to remove/hide that? It's like underlined for text links but it wraps around the image.

Thanks

anywares 03-15-2007 05:59 PM

lolz ive encountered this problem with firefox. they think its leet or smtin to link the immages like that. im not sure at all if this will work but its worth a try eh?

use this code:
HTML Code:

<table border="0">
<tr>
<td>
<a href="{param}" target="_new"><img src="http://img186.imageshack.us/img186/9572/downloadzc4.png" /></a>
</td>
</tr>
</table>


smoovie 03-16-2007 05:07 AM

Thanks anywares, valiant effort but it had no effect on the image. I have the image uploaded to my server but it still shows the "link" outine.

darkman 03-17-2007 08:52 PM

You have to put border=0 in the code to remove the ugly box:
Code:

<a href="{param}" target="_new"><img src="http://img186.imageshack.us/img186/9572/downloadzc4.png" border=0/></a>
Nice mod - thanks :)

darkman 03-18-2007 01:43 AM

...also, if you are hosting the file in your forums/images/misc directory you need to put a forward slash before forums:
Code:

<a href="http://" target="_new"><img src=/forums/images/misc/downloadzc4.png border=0/></a>
Here's a cool little png file to use as a button image:

harlita 03-18-2007 09:48 AM

I freaking love it!! Especially for what my forums are for - this is totally useful. *clicked installed*

anywares 03-18-2007 09:54 AM

Quote:

Originally Posted by darkman (Post 1205846)
You have to put border=0 in the code to remove the ugly box:
Code:

<a href="{param}" target="_new"><img src="http://img186.imageshack.us/img186/9572/downloadzc4.png" border=0/></a>
Nice mod - thanks :)

lol glad you like it but he doesnt mean that border, he means the border that Firefox 2+ puts around a hyperlinked immage

iHostile 03-18-2007 12:45 PM

Hmm where do you put the other <a> tag? Cant seem to work it out :S

<a href="{param}" target="_new"><img src="http://img186.imageshack.us/img186/9572/downloadzc4.png" /></a>

Theres no <a> :S

anywares 03-18-2007 01:07 PM

no need.

HTML Code:

<a href="
is the begining of the <a> tag ;]

and
HTML Code:

</a>
is the end if the <a> tag ;]

iHostile 03-18-2007 01:11 PM

Quote:

Originally Posted by anywares (Post 1206357)
no need.

HTML Code:

<a href="
is the begining of the <a> tag ;]

and
HTML Code:

</a>
is the end if the <a> tag ;]


But im gettin an image plus the code.... "" target="_new">"

:confused:

anywares 03-18-2007 01:15 PM

hmmm gimee a link/screenshot to the problem

iHostile 03-18-2007 01:20 PM

<a href="http://img120.imageshack.us/img120/7029/hmmwm7.jpg" target="_blank">http://img120.imageshack.us/img120/7029/hmmwm7.jpg</a>

anywares 03-18-2007 01:31 PM

I think you might have skipped/missed something in the codes

be shore to get the FULL code so that it looks like this:
HTML Code:

<a href="{param}" target="_new"><img src="http://img186.imageshack.us/img186/9572/downloadzc4.png" /></a>

iHostile 03-18-2007 01:36 PM

Nope, still does the same with that code :S lol

anywares 03-18-2007 01:53 PM

Ive pm'ed you iHostile

Mr_Devlin 04-26-2007 05:40 PM

What to do if you use different styles on your forum and want to use different (your own) button-layouts matching your styles with this modification?
Here's the solution:
1. upload your buttons to the style related editor-folders.

2. create a new, additional css-definition for each style like this:
Code:

.bbpw{
    display:block;
    float: right;
    background:url(editor_directory_path/yourbutton.gif);
    width:150px; height:29px;
}

3. In the bbcode replacement:

HTML Code:

<table width="400" border="0" cellspacing="0" cellpadding="0">
  <tr>
        <td class="bbpw" align="left" width="150" border="0">
        </td>
                <td align="right" width="250" border="0">
                </td>
  </tr>
  <tr>
                <td align="left" colspan="2" style="background-color: #C0FFC0; border: 2px solid Red; padding: 1px; clear:left"><FONT COLOR="#FF0000"><normalfont>{param}</normalfont></FONT>
                </td>
  </tr>
</table>

You may edit the width, name of class etc to fit your needs...

Screenshot:
http://www.chaospasses.com/images/Bild1.gif


Quote:

But im gettin an image plus the code.... "" target="_new">"
You need to set the param-code WITHOUT the quotation marks like this:

HTML Code:

<a href={param} target="_new"><img src="http://img186.imageshack.us/img186/9572/downloadzc4.png" /></a>

JadedSouls 07-21-2007 05:37 PM

Great stuff! Made my own button tho and one for the editor toolbar..

Thanks :)

puertoblack2003 09-01-2007 02:15 AM

this is a neat hack how to i add the legend with the picture and in the middle add the url to show download???

tobaro 09-11-2007 05:23 AM

idea: if this would change ANY links posted to be replaced with a image called 'link' (whatever image you may use), I would like it even more? possible to do that?

Millenium IT 09-13-2007 06:33 PM

You want an image named "link" instead of a "Download" image? Or you want links to be text replaced?

MR.BOSS 09-15-2007 11:00 PM

Is it possible to do this hack to attachments rather than external links, in other words is it possible to change the attachment names to a download button, thanks

MR.BOSS 10-31-2007 12:05 AM

? any idea

RFViet 11-26-2007 02:02 PM

Thanks :p

BigDog56 11-28-2007 02:47 PM

Took me a minute to get it figured out, but I got it done! Thank you! I like this alot!

WFZ 11-28-2007 03:22 PM

Thanks

silver surfer 12-18-2007 05:51 PM

thnx !!! :)

works like a charm !

*silver clicks installed*

harlita 12-20-2007 07:38 AM

reinstalled it on 3.6.8 - it's just bbcode, but works nicely.

joeycano 01-20-2008 05:33 AM

Could not get it to work

Rajdeep 02-11-2008 06:53 AM

I am getting this same error - target="_new">

I m using this code -

<a href="{param}" target="_new"><img src="http://img186.imageshack.us/img186/9572/downloadzc4.png" /></a>

Plz help thanks

Quote:

Originally Posted by stigz (Post 1176896)
after ive installed this hack my post show as this:

http://w12.easy-share.com/856073.html" target="_new">http://img186.imageshack.us/img186/9572/downloadzc4.png



All times are GMT. The time now is 05:49 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.01361 seconds
  • Memory Usage 1,825KB
  • 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
  • (5)bbcode_code_printable
  • (11)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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