Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
[OzzModz] URL Icon Before Or After Links In Posts Details »»
[OzzModz] URL Icon Before Or After Links In Posts
Version: 2.0.2, by ozzy47 ozzy47 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 09-07-2014 Last Update: 12-03-2014 Installs: 25
Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

Another mod brought to you by,


This is a modification that will will add a url icon before or after every link in your posts. It will also allow you to have different images for internal and external links. You can also set different colors for the links, instead of the default link color.

It is a simple installation, upload the file in the UPLOAD folder, then import the product XML, product-ozzmodz_url_icon

You can edit the options under the settings, [OzzModz] URL Icon Before Or After Links In Posts Settings
You can change the stylevars in each style found under the group OzzModz. Their is thirteen of them and all start with ozzmodz_url_icon_

Complete Feature List
  • Option to disable the mod completely.
  • Option to display the image before or after the links.
  • Option to show different icons for internal and external links.
  • Option to set a url whitelist, that will be treated as internal links.
Complete Stylevar List
  • ozzmodz_url_icon_images This is used if you are not displaying different images for internal/external links.
  • ozzmodz_url_icon_images_color Color for links. This is used if you are not displaying different images for internal/external links.
  • ozzmodz_url_icon_images_hover_color Hover color for links. This is used if you are not displaying different images for internal/external links
  • ozzmodz_url_icon_images_ext This is used if you are displaying different images for internal/external links, this is for the external link.
  • ozzmodz_url_icon_images_ext_color Color for external links. This is used if you are displaying different images for internal/external links.
  • ozzmodz_url_icon_images_ext_hover_color Hover color for external links. This is used if you are displaying different images for internal/external links.
  • ozzmodz_url_icon_images_int This is used if you are displaying different images for internal/external links, this is for the internal link.
  • ozzmodz_url_icon_images_int_color Color for internal links. This is used if you are displaying different images for internal/external links.
  • ozzmodz_url_icon_images_int_hover_color Hover color for internal links. This is used if you are displaying different images for internal/external links.
  • ozzmodz_url_icon_left_image_margin This is the amount of space inbetween the image and the preceding text, when it is to the left of the links.
  • ozzmodz_url_icon_left_image_padding This is the amount of space inbetween the image and the link, when it is to the left of the links.
  • ozzmodz_url_icon_right_image_margin This is the amount of space inbetween the image and the following text, when it is to the right of the links.
  • ozzmodz_url_icon_right_image_padding This is the amount of space inbetween the link and the image, when it is to the right of the links.
Frequently Asked Questions.

Q. How do I upgrade from version 1.x.x to version 2.0.0?

A. Same as installing the mod for the first time. Upload the file in the UPLOAD folder, then import the product XML, product-ozzmodz_url_icon.

Q. Why do I need such a thing, you ask?

A. Some admins might like to have this as it makes it easier for users to identify links in the posts.

Q. How do I change the image(s)?

A. This can be done by editing the stylevars, ozzmodz_url_icon_images, ozzmodz_url_icon_images_ext and ozzmodz_url_icon_images_int found under the group OzzModz in each of your styles.

Q. How do I change the space around the image(s)?

A. This can be done by editing the stylevars, ozzmodz_url_icon_left_image_margin, ozzmodz_url_icon_left_image_padding, ozzmodz_url_icon_right_image_margin and ozzmodz_url_icon_right_image_padding found under the group OzzModz in each of your styles.

Q. How do I change the link color(s)?

A. This can be done by editing the stylevars, ozzmodz_url_icon_images_color, ozzmodz_url_icon_images_hover_color, ozzmodz_url_icon_images_ext_color, ozzmodz_url_icon_images_ext_hover_color, ozzmodz_url_icon_images_int_color and ozzmodz_url_icon_images_int_hover_color found under the group OzzModz in each of your styles.


-------------------------------------------------------------------------------------------

If you like this mod please hit the button to the right ---->

Please remember to click the, button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

* History (Changelog) *
-------------------------
v1.0.0 (September 7, 2014)
- Initial public release.

v1.0.1 (September 8, 2014)
- Now it is compatible with the old style postbit.

v1.1.0 (September 11, 2014)
- Deleted the image setting, and made it a stylevar, so you can have different images for each style.

v2.0.0 (October 5, 2014)
- Added ability to have different images for internal/external links.
- Added a url whitelist, that will be treated as internal links.
- Image(s) will no longer show next to the quoted by link in post quotes.
- Images will no longer show up in the attachments box.
- Images will no longer show next to the email links.
- Images will no longer show up next to inline images.
- Added additional stylevars to control the new images, and the padding and margin.
- Added stylevars to set colors for the links.
- Added code to tell the difference between internal/external links.
- Added two more CSS templates, for use with the internal/external images.

v2.0.1 (October 7, 2014)
- Fixed a issue with the CSS not showing in v2.0.0

v2.0.2 (December 3, 2014)
- Added a fix for a potential minor XSS exploit. There was no one that reported this, this is just a update to make sure the mod is fully secure.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
CoZmicShReddeR

Comments
  #22  
Old 09-09-2014, 07:17 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a idea what might be going on. I think instead of having the image in a vBoption, I need to do it as a stylevar. I'll test it out later tonight, and if it works, I'll update the mod.

It might actually be better this way, then you can have different images for each style.
Reply With Quote
  #23  
Old 09-11-2014, 09:26 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll try and get the update out today, it works pretty good as a stylevar.
Reply With Quote
  #24  
Old 09-11-2014, 08:49 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

v1.1.0 (September 11, 2014)
- Deleted the image setting, and made it a stylevar, so you can have different images for each style.
Reply With Quote
  #25  
Old 09-12-2014, 01:54 AM
Marcin1 Marcin1 is offline
 
Join Date: Sep 2012
Location: Poland
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Before the update was added mod was displayed in thread. Now an image is blank
Reply With Quote
  #26  
Old 09-12-2014, 01:56 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you check the stylvars and make sure the image is set, it should be url.png
Reply With Quote
  #27  
Old 09-12-2014, 02:19 AM
Marcin1 Marcin1 is offline
 
Join Date: Sep 2012
Location: Poland
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's working now! Sorry I missed that step.
Reply With Quote
Благодарность от:
ozzy47
  #28  
Old 09-12-2014, 02:23 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

TBH it should have set that on install, but for some reason sometimes the stylevars don't get set when you import the mod.
Reply With Quote
  #29  
Old 09-12-2014, 09:34 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I found the issue with the stylevar, it's been fixed in the zip file.
Reply With Quote
  #30  
Old 09-12-2014, 12:13 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Latest version fixed my issues, custom images work fine now, thanks.

Couple of recommendations for future releases:
1) Add the padding-left/right option to the stylevar
2) Add a margin-left/right option and put it in the stylevar
3) Add the ability to use different icons based on whether the link leaves the site (changes domain) or is an internal link.
Reply With Quote
Благодарность от:
ozzy47
  #31  
Old 09-12-2014, 01:19 PM
OUTL4W OUTL4W is offline
 
Join Date: May 2013
Location: Gettysburg, Pa
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

would it be possible to pull in the favicon from the url?...if not that's ok...
Reply With Quote
Благодарность от:
ozzy47
Reply

Thread Tools

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 07:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05539 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_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
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete