51
ejuden01
Re: some dev/mod question
  • 2004/11/30 21:41

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


You would do it the same way as in the misc.php example that you quoted earlier



52
ejuden01
Re: some dev/mod question
  • 2004/11/30 21:33

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


1. For XOOPS_URL to work, you must include mainfile.php from the XOOPS root directory [i.e. include ('../../mainfile.php');]

2. You can use the XoopsModule object
// Create instance of module handler
$hModule xoops_gethandler('module');
// Retrieve module object
$module =& $hModule->getByDirname('module_name');

// Will put the name of the module in $module_name
$module_name $module->getVar('name');



53
ejuden01
Re: Fuel usage module
  • 2004/11/30 19:10

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


It does sound more like a calendar module when talking about scheduling things. I guess also a countdown too, for like changing the oil and things like that. By the way, nice spreadsheet...it works pretty well.



54
ejuden01
Re: Fuel usage module
  • 2004/11/30 14:39

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


For the auto maintenance module, maybe the admin could set up different maintenance events and after so many miles that would send an email to the car owner. Maybe a section where people can show off their cars by adding a pic and stats about their vehicle. Sounds pretty cool to me!



55
ejuden01
Re: Fuel usage module
  • 2004/11/30 14:25

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


What other kind of automotive modules would you guys like to see? I might be able to help out a little bit.



56
ejuden01
Re: Just need a teeny bit of help :)
  • 2004/11/29 16:35

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


You need to go into the admin panel and select System=>Groups. Then click on the "modify" link for the Anonymous Users Group. Inside there, you need to set the module and block access rights.



57
ejuden01
Re: no browse on downloads module!
  • 2004/11/22 14:01

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


<input type="file" name="userfile" id="userfile" class="formButton" />


You will have to look in the code to see what the existing fieldname is and replace "userfile" with the existing name.



58
ejuden01
Re: How to redirect unregistered user
  • 2004/11/19 22:04

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


if(!$xoopsUser){
    
redirect_header('register.php',3$message);
    
// 'register.php' is the page to redirect to
    // 3 is # of seconds to wait before redirecting
    // optional 3rd parameter($message) is a message displayed
}



59
ejuden01
Re: Flexible menu
  • 2004/11/19 21:55

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


Not sure if MultiMenu would work or not...but you can check it out.



60
ejuden01
Re: Dropdown with all users
  • 2004/11/19 21:42

  • ejuden01

  • Not too shy to talk

  • Posts: 121

  • Since: 2004/4/5 1


Hopefully that helps out!
// First you need to get the member handler
$member_handler =& xoops_gethandler('member');

// Next will be to retrieve all of the member objects
$members =& $member_handler->getUsers();

// Next will be to populate the select box with the users
echo "";
foreach(
$members as $member){
    echo 
".$member->getVar('uid')."'>".$member->getVar('uname')."";
}
echo 
"";




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



Login

Who's Online

179 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 179


more...

Donat-O-Meter

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

Latest GitHub Commits