1
rgauci
Re: integrating a simple PHP require_once() in any of xoops pages
  • 2012/9/6 18:45

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


I would prefer to put the code onto a block.

Now do I copy all the script or part of it?

Any instructions on how to implement this?



2
rgauci
integrating a simple PHP require_once() in any of xoops pages
  • 2012/9/6 15:15

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


Can anyone please help in directing me to where I need to put the following code into a xoops website. This is a shopping cart script where you can integrated into xoops through either an iFrame or PHP require_once() method I have chosen the latter and the instructions I have are the following:

Quote:
You can use a PHP require_once() in any of your PHP pages. At the top of the php page (first line) you should put this lines of code.


<?php session_start(); ob_start(); require_once("/home/xxxxxxx/public_html/shop/frontend/load.php"); $content ob_get_contents(); ob_end_clean(); ?>


Quote:
Edit you .php page and put the code below where you want the shopping cart to appear.


<?php echo $content?>


That's about it apart from a couple of css style sheets which I have already put in the 'head' of the theme file.

Many thanks and appreciate your help in this as I am stuck.



3
rgauci
Re: Publisher (Rev 365 - 31 May 2012) .. looking for testers
  • 2012/6/3 12:05

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


I will for sure as this is one of the great modules ever built for xoops thanks to Trabis and even you!!!!!
Be Set FREE!



4
rgauci
Re: Trick [SMARTY] Compress your code HTML
  • 2012/3/13 14:27

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


There was no need to upgrade xoops

I just changed this


$xoopsTpl =& $xoTheme->template;
$xoopsTpl->load_filter('output', 'trimwhitespace');

to this

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

note the 'outputfilter.trimwhitespace'

and worked fine and fast I must say

thanks for all your work iLuc
Be Set FREE!



5
rgauci
Re: Trick [SMARTY] Compress your code HTML
  • 2012/3/13 10:03

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


I followed what you said and the end result is a blank white page. I am using xoops 2.4.5
Be Set FREE!



6
rgauci
Re: Trick [SMARTY] Compress your code HTML
  • 2012/3/13 9:03

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


an follow that...but

is this the file scipt that one needs to download called Smarty-3.1.8. In this package there are 2 folders, one called libs and the other called demo
in the libs and in the libs folder there are more, plugings and sysplugins where the file outputfilter.trimwhitespace.php resides

do one needs to install this Smarty folder in the root system

Advise please
Be Set FREE!



7
rgauci
Re: Trick [SMARTY] Compress your code HTML
  • 2012/3/13 7:01

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


Hi iLuc

I am impressed and would like to implement this and try it out.
Would you be king enought to tells how to get the code and step by step where to put them in the xoops directory

Thanks again I think your site is pretty fast
Ray
Be Set FREE!



8
rgauci
need a copy of RMMS
  • 2012/3/4 11:31

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


Can anyone give a link for the RMMS module please as I have been tring to locate it on shoops without success?

thanks
Be Set FREE!



9
rgauci
Re: Full Text RSS for Publisher module
  • 2012/2/27 14:56

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


the tag for the whole text I think is $item.maintext

so whats best to code it?
Be Set FREE!



10
rgauci
Re: Full Text RSS for Publisher module
  • 2012/2/26 19:09

  • rgauci

  • Not too shy to talk

  • Posts: 173

  • Since: 2007/8/31


Bump???
Be Set FREE!




TopTop
(1) 2 3 4 ... 16 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

81 user(s) are online (38 user(s) are browsing Support Forums)


Members: 0


Guests: 81


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