1
prophecy100
Re: Allow users to change nickname

Never mind, fixed it myself, added the following below line 100 in edituser.php

$edituser->setVar('uname', $_POST['uname']);

Just thought I would post this in case it was useful to someone else.

Jonathan



2
prophecy100
Allow users to change nickname

Hello

I was hoping someone could give me advice on how I can allow my users to change their own nicknames.

I thought the best way of doing this was by editing edituser.php.

I tried changing the following (lines 150 and 151)-

$uname_label = new XoopsFormLabel(_US_NICKNAME, $xoopsUser->getVar('uname'));
$form->addElement($uname_label);

to-

$uname_text = new XoopsFormText(_US_NICKNAME, 'uname', 30, 60, $xoopsUser->getVar('uname','E'));
$form->addElement($uname_text);

That did change the label to a text box and pre fill it with the existing nickname, but if I change it and click submit it does not save the changes. I am sure it is something simple I am missing and I was wondering if anyone could help shed any light on this.

Thanks

Jonathan



3
prophecy100
Re: Total Newbie. How do I insert a New Page.

Not sure if this is the correct answer but as a quick fix I have sometimes used the following code where I did not want to use C-Jay or something similar.

Simply create a blank text file and paste in the following code. Put your html in the middle and save it as whatever.php.

Make sure you adjust the ../../mainfile.php dependant on the location of your page.


<?php
include("../../mainfile.php");
include("../../header.php");
include("header.php");
OpenTable();
?>



insert HTML here....



<?
CloseTable();
include ("../../footer.php");
?>



Jonathan



4
prophecy100
Re: remote php and xoops

You can wrap anything into XOOPS using two simple bits of PHP code, (shown below)

Put this at the top of your PHP file.

<?php
include("../../mainfile.php");
include("../../header.php");
include("header.php");
OpenTable();
?>

Put this at the bottom of your php file

<?
CloseTable();
include ("../../footer.php");
?>

Make sure you adjust the paths to header.php and footer.php as needed for your site (they are in the top XOOPS directory).

Jonathan



5
prophecy100
Re: Upgrade path from 2.0.9.1 to 2.0.13.2

Quick answer is that you must install each upgrade incrementally in order to upgrade Xoops. Do that and all will be fine.

Just a side note - when I did the same upgrade I had a problem with custom HTML blocks vanishing. This was being caused by custom templates not being updated. This problem was solved by updating the system module and then regenerating system_block_dummy.html and system_block_online.html

Second question, I don't know the answer but i'm sure a lot of other people round here do

Jonathan



6
prophecy100
Entries in Narga guest book 1.4

Since I installed the latest version of Narga guestbook I have been seeing an issue I don't quite understand.

I have been having a problem with spam entries in the guestbook and so installed the new version of Narga so that I would get e-mail notification of new entries, that was I figured I could remove the spam entries faster.


Recently I have been receiving loads of notifcations of new entries, some of them seem real and some spam however when I go and look at the guestbook none of those entries are ever there, I seem to be getting notifcation of non-existant entries. I have tested the guestbook several times, if I fill in the form it does appear in the book and I do get notification.

Has anyone ever seen anything like this before or have any ideas what might be going on?

Thanks

Jonathan



7
prophecy100
Re: newbb clone?

How about using CBB?

Thats a good forum module.

Jonathan



8
prophecy100
Re: Does any host guarantee off-line backups and restores?

I don't know if this helps at all because I do agree that making your own website backup is very important. My XOOPS site is hosted with 4uhosting.co.uk who I know do do backups.

They recently recovered all data on one of their servers from backup following the failure of a disk in that server. They also have a backup function available through the members area to dump of the website (the actual files) and a copy of the MySQL DB to a gz file which can then be downloaded and stored, daily incremental backups are also possible.

As I said, I don't know if this helps anyone and I am not intending this to be an avert for them but I thought I would drop it in there just in case.

Jonathan



9
prophecy100
Re: News Module Recent News problem!

I had a similar problem. Edit the recent news block via blocks in the admin section, at the bottom of the recent news block screen you will see a list of categories you have created.

Highlight all the categories from which you want to display recent news, the block should then display normally.

Jonathan



10
prophecy100
Re: The case of the vanishing custom HTML blocks?!?!

Thanks everyone

I checked in the templates area

system_block_dummy.html and system_block_online.html were missing. I found they were highlighted yellow on the template manager.

I updated the system module and then generated the two missing templates. All is now fine.

Many thanks for your help everyone.

Warm regards

Jonathan




TopTop
(1) 2 3 »



Login

Who's Online

254 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 254


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