Welcome Guest [Log In] [Register]
Support Staff Recommendation
All communities remaining on zIFBoards/InvisionFree should check their conversion opt-in selection in their Admin CP (menu item Tapatalk Conversion)
(Read More)
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Locked Topic
[ ! ] Pip/Rank images link to specified page?
Topic Started: Dec 6 2017, 05:18 PM (176 Views)
Revillution.net
Member
[ *  *  * ]
Would it be possible to make a code that allows a specified page (within the code) to link the pip/rank images?

I'll try to post an example the best I can for reference.....

Image is below.....

Posted Image

So when someone hovers over it, it's a link to a specific page within the website builder?

Is this possible?
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

You want all pip/rank images to link to the same page, or a different page for each pip/rank image?
Offline Profile Goto Top
 
Revillution.net
Member
[ *  *  * ]
DaPizzaMan
Dec 7 2017, 12:05 AM
You want all pip/rank images to link to the same page, or a different page for each pip/rank image?
Same page is fine. :) Makes it easier.
Offline Profile Goto Top
 
Skyon Archer
Member Avatar
Member
[ *  *  *  * ]
Depends on your setup. If you are using actual pips or if you are using usertitle images (like in your example), but it could be this:

Code:
 
<script type="text/javascript">
$('.pip').each(function(){
$(this).wrapAll('<a href="' + main_url +'" />');
});
</script>


... or this ...

Code:
 
<script type="text/javascript">
$('.usertitle img').each(function(){
$(this).wrapAll('<a href="' + main_url +'" />');
});
</script>
Offline Profile Goto Top
 
Revillution.net
Member
[ *  *  * ]
Skyon Archer
Dec 7 2017, 06:42 PM
Depends on your setup. If you are using actual pips or if you are using usertitle images (like in your example), but it could be this:

Code:
 
<script type="text/javascript">
$('.pip').each(function(){
$(this).wrapAll('<a href="' + main_url +'" />');
});
</script>


... or this ...

Code:
 
<script type="text/javascript">
$('.usertitle img').each(function(){
$(this).wrapAll('<a href="' + main_url +'" />');
});
</script>
So how would I link it to say boarddurl/pages/ranks/ ? or something like that? Where would the code be edited to do that exactly? don't see where i'd put it in after main_url?

Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
After:
Code:
 
' + main_url +'
Add:
Code:
 
pages/ranks/
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic