1
aamjad2001
correction in the Latest alumni module

here is the correction.

in the index.php of the alumni module search for

_ALUMNI_SENDFRIEND

replace it with

_ALUMNI_FRIENDSEND

this is the only error in alumni module otherwise it work excellent with the latest XOOPS version 2.3.

----------------------------

plus i need a little help in the listing page of the alumni section as shown in the picture
Resized Image


what should i edit to put <br> in between the two headinds i.e

name and school as shown by the red and blue rectangles

2
aamjad2001
Re: correction in the Latest alumni module

i get this inline error in debug mode. how can i rectify this?

Notice: Undefined variable: op in file /modules/alumni/modlisting.php line 313

Notice: Undefined variable: op in file /modules/alumni/modlisting.php line 319

Notice: Undefined variable: op in file /modules/alumni/modlisting.php line 323

-----------------------------

what is this op and how can the error be removed

below is the snippet of file modlisting.php which contains this "op"


if(!isset($_POST['lid']) && isset($_GET['lid']) ) {
    
$lid $_GET['lid'] ;
}
if(!isset(
$_POST['op']) && isset($_GET['op']) ) {
    
$op $_GET['op'] ;
}

switch (
$op) {

    case 
"ModAlumni":
    include(
XOOPS_ROOT_PATH."/header.php");
    
ModAlumni($lid);
    include(
XOOPS_ROOT_PATH."/footer.php");




3
ghia
Re: correction in the Latest alumni module
  • 2009/3/2 11:22

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


The script is intented to act on http GET requests. It expects an URL like
/modules/alumni/modlisting.php?lid=123&op='ModAlumni'
Probably, it got called on a place where the op argument was not supplied or used in a form (with POST).
Search your files for all occurences of modlisting.php, to find out.

4
zyspec
Re: correction in the Latest alumni module
  • 2009/3/2 15:08

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


It's Notices are probably not causing any real problems however to get rid of the potential for problem you could replace this section of code:

if(!isset($_POST['lid']) && isset($_GET['lid']) ) { 
    
$lid $_GET['lid'] ; 

if(!isset(
$_POST['op']) && isset($_GET['op']) ) { 
    
$op $_GET['op'] ; 
}

with this:
$lid = (isset($_GET['lid'])) ? $_GET['lid'] : ;
$lid = (isset($_POST['lid'])) ? $_POST['lid'] : $lid 
$op = (isset($_GET['op'])) ? $_GET['op'] : NULL ;
$op = (isset($_POST['op'])) ? $_POST['op'] : $op ;

Login

Who's Online

207 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 207


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