51
Xtracted
Re: Add field (Rank) to memberlist
  • 2005/1/7 23:12

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


Yep, thats it... thank you..

Cant understand why I didnt check my profile for previous posts.. ack.. newbie mistake.. ohwell..



52
Xtracted
Re: Add field (Rank) to memberlist
  • 2005/1/3 0:33

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


*bump*


I know that SOMEONE has an answer to this..



53
Xtracted
Re: Add field (Rank) to memberlist
  • 2004/12/29 13:32

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


I think it was something like adding the lines in the modules/xoopsmembers/index.php under the if ( $op == "submit" ) { line... should look just like this but with the user_name changed to something else.. user_rank perhaps? But I dont think that all this is nessecary since I dont want people to be able to search for rank, just that its displayed in the search result..




if ( !empty($HTTP_POST_VARS['user_name']) ) {
$match = (!empty($HTTP_POST_VARS['user_name_match'])) ? intval($HTTP_POST_VARS['user_name_match']) : XOOPS_MATCH_START;
switch ($match) {
case XOOPS_MATCH_START:
$criteria->add(new Criteria('name', $myts->addSlashes(trim($HTTP_POST_VARS['user_name'])).'%', 'LIKE'));
break;
case XOOPS_MATCH_END:
$criteria->add(new Criteria('name', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_name'])).'%', 'LIKE'));
break;
case XOOPS_MATCH_EQUAL:
$criteria->add(new Criteria('name', $myts->addSlashes(trim($HTTP_POST_VARS['user_name']))));
break;
case XOOPS_MATCH_CONTAIN:
$criteria->add(new Criteria('name', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_name'])).'%', 'LIKE'));
break;
}
}



54
Xtracted
Add field (Rank) to memberlist
  • 2004/12/29 1:43

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


I once hacked the xoopsmembers files and added a extra field in the memberlist on one of my XOOPS sites.. I cant find the original posts that helped me with this (guess they are gone because of the rebuild of the site?) so I need some help again since I just updated to the latest version of xoops..

I want to add members Rank to the memberlist, so that the rank displays between the Real Name and Email.. help? =)



55
Xtracted
Re: Snx Guestbook....
  • 2004/11/5 20:39

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


A suggestion would be to make the module use the XOOPS theme as default.. Also, add an admin function that allows you to choose the fields and info you wish to use in your guestbook (country, homepage etc.)

You are on the right track but there is still some walking to do.. =)



56
Xtracted
Re: Weird double blocks for webmasters problem
  • 2004/11/5 8:22

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


Oh, cmon...



57
Xtracted
Re: Snx Guestbook....
  • 2004/11/5 8:22

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


*bump*



58
Xtracted
Snx Guestbook....
  • 2004/10/31 10:37

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


It seems like regular guestbooks arent used alot on XOOPS sites? I assume that the forums has taken over nowdays? The guestbooks available leave much to desire im afraid..
------------------------------------



Well, I have issues with this module.. I want a simple guestbook module and snx guestbook was the most simple one available..

However, it has some bugs..

When you have more posts in the guestbook then you show on one page (10 by default) you get a " >> " at the bottom of the guestbook that is supposed to be a link that goes to the previous 10 entries in the guestbook..

The code for this looks like this:

if(($from-10)>=0) echo "\t<p class=\"GB_previous\"><span><<</span></p>\n";
if(($from+10)<$nbEntries) echo "\t<p class=\"GB_next\"><span>>></span></p>\n";


It doesnt end up as a link as you might guess.. Is it possible to fix this?



59
Xtracted
Weird double blocks for webmasters problem
  • 2004/10/25 20:07

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


I just installed a basic XOOPS installation on a new web account and I have a weird problem.

All blocks are showed two times in block admin, and if you choose to show 2 of the same block, it does just that..

Why? Its weird.. =P



60
Xtracted
Re: How do I make a menu?
  • 2004/10/20 20:07

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


make sure to:

include "header.php";
include XOOPS_ROOT_PATH.'/header.php';


before your page content, then after that

include_once XOOPS_ROOT_PATH.'/footer.php';


clear templates_c dir and your local browser cache, update the module then reload the page..





TopTop
« 1 ... 3 4 5 (6) 7 8 9 ... 14 »



Login

Who's Online

203 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 203


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