1
MisterB
Re: Registration/Membership Management Question
  • 2004/6/3 19:47

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


With reference to point 1 (stopping anyone registering unless invited), you also need to remove the following line from user.php in the root directory:

$xoopsTpl->assign('lang_notregister', _US_NOTREGISTERED);

I wondered why after doing all the amendments listed in my earlier message I was still getting people registering who I had not invited It turns out that clicking on the lost password, or any page on the menu bar that needed you to log in, redirects to this user.php page which then asked, "Not registered? Click here"!! Solved!

Kind regards

Mister B



2
MisterB
Re: members module hack?!
  • 2004/5/27 23:50

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


I just stumbled across this message - I had a similar problem and applied a temporary solution similar to above.

See: XOOPS Discussion

Kind regards

MisterB



3
MisterB
Re: Registration/Membership Management Question
  • 2004/5/27 20:12

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


Dear All

In an earlier message I asked:
Quote:

3. Is there a module that can be used for easily maintaining a members address list (name, contact details etc). Ideally, this would be based on an adapted "register" page to avoid having to enter details more than once. Alternatively, what files other than register.php would have to me changed so that register page could include address, postcode etc and these feed through into the database? Inside XOOPs and looking at the Members list, it may be possible to change ICQ, AIM, YIM etc for other headings?


Fritz kindly responded with some ideas and you will note from my edit, the "Click here to register" problem is now solved.

On point 3, I tried editing the Addresses 1.7 module and did reasonably well, but asked whether it would be possible to use this as the registration. rabideau commented this would probably take some programming.

Not being a programmer, I have come up with a half-way house based on my original message that serves my needs.

I have edited the files serving the user pages. Rather than going through and recoding, I have tried to keep it simple by changing the use of existing fields (ICQ, AIM etc) which were beyond the needs on my site. I have amended the following:

1. In ../language/english/user.php change

define('_US_ICQ','Organisation');
define('_US_AIM','Department');
define('_US_YIM','Address');
define('_US_MSNM','City');
define('_US_LOCATION','County');
define('_US_OCCUPATION','Post Code');
define('_US_INTEREST','Phone');

2. In .. /modules/system/language/english/admin
users.php
findusers.php

change
define("_AM_ICQ","Organisation");
define("_AM_AIM","Department");
define("_AM_YIM","Address");
define("_AM_MSNM","City");
define("_AM_LOCATION","County");
define("_AM_OCCUPATION","Postcode");
define("_AM_INTEREST","Phone");

3. In ../user.php

define('_US_ICQ','Organisation');
define('_US_AIM','Department');
define('_US_YIM','Address');
define('_US_MSNM','City');
define('_US_LOCATION','County');
define('_US_OCCUPATION','Post Code');
define('_US_INTEREST','Phone');

4. in ../edituser.php

Find
if ($op == 'editprofile') {

About 23 lines after this, a line begins $icq_text
From (and including) that line, change the first and second number in brackets to increase the size of the text box appearing for users (I have used 40, 100 as default for all).

5. In MySQL, in xoops_users edit the field size to 100 (or whatever you set at maximum in 4 above) for ICQ, AIM, YIM etc. that you have amended (to allow for more text to be entered)

There you go - it is rough and ready but it does the job for registration and is already linked into the core XOOPS system.

Hope this helps someone else.

MisterB



4
MisterB
Re: Menu - TinyContent - Simple Question?
  • 2004/5/27 6:52

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


Thank you very much for your response - muhc appreciated.

MisterB



5
MisterB
Address Module 1.7
  • 2004/5/26 7:29

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


Dear All

In another post I have asked about a membership management module. I am posting my message here as it may be that I have posted too many questions in one message and therefore it is being overlooked. This Address module would possibly serve my needs with a couple of amendments.

How would I go about editing the files/database to add a new category? At the moment, the first field is Name/Organisation, whereas it would be useful as a member management module by splitting this into two headings: Name and Organisation, and an additional one, Position/Job Title.

Is it straightforward to add new headings and amend existing ones?

In addition, is it possible (easily!) to use the Address module as the registration facility, so that this module collects all the information once for members (rather than register.php)?

Any thoughts gratefully received.

MisterB



6
MisterB
Re: Menu - TinyContent - Simple Question?
  • 2004/5/26 7:21

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


Dear All

I have searched through the code and am obviously missing something - does anyone know where the indent is being forced?

Many thanks

Mister B



7
MisterB
Re: Possible? External webpage into Tinycontent?
  • 2004/5/26 7:20

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


Dear All

This may be possible using IFrames but is there an easier way within Tinycontent? Use a php call?

Mister B



8
MisterB
Possible? External webpage into Tinycontent?
  • 2004/5/25 7:19

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


Dear All

I have read WIKI (7.5. How to show HTML pages inside XOOPS) about including other HTML pages within the XOOPS template and have settled on Tinycontent BUT how do you include an external HTML or PHP page in the body, where the file cannot exist in the directory structure? I am not trying to pinch anyone else's content - for info I have a Mailman discussion list set up for the site which came as part of my hosting package (must be on a separate server as cannot find it!) and want it to appear within the same layout. Am I right in thinking that there isn't a mailing list/Mailman plug-in for use within the XOOPs environment?

Many thanks

MisterB



9
MisterB
Re: Menu - TinyContent - Simple Question?
  • 2004/5/25 7:13

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


Thank you for your feedback - I am new to this.

I have tried editing system_block_mainmenu.html in ../modules/system/templates/blocks (copied in below) by removing spacing before the sublink lines but this doesn't make any difference. I cannot see where the code is forcing the submenu to indent. Does anyone have any ideas please?

Quote:
<table cellspacing="0">
<tr>
<td id="mainmenu">
<a class="menuTop" href="<{$xoops_url}>/"><{$block.lang_home}></a>
<!-- start module menu loop -->
<{foreach item=module from=$block.modules}>
<a class="menuMain" href="<{$xoops_url}>/modules/<{$module.directory}>/"><{$module.name}></a>
<{foreach item=sublink from=$module.sublinks}>
<a class="menuSub" href="<{$sublink.url}>"><{$sublink.name}></a>
<{/foreach}>
<{/foreach}>
<!-- end module menu loop -->
</td>
</tr>
</table>


Many thanks

Mister B



10
MisterB
Menu - TinyContent - Simple Question?
  • 2004/5/24 22:39

  • MisterB

  • Just popping in

  • Posts: 13

  • Since: 2004/5/24


This is potentially a simple question (for those of you who know how!).

I am using Tinycontent duplicatable so that I can have different content for anonymous visitors compared to members who are logged in. When I use Tinycontent and create more than one page with it, the "sub-menu" (when switched on) is indented. Although I understand why people would want this, and it is a feature, I would prefer for it not to be indented, so that although technically additional pages are subsections in tinycontent, in reality they all appear as top level.

I am sure this is possible - but where would I hack for sub-menus to appear at the same level?

The alternative appears to be to set up duplicate tinycontent modules but that seems messy.

Many thanks for any ideas.

Kind regards

MisterB




TopTop
(1) 2 »



Login

Who's Online

192 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 192


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