how to remove link from title

15 years 11 months ago #62846 by bioboy
how to remove link from title was created by bioboy
another simple but important question: what is the way to remove the link on picture's title?

Please Log in to join the conversation.

15 years 11 months ago #62911 by claudeesti
Replied by claudeesti on topic Re:how to remove link from title
It's in the cb.profilegallery.php

located in : components/com_profiler/plugin/user/plug_cgprofilegallery/

line: 1062

[code:1] $pgitemurl = "<a href=\"" . $pgitemfilenameuserpath . "\">" . $pgitemfilename . "</a>";[/code:1]

It's the link you could just let :

[code:1]$pgitemfilename[/code:1]

to still have the title

i suggest you to make a backup of your file before messing with the code.

Please Log in to join the conversation.

15 years 11 months ago #62912 by bioboy
Replied by bioboy on topic Re:how to remove link from title
I found and replace the code but the link is still alive
it's incredible...

also the in my file the portion of code is situaded on line 1058 instead of 1062

I replace the code with:

$pgitemurl = $pgitemfilename;
but no way

Please Log in to join the conversation.

15 years 11 months ago #62916 by claudeesti
Replied by claudeesti on topic Re:how to remove link from title
yeah you are right my informations was missleading im sorry i made a mistake :S

I hope you made a backup like i told you...

I found out that it depend on how you display your gallery...

i could change my titles at this line (1212).

[code:1] $htmltext2.= "<a href=\"".sefRelToAbs($pgitemfilenameuserpath) . "\" target=\"_blank\"><b>" . $html_pgitemtitle_formatted . "</b></a><br />"[/code:1]

It's in part of this code:

[code:1]// Check file extension type
//<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
$inimagelist = in_array($pgitemtype,explode(",",$tabparams["pgimagefiletypelist"]));
if ($tabparams["pgopmode"]!="FILEMODE" && $inimagelist){
$htmltext2.= "<a href=\"".sefRelToAbs($pgitemfilenameuserpath) . "\" target=\"_blank\"><b>" . $html_pgitemtitle_formatted . "</b></a><br />"
. "<div style=\"height:".$tabparams["pgtnmaxheight"]."px;\">"
. "<a href=\"$pglivelink\" rel=\"lightbox[group]\" title=\"$html_pgitemlightbox\">"
. "<img src=\"" . $pgitemthumbuserpath . "\" border=\"0\" height=\"$newtn_height\" width=\"$newtn_width\" alt=\"\" title=\"" . $html_pgitemdescription . "\" />"
. "</a>"
. "</div>"
. "<br /><br />";[/code:1]

the variable

$html_pgitemdescription is the output of the Title in proper HTML format.

What i suggest you to do is to Find one by one the <b>" . $html_pgitemtitle_formatted . "</b>

and replace it with <b> test </b> remember do it one by one so you can see witch one it is.

each time you do it if you didnt found it restore it to the hold variable once you'll find i you just need ti change the <a> </a> witch is the link or just output $htmltext2.= $html_pgitemtitle_formatted

Please Log in to join the conversation.

15 years 11 months ago #62920 by bioboy
Replied by bioboy on topic SOLVED Re:how to remove link from title
ok fantastic!

I just find the correct string and simple remove the href link

now all work correctly I'm able to see the title without link

for your information

the code line is: 1208

I replace this code:

$htmltext2.= "<a href=\"".sefRelToAbs($pgitemfilenameuserpath) . "\" target=\"_blank\"><b>" . $html_pgitemtitle_formatted . "</b></a><br />"

with this one:

$htmltext2.= "<b>" . $html_pgitemtitle_formatted . "</b><br />"

thank you very much for your help I trust this solution could be very useful for many members

regards

Davide

Please Log in to join the conversation.

15 years 11 months ago #62931 by claudeesti
Replied by claudeesti on topic Re:how to remove link from title
you are welcome ;)

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.296 seconds

Facebook Twitter LinkedIn