xoops forums

Forum Index


Board index » All Posts (rgauci)




rgauci

Not too shy to talk
Posted on: 2012/9/6 18:45
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#1

Re: integrating a simple PHP require_once() in any of xoops pages

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?


rgauci

Not too shy to talk
Posted on: 2012/9/6 15:15
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#2

integrating a simple PHP require_once() in any of xoops pages

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.


rgauci

Not too shy to talk
Posted on: 2012/6/3 12:05
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#3

Re: Publisher (Rev 365 - 31 May 2012) .. looking for testers

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!


rgauci

Not too shy to talk
Posted on: 2012/3/13 14:27
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#4

Re: Trick [SMARTY] Compress your code HTML

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!


rgauci

Not too shy to talk
Posted on: 2012/3/13 10:03
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#5

Re: Trick [SMARTY] Compress your code HTML

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


rgauci

Not too shy to talk
Posted on: 2012/3/13 9:03
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#6

Re: Trick [SMARTY] Compress your code HTML

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!


rgauci

Not too shy to talk
Posted on: 2012/3/13 7:01
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#7

Re: Trick [SMARTY] Compress your code HTML

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!


rgauci

Not too shy to talk
Posted on: 2012/3/4 11:31
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#8

need a copy of RMMS

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!


rgauci

Not too shy to talk
Posted on: 2012/2/27 14:56
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#9

Re: Full Text RSS for Publisher module

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

so whats best to code it?
Be Set FREE!


rgauci

Not too shy to talk
Posted on: 2012/2/26 19:09
rgauci
rgauci (Show more)
Not too shy to talk
Posts: 173
Since: 2007/8/31
#10

Re: Full Text RSS for Publisher module

Bump???
Be Set FREE!



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