vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I show full links insted of short? (https://vborg.vbsupport.ru/showthread.php?t=149837)

postcd 04-05-2013 11:35 AM

It DO NOT works!!!!

In includes/class_bbcode.php

i have:
if (vbstrlen($tmp) == 1 AND $this->is_wysiwyg() == false)
{
$text = htmlspecialchars_uni(vbchop($tmp, 36) . '...' . substr($tmp, -14));
}

a) I even commented + deleted out whole if{}
b) Changed only value of maximal chars.

Deleted cache.
Newly added long links are still shortened! WHY?!

Lynne 04-05-2013 03:22 PM

You didn't do what post 7 said to do. It said nothing about ==1, it said > *a big number*

postcd 04-06-2013 08:35 AM

Quote:

Originally Posted by Lynne (Post 2414462)
You didn't do what post 7 said to do. It said nothing about ==1, it said > *a big number*

Thank you, man i did it
Quote:

b) Changed only value of maximal chars.
but it still did not worked.

Im pasting what i have:
Code:

                if (!trim($link) OR $text == $rightlink)
                {
                        $tmp = unhtmlspecialchars($text);
        if (vbstrlen($tmp) > 500 AND $this->is_wysiwyg() == false)
                          {
                                  $text = htmlspecialchars_uni(vbchop($tmp, 36) . '...' . substr($tmp, -14));
                          }                       
                }

When i post new post with long link ~200 chars, its still shortened.

PS: i have vbseo, but did not found any setting for this

Lynne 04-06-2013 03:39 PM

Disable all modifications on your site and then see if it works.

Also, did you change that code *every place* where it is in that file (at least 3 places)?

postcd 04-07-2013 09:49 AM

Im sorry for my ignorance Lyne, i did not thought there could be more locations in file. Now fixed :eek:


All times are GMT. The time now is 04:36 PM.

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.00953 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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