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"


le="color: #000000"><?php 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
le="color: #000000"><?php /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:

le="color: #000000"><?php if(!isset($_POST['lid']) && isset($_GET['lid']) ) { $lid = $_GET['lid'] ; } if(!isset($_POST['op']) && isset($_GET['op']) ) { $op = $_GET['op'] ; }

with this:
le="color: #000000"><?php $lid = (isset($_GET['lid'])) ? $_GET['lid'] : 0 ; $lid = (isset($_POST['lid'])) ? $_POST['lid'] : $lid ; $op = (isset($_GET['op'])) ? $_GET['op'] : NULL ; $op = (isset($_POST['op'])) ? $_POST['op'] : $op ;

Login

Donat-O-Meter

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

Latest GitHub Commits