News Flash:
New Version of ShopClass theme 1.4.0 is Released on 13 JUNE 2018, Please upgrade your installation.

Link is not visible in the ads

A place to talk about anything related to Tuffclassified theme in general. This is not the place to ask support questions.
Locked
swebdizajn
Noob
Posts: 7
Joined: Thu Jun 02, 2016 8:19 am

Link is not visible in the ads

Post by swebdizajn » Sun Jun 19, 2016 8:11 pm

Hello, is there any way to be an active link (URL) in the ad?
Regardless of whether it is used or RichEdit TinyMCE, the result is that the text link is not active in the ad text.

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Link is not visible in the ads

Post by tuffadmin » Tue Jun 21, 2016 4:07 am

Open item.php file and goto line number 50

Change this <div class="item_des_trunk"><p><?php echo tfc_clean_description(osc_item_description()); ?></p></div>

To
<div class="item_des_trunk"><p><?php echo osc_item_description(); ?></p></div>

Or you can also make change in core-founctions.php file, open file and goto line number 1340
and change this function

/************************************************************\
*Clean Description or given String
\************************************************************/
function tfc_clean_description($string){
$string=preg_replace('/<a[^>]*>/i', ' ', $string);
$string=preg_replace('/<\/a>/i', ' ', $string);
$string=str_replace ('<p>&nbsp;</p>',' ',$string);
$string=preg_replace("{(<br[\\s]*(>|\/>)\s*){1,}}i", " ", $string);
//$string=preg_replace("{(<br[\\s]*(>|\/>)\s*)}i", "<br />", $string);

return $string;

}

To

/************************************************************\
*Clean Description or given String
\************************************************************/
function tfc_clean_description($string){
//$string=preg_replace('/<a[^>]*>/i', ' ', $string);
//$string=preg_replace('/<\/a>/i', ' ', $string);
$string=str_replace ('<p>&nbsp;</p>',' ',$string);
$string=preg_replace("{(<br[\\s]*(>|\/>)\s*){1,}}i", " ", $string);
//$string=preg_replace("{(<br[\\s]*(>|\/>)\s*)}i", "<br />", $string);

return $string;

}
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

swebdizajn
Noob
Posts: 7
Joined: Thu Jun 02, 2016 8:19 am

Re: Link is not visible in the ads

Post by swebdizajn » Thu Jun 23, 2016 8:24 am

This works perfectly! Thanks tuff admin :)

swebdizajn
Noob
Posts: 7
Joined: Thu Jun 02, 2016 8:19 am

Re: Link is not visible in the ads

Post by swebdizajn » Thu Jun 23, 2016 8:28 am

When we are here ... is there a way to get into tiny_mce when activated (off rich edit), added option to insert a link in the text? (Toolbar, button ... etc).

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Link is not visible in the ads

Post by tuffadmin » Fri Jun 24, 2016 6:56 am

Open core-functions.php file than goto line no. 986, find Tiny_Mce code their for toolbar1 and add "link" separated by space.

See here for more customisation options:
https://www.tinymce.com/docs/demo/full-featured/
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

swebdizajn
Noob
Posts: 7
Joined: Thu Jun 02, 2016 8:19 am

Re: Link is not visible in the ads

Post by swebdizajn » Fri Jun 24, 2016 7:59 am

Yes, but this is not working ... does not appear to link a defined place ... here's the picture ...

Image
Image

Hmm ... what could be the problem?

User avatar
tuffadmin
Site Admin
Posts: 1236
Joined: Tue Jan 29, 2013 7:31 pm
Has thanked: 33 times
Been thanked: 111 times

Re: Link is not visible in the ads

Post by tuffadmin » Fri Jun 24, 2016 6:23 pm

My fault forgot to mention that you also need to add " link " in plugin section of code like:
plugins: [
"code fullscreen",

"paste textcolor link"
],
No support for unnecessary PM, use forum for support queries.
Please give us good review if you bought our theme from Osclass Market

swebdizajn
Noob
Posts: 7
Joined: Thu Jun 02, 2016 8:19 am

Re: Link is not visible in the ads

Post by swebdizajn » Fri Jun 24, 2016 10:23 pm

This is working perfectly!

TinyMCE is a good editor. Thank you

Locked