31
gstarrett
Re: xoopsgaller slideshow page
  • 2003/11/17 18:55

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


This was fixed in XoopsGallery 1.3.3.3, looks like you're running 1.3.3 or 1.3.3.2. Upgrade and that will fix the problem.

http://www.sciox.org/xoops/



32
gstarrett
Re: How To Remove xoops banner on front page
  • 2003/11/15 0:23

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Look in Admin menu, System (maybe under preferences). There is an administrative interface there for banner management.



33
gstarrett
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/11/14 18:41

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Quote:

shinybt wrote:
which stats module u were saying? sorry, this was the 3rd days for me to play this XOOPS and gallery. It was a 1st php portal for me also.. >.<


It's called "Statistics", by Mispunt. The readme instructs you to as follows:
Quote:
Installation. |
--------------------------------

After installing the normal module, you have to modify some files.
First you must at in the file "header.php" (which is in the root directory) under:

include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php';

the line:

include_once("modules/statistics/include/counter.php");

Whith this peace of code the website add information of the hits to the database, so
you can view them in the admin section.


I've been able to patch the include file so it doesn't stomp on variables. All the patch does is isolate the routine from the global variables by putting it into a funciton instead of inline.

Modify 2 places. Add the line in red to the TOP of the file to look like this:
<?php
[color=FF0000][b]function statistics_counter_countpage() {[/b][/color]
/********************************************************************/
/*  File:  counter.php                                              */
/*  Directory: ./include/                                           */
...


... now add the 2 lines in red at the BOTTOM to look like this:

...
else
{
   
$xoopsDB->queryF("INSERT INTO ".$xoopsDB->prefix("statistics_ip")." (ip, date, hits) VALUES ('$ip', '$now_ip', '1')");
}
[
color=FF0000][b]}
statistics_counter_countpage();[/b][/color]
?>


I'll send the author the full patch also, so he can update his code. I won't be posting a patched version since I don't know if I have the latest or not.


Another tip while I'm in there anyway... If you change
$ip $HTTP_SERVER_VARS['REMOTE_ADDR'];


to (all on a single line):

$ip = isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : $HTTP_SERVER_VARS['REMOTE_ADDR'];


it'll get IP addresses properly while running on Apache too.



34
gstarrett
Re: XoopsGallery Fixes.. Recent Comments Link, New Pics Block showing thumbnail, etc...
  • 2003/11/14 18:10

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Quote:
ERROR: requested index [] out of bounds [2]


That can be caused by not updating, but there is a statistics module that will cause that too. Removing the statistics module has fixed the problem for others.

(Surprised you didn't recognize that one, gnik )



35
gstarrett
Re: New Hosting Provider Wanted
  • 2003/11/14 6:17

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


I've had a couple years experience with a provider who I would descrive as very responsive, high integrity, and excellent customer service. Reasonable rates too!

http://www.bestwebhost.com/

Not a flashy site, but quality service.



36
gstarrett
Re: how to work with _priv_msgs:msg_time in sql
  • 2003/11/14 5:26

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Try these:

FROM_UNIXTIME(unix_timestamp
Returns a representation of the unix_timestamp argument as a value in 'YYYY-MM-DD HH:MM:SS' or YYYYMMDDHHMMSS formatdepending on whether the function is used in a string or numeric context

mysqlselect FROM_UNIXTIME(875996580);
        -> 
'1997-10-04 22:23:00'
mysqlselect FROM_UNIXTIME(875996580) + 0;
        -> 
19971004222300
FROM_UNIXTIME
(unix_timestamp,format
Returns a string representation of the Unix timestampformatted according to the format stringformat may contain the same specifiers as those listed in the entry for the DATE_FORMAT() function: 

mysqlselect FROM_UNIXTIME(UNIX_TIMESTAMP(),
                            
'%Y %D %M %h:%i:%s %x');
        -> 
'1997 23rd December 03:43:30 x'


Look for more info in the MySQL docs.



37
gstarrett
Re: my site got hacked?
  • 2003/11/14 5:16

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Do you know how to directly query the database? If you have phpMySQL installed or SQLYog then you can go directly into the tables and find the offensive posts, sans IE's bugs.

Another option is to install a more "user friendly" browser that allows you to control and eliminate the pop-ups. Mozilla and Opera are both excellent browsers available for free, I use them both (and I even paid for Opera).



38
gstarrett
Re: LDAP integration in XOOPS 2.1
  • 2003/11/13 5:27

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Quote:

hrac wrote:
To join to core team for LDAP, I PM-ed to onokazu. About LDAP developments, I PM-ed to you.

I want to see LDAP in core of 2.1, because everytime I try to use XOOPS as a CMS solution in my company, it is refused because of lack of LDAP support. But I'm sure XOOPS is better than other portal/CMS solutions used in my company. But the others are using because they have LDAP support.


This is something I'm very interested in also!



39
gstarrett
Re: xcGallery help
  • 2003/11/11 6:34

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Quote:
this is the message i get with xcGal when i try to upload a jpeg:
/netpbm/jpegtopnm 'albums/userpics/10001/1065324287.jpeg' | pnmscale -xsize=137 -ysize=160 | pnmtojpeg -quality=80 > 'albums/userpics/10001/thumb_1066300480.jpeg'
The picture 'albums/userpics/10001/1065324287.jpeg' can't be inserted in the album. Unable to create thumbnail or reduced size image.


I know XoopsGallery uses the full pathnames to the source, destination, and netpbm files every time it executes. Makes for looonnngggg exec strings, but I think that might be a key difference here.

Do you have shell access? Try changing the paths in the command above to the full path and run it--that will let you know if there was something more than a path problem.

Sample command from XoopsGallery (modifying a thumbnail, so it's cropping here):
/usr/bin/jpegtopnm /home/gstarret/www/xoops2/modules/xoopsgallery/cache/albums/2003-08-kindergarten/20030811_083800.jpg | /usr/bin/pnmcut 348 696 1106 1482 | /usr/bin/ppmtojpeg --quality=95 > /home/gstarret/www/xoops2/modules/xoopsgallery/cache/albums/2003-08-kindergarten/20030811_083800.thumb.jpg



40
gstarrett
Re: Make it XHTML 1.0 compliant please!
  • 2003/11/9 21:22

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Quote:

robekras wrote:
There is also an non-compliant output when a XoopsFormHidden
is used.
A XoopsFormHidden within a XoopsForm is outputted without
the <tr> <td> environment.


Perhaps getting rid of the tables-for-layout of XoopsForm would work... Not that it's always a bad thing, just has it's limitations.




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



Login

Who's Online

246 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 246


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