The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Is it possible to change the link for 1 of my attachments?
For example on vb.org here is an example attachment url: https://vborg.vbsupport.ru/attachmen...3&d=1263721711 Lets say when a user clicks on that, they are taken to a different link(page), and then after they do what is on that page, it redirects them to the proper link(attachment). I am fine with the 2nd part, but the first part of changing only the 1 attachment link has got me stumped. I am thinking it must be possible using the attachment ID or something. any ideas? |
#2
|
||||
|
||||
![]()
You could use the Replacement Variable Manager to change the URL
|
#3
|
|||
|
|||
![]()
Interesting idea ^^
I'll see how it goes. I've never used or known about that feature before ![]() --------------- Added [DATE]1287811065[/DATE] at [TIME]1287811065[/TIME] --------------- Nope didn't work as the replacement variable feature has a character limit for the url :/ Any idea how to change that? --------------- Added [DATE]1287813329[/DATE] at [TIME]1287813329[/TIME] --------------- I finally found a link that was small enough to test this with. But it is not working for me. What do I put in: Search for Text (Case-Insensitive): and Replace with Text If the link was www.site.com/link.html and the file www.site.com/file.zip for example. Thanks. |
#4
|
||||
|
||||
![]()
Are you putting in the whole url or just the file name part? I'd try:
Search for: link.html Replace with: file.zip Does that work? |
#5
|
|||
|
|||
![]()
Here is a reply from Steve over at vb.com
Quote:
![]() |
#6
|
||||
|
||||
![]()
Modify the template with a condition?
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.) |
#7
|
|||
|
|||
![]()
What kind of condition will do this.
If you are usergroup ID: X,Y,Z If you are downloading attachment ID: X Then display link else display normal content. |
#8
|
||||
|
||||
![]()
Sure, that is what I would try. is_member_of is the function you would use for the usergroup.
|
#9
|
|||
|
|||
![]()
What is the function for the attachment ID part, that is the part I can't find currently.
|
#10
|
||||
|
||||
![]()
What template are you modifying? I would think they would have the variable name in there.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|