290891
ackbarr
Re: XOOPS time, format and offset

Timezones
$xoopsConfig['default_TZ'] - stores user default timezone
$xoopsConfig['server_TZ'] - stores system timezone
$xoopsUser->getVar("timezone_offset") - stores current user's timezone

Date Formats Constants (See /language/<language>/global.php)
_DATESTRING - Normal date format
_MEDIUMDATESTRING - Shorter date format
_SHORTDATESTRING - Shortest date format

Helpful Date functions (/includes/functions.php)
xoops_getUserTimestamp($time, $timeoffset="")
Alters the $time by the specified $timeoffset

formatTimestamp($time, $format="l", $timeoffset="")
Function to display formatted times in user timezone

userTimeToServerTime($timestamp, $userTZ=null)
Function to calculate server timestamp from user entered time (timestamp)



290892
EyeKeeper
Xoops and Perl
  • 2003/10/10 16:47

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


I was reading the requirements for XOOPS and I have a doubt...
Does XOOPS have any need of Perl? Are there any routines or procedures using perl within Xoops?

Thanks,

RedEye



290893
EyeKeeper
Database Connection lost
  • 2003/10/10 16:46

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


Hi folks.
I'm using the 2.05 version and occasionally I'm getting the following screen

Quote:

This page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page for assistance.

Warning [PHP]: mysql_pconnect() [function.mysql-pconnect]: Link to server lost, unable to reconnect in file class/database/mysqldatabase.php line 72
Error [Xoops]: Unable to connect to database in file class/database/databasefactory.php line 34
.

Can anyone help me further?
Thanks,

RedEye



290894
JackJ
Re: Help urgently needed... newbie :(
  • 2003/10/10 16:45

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


There is some documentation about the control panel on the wiki Here

Sparse at the moment. I would do a search through the forums using the search box, try words like "Help Block", which will give you a working idea of how the system works. Remember to click "Show All" for the complete list if using the search box at the top right of the XOOPS default page.

Quick General overview:

Site preferences are accessed from the Administration Menu. Select the "System Admin" icon, and go to "Preferences" then choose "General Settings". Here you set up your site name, default theme etc. You can download other themes later but I would play with the default at the moment till you get used to it.

Then go to System Admin and "Modules", in there you will see existing modules which need to be installed like "News" for example. Then in the "Action" column click the "install" icon. Repeat this for each module you want.

After you have installed your modules, you may want the "News" module to be your default startup module. To do this go back to your General Settings again, and go to the field where it says "Module for your start page--select "News" as your startup module. Remember to click "Go" at the bottom of the page to update your changes.

You then go back to System Admin and "Blocks", from there you choose which blocks related to your installed modules you wish to appear. This is quite intuitive, but if you need help post again, or do a search using the search facility.

A bit about blocks Here

You need also to set up group permissions. Go to System Admin and "Groups", then go to the Anonymous Users group, and put check marks in the relevant "Module Access rights" which allows guests to access the module. Then put relevant checkmarks in the "Block Access Rights", this allows guests to "see" the block.

Also try going through all the Admin facilities and getting a feel for things, it is intuitive once you find your way around.

For specific problems first try a search through the forums using key words, if you can't find the answer just ask

Templates and Themes (from some documentation I am working on)

To replace the XOOPS logo with your own, right click on the logo and go to "Properties". This will show you the path to the logo and the name of the file i.e.

yoursite.com/themes/yourthemename/logo.gif

Replacing this file on your server with another pic of the same name will do the job, be careful of sizes though to keep proportions. The size or name of the pic can be changed in the theme.html file in your theme folder.

The look of your theme is controlled by the style.css files in your theme folder. In "System Admin" and "Templates" you can also make changes which affect your theme. The default "template" is chosen from general settings. On installation this defaults to the existing "default" template.

You can't edit the default template, but you can "clone" the default template, edit it, and make your "clone" the default template in general settings. At the moment it might confuse you to get involved in this, but handy to know for later advanced theme editing or creation.

The difference between Themes and Templates can be a bit confusing for a new user, so:

A bit about templates and themes Here

If you wish to learn about templates, you will find an "extras" folder in your XOOPS download. In there is a theme called "x2t". This comes with a template set, which is in an included "Tar" file.

(Templates must be a tar.gz/.tar file with a valid XOOPS template set structure)

This can be uploaded directly--go to "System Admin" and then "Templates". Using the "upload" facility browse to the x2t tar file in the extras folder. You then need to FTP the "x2t" theme in the extras folder to your themes folder. After this go to "general settings" and make x2t your default theme and also default template. Use the "generate files" facility for individual modules you install. The files that need generated are coloured "red". Handy to practice with.

I found some advantages in using this x2t template. For example in "News" I can put in topics images of any size I wish. But if I use the XOOPS default template, the large image overlaps the space, and looks awful unless I put in hard returns to match the size of the image.

Most third party themes are just designed to make use of the XOOPS default template. To install another theme you have downloaded, first upload the theme to your "Themes" folder on your server by FTP, the system automatically sees the uploaded theme there--then go to general settings again and choose your new theme as default if you desire.

If you wish to create html pages, I would have a look at modules like wfsections, their is other content modules which make it easy to create or include HTML pages within xoops.





290895
archie
Re: Adding the group permission feature to your module
  • 2003/10/10 16:35

  • archie

  • Just popping in

  • Posts: 2

  • Since: 2003/10/10


Hello, I am new to xoops. Would like to know were I would add this for the permissions on the downloads. Not sure which file I would edit to do this.

Thanks in advance



290896
Ilija
XOOPS time, format and offset
  • 2003/10/10 16:33

  • Ilija

  • Just popping in

  • Posts: 23

  • Since: 2003/9/9 1


How to get system time settings, format and offset? I want to use it in my module...



290897
Big_Bro
Re: Date & Time displayed in realtime?
  • 2003/10/10 16:13

  • Big_Bro

  • Just popping in

  • Posts: 52

  • Since: 2003/2/26


If you are referring to a clock like I have under my banner at www.newshax.com I would be happy to send you that portion of the code as well.



290898
JackJ
Re: Lost System Icon in the Administration Menu
  • 2003/10/10 16:01

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


see this thread Here



290899
Freaky
Re: Send message in forum......
  • 2003/10/10 15:31

  • Freaky

  • Just popping in

  • Posts: 37

  • Since: 2003/9/14


I've just did as showed in your message and... nope... is not helping me at all

What can be the problem?

If you want to try it out, here is the url ;
Vitiligo Group Belgium

You can try it out in the forum under "WEBSITE MEDEDELINGEN". Just try to add a message, you will end in a blanc page.

Thanks again and hope you can help me.



290900
gstarrett
Re: Upgrading hacked XOOPS (was: image manager category gone ?)
  • 2003/10/10 15:21

  • gstarrett

  • Friend of XOOPS

  • Posts: 174

  • Since: 2002/3/12


Don't worry, be happy! Remember these 3 things:

Backup

Backup

When you think you have a good backup, verify it.

Backup => Less fear of change. Verified backup (after practicing restoring it to another location => mere discomfort to the change.








Login

Who's Online

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


Members: 0


Guests: 148


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits