Extension talk:YAMBE

About this board

Fix for not working on MSSQL

1
Kevin71246 (talkcontribs)

This wouldnt work for me. I do have MSSQL.

Fix:

LocalSettings.php for default install:

$URLSplit = "/index.php?title=";


yambe.php: (around line:205)

$res = $dbr->select(array ("revision", "text", "page",),

                    //"old_text",

                    "Top 1 old_text",

                     array( "page_title" =>$pgName, "page_namespace" => $ns),

                     __METHOD__,

                     //array ("ORDER BY"=>"rev_id desc limit 1"),

                    array ("ORDER BY"=>"rev_id desc"),

                     array("text" => array ("LEFT JOIN", "old_id=rev_text_id" ),

                           "revision" => array( 'LEFT JOIN', 'rev_page=page_id')));


Reply to "Fix for not working on MSSQL"
Brett.Dutton (talkcontribs)

Made an update to YAMBE that you might want to include

function linkFromText( $page, $displayText, $nsID = 0 )
{
    $title = Title::newFromText( trim( $page ), $nsID );

    if ( !is_null( $title ) ) {
        return Linker::linkKnown( $title, $displayText );
    }
    else {
        return "";
    }
}
Reply to "Update for 1.27"

Suggested Feature: Decorations

1
WmBliss (talkcontribs)

This is an excellent extension.

I would love to see...

  • Font size selection in setup.
  • Font color selection in setup.
  • The ability to place these breadcrumbs on the page's title line.
  • Integration with MediaWiki's own subpage breadcrumbs.
Reply to "Suggested Feature: Decorations"

YAMBE Tag on PDF output

3
Summary by Zerano8

Changed yambe.php:

In function yambeSetParent:

...

$textbox = "<div class='noprint'>"."<yambe:breadcrumb>$parent[1]|$display</yambe:breadcrumb>"."</div>";

Zerano8 (talkcontribs)

Hi,

the Extension works on MW 1.24, but always prints the <yambe:breadcrumb> Tags in the PDF documents.

That's quite strange, because I deactivated it on my print.css:

div#yambe { display: none !important; }

When I print on paper, there's no problem, the yambe tag will not be print!

Zerano8 (talkcontribs)

Works with:

 <div class="noprint"> <yambe:breadcrumb>Content|Content</yambe:breadcrumb> </div>

Now I'm looking for a possibility to let the yambe Extension create that automatically. So if s.o has an idea how to modify the yambe.php code...

Zerano8 (talkcontribs)

Ok, problem solved!

I changed yambe.php:

I changed in:

function yambeSetParent(&$textbox, &$title) ...

...

$textbox = "<div class='noprint'>"."<yambe:breadcrumb>$parent[1]|$display</yambe:breadcrumb>"."</div>";

QuantumTiger (talkcontribs)

Code has been moved to google code pending the closure of shadowfax.org.uk site. I will do my best to continue to maintain this project but if any other editors want access to the code-base on google, please contact me QuantumTiger (talk) 10:59, 28 November 2012 (UTC)

Reply to "Code moved"
There are no older topics
Return to "YAMBE" page.