1
rosie
I need to hire help to edit the Members module
  • 2007/2/7 20:33

  • rosie

  • Just popping in

  • Posts: 30

  • Since: 2006/7/9 1


Hi I need to hire someone to help me edit the Members Module.
If it is possible to edit it that is.

What I would like to do is for example, on this site when you click the "Members" link over on your left it takes you here:
https://xoops.org/modules/xoopsmembers/

What I want to do is by pass that page and have it so that when you click on the "Members" link it takes you directly to:
https://xoops.org/modules/xoopsmembers/index.php

Once there on the Members Index page I'd like to edit the form to have the fields:
Avatar UserName RealName Address Phone Email PM URL Joined Date

Instead of:
Avatar UserName RealName Email PM URL Joined Date Last login Number of posts

Can this be done and can you help me do it?
If so please pm or answer here I'll be checking back.
Thank you

2
rpilney
Re: I need to hire help to edit the Members module
  • 2007/2/7 20:39

  • rpilney

  • Just popping in

  • Posts: 76

  • Since: 2006/1/25


this can be done by editing the template for the theme you are using and the style sheet for that theme.

Quote:

rosie wrote:
Hi I need to hire someone to help me edit the Members Module.
If it is possible to edit it that is.

What I would like to do is for example, on this site when you click the "Members" link over on your left it takes you here:
https://xoops.org/modules/xoopsmembers/

What I want to do is by pass that page and have it so that when you click on the "Members" link it takes you directly to:
https://xoops.org/modules/xoopsmembers/index.php

Once there on the Members Index page I'd like to edit the form to have the fields:
Avatar UserName RealName Address Phone Email PM URL Joined Date

Instead of:
Avatar UserName RealName Email PM URL Joined Date Last login Number of posts

Can this be done and can you help me do it?
If so please pm or answer here I'll be checking back.
Thank you

3
JMorris
Re: I need to hire help to edit the Members module
  • 2007/2/7 21:30

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


rpilney,

The layout of that page is not defined by your theme. It is defined either directly in the module itself or in the module's templates.

rosie,

You can edit this by cloning your default template set and making adjustments to the module there. If there isn't an option for that module in your templates, and you're not comfortable modifying the php code, then it may be best to hire someone to modify it to suite.

HTH.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

4
rpilney
Re: I need to hire help to edit the Members module
  • 2007/2/7 21:32

  • rpilney

  • Just popping in

  • Posts: 76

  • Since: 2006/1/25


what he said. sorry rosie but I knew there was some options to look into. I am fairly new myself.

Quote:

JMorris wrote:
rpilney,

The layout of that page is not defined by your theme. It is defined either directly in the module itself or in the module's templates.

rosie,

You can edit this by cloning your default template set and making adjustments to the module there. If there isn't an option for that module in your templates, and you're not comfortable modifying the php code, then it may be best to hire someone to modify it to suite.

HTH.

James

5
rosie
Re: I need to hire help to edit the Members module
  • 2007/2/7 21:51

  • rosie

  • Just popping in

  • Posts: 30

  • Since: 2006/7/9 1


Hi thanks for your time both of you I appreciate it. James, I'm comfortable doing what I can but know my limitation, when it comes to changing php code that's only done when someone who knows what they are doing can help me. If I have instruction I'm O.K. just cannot figure it out myself!..... So I'll need to hire someone knowledgeble to help me. If you can do this please pm me and let me know your fee, also I'll send you my site url so you can see my current set up. Thanks again

6
JMorris
Re: I need to hire help to edit the Members module
  • 2007/2/7 22:23

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


rosie,

Let's see we can help you through this first.

I looked through the templates, and unfortunately, you cannot define the layout there, so you're going to have to do a little work with PHP. No biggy though as the index.php of the module is pretty straight forward.

I've had to do this before and all I did was go through and do a find for the field I want to remove. For example, do a find for 'pm' without the quotes. What you would get back is...

Line 328:
$xoopsTpl->assign('lang_privmsg'_MM_PM);
Line 352-354:
if ( 
$xoopsUser ) {
    
$userdata['pmlink'] = "<a href='javascript:openWithSelfMain("".XOOPS_URL."/pmlite.php?send2=1&amp;to_userid=".$foundusers[$j]->getVar("uid")."","pmlite",450,370);'><img src='".XOOPS_URL."/images/icons/pm.gif' border='0' alt='".sprintf(_SENDPMTO,$foundusers[$j]->getVar("uname""E"))."' /></a>";
} else {
    
$userdata['pmlink'] = "&nbsp;";
    }


Just comment out those lines using // at the begining of each line, save your file and reupload it. There are a few lines already commented out in the file that were for legacy fields.

If you have any problems, just post back here with your PHP debug messages and we'll see if we can get you through this.

Best regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

7
davidl2
Re: I need to hire help to edit the Members module
  • 2007/2/7 22:25

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


BTW - "tammairanslip" above = java script (without spaces)

8
rosie
Re: I need to hire help to edit the Members module
  • 2007/2/8 2:05

  • rosie

  • Just popping in

  • Posts: 30

  • Since: 2006/7/9 1


I don't know how to "do a find" or understand what you mean by:
"comment out those lines using // at the begining of each line," etc...
But in the a.m. I'll look at the index.php of the members module and see if I can figure it out by comparing it to what you added here.
I'm sorry to sound like a dummy but I am going to need dummy instructions for what it is I want to do here.

Login

Who's Online

119 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 119


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