Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

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
  #62  
Old 12-04-2014, 12:55 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

v2.0.2
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.
Reply With Quote
2 благодарности(ей) от:
CAG CheechDogg, Charis
  #63  
Old 12-07-2014, 08:11 PM
pablodip pablodip is offline
 
Join Date: Mar 2014
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's very helpful
Reply With Quote
Благодарность от:
ozzy47
  #64  
Old 12-07-2014, 08:16 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you like it, and thanks for marking as installed.
Reply With Quote
  #65  
Old 12-10-2014, 09:50 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ozzy my Man... for me it doesn't give me the options "edit" "delete" in the settings ...

Also all links have the external image even though the links are internal ... any idea?
Reply With Quote
  #66  
Old 12-10-2014, 09:59 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CAG CheechDogg View Post
Ozzy my Man... for me it doesn't give me the options "edit" "delete" in the settings ...

Also all links have the external image even though the links are internal ... any idea?
The edit/delete links are only when debug mode (I think it's called) is enabled. It more for developers.

It seems from the image in the OP that it shows an image for internal and external links but with an option to have different ones for both.
Reply With Quote
  #67  
Old 12-10-2014, 10:03 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok...edit/delete question answered..

I still don't get the internal image for internal links ..still getting the external for all links ...

Could it be because I have https instead of http?
Reply With Quote
  #68  
Old 12-10-2014, 10:23 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

YEEP !!! That was the issue...

Because I have https enabled on my site the install code has only (http) all through the install xml file ..


This is what I changed for it to work, I replaced all the http references to https ....

Code:
from

$domain = htmlspecialchars_uni($_SERVER['HTTP_HOST']);

to

$domain = htmlspecialchars_uni($_SERVER['HTTPS_HOST']);

from

if (href.indexOf("http://")!=-1)

to

if (href.indexOf("https://")!=-1)

from

//return (href.indexOf("http://")!=-1 && href.indexOf(hostname)==-1) ? false : true;

to

//return (href.indexOf("https://")!=-1 && href.indexOf(hostname)==-1) ? false : true;
Reply With Quote
  #69  
Old 12-10-2014, 10:26 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps ozzy47 can update the mod to reflect domain which use HTTPS so people don't have to edit the mod.
Reply With Quote
Благодарность от:
CAG CheechDogg
  #70  
Old 12-10-2014, 10:35 AM
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
Location: Riverside, California USA
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes..I am sure he will be able to update as soon as he has time ...hes DA' MAN !!!
Reply With Quote
  #71  
Old 12-10-2014, 10:37 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another option in the settings to allow admins to select if they use HTTP or HTTPS might do the trick with an edit to the plugin(s) to reflect the new settings.
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 03:23 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.04941 seconds
  • Memory Usage 2,331KB
  • Queries Executed 27 (?)
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)bbcode_code
  • (1)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (5)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_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
  • 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