Okay, although I tried to be clear already on first times..
But could you first explain something to me? What gallery mod adds a gallery button? This gallerybutton mod can be used with.. well any gallery, or any content, sure.. but mostly I designed it for coppermine gallery, when I installed coppermine gallery, no new buttons appeared after bridging..
Okay, my work consists of 2 parts.
1) MOD for SMF: GalleryButton MOD.
This is a modification for SMF (which works under TinyPortal also). It creates a new button that says Gallery. This can be made to point to any URL you want. There's also switch for it, you can hide it from guests if you want to.
This MOD also installs a support file to SMF's Sources that can be used if people want to use my SMFTP theme with Coppermine. This file is used for displaying header with navigation links from Coppermine. This setup helps people, since IFRAMEs really aren't that good for this job. With this setup, you don't need IFRAME, it loads SMF's topmost menu and info center from coppermine as a header. Browser compatibility much better this way (IFRAMEs cause many kind of problems). This can be also used for any other application that would be glad to have SMF's navigation at top of the page..
TinyPortal issue: TinyPortal's language file is not loaded automaticly by this script, as it doesn't call "the main" smf, it just calls the part needed to provide header with navigation of site. Therefore while designing this I noticed that link "Forum" does not display (as loaded language files don't contain it) at all, so I made this MOD to autodetect if TinyPortal is installed, and if it is, it loads language file for TinyPortal and therefore problem is solved. Error log doesn't come up full with errors about missing file when using it without TinyPortal because of detection routine. Detection is pretty simple, it actually just checks if there is TPortal.php in Sources, but that's enough..
Special theme made for Coppermine. Needs support from my GalleryButton MOD as this theme doesn't have page header at all, this is supposed to come from SMF side. It also must be used in bridged mode (as this way SMF's Load.php is included which is needed to provide full functionality)
Satisfied or still have questions?