1
rossb
Xoops 2.5.8 smarty popups
  • 2016/12/31 14:36

  • rossb

  • Just popping in

  • Posts: 77

  • Since: 2006/8/28


Hi;

I am updating some old sites to 2.5.8 where I used overlib popups linked to dictionary words to precisely define terminology, to avoid confusion. Example:

http://www.nazisociopaths.org/modules/article/view.article.php/c1/34

I would like to use xoops best practice to achieve this. It seems that smarty function "function.popup.php" is the way to go, but I cannot find usage documentation and how to style the popups, for example, to achieve the bubble effect.

The next best choice appears to be to use these popups:

http://www.macridesweb.com/oltest/STARTED.html

Also, currently, the bubble links and contents are created once by an offline php script which takes input html and a dictionary file to automatically create the popup links in output html. I would like to automate the popup link creation using something like this (process before cache):

$xoopsTpl =& $xoTheme->template;
$xoopsTpl->load_filter('outputfilter.insertpopups);

Where insertpopups is a php function.

My questions are this:
1 - Am I on the right track?
2 - Can smarty popups do this - documentation / examples?
2 - If not, is the overlibmws approach I linked the best choice? Alternatives?

My long term goal is to create a module where words and definitions are admined, stored in xoops_db with a global variable controlling which, if any definition DB is used to display popups.

Thanks;
Bill

2
Bleekk
Re: Xoops 2.5.8 smarty popups
  • 2016/12/31 15:48

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


yes, you can use the function.popup.php smarty.
this is not a specific xoops smarty so you can find the documentation on the internet

Login

Who's Online

187 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 187


more...

Donat-O-Meter

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

Latest GitHub Commits