41
fatman
Re: Date and Time SMARTY Variable
  • 2004/4/14 21:07

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


// in your php file
$xoopsTpl->assign('current_date'time());


<!--
// in your template //-->
<{$current_date|date_format}>


Is one way to it. You could stick the php in your /footer.php file and then the smarty tag would be available to all your pages.


HTH



42
fatman
Re: Object-Oriented 3rd Party Modules?
  • 2004/4/13 3:35

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I can only echo the same. I've learned lots from Mithrandir's modules. My modules don't ever end up being completely OOP as I'm still discovering the core and documentation is a work in progress (but getting fuller and fuller all the time).

There is the makings of a module development wiki over at dev.xoops.com. I think improving the quality of 3rd party modules is just a matter of getting more examples posted in a format like the dev wiki.



43
fatman
Re: site hacked, mysterius popup
  • 2004/4/11 22:44

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


is it possible for you to private message me a link to your site ? I'll take a look, cheers.



44
fatman
Re: Smarty Debug in admin... Possible?
  • 2004/4/9 21:44

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


it's the simple things that count :)

There are so many little tips like this in XOOPS to learn about. <{debug output=html}> looks like fun :) Cheers.



45
fatman
Smarty Debug in admin... Possible?
  • 2004/4/9 15:07

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I'd like to take this conversation one step further. Has anyone tried to get full debug information in the admin side? Now that I'm using smarty it would be handy to have a smarty debug window available.



46
fatman
Re: kStore - product catalogue demo
  • 2004/4/9 14:45

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


Quote:

IShades wrote:
No Good for me. :(
When I click on noah admin, the url goes to:
www.yourname.com/domain/shopadmin ... and not to the module directory.

Also when I click install it goes to:
http://www.yourname.com/domain/pages/noahupdater

I did the hack and nothing!


Hi IShades. You are experiencing .htaccess issues.

You need to modify your .htaccess file so that it included the name of the sub-folder you have installed you're XOOPS site into. There is an example above which uses /ss/ as the XOOPS sub folder. You need to change /ss/ inthat example to match your sub folder name.

If that doesn't make sense, send me a private message with your web site URL and I'll send you back an .htaccess file which should work. Cheers.



47
fatman
Re: kStore - product catalogue demo
  • 2004/4/8 23:07

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


ksatpro : try something like this ...

yoursite.com/ss/modules/noah/pages.php?page=noahupdater

(damn .htaccess files and my obsession with using mod_rewrite) I'm not 100% sure what's up. I noticed the same problem with another install of no-ah i have. But you should be able to add the store and add demo content. using a URL like the above.




48
fatman
Re: kStore - product catalogue demo
  • 2004/4/8 14:59

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


Ok, I must have been tired when I wrote that last response. Now that it's morning and I've had a very large cup of coffee, I think I remember you do need to adjust .htaccess if site runs in a sub folder.

Give this a try... added /ss to each line.
RewriteEngine on

RewriteRule 
^shopadmin/([^/]+)/([^/]+)/([^/]+) /ss/modules/noah/admin.php?group=$1&pfunc=$2&id=$[L]
RewriteRule ^shopadmin/([^/]+)/([^/]+) /ss/modules/noah/admin.php?group=$1&pfunc=$[L]
RewriteRule ^shopadmin /ss/modules/noah/admin.php [L]

RewriteRule ^shop/([^/]+) /ss/modules/noah/shop.php?pfunc=$[L]
RewriteRule ^shop /ss/modules/noah/shop.php [L]

RewriteRule ^pages/([^/]+) /ss/modules/noah/pages.php?page=$[L]
RewriteRule ^pages /ss/modules/noah/pages.php [L]


NOTE : Watch for line wrap in the example above.



49
fatman
Re: kStore - product catalogue demo
  • 2004/4/8 4:41

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


Have you uploaded the .htaccess file to your root XOOPS folder?

For XOOPS 2.0.6 you don't need the second hack, it should say that in the read me file. It shouldn't matter that you have XOOPS installed in a sub folder.

The next version of no-ah will not require the .htaccess file, or rather this will be optional, but currently you do need to use this, if your can't use .htaccess on your host, you'll have to ask for it or wait for the next release.

Best place to download this module is from here



50
fatman
Re: Smarty templates in admin... Possible?
  • 2004/4/8 3:40

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I finally got around to trying this little hack out. Works very well.




TopTop
« 1 2 3 4 (5) 6 7 8 ... 16 »



Login

Who's Online

247 user(s) are online (176 user(s) are browsing Support Forums)


Members: 0


Guests: 247


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