1
Runeher
<link rel="image_src" href="" />
  • 2010/5/21 0:30

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


Hi, can someone please tell me how I can add the following code via preload ?

<link rel="image_src" href="http://site.com/modules/some_module/images/some_image.gif" />


Every attemt seem to fail... :/




2
Runeher
Re: <link rel="image_src" href="" />
  • 2010/6/15 17:02

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


Ok, I found the solution and it turned out to be an easy one...lol

if(isset($xoTheme) && is_object($xoTheme)) 
$xoTheme->addLink'image_src" type="image/jpeg" href="'.XOOPS_URL.'/modules/yourmodule/images/someimage.jpg');
}


If you use this in core.php in preloads or directly in index.php before

include_once XOOPS_ROOT_PATH."/footer.php";


you will control how a link from the module (index.php if you only add it there) will show on ie. Facebook, etc... instead of the option of scrolling through 15 unrelevant images from the site... :)

Login

Who's Online

172 user(s) are online (91 user(s) are browsing Support Forums)


Members: 0


Guests: 172


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits