Jump to content

bigbenbuilders

Members
  • Posts

    76
  • Joined

  • Last visited

    Never

Everything posted by bigbenbuilders

  1. and yes that was what I was trying to do from the begining...lol
  2. for example the string could look like this and needs to stay on http://cuaa.info/index.php?option=com_content&task=category&sectionid=1&id=5&Itemid=10
  3. mikeesta707 perfect but with just another little hitch the id=1 for that section will not change but the rest could and I need it to stay on when the id=1 regardless of the rest of the string...here is the code and it does work when I remove part of the string and switches... <? if($_SERVER['REQUEST_URI'] == '/index.php?option=com_content&task=category&sectionid=1&id=1&Itemid=2') { $class = 'alumni_tab_1_index'; $mouseOver='alumni_tab_1_on_index'; $mouseOut = 'alumni_tab_1_index'; } else { $class = 'tab_1'; $mouseOver = 'tab_1_on'; $mouseOut = 'tab_1'; } ?> <div class="<?php echo $class; ?>" onMouseOver="this.className='<?php echo $mouseOver; ?>'" onMouseOut="this.className='<?php echo $mouseOut; ?>'">alumni</div>
  4. if the if statement is false and when rolled over they are tab1
  5. you da man you da man... how do I get this in the echo because if false it would be tab1 onMouseOver="this.className='alumni_tab_1_on_index'" onMouseOut="this.className='alumni_tab_1_index'"
  6. dang I know I am close..now I get a blank page here is what I have <div class="<?php if (this){ ($_SERVER['REQUEST_URI'] == '/index.php?option=com_content&task=category&sectionid=1&id=1&Itemid=2'){echo 'alumni_tab_1_index';}} else { echo "default echo"; } ?>" onMouseOver="this.className='alumni_tab_1_on_index'" onMouseOut="this.className='alumni_tab_1_index'">alumni</div>
  7. mikesta777 that worked perfect...one more question if it does not equal the url then how do I have it default to another echo?
  8. thanks for all your help mikesta707...it displays the word alumni and when I roll over it the tab pops up but it is not up like it is supposed to be at the begining like it is returning a false? this is what I have <div class="<?php if ($_SERVER['REQUEST_URI'] == '/index.php?option=com_content&task=category&sectionid=1&id=1&Itemid=2'){echo 'class="alumni_tab_1_index"';} ?>" onMouseOver="this.className='alumni_tab_1_on_index'" onMouseOut="this.className='alumni_tab_1_index'">alumni</div>
  9. this is what I have with the full url in it and it is not working? <div class="<?php if (stripos($_SERVER['REQUEST_URI'],'http://cuaa.info/index.php?option=com_content&task=category&sectionid=1&id=1&Itemid=2') !== false) {echo 'class="alumni_tab_1_index"';} ?>" onMouseOver="this.className='alumni_tab_1_on_index'" onMouseOut="this.className='alumni_tab_1_index'">alumni</div>
  10. its displaying this on the page class="alumni_tab_1_on_index" I want it to call the class from the css?
  11. mikesta707 that does produce the words selected but how do I embed the other code into it?
  12. sorry this is like this <td width="105"><a href="index.php?option=com_content&task=category&sectionid=2&id=1&Itemid=37 " class="a_black text_10"> <div class="alumni_tab_1" onMouseOver="this.className='alumni_tab_1_on_index'" onMouseOut="this.className='alumni_tab_1_index'">giving</div> </a></td>
  13. im trying to replace with this <?php if (stripos($_SERVER['REQUEST_URI'],'/id=1/') !== false) {echo 'class="alumni_tab_1_on_index"';} ?> from this <td width="105"><a href="index.php?option=com_content&task=category&sectionid=2&id=1&Itemid=37 " class="a_black text_10"> <div class="tab_1" onMouseOver="this.className='tab_1_on_index'" onMouseOut="this.className='tab_1_index'">giving</div> </a></td>
  14. If my URL = this echo success... what I am trying to do with this script if the url is this then it will say this? but it doesnt? <?php if (stripos($_SERVER['REQUEST_URI'],'/index.php?option=com_content&task=category&sectionid=1&id=1&Itemid=2/') !== false) {echo '"selected"';} ?>
  15. When I just put in a flash file I have a layer that covers part of the flash with other content. When I use a php includes file to rotate flash it works great but then it covers the layer? Here is the includes file and the index page. If I embed the video direct works great just wont allow the div to over lap with the php file <?php $imglist=''; //$img_folder is the variable that holds the path to the swf files. // see that you dont forget about the "/" at the end $img_folder = "templates/flash/"; mt_srand((double)microtime()*1000); //use the directory class $imgs = dir($img_folder); //read all files from the directory, ad them to a list while ($file = $imgs->read()) { if (eregi("swf", $file)) $imglist .= "$file "; } closedir($imgs->handle); //put all images into an array $imglist = explode(" ", $imglist); $no = sizeof($imglist)-2; //generate a random number between 0 and the number of images $random = mt_rand(0, $no); $image = $imglist[$random]; //display random swf echo '<embed src="'.$img_folder.$image.'"quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="977" height="220"></embed>'; ?> index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <META name="Publisher" content="majicCMS v3 http://www.cuaa.edu/"> <META name="Author" content="majicCMS v3 http://www.cuaa.edu/"> <META NAME="DESCRIPTION" CONTENT="A description about the content of your homepage should go here"> <META NAME="KEYWORDS" CONTENT="Keywords about your home page should go here"> <link rel="shortcut icon" href="templates/images/favicon.ico"> <title>Home - Welcome to Concordia University</title> <link href="templates/css/main_css.css" rel="stylesheet" type="text/css" /> <link href="templates/css/homepage_css.css" rel="stylesheet" type="text/css" /> <link href="templates/form_login/addon.css" type="text/css" rel="stylesheet" /> <script src="templates/form_login/jquery.js" type="text/javascript"></script> <script src="templates/form_login/function.js" type="text/javascript"></script> <script type="text/javascript" src="templates/Scripts/textsizer.js"> /*********************************************** * Document Text Sizer- Copyright 2003 - Taewook Kang. All rights reserved. * Coded by: Taewook Kang (http://www.txkang.com) * This notice must stay intact for use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ </script> </head> <body bgcolor="#bbb9cf"> <!-- login --> <div style="display: none;" id="DIV_Overlay" class="DIV_OverlayBG"></div> <div id="login_ajax_form" style="margin-left: 541.5px; margin-top: 10px; display: none;"> <div id="login_loading" align="center"></div> <div class="loginform"> <form method="post" name="frmLogin" id="frmLogin" action="/content/subscribe"> <div style="position: absolute; margin-left: 280px; margin-top: -4px;"> <a href="javascript:common.LoginForm();"><img src="/templates/form_login/close.gif" alt="Close" border="0"></a></div> <div class="title_right_text padding_bottom_5">join our mailing list!</div> <div style="background:#FFFFFF; width:290px; padding-top:10px;"> <table width="290" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="52" height="22"> <strong>name</strong></td> <td width="238"><input maxlength="32" class="bg_textbox" value="" name="u" id="uname" tabindex="99" /></td> </tr> <tr> <td height="22"> <strong> e-mail</strong></td> <td><input class="bg_textbox" name="pp" id="upass" tabindex="100" type="text" /><input name="department" type="hidden" value="About_Us" /></td> </tr> <tr> <td> </td> <td align="right"><label> <input type="image" name="imageField" src="templates/images/btton/bg_join.jpg" style="width:31px; height:25px;" /> </label></td> </tr> <tr> <td> </td> <td> </td> </tr> </table> </div> </form></div> </div> <!-- end login --> <center class="center_bg_page"> <div id="bg_page" style="text-align:left; width:981px;"> <div id="depart_01" class="depart_01"></div> <div id="line_white" class="line_white"> <div id="menu_top" class="menu_top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="20"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="32" height="20"> </td> <td width="112"><a href="Alumni" class="a_black text_10"> <div class="tab_1" onMouseOver="this.className='tab_1_on'" onMouseOut="this.className='tab_1'">alumni</div> </a></td> <td width="105"><a href="Giving" class="a_black text_10"> <div class="tab_1" onMouseOver="this.className='tab_1_on'" onMouseOut="this.className='tab_1'">giving</div> </a></td> <td width="105"><a href="KreftArts" class="a_black text_10"> <div class="tab_1" onMouseOver="this.className='tab_1_on'" onMouseOut="this.className='tab_1'">kreft arts</div> </a></td> <td width="105"><a href="Library" class="a_black text_10"> <div class="tab_1" onMouseOver="this.className='tab_1_on'" onMouseOut="this.className='tab_1'">library</div> </a></td> <td width="182"><a href="GraduateStudies" class="a_black text_10"> <div class="tab_1" onMouseOver="this.className='tab_1_on'" onMouseOut="this.className='tab_1'">graduate studies</div> </a></td> <td width="19"> </td> </tr> </table></td> </tr> <tr> <td height="20"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="100" height="20"><a href="Admissions" class="a_black text_10"> <div class="tab_2" onMouseOver="this.className='tab_2_on'" onMouseOut="this.className='tab_2'">ADMISSIONS</div> </a></td> <td width="100"><a href="About" class="a_black text_10"> <div class="tab_2" onMouseOver="this.className='tab_2_on'" onMouseOut="this.className='tab_2'">ABOUT</div> </a></td> <td width="100"><a href="Academics" class="a_black text_10"> <div class="tab_2" onMouseOver="this.className='tab_2_on'" onMouseOut="this.className='tab_2'">ACADEMICS</div> </a></td> <td width="100"><a href="http://www.concordiacardinals.com" target="_blank" class="a_black text_10"> <div class="tab_2" onMouseOver="this.className='tab_2_on'" onmouseout="this.className='tab_2'">ATHLETICS</div> </a></td> <td width="100"><a href="Student_Life" class="a_black text_10"> <div class="tab_2" onMouseOver="this.className='tab_2'" onMouseOut="this.className='tab_2'">STUDENT LIFE</div> </a></td> <td valign="top"> <form action="search" method="post" style="margin:0;"> <table width="100%" height="19" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="10%" valign="top"><img src="templates/images/tab_menu_search1.png" width="16" height="19" /></td> <td width="62%" style="padding-top:3px;" background="templates/images/tab_menu_search2.png"><input type="text" name="q" style="height:13px; border:#FFFFFF 0px; font-size:10px; width:80px;" value="Search" onClick="if(this.value=='Search'){this.value=''};" onBlur="if(this.value==''){this.value='Search'};" /> </td> <td width="28%" valign="bottom" style="padding-top:1px;"><input type="image" name="submit" src="templates/images/tab_menu_search3.png" /> </td> </tr> </table> </form> </td> </tr> </table></td> </tr> </table> </div> </div> <div id="depart_02" class="depart_02"><a href="templates/default.html"><img src="templates/images/logo.png" alt="Concordia University" width="266" height="34" hspace="20" vspace="1" border="0" /></a></div> <div id="depart_03" class="depart_03"> <div style="position:absolute; z-index:30; width:255px; height:361px; margin-left:25px; margin-top:170px;"> <table width="255" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="templates/images/left_frame_home_01.png" width="20" height="21" /></td> <td><img src="templates/images/left_frame_home_02.png" width="215" height="21" /></td> <td><img src="templates/images/left_frame_home_03.png" width="20" height="21" /></td> </tr> <tr> <td valign="top" background="templates/images/left_frame_home_04.png"><img src="templates/images/left_frame_home_04.png" width="20" height="309" /></td> <td height="309" valign="top" background="templates/images/left_frame_home_05.png"> <!-- majicCMS inject cell a --> <div ><div class="blockBox"><div class="blockBody"><div class="text_16 text_white text_font_Myriad">educate your ambition</div> <div class="text_white text_11 text_font_Myriad" style="height: 120px; text-align: left; margin-top: 3px;">Concordia's programs are founded on strong student/faculty relationships, giving individuals the best chance to go as far as their determination and talent will take them. We help students educate their ambition and encourage them to stand up and be leaders in their fields of study. Concordia University Ann Arbor is a supportive academic their voice in the world. </div> </div></form></div> </div><!-- end injection --> <div style="height:15px;"></div> <!-- majicCMS inject cell d --> <div ><div class="blockBox"><div class="blockBody"><div class="text_16 text_white text_font_Myriad">be the voice. </div> <div class="text_white text_11 text_font_Myriad" style="height: 95px; text-align: left; margin-top: 3px;">Concordia's programs are founded on strong student/faculty relationships, giving individuals the best chance to go as far as their determination and talent will take them. </div> <div style="height: 20px; padding-top: 10px; text-align: right;"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tbody><tr> <td align="right"><select name="select" class="bg_combox" style="border: 1px solid rgb(81, 30, 10); height: 22px; font-size: 11px;"> <option selected="selected"> Select a topic </option> </select></td> <td align="right"><input name="Submit" value="Go" style="border: 1px solid rgb(81, 30, 10); background-color: rgb(204, 204, 204); width: 25px; height: 22px; color: rgb(255, 255, 255); font-size: 11px; font-weight: bold;" type="submit"></td> </tr> </tbody></table> </div></div></form></div> </div><!-- end injection --> </td> <td valign="top" background="templates/images/left_frame_home_06.png"><img src="templates/images/left_frame_home_06.png" width="20" height="309" /></td> </tr> <tr> <td><img src="templates/images/left_frame_home_07.png" width="20" height="31" /></td> <td><img src="templates/images/left_frame_home_08.png" width="215" height="31" /></td> <td><img src="templates/images/left_frame_home_09.png" width="20" height="31" /></td> </tr> </table> <div style="height:20px; padding-top:10px;"><!-- AddThis Button BEGIN --> <a href="http://www.addthis.com/bookmark.php?v=250" onmouseover="return addthis_open(this, '', '[url]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="161" height="20" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a30b80062929688"></script> <!-- AddThis Button END --></div> </div> <?php include_once "random_swf.php" ?> </div> <div id="depart_04" class="depart_04"> <div style="height:272px; margin-left:290px;"> <table width="100%"> <tr><td width="71%"> <!-- majicCMS inject cell b --> <div ><div class="blockBox"><div class="blockBody"><table width="95%" align="center" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td valign="top" width="70%" align="left"> <div class="text_title_main">Are You The Voice?</div></td></tr> <tr style="font-family: Times;"> <td id="text_body" style="padding-right: 10px; padding-top: 10px;" valign="top" align="left"> <p>Concordia University Ann Arbor is a supportive academic community committed to providing personalized education. Every student brings to Concordia unique God-given talents, passions, skills and interests. We focus our attention on helping each student to find their place, their voice in the world.</p> <p>Concordia’s programs are founded on strong student/faculty relationships, giving individuals the best chance to go as far as their determination and talent will take them. We help students educate their ambition and encourage them to stand up and be leaders in their fields of study. Students can be the teacher, be the social worker, be the musician, be the artist, be the business leader, be the one following their dreams. Be the voice.</p> <p><img src="templates/images/btton/icon_f.jpg" width="29" height="30"> <img src="templates/images/btton/icon_e.jpg" width="30" height="30"> <img src="templates/images/btton/icon_c.jpg" width="25" height="29"></p></td></tr></tbody></table><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML"></div><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML"></div><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"><div id="refHTML"></div></div></form></div> </div><!-- end injection --></td><td width="29%"> <!-- majicCMS inject cell c --> <div ><div class="blockBox"><div class="blockBody"> <form action="" name="calendar" method="post"> <select name="month" id="month"> <option value="01" >January</option> <option value="02" >February</option> <option value="03" >March</option> <option value="04" >April</option> <option value="05" >May</option> <option value="06" >June</option> <option value="07" >July</option> <option value="08" selected="selected">August</option> <option value="09" >September</option> <option value="10" >October</option> <option value="11" >November</option> <option value="12" >December</option> </select> <select name="year" id="year"> <option value="2009" selected="selected">2009</option><option value="2010" >2010</option><option value="2011" >2011</option><option value="2012" >2012</option><option value="2013" >2013</option><option value="2014" >2014</option><option value="2015" >2015</option><option value="2016" >2016</option><option value="2017" >2017</option><option value="2018" >2018</option> </select><input type="submit" name="go" id="go" value="Go" /> </form><table border="0" width="100%" cellpadding="0" cellspacing="0" class="calendarTable"><tr> <td width='15%' align="center" class="calendarHeader">S</td> <td width='14%' align="center" class="calendarHeader">M</td> <td width='14%' align="center" class="calendarHeader">T</td> <td width='14%' align="center" class="calendarHeader">W</td> <td width='14%' align="center" class="calendarHeader">T</td> <td width='14%' align="center" class="calendarHeader">F</td> <td width='15%' align="center" class="calendarHeader">S</td> </tr><tr></tr><tr><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right">1 </div> </td> </tr> <tr><td valign="top" class="calendarCell"><div align="right">2 </div> </td> <td valign="top" class="calendarCell"><div align="right">3 </div> </td> <td valign="top" class="calendarCell"><div align="right">4 </div> </td> <td valign="top" class="calendarCell"><div align="right">5 </div> </td> <td valign="top" class="calendarCell"><div align="right">6 </div> </td> <td valign="top" class="calendarCell"><div align="right">7 </div> </td> <td valign="top" class="calendarCell"><div align="right">8 </div> </td> </tr> <tr><td valign="top" class="calendarCell"><div align="right">9 </div> </td> <td valign="top" class="calendarCell"><div align="right">10 </div> </td> <td valign="top" class="calendarCell"><div align="right">11 </div> </td> <td valign="top" class="calendarCell"><div align="right">12 </div> </td> <td valign="top" class="calendarCell"><div align="right">13 </div> </td> <td valign="top" class="calendarCell"><div align="right">14 </div> </td> <td valign="top" class="calendarCell"><div align="right">15 </div> </td> </tr> <tr><td valign="top" class="calendarCell"><div align="right">16 </div> </td> <td valign="top" class="calendarCell"><div align="right">17 </div> </td> <td valign="top" class="calendarCell"><div align="right">18 </div> </td> <td valign="top" class="calendarCell"><div align="right">19 </div> </td> <td valign="top" class="calendarCell"><div align="right">20 </div> </td> <td valign="top" class="calendarCell"><div align="right">21 </div> </td> <td valign="top" class="calendarCell"><div align="right">22 </div> </td> </tr> <tr><td valign="top" class="calendarCell"><div align="right">23 </div> </td> <td valign="top" class="calendarCell"><div align="right">24 </div> </td> <td valign="top" class="calendarCell"><div align="right">25 </div> </td> <td valign="top" class="calendarCell"><div align="right">26 </div> </td> <td valign="top" class="calendarCell"><div align="right">27 </div> </td> <td valign="top" class="calendarCell"><div align="right">28 </div> </td> <td valign="top" class="calendarCell"><div align="right">29 </div> </td> </tr> <tr><td valign="top" class="calendarCell"><div align="right">30 </div> </td> <td valign="top" class="calendarCell"><div align="right">31 </div> </td> <td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td><td valign="top" class="calendarCell"><div align="right" class="calendarCellHeader"> </div></td></tr></table></div></form></div> </div><!-- end injection --></td></tr></table> </div> <div style="height:120px; width:977px;"> <table width="977" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="649" valign="bottom"><table width="635" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="21" class="depart_04_col1"> </td> <td width="599" valign="middle" class="depart_04_col2 text_white"><a href="BookStore" class="a_white">bookstore</a> | <a href="Finance" class="a_white">business services</a> | <a href="congregations" class="a_white">congregations</a> | <a href="directories" class="a_white">directories</a> | <a href="events" class="a_white">events</a> | <a href="Finance" class="a_white">financial aid</a> | <a href="Finance" class="a_white">human resources</a> | <a href="Finance" class="a_white">jobs</a> | <a href="spiritual" class="a_white">spiritual life</a></td> <td width="15" height="21" class="depart_04_col3"> </td> </tr> </table></td> <td width="103"><a href="templates/Catering_Special_Event/default.html"><img src="templates/images/cuaa_club.jpg" width="94" height="98" border="0" /></a></td> <td width="101"><a href="templates/admissions/default.html"><img src="templates/images/yourstory.jpg" width="94" height="98" border="0" /></a></td> <td width="124" BACKGROUND="templates/images/tour_your_campusb.jpg"><a href="templates/aboutus/campus_announcements.html"> <object codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" type="application/x-shockwave-flash" align="middle" width="110px" height="80px" style="padding-top:10px;" id="InsertWidget_a5df30ee-e652-49f8-be65-c0ffe548b5fb" data="http://widgetserver.com/syndication/flash/wrapper/InsertWidget.swf" flashvars="r=2&appId=a5df30ee-e652-49f8-be65-c0ffe548b5fb&wbx_softkey=true&wbx_suppressGW=true" ><param value="transparent" name="wmode"/><param value="false" name="menu"/><param value="high" name="quality"/><param value="http://widgetserver.com/syndication/flash/wrapper/InsertWidget.swf" name="movie"/><param value="r=2&appId=a5df30ee-e652-49f8-be65-c0ffe548b5fb&wbx_softkey=true&wbx_suppressGW=true" name="flashvars"/><param name="allowScriptAccess" value="sameDomain" /></object> </a> </td> </tr> </table> </div> </div> <div id="depart_05" class="depart_05"></div> <div id="depart_06" class="depart_06"> <div style="position:absolute; z-index:2; height:37px; width:977px;"><img src="templates/images/pattern.png" width="977" height="37" /></div> <table width="981" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="14" height="39" class="depart_06_col1"> </td> <td width="957" class="depart_06_col2"> </td> <td width="14" class="depart_06_col3"> </td> </tr> </table> </div> <div id="depart_07" class="depart_07"> <div style="text-align:center; padding-top:10px;"><a href="#" class="a_black">Contact Us</a> <a href="#" class="a_black">Privacy Policy</a> <a href="#" class="a_black">Site Map</a> <a href="#" class="a_black">Terms & Conditions</a></div> <div style="text-align:center; padding-top:5px;">Concordia University <span class="a_black">4090 Geddes Rd., Ann Arbor 48105</span> 1-888-734-4237</div> <div style="text-align:center; padding-top:15px; font-size:10px;">Copyright © Concordia University - <a href="http://lsigroup.org" style="color:#000000; text-decoration:none" target="_blank">Developed by www.lsigroup.org</a></div> </div> </div> </center> <map name="Map" id="Map"> <area shape="rect" coords="11,1,22,23" href="javascript:ts('text_body',1)" /> <area shape="rect" coords="-1,1,10,23" href="javascript:ts('text_body',-1)" /> </map> </body> </html>
  16. trying to follow your lead this is what I have done with the same results $option = (isset($_REQUEST['option'])) ? trim(strtolower(mosGetParam($_REQUEST,'option'))) : 'com_content'; $sectionid = (isset($_REQUEST['sectionid'])) ? trim(strtolower(mosGetParam($_REQUEST,'sectionid'))) : '16'; $id = (isset($_REQUEST['id'])) ? trim(strtolower(mosGetParam($_REQUEST,'id'))) : '293'; $Itemid = (isset($_REQUEST['Itemid'])) ? trim(strtolower(mosGetParam($_REQUEST,'Itemid'))) : '351'; $database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix ); $database->debug( $mosConfig_debug ); $acl = new gacl_api();
  17. mjdamato yes you did sorry didnt see it all...still couldnt get it to work
  18. here is what I did and it did not work $option = (isset($_GET['option']))?$_GET['option']:'com_content'; $task = (isset($_GET['task']))?$_GET['task']:'category'; $sectionid = (isset($_GET['sectionid']))?$_GET['sectionid']:'16'; $id = (isset($_GET['id']))?$_GET['id']:'293'; $Itemid = (isset($_GET['Itemid']))?$_GET['Itemid']:'351'; $database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix ); $database->debug( $mosConfig_debug ); $acl = new gacl_api();
  19. yes that is what I am wanting to do and please how do I do that?
  20. guys I tried headers tried an on body reload and it loops...is there another way to do this to redirect this to another page. this file is called index.php and want it to redirect to index.php?option=com_content&task=category&sectionid=16&id=293&Itemid=351 <?php // fix to address the globals overwrite problem in php versions < 4.4.1 $protect_globals = array('_REQUEST', '_GET', '_POST', '_COOKIE', '_FILES', '_SERVER', '_ENV', 'GLOBALS', '_SESSION'); foreach ($protect_globals as $global) { if ( in_array($global , array_keys($_REQUEST)) || in_array($global , array_keys($_GET)) || in_array($global , array_keys($_POST)) || in_array($global , array_keys($_COOKIE)) || in_array($global , array_keys($_FILES))) { die("Invalid Request."); } } /** Set flag that this is a parent file */ define( '_VALID_MOS', 1 ); session_start(); // checks for configuration file, if none found loads installation page if ( !file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10 ) { header( 'Location: installation/index.php' ); exit(); } include_once( 'globals.php' ); require_once( 'configuration.php' ); // displays offline page if ( $mosConfig_offline == 1 ){ include( 'offline.php' ); exit(); } require_once( 'includes/mambo.php' ); if (file_exists( 'components/com_sef/sef.php' )) { require_once( 'components/com_sef/sef.php' ); } else { require_once( 'includes/sef.php' ); } require_once( 'includes/frontend.php' ); /* Installation sub folder check, removed for work with CVS*/ if (file_exists( 'installation/index.php' )) { include ('offline.php'); exit(); } /**/ /** retrieve some expected url (or form) arguments */ $option = trim( strtolower( mosGetParam( $_REQUEST, 'option' ) ) ); $Itemid = intval( mosGetParam( $_REQUEST, 'Itemid', null ) ); $database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix ); $database->debug( $mosConfig_debug ); $acl = new gacl_api(); //--- Start Nok Kaew Patch $mosConfig_nok_content='0'; if (file_exists( 'components/com_nokkaew/nokkaew.php' )) { $mosConfig_nok_content='1'; // can also go into the configuration - but this might be overwritten! require_once( "administrator/components/com_nokkaew/nokkaew.class.php"); require_once( "components/com_nokkaew/classes/nokkaew.class.php"); } if( $mosConfig_nok_content ) { $database = new mlDatabase( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix ); } else { $database = new database( $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db, $mosConfig_dbprefix ); } if ($mosConfig_nok_content) { $mosConfig_defaultLang = $mosConfig_lang; // Save the default language of the site $iso_client_lang = NokKaew::discoverLanguage( $database ); $_NOKKAEW_MANAGER = new NokKaewManager(); } //--- End Nok Kaew Patch if ($option == '') { if ($Itemid) { $query = "SELECT id, link" . "\n FROM #__menu" . "\n WHERE menutype='mainmenu'" . "\n AND id = '$Itemid'" . "\n AND published = '1'" ; $database->setQuery( $query ); } else { $query = "SELECT id, link" . "\n FROM #__menu" . "\n WHERE menutype='mainmenu' AND published='1'" . "\n ORDER BY parent, ordering LIMIT 1" ; $database->setQuery( $query ); } $menu = new mosMenu( $database ); if ($database->loadObject( $menu )) { $Itemid = $menu->id; } $link = $menu->link; if (($pos = strpos( $link, '?' )) !== false) { $link = substr( $link, $pos+1 ). '&Itemid='.$Itemid; } parse_str( $link, $temp ); /** this is a patch, need to rework when globals are handled better */ foreach ($temp as $k=>$v) { $GLOBALS[$k] = $v; $_REQUEST[$k] = $v; if ($k == 'option') { $option = $v; } } } /** mainframe is an API workhorse, lots of 'core' interaction routines */ $mainframe = new mosMainFrame( $database, $option, '.' ); $mainframe->initSession(); // checking if we can find the Itemid thru the content if ( $option == 'com_content' && $Itemid === 0 ) { $id = intval( mosGetParam( $_REQUEST, 'id', 0 ) ); $Itemid = $mainframe->getItemid( $id ); } /** do we have a valid Itemid yet?? */ if ( $Itemid === null ) { /** Nope, just use the homepage then. */ $query = "SELECT id" . "\n FROM #__menu" . "\n WHERE menutype='mainmenu'" . "\n AND published='1'" . "\n ORDER BY parent, ordering" . "\n LIMIT 1" ; $database->setQuery( $query ); $Itemid = $database->loadResult(); } /** patch to lessen the impact on templates */ if ($option == 'search') { $option = 'com_search'; } // loads english language file by default if ( $mosConfig_lang == '' ) { $mosConfig_lang = 'english'; } include_once ( 'language/'.$mosConfig_lang.'.php' ); // frontend login & logout controls $return = mosGetParam( $_REQUEST, 'return', NULL ); if ($option == "login") { $mainframe->login(); // JS Popup message if ( mosGetParam( $_POST, 'message', 0 ) ) { ?> <script> <!--// alert( "<?php echo _LOGIN_SUCCESS; ?>" ); //--> </script> <?php } if ($return) { mosRedirect( $return ); } else { mosRedirect( 'index.php' ); } } else if ($option == "logout") { $mainframe->logout(); // JS Popup message if ( mosGetParam( $_POST, 'message', 0 ) ) { ?> <script> <!--// alert( "<?php echo _LOGOUT_SUCCESS; ?>" ); //--> </script> <?php } if ($return) { mosRedirect( $return ); } else { mosRedirect( 'index.php' ); } } /** get the information about the current user from the sessions table */ $my = $mainframe->getUser(); /** detect first visit */ $mainframe->detect(); $gid = intval( $my->gid ); // gets template for page $cur_template = $mainframe->getTemplate(); /** temp fix - this feature is currently disabled */ /** @global A places to store information from processing of the component */ $_MOS_OPTION = array(); // precapture the output of the component require_once( $mosConfig_absolute_path . '/editor/editor.php' ); ob_start(); if ($path = $mainframe->getPath( 'front' )) { $task = mosGetParam( $_REQUEST, 'task', '' ); $ret = mosMenuCheck( $Itemid, $option, $task, $gid ); if ($ret) { require_once( $path ); } else { mosNotAuth(); } } else { echo _NOT_EXIST; } $_MOS_OPTION['buffer'] = ob_get_contents(); ob_end_clean(); initGzip(); header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' ); header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); // loads template file if ( !file_exists( 'templates/'. $cur_template .'/index.php' ) ) { echo _TEMPLATE_WARN . $cur_template; } else { require_once( 'templates/'. $cur_template .'/index.php' ); echo "<!-- ".time()." -->"; } // displays queries performed for page if ($mosConfig_debug) { echo $database->_ticker . ' queries executed'; echo '<pre>'; foreach ($database->_log as $k=>$sql) { echo $k+1 . "\n" . $sql . '<hr />'; } } doGzip(); ?>
  21. no it shows this doesnt show the flash file <script src="http://cuaa.info/mambo/templates/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
  22. shows the page content just not the flash?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.