Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Advertise on this site

Joomlapolis Forums  


how to remove link from title
Date: 2008/05/13 16:56 By: bioboy Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 12
graphgraph
another simple but important question: what is the way to remove the link on picture's title?
www.SexyCommunity.it
www.SexyLombardia.it
Click here to see the profile of this user The administrator has disabled public write access.

Re:how to remove link from title
Date: 2008/05/14 16:23 By: claudeesti Status: CB Doc subscriber  
Karma: 0  
Fresh Joomlapolitan

Posts: 17
graphgraph
It's in the cb.profilegallery.php

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

line: 1062

Code:

     $pgitemurl "<a href=\"" . $pgitemfilenameuserpath . "\">" $pgitemfilename "</a>";



It's the link you could just let :

Code:

 $pgitemfilename



to still have the title

i suggest you to make a backup of your file before messing with the code.
Click here to see the profile of this user The administrator has disabled public write access.

Re:how to remove link from title
Date: 2008/05/14 16:41 By: bioboy Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 12
graphgraph
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
www.SexyCommunity.it
www.SexyLombardia.it
Click here to see the profile of this user The administrator has disabled public write access.

Re:how to remove link from title
Date: 2008/05/14 17:19 By: claudeesti Status: CB Doc subscriber  
Karma: 0  
Fresh Joomlapolitan

Posts: 17
graphgraph
yeah you are right my informations was missleading im sorry i made a mistake

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:

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



It's in part of this code:

Code:

 // 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 />";



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
Click here to see the profile of this user The administrator has disabled public write access.

SOLVED Re:how to remove link from title
Date: 2008/05/14 17:41 By: bioboy Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 12
graphgraph
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
www.SexyCommunity.it
www.SexyLombardia.it
Click here to see the profile of this user The administrator has disabled public write access.

Re:how to remove link from title
Date: 2008/05/14 19:39 By: claudeesti Status: CB Doc subscriber  
Karma: 0  
Fresh Joomlapolitan

Posts: 17
graphgraph
you are welcome
Click here to see the profile of this user The administrator has disabled public write access.

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC2, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login