1
flameshockey
Division II UIC Flames Club Hockey Site

I had posted this site in this forum a while back before the season started, but I just wanted to re-post it now that we're actually using it. I am using WIWI for game recaps, team history, and for our accounting books-money in and out. I am also using Myalbum, PD Downloads, News, and the Alumni modules. There is also some custom php code upon logging in so a user(team official) can add/edit games and players/stats into a database. Not bad for my first XOOPS site huh?

UIC Flames Hockey



2
flameshockey
not really a XOOPS question

this doesn't really relate to XOOPS at all, but seeing as this is for a XOOPS based site, maybe someone can help me?

I'm trying to find java code for the way isohunt does their dropdown content for their torrents. I'm trying to make something pretty close to what they have as far as its structure, but I can't seem to find example code anywhere. Help please!



3
flameshockey
Division II College Hockey Sites

I am pretty new to programming, but since I got bored with "staticy" sites I figured I would make an effort to start working with xoops, php, and MySQL while I get payed to monitor school computer labs:) I run the UIC Flames D2 hockey team and am also the webmaster. Since we recently got involved in a new league, I figured tackle two birds with one stone-port over my existing staticy UIC Flames site to XOOPS as well as create the new league's site in xoops. I haven't had much time to work on editing the theme for the Flames site yet, but check them out. The XMT theme is also pretty buggy. You can't really do much with the league site since your not in a team group though :)

mchlhockey.com
uichockey.com



4
flameshockey
xmt theme problem

I don't know why this is, but the java pull down menus come up all goofy the first time my xmt themed site is viewed when using mozilla firefox. Upon reloading the page the menus display normally though! This isn't a problem using internet explorer though. If you want a demo go to mchlhockey.com and click ->team links or ->probationary teams. I've modded the theme_usernav.html file with my own links, but it had this problem from the beginning...I think. Maybe it's not the theme_usernav.html file that's the problem, what could it be?



5
flameshockey
xmt theme problem

I don't know why this is, but the java pull down menus come up all goofy the first time my xmt themed site is viewed when using mozilla firefox. Upon reloading the page the menus display normally though! This isn't a problem using internet explorer though. If you want a demo go to mchlhockey.com and click ->team links or ->probationary teams. I've modded the theme_usernav.html file with my own links, but it had this problem from the beginning...I think. Maybe it's not the theme_usernav.html file that's the problem, what could it be?



6
flameshockey
global variable problem, help with getting array data

This shouldn't be that complicated, but I can't figure it out. I have users with names like "Depaul", "UIC", "Loyola" and Depaul is in a group called "Depaul" and UIC is in a group called "UIC" and so on. I have an sql table with a column called 'team' that has values "Depaul", "UIC", etc with other info in the rows as well. I want a .php file to display the sql table information based on the user's group name matching the 'team' column. Here's the sudo code I have, am I not including something in the beginng of the file? Basically, I just need help getting the groupid number out of the array.

<?php
include '../../mainfile.php';
include_once XOOPS_ROOT_PATH . '/header.php';

?>

// if i know the useridgroup# ahead of time through php //myadmin, set the numbers equal to team names
$Depaul = 4;
$Loyola = 5;
// get userid (global variable...$xoopsUser??)
// get userid's groups (They are numbers in an array )
$groups = $xoopsUser->getGroups();
// select from the array the value of the groups, which im not sure how to do
$team = whatever value returns thats not admin or registered

if ($team == $Depaul) { // Display Depauls schedule
$query = 'SELECT * FROM game_schedule WHERE (team="Depaul") ORDER BY date ASC';
elseif ( $team == $Loyola) //Display Loyola schedule



7
flameshockey
Re: how does webmaster add xoops registered users?

Good idea, thanks. But I am positive I registered users in the past with some other version!



8
flameshockey
how does webmaster add xoops registered users?

I have version 2.2.3 of Xoops, and I can't figure out how I, the webmaster, can add registered users myself. I remember being able to add users in the last version of XOOPS (setting up the password, the username, and putting in the users e-mail address etc) I had, 2.0.13.2 possibly? Anyways I couldn't find anything about it through searching the forums, hopefully somebody can help. Thanks.



9
flameshockey
Re: Xoops Variables question

I decided to echo those variables and found out the numbers as well, i think i'm going to try and find out what group corrseponds to each number and do:

global $xoopsUser;
if $xoopsUser=#10,
depaul=#10
if $xoopsUser = depaul, SELECT schedule WHERE table=depaul

i think i may try this



10
flameshockey
Re: Xoops Variables question

I tried that, but I am not sure how the function is actually used in the .php file. Here is what I Have:

filename:index.php

// other stuff before here

function viewsched()
{
global $xoopsDB, $xoopsUser;
$groups = $xoopsUser->getGroups();
$table = $xoopsDB->prefix( 'game_schedule' );
$query = $xoopsDB->query( "SELECT * FROM $table WHERE home IN( " . implode( ',', $groups ) . ") ORDER BY date ASC" );
}
-------------------------
This is the old code where each team had their own .php file to view and add games, now I want only one file to do this
// Define query and make sure the right team name is selected!!
//$query = 'SELECT * FROM game_schedule WHERE (home = "Depaul") ORDER BY date ASC';
--------------------------

if ($result = mysql_query($query))
{
while ($row = mysql_fetch_array($result))
{
echo the selected MySQL data in html table
}// end while

}// end if




TopTop
(1) 2 »



Login

Who's Online

144 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 144


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