vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - [OzzModz] URL Icon Before Or After Links In Posts (https://vborg.vbsupport.ru/showthread.php?t=314177)

ozzy47 12-04-2014 12:55 AM

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.

pablodip 12-07-2014 08:11 PM

it's very helpful

ozzy47 12-07-2014 08:16 PM

Glad you like it, and thanks for marking as installed. :)

CAG CheechDogg 12-10-2014 09:50 AM

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?

Black Snow 12-10-2014 09:59 AM

Quote:

Originally Posted by CAG CheechDogg (Post 2526569)
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.

CAG CheechDogg 12-10-2014 10:03 AM

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?

CAG CheechDogg 12-10-2014 10:23 AM

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;


Black Snow 12-10-2014 10:26 AM

Perhaps ozzy47 can update the mod to reflect domain which use HTTPS so people don't have to edit the mod.

CAG CheechDogg 12-10-2014 10:35 AM

Yes..I am sure he will be able to update as soon as he has time ...hes DA' MAN !!! :)

Black Snow 12-10-2014 10:37 AM

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.


All times are GMT. The time now is 11:21 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.01313 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete