Bitcoin Forum
April 23, 2024, 09:15:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: A little help please - im guessing its php - single click redirect and vanish  (Read 142 times)
The_Trader (OP)
Member
**
Offline Offline

Activity: 180
Merit: 52


View Profile
April 09, 2019, 03:08:31 AM
Merited by suchmoon (4), eckmar (1)
 #1

Man I'm so fucked off  Cheesy

4 hours on google and i still cant figure it out.

And breath !!!!

So I am trying to figure out how this dude does this :



So basically you click on the blue button and it opens his youtube page up in another browser tab, well that's simple code even for me but the bit I cant get my head around is when you go back to his page that button has gone and the download link has been revealed.

How the hell is he doing that ?

I want to use similar for a faucet i am creating and would love to be able to add that feature.

Im not worried about the download link its just the redirect and un-veil bit im interested in

His link is http://ramindigital.com/template10/free-intro-6.php

I thought to start with perhaps it was a meta refresh but thats not the case

Any help would be great

TT
1713863725
Hero Member
*
Offline Offline

Posts: 1713863725

View Profile Personal Message (Offline)

Ignore
1713863725
Reply with quote  #2

1713863725
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713863725
Hero Member
*
Offline Offline

Posts: 1713863725

View Profile Personal Message (Offline)

Ignore
1713863725
Reply with quote  #2

1713863725
Report to moderator
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5523


Self-proclaimed Genius


View Profile
April 09, 2019, 05:33:20 AM
Merited by eckmar (2)
 #2

You can do the same thing using the combination of CSS and HTML by hiding the "link" underneath the displayed "subscribe button".
Add: a.subscribebutton:visited {display = "none"} to hide it after one click which displays the link behind it.
Just change the special class "subscribebutton" to your liking and add to subscribe button's element class="subscribebutton".

Javascript can also do the same : Javascript - Hide/Show. But it's toggle-able.

Add the attribute: target="_blank" to your HTML link(s) to open the link in a new tab .
Code:
<a target="_blank" href="google.com">Link to Google</a>

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
eckmar
Legendary
*
Offline Offline

Activity: 1878
Merit: 1038


Telegram: https://t.me/eckmar


View Profile
April 09, 2019, 07:55:13 AM
 #3

You can do the same thing using the combination of CSS and HTML by hiding the "link" underneath the displayed "subscribe button".
Add: a.subscribebutton:visited {display = "none"} to hide it after one click which displays the link behind it.
Just change the special class "subscribebutton" to your liking and add to subscribe button's element class="subscribebutton".

Javascript can also do the same : Javascript - Hide/Show. But it's toggle-able.

Add the attribute: target="_blank" to your HTML link(s) to open the link in a new tab .
Code:
<a target="_blank" href="google.com">Link to Google</a>

Thats one solution, better one is to store the download link in some variable in js (or even get it after button is clicked) and then remove button with js or change link to the newly gotten link. Hope I've explained it fine.
The_Trader (OP)
Member
**
Offline Offline

Activity: 180
Merit: 52


View Profile
April 09, 2019, 11:01:09 AM
 #4

You can do the same thing using the combination of CSS and HTML by hiding the "link" underneath the displayed "subscribe button".
Add: a.subscribebutton:visited {display = "none"} to hide it after one click which displays the link behind it.
Just change the special class "subscribebutton" to your liking and add to subscribe button's element class="subscribebutton".

Javascript can also do the same : Javascript - Hide/Show. But it's toggle-able.

Add the attribute: target="_blank" to your HTML link(s) to open the link in a new tab .
Code:
<a target="_blank" href="google.com">Link to Google</a>

Right so its some sort off css witchcraft skulduggery.

So im guessing then the css will force the image into position and then a.subscribebutton:visited {display = "none"} will remove it

Many Thanks both for your replies

TT
HeRetiK
Legendary
*
Offline Offline

Activity: 2912
Merit: 2079


Cashback 15%


View Profile
April 09, 2019, 03:41:05 PM
 #5

Right so its some sort off css witchcraft skulduggery.

So im guessing then the css will force the image into position and then a.subscribebutton:visited {display = "none"} will remove it

Many Thanks both for your replies

TT

While a fun approach setting a:visited { display: none; } will likely not work on most modern browsers:

For privacy reasons, browsers strictly limit which styles you can apply using this pseudo-class, and how they can be used:
  • Allowable CSS properties are color, background-color, border-color, border-bottom-color, border-left-color, border-right-color, border-top-color, column-rule-color, and outline-color.
  • Allowable SVG attributes are fill and stroke.
  • The alpha component of the allowed styles will be ignored. The alpha component of the element's non-:visited state will be used instead, except when that component is 0, in which case the style set in :visited will be ignored entirely.
  • Although these styles can be change the appearance of colors to the end user, the window.getComputedStyle method will lie and always return the value of the non-:visited color.

This means you'll probably have to rely on JavaScript instead.

If you want the website to remember whether a user has clicked the button you'll then additionally have to persist it locally using either cookies, Local Storage or IndexedDB with Local Storage probably being the recommendable approach for this use case.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!