1
bimmer528
Re: User Page auth for custom page
  • 2006/2/9 9:10

  • bimmer528

  • Just popping in

  • Posts: 19

  • Since: 2002/9/19


bump :/



2
bimmer528
User Page auth for custom page
  • 2006/2/9 3:34

  • bimmer528

  • Just popping in

  • Posts: 19

  • Since: 2002/9/19


Hey guys, Im aware I could make an easy module and set permission's to bypass my question here but forced to use custom pages instead because there are differant groups that can access differant pages so a module couldn't specify each group for each page.

What I am trying to do on these custom pages is secure the page using XOOPS groups code.

I have failed to create something I could use after extensive XOOPS searching so if anyone can lend a hand, my thanks to you.

including mainfile header


$g_id 
$xoopsUser->getVar('uid'); 
$thisgroup =& $member_handler->getGroup($g_id); 

$groupName $thisgroup->getVar("name""E"); 


if (
$groupName == "Webmasters" ) {
} elseif  (
$groupName == "AdminType1" ) {
} elseif (
$groupName == "AdminType2" ) {
} else {
echo 
"

"

redirect_header("../index.php",2,"You don't have permission---->Taking You Back");
exit();
}

Body Content

include footer


if statement works with group webmasters but the other groups get member func non object.

Admintype1 and 2 are custom made groups.



3
bimmer528
Need Some Help with Insert statement and custom page, custom db table
  • 2006/1/26 17:52

  • bimmer528

  • Just popping in

  • Posts: 19

  • Since: 2002/9/19


foreach($log_files as $i => $file ) {
    
ftp_get($conn_id"tempfile"$fileFTP_ASCII);
    
$fp fopen("tempfile","r");
    
$contents fread($fpfilesize("tempfile") );
    
$contents str_replace("",""$contents);
    
preg_match_all("/TOST Protect: Ident: ([^ ]*) - ([^- ]*) - ([0-9.]*)/"$contents$matches);
    echo 
"
Log File 
$i"
;
  foreach(
$matches[1] as $key => $value) {
       
$playername $matches[1][$key];
$playerip $matches[2][$key];
$playerid $matches[3][$key];
echo 
$playername;
echo 
"
"

echo 
$playerip;
echo 
"
"

echo 
$playerid;
echo 
"
"



global 
$xoopsDB;

$sql "INSERT INTO ".$xoopsDB->prefix('PlayersTOSERV');
$sql .= " ( id, Player, IP, UniqueID ) VALUES ";
$sql .= " ( '',  '$playername', '$playerip' , '$playerid')";
echo 
"SQL insert statement: " $sql "
"
;

$result $xoopsDB->query($sql) or die('SQL Error: ' mysql_error());




  }



The output in the echo statements work great as it preg_match_all each .log file and outputs an example here.

Log File 1
someplayer
someip
someuniqueid

Log File 2
someplayeragain
anotherip
anotherid


I am getting an error when trying to insert this info into the database. I used echo to see what the statement looked like and it looks good.

SQL insert statementINSERT INTO __PlayersTOSERV idPlayerIPUniqueID VALUES '''name''TACO' '209.217.83.000')
SQL Error:


The first field is id which is an auto increment in the table so were leaving that blank.

Tablename is good, no spelling or case sensitive typo's. The sql statement show's good values.

I included the mainfile.php

any answers?

Cheers,

Bimmer



4
bimmer528
Re: .css
  • 2004/5/1 3:54

  • bimmer528

  • Just popping in

  • Posts: 19

  • Since: 2002/9/19


thx m8 :)

I had thought about doing that but wanted to ask to see if there was an easier way to do it :/



5
bimmer528
.css
  • 2004/4/30 0:01

  • bimmer528

  • Just popping in

  • Posts: 19

  • Since: 2002/9/19


I installed phpbb forums from bbpixel.. How can I overide the default phpbb css. its messing things up on my site.. Or what do you guys reccomend for me to do.

http://ctf.toclan.org/pbboard/

Cheers



6
bimmer528
Re: A Final Question before I go to PhpNuke
  • 2004/4/29 23:57

  • bimmer528

  • Just popping in

  • Posts: 19

  • Since: 2002/9/19


We are a tac ops clan- One of the best and have been looked up to by many others.

http://ctf.toclan.org

been using XOOPS for a long time now.. Absolutly love it. Have gotton some fellow clans to install XOOPS as well. They wont use anything else after messing around with this cms. :/

//edit

Reffering to that battlefield post.



7
bimmer528
Re: A Final Question before I go to PhpNuke
  • 2004/4/29 23:56

  • bimmer528

  • Just popping in

  • Posts: 19

  • Since: 2002/9/19


Pretty much any cms is easy to install. It just involves reading the directions.

Xoops on the other hand I have found to be the pretty easy but again.. there all not hard.

btw, pretty much anytime I post, I get help. If you noticed a trend in this thread; Max is nice, the community is nice back to him; Max is an ass, the community is an ass back to him.

Max- I feel for you being frustrated but its really as easy as reading the directions. If you dont understand something, why dont you 'google' it like everyone else does.

GL max.



8
bimmer528
$xoopsDB
  • 2004/3/2 6:18

  • bimmer528

  • Just popping in

  • Posts: 19

  • Since: 2002/9/19


Can anyone tell me where this is defined? Which pages are needed for this to have a funtion?

tried searching everywhere :/



9
bimmer528
wierd blocks... my site problem.
  • 2004/2/14 4:30

  • bimmer528

  • Just popping in

  • Posts: 19

  • Since: 2002/9/19


This just started happening and I cant figure out what the deal is. Every 4th block does not include the the actual "block" with the outline and table. I cant figure out why its doing this and it is only the left side.

url here



10
bimmer528
Question With News and the db table
  • 2004/1/25 1:54

  • bimmer528

  • Just popping in

  • Posts: 19

  • Since: 2002/9/19


I created a simple registration script for my site... I added a feature to insert directly into the xoops_stories table when a new reg is submitted. The problem I run into is this.

My site is set at only registered members can post news without admin approval. Even though my registration script enters a value of "admin" in the story type field of xoops_stories, an admin still must approve it as it waits in submitted news. My question is, how can I set it to where I do not need to approve a story when the registration is submitted. I would think that just entering "admin" in the storytype would do the trick but im missing something here.




TopTop
(1) 2 »



Login

Who's Online

662 user(s) are online (72 user(s) are browsing Support Forums)


Members: 0


Guests: 662


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits