Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Arrow Image next to posted links - Wiki style. Details »»
Arrow Image next to posted links - Wiki style.
Version: 1.00, by AURFSCAN AURFSCAN is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 03-06-2011 Last Update: Never Installs: 20
 
No support by the author.

This is a really neat mod I just figured out

While messing around with another mod I just posted https://vborg.vbsupport.ru/showthread.php?p=2170434 I worked out how to add an Image after links in posts and sigs.

Image in this example is a small arrow - see attached Image


add to additional.css


Code:
.signature a { 
  margin: 0px;
  padding-right: 15px;
  background-image: url('/images/link1.gif');
  background-position:right center;
    background-repeat: no-repeat;

}
.postcontent a { 
  margin: 0px;
  padding-right: 15px;
  background-image: url('/images/link1.gif');
  background-position:right center;
    background-repeat: no-repeat;

}

change the url to point to your Image location

.postcontent arrow image will apply itself to attachment and quote boxes too

also you dont have to have them both (post link and sig link Images) , just add what you want



remove Image from Internal links - see post 18

Screenshots

File Type: jpg linkimage.jpg (196.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-07-2011, 09:16 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taurus1 View Post
HUH? The arrow is right behind the link, so clicking it takes you to where the link goes. To me, it makes links stand out a bit more in posts. Looks good.
If the arrow takes you to the same place the link goes, then clicking the link or using the arrow is the same thing? That is kind of ambiguous, don't you think? To each their own, I guess.
Reply With Quote
  #13  
Old 03-07-2011, 09:22 AM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found the problem; had to add "/forum" :-)
now to go and look for a good indicator

not sure whether it is a bug though; the image also appears when someone edits a post
Reply With Quote
  #14  
Old 03-07-2011, 09:49 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AURFSCAN View Post
Boofo - sorry for any confusion, its basically what Taurus1 said in that it makes any links stand out and lets the reader know that its a link off site or just a link in general and says 'click here and I'll take you somewhere else' .... kinda wiki style
Actually, this might come in handy for my wiki bbcode tags. I can't see using it for all links but wiki links might be okay to use the image with.
Reply With Quote
  #15  
Old 03-07-2011, 08:23 PM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good Idea boofo, just a thought that if you use for wiki tags and all links it'll display arrow twice.

cheers
Reply With Quote
  #16  
Old 03-07-2011, 10:14 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AURFSCAN View Post
Good Idea boofo, just a thought that if you use for wiki tags and all links it'll display arrow twice.

cheers
I ended up just using it for my wiki tags. Here is what I added to the additional.css template:

HTML Code:
/* Arrow image next to wiki bbcode links */
.wikicontent {
  margin: 0px;
  padding-right: 15px;
  background-image: url('images/boofo/wiki_link.gif');
  background-position:right center;
  background-repeat: no-repeat;
}

and the attached pic is the result. Thanks for steering me in the right direction.
Attached Images
File Type: png testing.png (4.9 KB, 0 views)
Reply With Quote
  #17  
Old 03-14-2011, 12:28 AM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The "arrow" image link is supposed to identify "external" links. Any link that is "internal" would theoretically not have an "arrow" image. i doubt that is the case here.
Reply With Quote
  #18  
Old 03-14-2011, 12:51 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use it only to show wiki links. Makes them easier to spot in long posts.
Reply With Quote
  #19  
Old 03-14-2011, 01:11 AM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

'supposed to' and 'theoretically' are nice words... are they written in the Internet bible???


'Image in this example is a small arrow' says the Initial post.... example!




remove Image from Internal links

add to additional.css

Code:
/* remove Image from Internal links*/
.postcontent a[href^="http://www.yourdomain.com"] , a[href^="http:// yourdomain.com"] , a[href^="attachment.php?"] {
  color: #306091;
   background-image: none;
   padding-right: 0;
   
}






I found an Image for the bible thumpers that dont add the above code.


Reply With Quote
Благодарность от:
archet1337
  #20  
Old 02-07-2012, 07:22 PM
ClErK1991 ClErK1991 is offline
 
Join Date: May 2009
Location: Colombia
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this, however dont work on CMPS :P
marked as installed
Reply With Quote
  #21  
Old 02-13-2012, 08:27 PM
AURFSCAN AURFSCAN is offline
 
Join Date: Dec 2007
Posts: 328
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cmps article preview

Code:
.article_preview_contents a {color: #306091;margin: 0px;padding-right: 13px;background-image: url('/images/link1.png');
background-position:right center;background-repeat: no-repeat;}
.article_preview_contents a[href^="http://www.domain.com"] , a[href^="http:// domain.com"], a[href^="attachment.php?"] {
color: #306091;background-image: none;padding-right: 0;}
change bold

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:24 AM.


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.05583 seconds
  • Memory Usage 2,344KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete