Skip to Content Skip to Menu

Public user/UddeIM TAB question(s)

  • mrocks
  • mrocks
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
16 years 4 months ago #68406 by mrocks
Replied by mrocks on topic Re:Public user/UddeIM TAB question(s)
Thank you slabbi....ur super fast....
It worked for me.....

I think I need to place this link in pms.uddiem.php by replacing XX into $my->id
It would be really helpful to all...if you guide... as in where to place this link...

thanks....:)

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 4 months ago #68415 by slabbi
Replied by slabbi on topic Re:Public user/UddeIM TAB question(s)
Not checked. Maybe the returned HTML code needs some tuning.

[code:1]
function getDisplayTab($tab,$user,$ui) {
global $mainframe, $database, $my, $_POST, $_CB_OneTwoRowsStyleToggle;

if (!$my->id) {

$return .= "\n\t<div class=\"sectiontableentry".$_CB_OneTwoRowsStyleToggle."\" style=\"padding-bottom:5px;\">\n";
$_CB_OneTwoRowsStyleToggle = ($_CB_OneTwoRowsStyleToggle == 1 ? 2 : 1);
if($showTitle) $return .= "\t\t<div class=\"titleCell\" style=\"align: left; text-align:left; margin-left: 0px;\">"
.unHtmlspecialchars(getLangDefinition($tab->title)).(($showSubject && $capabilities["subject"])?"" : ":"«»)."</div>\n";
$return .= $this->_writeTabDescription( $tab, $user );
$return .= "ADD YOUR LINK HERE";
$return .= "</div>";
return $return;
}
[...]
[/code:1]

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • mrocks
  • mrocks
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
16 years 4 months ago #68422 by mrocks
Replied by mrocks on topic Re:Public user/UddeIM TAB question(s)
Works like a charm...thanks...

The link part did required some tuning.... tried all the combinations...
finally uncommented
[code:1]//$udde_msg = str_replace("<a href=\"", "[url=", $udde_msg);
//$udde_msg = str_replace("<a href=\\\"", "[url=", $udde_msg);
//$udde_msg = str_replace("\">", "]", $udde_msg);
//$udde_msg = str_replace("\\\">", "]", $udde_msg);
//$udde_msg = str_replace("</a>", "[/url]", $udde_msg);[/code:1]

I know not a good practice....but it works....so no problem... :)

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum