11
basil
Re: Custom block doesnt seem to like PHP
  • 2006/12/28 5:30

  • basil

  • Just popping in

  • Posts: 68

  • Since: 2005/2/14


Hi
I ended up using an include.

It works now!!

Thanks



12
basil
Re: Custom block doesnt seem to like PHP
  • 2006/12/28 4:45

  • basil

  • Just popping in

  • Posts: 68

  • Since: 2005/2/14


Thanks - but I don't have any extras in there do I?

I tried to use single marks inside the doubles, and then the date_sunrise(time(), SUNFUNCS_RET_STRING, -26.54, 148.77, 90, +10) . concatenates, doesn't it?

I have tested inside normal php tags on a server as time.php, without error too?

As you can see, i'm still none the wiser?



13
basil
Re: Custom block doesnt seem to like PHP
  • 2006/12/28 2:55

  • basil

  • Just popping in

  • Posts: 68

  • Since: 2005/2/14


I'm sorry - I don't follow.
Doesn't the echo finish at the ;
I tried using <? ?>, but that didn't work. I found out yesterday you can't use the PHP tags with Content Type PHP Script

This script runs when uploaded to a server as time.php.

I change the code to this:
echo "<font size='-4'>".date('D M d Y').":</font>";
echo "<br /><font size='-4'> sunrise time : " .date_sunrise(time(), SUNFUNCS_RET_STRING, -26.54, 148.77, 90, +10) ."</font>";

echo "<br /><font size='-4'> sunset time : " .date_sunset(time(), SUNFUNCS_RET_STRING, -26.54, 148.77, 90, +10) ."</font>";

Still the result is just the echo of the date, and everything else (from the original page) stripped.



14
basil
Custom block doesn't seem to like PHP
  • 2006/12/28 0:42

  • basil

  • Just popping in

  • Posts: 68

  • Since: 2005/2/14


I created a Custom block with content type PHP.

When I inserted this code:

echo "<font size='-4'>".date("D M d Y").':</font>';
echo "<br /><font size='-4'> sunrise time : " .date_sunrise(time(), SUNFUNCS_RET_STRING, -26.54, 148.77, 90, +10) ."</font>";

echo "<br /><font size='-4'> sunset time : " .date_sunset(time(), SUNFUNCS_RET_STRING, -26.54, 148.77, 90, +10) ."</font>";

IT strips everything from the page, and echoes The date only.

Why would that be ?

Basil



15
basil
Custom Block using PHP Include
  • 2006/12/27 2:55

  • basil

  • Just popping in

  • Posts: 68

  • Since: 2005/2/14


Hi
I created a custom block, with Content type PHP Script.

I wanted to use a PHP include, and it wouldn't work. Itried a simple echo, and it wouldn't work either.

When I tried PHP debug mode it returned this error:

Parse error: parse error, unexpected '<' in /var/www/html/xoops/class/xoopsblock.php(146) : eval()'d code on line 1

What do I need to do to make the script run within the block?

Basil

This what I tried to run:
<?php

echo "test";

?>



16
basil
Cbbv1.16 and Database error
  • 2006/8/21 20:46

  • basil

  • Just popping in

  • Posts: 68

  • Since: 2005/2/14


I just installed CBB V1.16 on XOOPS 2.013.

When I try to add a category, it returns with a "database error".

I can't continue any further. Any suggestions???

Basil



17
basil
Templates for Smart Section 2.1
  • 2006/6/29 6:36

  • basil

  • Just popping in

  • Posts: 68

  • Since: 2005/2/14


Smart Section supports custom templates. Does anyone know where I can download some "custom" templates? Or even buy one I guess?

I've never created a template for XOOPS, and need to look at creating a range of templates for Smart Section. If I can reverse engineer, I figure I might learn quicker.



18
basil
Thumbnails don't point to larger image in XCgal2
  • 2006/6/13 7:10

  • basil

  • Just popping in

  • Posts: 68

  • Since: 2005/2/14


A few days ago, when I uploaded a picture, the thumbnail doesn't point to the full size image - what appears to be a random picture.

You can see it here www.maranoa.org.au Look in the "Seen around Town" section.

This info appears in the debug Info.
USER
Array
(
    [
ID] => 86861d1e841e4dc77de82c4d67b9761b
    
[am] => 1
    
[liv] => Array
        (
        )

)
 
GET 
Array
(
    [
pid] => 56
    
[album] => topn
    
[cat] => 
    [
pos] => 74
)
 
POST
Array
(
)


Ihave no ideas at all.

Cheers

basil



19
basil
gremlins in the system - what could be going wrong?
  • 2006/6/10 23:34

  • basil

  • Just popping in

  • Posts: 68

  • Since: 2005/2/14


I seem to have gremlins in my XOOPS 2.06 (www.maranoa.org.au)

Heres' a list - so I don't think it's module specific.
In AMS - I added a new section, and it took about 20 goes to actually get the permissions to take.
In XoppsGallery, I added a gallery, but it didn't show. Tried again - still no show. Later that day, tried again, and there they all were. Tired to delete, got down to 5 galleries. Tried to delete another, it jumped back up to 8 galleries.
In XCGal, added an image, and the thumbnail pointed to the wrong picture. Same module, added an album, no show. Tried again, no show. Later, all 3 were there.

It's probably a user problem, but I'm finding it very frustrating. Any suggestions?????
And if anyone sugessts upgrading, acn they please point me to diffinitive instructions on getting from 2.06 to the best, most stable version. I can't afford to bring the site down - and I have asked, and searched for upgrade info unsuccessfully in the past.



20
basil
Re: XCGal - and problem with theme
  • 2006/5/8 20:44

  • basil

  • Just popping in

  • Posts: 68

  • Since: 2005/2/14


Thanks
all sorted. Wouldn't have thought to use the template theme CSS.

Thanks for baling me out.

Cheers




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



Login

Who's Online

166 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 166


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