Jump to content

TrepaNation~

Members
  • Content Count

    22
  • Joined

  • Last visited

Community Reputation

0 Neutral

About TrepaNation~

  • Rank
    Newbie
  1. Thanks so much for the advice justsomeguy! Through your input I managed to get it to work!! Mind you I have absolutely no idea WHY it worked, because js is greek to me... What I did was change "$jx = jQuery.noConflict();" to "$jx = jQuery;". I checked the site and there are no adverse effects of making this change. If you know of some reason this is not good please let me know. But at this time I am a happy camper with things functioning as intended.
  2. Correct, the scroll script is much shorter. There were only 3 instances of "$jx" so I quickly changed them to "$". But it still had the same problem. The JGlide worked but no persistent scroll. I went on to change it to "$nc" (for no conflict) in case "$" was referenced elsewhere. Still broken. Any other ideas?
  3. Ok I commented out var $jx = jQuery.noConflict(); The JGlide menu now works when scrolled but the conditionally fixed persistent container (that the menu is contained in) no longer functions.
  4. Thanks for the input! I am by no means a JavaScript programmer. I mostly just do html/css... So could you tell me what I would need to do to fix this?
  5. Hello there. I am implementing a JavaSript menu into my company's website, but seemed to have run into a snag. An existing script on the page is interfering with the new JavaScript menu. It is the JGlideMenu found here: http://www.sonicradish.com/labs/jGlideMenu/current/index.htmlI am using the inline example found on their page. I have the menu placed in a PHP side bar that acts as a persistent navigation that is conditionally fixed. The sidebar uses JQuery to switch from a static postion to a fixed position when reaching a certain scroll point. The JGlideMenu works great until I do any scrolling of the page. At that point the menu no longer functions. Instead the "rel" link (#tile_002), which is the next "slide" of the menu is placed at the end of the url. You can check out our website here to see what I'm talking about: mlkishigo.com/home-2012.html If I disable the conditionally fixed jquery it corrects the problem with JGlideMenu. But obviously I need them both to work. Any advice you have would be VERY MUCH appreciated. And please let me know if you need any other info to trouble shoot this. Thanks!
  6. Hi, I am working on a website for a client and using WordPress as my CMS to streamline the process and allow them to make updates themself. I am no stranger to wordpress or to CSS for that matter. But for some reason the theme I am using is doing something funky with the positioning of the page elements. I've been over and over the CSS so many times without finding the culprit that I feel like I'm taking crazy pills! The site is: www.easy2live.com/home This is the theme sample which functions correctly: http://themes.goodlayers.com/?theme=slideone The issue is this. The page headline, body copy and green page divider don't want to stick with the white content container which is to be its back drop. If you adjust the browser window the left navigation and white content container do as intended, but the elements I mentioned float around independently and fall out of alignment. Please take a look and let me know if you need any more information to trouble shoot this. Any and all input is greatly appreciated.
  7. Ive been using Dreamweaver as my editor.
  8. Thanks for the help anyway chibineku!boen_robot - I dont think it is an extension. I have looked through all the plug-ins, components etc... and there is nothing for the registration process. Though I will continue searching high and low. What is an IDE?Thanks
  9. Below is the entire controller.php code. Sorry it may be overkill but whatever. You will see this particular function is about 1/3 to 1/2 way down under the comment // Everything went fine, set relevant message depending upon user activation state and display messageThe other thing I want to point out which I find strange is that I cant find a single instance of where the message itself is "echoed" in the code. The site was built using Joomla and the only place if have found the "Thank You" message is in the title of an article on the Joomla CMS. However it is not in the article body... or anywhere else for that matter. Hopefully this bit of context helps. <?php/** * @version $Id: controller.php 12389 2009-07-01 00:34:45Z ian $ * @package Joomla * @subpackage Content * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant to the * GNU General Public License, and as distributed it includes or is derivative * of works licensed under the GNU General Public License or other free or open * source software licenses. See COPYRIGHT.php for copyright notices and * details. */// Check to ensure this file is included in Joomla!defined('_JEXEC') or die( 'Restricted access' );jimport('joomla.application.component.controller');/** * User Component Controller * * @package Joomla * @subpackage Weblinks * @since 1.5 */class UserController extends JController{ /** * Method to display a view * * @access public * @since 1.5 */ function display() { parent::display(); } function edit() { global $mainframe, $option; $db =& JFactory::getDBO(); $user =& JFactory::getUser(); if ( $user->get('guest')) { JError::raiseError( 403, JText::_('Access Forbidden') ); return; } JRequest::setVar('layout', 'form'); parent::display(); } function save() { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $user =& JFactory::getUser(); $userid = JRequest::getVar( 'id', 0, 'post', 'int' ); // preform security checks if ($user->get('id') == 0 || $userid == 0 || $userid <> $user->get('id')) { JError::raiseError( 403, JText::_('Access Forbidden') ); return; } //clean request $post = JRequest::get( 'post' ); $post['username'] = JRequest::getVar('username', '', 'post', 'username'); $post['password'] = JRequest::getVar('password', '', 'post', 'string', JREQUEST_ALLOWRAW); $post['password2'] = JRequest::getVar('password2', '', 'post', 'string', JREQUEST_ALLOWRAW); // get the redirect $return = JURI::base(); // do a password safety check if(strlen($post['password']) || strlen($post['password2'])) { // so that "0" can be used as password e.g. if($post['password'] != $post['password2']) { $msg = JText::_('PASSWORDS_DO_NOT_MATCH'); // something is wrong. we are redirecting back to edit form. // TODO: HTTP_REFERER should be replaced with a base64 encoded form field in a later release $return = str_replace(array('"', '<', '>', "'"), '', @$_SERVER['HTTP_REFERER']); if (empty($return) || !JURI::isInternal($return)) { $return = JURI::base(); } $this->setRedirect($return, $msg, 'error'); return false; } } // we don't want users to edit certain fields so we will unset them unset($post['gid']); unset($post['block']); unset($post['usertype']); unset($post['registerDate']); unset($post['activation']); // store data $model = $this->getModel('user'); if ($model->store($post)) { $msg = JText::_( 'Your settings have been saved.' ); } else { //$msg = JText::_( 'Error saving your settings.' ); $msg = $model->getError(); } $this->setRedirect( $return, $msg ); } function cancel() { $this->setRedirect( 'index.php' ); } function login() { // Check for request forgeries JRequest::checkToken('request') or jexit( 'Invalid Token' ); global $mainframe; if ($return = JRequest::getVar('return', '', 'method', 'base64')) { $return = base64_decode($return); if (!JURI::isInternal($return)) { $return = ''; } } $options = array(); $options['remember'] = JRequest::getBool('remember', false); $options['return'] = $return; $credentials = array(); $credentials['username'] = JRequest::getVar('username', '', 'method', 'username'); $credentials['password'] = JRequest::getString('passwd', '', 'post', JREQUEST_ALLOWRAW); //preform the login action $error = $mainframe->login($credentials, $options);//echo $_SERVER['REQUEST_URI']."<br/>";$variable=explode("/",$_SERVER['REQUEST_URI']); if(!JError::isError($error)) { // Redirect if the return url is not registration or login if ( ! $return ) { //$return = 'index.php?option=com_user'; $return=$variable[2]; } else {$return=$variable[2]; } $mainframe->redirect( $return ); } else { // Facilitate third party login forms if ( ! $return ) { // $return = 'index.php?option=com_user&view=login'; $return=$variable[2]; }$return=$variable[2]; // Redirect to a login form //$mainframe->redirect( $return ); echo "<font style='color: red; font-size: 16px; font-weight: bold;'>Your Username / Password was Incorrect. Please Try Again</font>"; } } function logout() { global $mainframe; //preform the logout action $error = $mainframe->logout(); if(!JError::isError($error)) { if ($return = JRequest::getVar('return', '', 'method', 'base64')) { $return = base64_decode($return); if (!JURI::isInternal($return)) { $return = ''; } } // Redirect if the return url is not registration or login if ( $return && !( strpos( $return, 'com_user' )) ) { $mainframe->redirect( $return ); // $return="index.php?option=com_content&view=article&id=".$_REQUEST['id']."&Itemid=".$_REQUEST['Itemid']; } } else { parent::display(); //$return="index.php?option=com_content&view=article&id=".$_REQUEST['id']."&Itemid=".$_REQUEST['Itemid']; } } /** * Prepares the registration form * @return void */ function register() {global $mainframe; $usersConfig = &JComponentHelper::getParams( 'com_users' ); JRequest::checkToken() or jexit( 'Invalid Token' ); if (!$usersConfig->get( 'allowUserRegistration' )) { JError::raiseError( 403, JText::_( 'Access Forbidden' )); return; } $user =& JFactory::getUser(); if ( $user->get('guest')) { JRequest::setVar('view', 'register'); } else { $this->setredirect('index.php?option=com_user&task=edit',JText::_('You are already registered.')); } parent::display(); } /** * Save user registration and notify users and admins if required * @return void */ function register_save() { global $mainframe; // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); // Get required system objects $user = clone(JFactory::getUser()); $pathway =& $mainframe->getPathway(); $config =& JFactory::getConfig(); $authorize =& JFactory::getACL(); $document =& JFactory::getDocument(); //$captchk = plgSystemTincaptcha::check(JRequest::getVar('captcha', '', 'post')); // if ($captchk !='1') //{ //$this->setRedirect('index.php?option=com_user&view=register&erid=true', $message); //echo "<div style='color:red;width:100%;font-size:16px'>You have entered the wrong CAPTCHA sequence. Please try again</div>"; //return false; //} // If user registration is not allowed, show 403 not authorized. $usersConfig = &JComponentHelper::getParams( 'com_users' ); if ($usersConfig->get('allowUserRegistration') == '0') { JError::raiseError( 403, JText::_( 'Access Forbidden' )); return; } // Initialize new usertype setting $newUsertype = $usersConfig->get( 'new_usertype' ); if (!$newUsertype) { $newUsertype = 'Registered'; } // Bind the post array to the user object if (!$user->bind( JRequest::get('post'), 'usertype' )) { JError::raiseError( 500, $user->getError()); } // Set some initial user values $user->set('id', 0); $user->set('usertype', ''); $user->set('gid', $authorize->get_group_id( '', $newUsertype, 'ARO' )); $date =& JFactory::getDate(); $user->set('registerDate', $date->toMySQL()); // If user activation is turned on, we need to set the activation information $useractivation = $usersConfig->get( 'useractivation' ); if ($useractivation == '1') { jimport('joomla.user.helper'); $user->set('activation', JUtility::getHash( JUserHelper::genRandomPassword()) ); $user->set('block', '1'); } // If there was an error with registration, set the message and display form if ( !$user->save() ) { JError::raiseWarning('', JText::_( $user->getError())); $this->register(); return false; } // Send registration confirmation mail $password = JRequest::getString('password', '', 'post', JREQUEST_ALLOWRAW); $password = preg_replace('/[\x00-\x1F\x7F]/', '', $password); //Disallow control chars in the email$newsletter = JRequest::getString('newsletter1', '', 'post', JREQUEST_ALLOWRAW);if($newsletter=='0') { UserController::_sendMailNewsletter($user); } if($newsletter=='') {UserController::_sendMailNewsletterun($user); } UserController::_sendMail($user, $password); // Everything went fine, set relevant message depending upon user activation state and display message if ( $useractivation == 1 ) { $message = JText::_( 'REG_COMPLETE_ACTIVATE' ); } else { $message = JText::_( 'REG_COMPLETE' ); } $this->setRedirect('index.php?action=thankyou', $message); } function activate() { global $mainframe; // Check for request forgeries // Initialize some variables $db =& JFactory::getDBO(); $user =& JFactory::getUser(); $document =& JFactory::getDocument(); $pathway =& $mainframe->getPathWay(); $usersConfig = &JComponentHelper::getParams( 'com_users' ); $userActivation = $usersConfig->get('useractivation'); $allowUserRegistration = $usersConfig->get('allowUserRegistration'); // Check to see if they're logged in, because they don't need activating! if ($user->get('id')) { // They're already logged in, so redirect them to the home page $mainframe->redirect( 'index.php' ); } if ($allowUserRegistration == '0' || $userActivation == '0') { JError::raiseError( 403, JText::_( 'Access Forbidden' )); return; } // create the view require_once (JPATH_COMPONENT.DS.'views'.DS.'register'.DS.'view.html.php'); $view = new UserViewRegister(); $message = new stdClass(); // Do we even have an activation string? $activation = JRequest::getVar('activation', '', '', 'alnum' ); $activation = $db->getEscaped( $activation ); if (empty( $activation )) { // Page Title $document->setTitle( JText::_( 'REG_ACTIVATE_NOT_FOUND_TITLE' ) ); // Breadcrumb $pathway->addItem( JText::_( 'REG_ACTIVATE_NOT_FOUND_TITLE' )); $message->title = JText::_( 'REG_ACTIVATE_NOT_FOUND_TITLE' ); $message->text = JText::_( 'REG_ACTIVATE_NOT_FOUND' ); $view->assign('message', $message); $view->display('message'); return; } // Lets activate this user jimport('joomla.user.helper'); if (JUserHelper::activateUser($activation)) { // Page Title $document->setTitle( JText::_( 'REG_ACTIVATE_COMPLETE_TITLE' ) ); // Breadcrumb $pathway->addItem( JText::_( 'REG_ACTIVATE_COMPLETE_TITLE' )); $message->title = JText::_( 'REG_ACTIVATE_COMPLETE_TITLE' ); $message->text = JText::_( 'REG_ACTIVATE_COMPLETE' ); } else { // Page Title $document->setTitle( JText::_( 'REG_ACTIVATE_NOT_FOUND_TITLE' ) ); // Breadcrumb $pathway->addItem( JText::_( 'REG_ACTIVATE_NOT_FOUND_TITLE' )); $message->title = JText::_( 'REG_ACTIVATE_NOT_FOUND_TITLE' ); $message->text = JText::_( 'REG_ACTIVATE_NOT_FOUND' ); } $view->assign('message', $message); $view->display('message'); } /** * Password Reset Request Method * * @access public */ function requestreset() { // Check for request forgeries global $mainframe; // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); // Get the input $email = JRequest::getVar('email', null, 'post', 'string'); // Get the model $model = &$this->getModel('Reset'); // Request a reset if ($model->requestReset($email) === false) { $message = JText::sprintf('PASSWORD_RESET_REQUEST_FAILED', $model->getError()); $this->setRedirect('index.php?option=com_user&view=reset', $message); return false; } $this->setRedirect('index.php?option=com_user&view=reset&layout=confirm'); } /** * Password Reset Confirmation Method * * @access public */ function confirmreset() { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); // Get the input $token = JRequest::getVar('token', null, 'post', 'alnum'); // Get the model $model = &$this->getModel('Reset'); // Verify the token if ($model->confirmReset($token) === false) { $message = JText::sprintf('PASSWORD_RESET_CONFIRMATION_FAILED', $model->getError()); $this->setRedirect('index.php?option=com_user&view=reset&layout=confirm', $message); return false; } $this->setRedirect('index.php?option=com_user&view=reset&layout=complete'); } /** * Password Reset Completion Method * * @access public */ function completereset() { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); // Get the input $password1 = JRequest::getVar('password1', null, 'post', 'string', JREQUEST_ALLOWRAW); $password2 = JRequest::getVar('password2', null, 'post', 'string', JREQUEST_ALLOWRAW); // Get the model $model = &$this->getModel('Reset'); // Reset the password if ($model->completeReset($password1, $password2) === false) { $message = JText::sprintf('PASSWORD_RESET_FAILED', $model->getError()); $this->setRedirect('index.php?option=com_user&view=reset&layout=complete', $message); return false; } $message = JText::_('PASSWORD_RESET_SUCCESS'); $this->setRedirect('index.php?option=com_user&view=login', $message); } /** * Username Reminder Method * * @access public */ function remindusername() { // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); // Get the input $email = JRequest::getVar('email', null, 'post', 'string'); // Get the model $model = &$this->getModel('Remind'); // Send the reminder if ($model->remindUsername($email) === false) { $message = JText::sprintf('USERNAME_REMINDER_FAILED', $model->getError()); $this->setRedirect('index.php?option=com_user&view=remind', $message); return false; } $message = JText::sprintf('USERNAME_REMINDER_SUCCESS', $email); $this->setRedirect('index.php?option=com_user&view=login', $message); } function onBeforeStoreUser($user, $isnew) { global $mainframe; // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); // tincaptcha- $captchk = plgSystemTincaptcha::check(JRequest::getVar('captcha', '', 'post')); if ($isnew && $captchk !== true) { JError::raiseWarning(0, $captchk); return false; } // -tincaptcha if($isnew && !JRequest::getVar('acceptedtermsofuse', 0)) { $mainframe->redirect(JRoute::_('index.php?option=com_user&view=register'), JText::_('You need to accept the terms of use'), 'error'); $mainframe->close(); return false; } return true; }function _sendMailNewsletter(&$user) {global $mainframe; // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $db =& JFactory::getDBO(); $name = $user->get('name'); $email = $user->get('email'); $username = $user->get('username'); $usersConfig = &JComponentHelper::getParams( 'com_users' ); $sitename = $mainframe->getCfg( 'sitename' ); $useractivation = $usersConfig->get( 'useractivation' ); $adminmail = $mainframe->getCfg( 'mailfrom' ); $adminname = $mainframe->getCfg( 'fromname' ); $siteURL = JURI::base();// $subject = sprintf ( JText::_( 'Account details for' ), $name, $sitename); $subject = "New Registration"; $subject = html_entity_decode($subject, ENT_QUOTES);$message="Hi ".$adminname.", Mr.".$name." has subscribed newsletter.Please check it"; // $message = sprintf ( JText::_( 'SEND_MSG_ACTIVATE' ), $name, $sitename, $siteURL."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $siteURL, $username, $password); /* if ( $useractivation == 1 ){ $message = sprintf ( JText::_( 'SEND_MSG_ACTIVATE' ), $name, $sitename, $siteURL."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $siteURL, $username, $password); } else { $message = sprintf ( JText::_( 'SEND_MSG' ), $name, $sitename, $siteURL); }*/ //$message = html_entity_decode($message, ENT_QUOTES); echo $message; //get all super administrator $query = 'SELECT name, email, sendEmail' . ' FROM #__users' . ' WHERE LOWER( usertype ) = "super administrator"'; $db->setQuery( $query ); $rows = $db->loadObjectList(); // Send email to user if ( ! $mailfrom || ! $fromname ) { $fromname = $rows[0]->name; //$mailfrom = $rows[0]->email; //$mailfrom = "aum@rkglobal.biz"; //$mailfrom = "aum@rkglobal.biz"; $mailfrom = "morgan@flairsecurity.com"; } JUtility::sendMail($mailfrom, $fromname, $mailfrom, $subject, $message); }function _sendMailNewsletterun(&$user) {global $mainframe; // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $db =& JFactory::getDBO(); $name = $user->get('name'); $comname = $user->get('comname'); $email = $user->get('email'); $username = $user->get('username'); $usersConfig = &JComponentHelper::getParams( 'com_users' ); $sitename = $mainframe->getCfg( 'sitename' ); $useractivation = $usersConfig->get( 'useractivation' ); $adminmail = $mainframe->getCfg( 'mailfrom' ); $adminname = $mainframe->getCfg( 'fromname' ); $siteURL = JURI::base();// $subject = sprintf ( JText::_( 'Account details for' ), $name, $sitename); $subject = "New Registration"; $subject = html_entity_decode($subject, ENT_QUOTES);//$message="Hi ".$adminname.", Mr.".$name." has unsubscribed newsletter.Please check it"; $message="Hi Admin,"; $message=$message."Mr.".$name." from ".$comname."(".$email.")"." has registered"; // $message = sprintf ( JText::_( 'SEND_MSG_ACTIVATE' ), $name, $sitename, $siteURL."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $siteURL, $username, $password); /* if ( $useractivation == 1 ){ $message = sprintf ( JText::_( 'SEND_MSG_ACTIVATE' ), $name, $sitename, $siteURL."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $siteURL, $username, $password); } else { $message = sprintf ( JText::_( 'SEND_MSG' ), $name, $sitename, $siteURL); }*/ //$message = html_entity_decode($message, ENT_QUOTES); echo $message; //get all super administrator $query = 'SELECT name, email, sendEmail' . ' FROM #__users' . ' WHERE LOWER( usertype ) = "super administrator"'; $db->setQuery( $query ); $rows = $db->loadObjectList(); // Send email to user if ( ! $mailfrom || ! $fromname ) { $fromname = $rows[0]->name; //$mailfrom = $rows[0]->email; //$mailfrom = "aum@rkglobal.biz"; //$mailfrom = "aum@rkglobal.biz"; $mailfrom = "morgan@flairsecurity.com, rohan@rkglobal.biz"; } JUtility::sendMail($mailfrom, $fromname, $mailfrom, $subject, $message); } function _sendMail(&$user, $password) { global $mainframe; // Check for request forgeries JRequest::checkToken() or jexit( 'Invalid Token' ); $db =& JFactory::getDBO(); $name = $user->get('name'); $email = $user->get('email'); $username = $user->get('username'); $usersConfig = &JComponentHelper::getParams( 'com_users' ); $sitename = $mainframe->getCfg( 'sitename' ); $useractivation = $usersConfig->get( 'useractivation' ); $mailfrom = $mainframe->getCfg( 'mailfrom' ); $fromname = $mainframe->getCfg( 'fromname' ); $siteURL = JURI::base(); $subject = sprintf ( JText::_( 'Account details for' ), $sitename); $subject = html_entity_decode($subject, ENT_QUOTES); if ( $useractivation == 1 ){ //$message = sprintf ( JText::_( 'SEND_MSG_ACTIVATE' ), $name, $sitename, $siteURL."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $siteURL, $username, $password); $message = sprintf ( JText::_( 'SEND_MSG_ACTIVATE' ), $name, $siteURL."index.php?option=com_user&task=activate&activation=".$user->get('activation'), $siteURL, $username, $password); } else { //$message = sprintf ( JText::_( 'SEND_MSG' ), $name, $sitename, $siteURL); $message = sprintf ( JText::_( 'SEND_MSG' ), $name, $siteURL); } $message = html_entity_decode($message, ENT_QUOTES); echo $message; //get all super administrator $query = 'SELECT name, email, sendEmail' . ' FROM #__users' . ' WHERE LOWER( usertype ) = "super administrator"'; $db->setQuery( $query ); $rows = $db->loadObjectList(); // Send email to user if ( ! $mailfrom || ! $fromname ) { $fromname = $rows[0]->name; $mailfrom = $rows[0]->email; //$mailfrom = "eby.jane@gmail.com"; } JUtility::sendMail($mailfrom, $fromname, $email, $subject, $message); // Send notification to all administrators $subject2 = sprintf ( JText::_( 'Account details for' ), $sitename); $subject2 = html_entity_decode($subject2, ENT_QUOTES); // get superadministrators id foreach ( $rows as $row ) { if ($row->sendEmail) { $message2 = sprintf ( JText::_( 'SEND_MSG_ADMIN' ), $row->name, $sitename, $name, $email, $username); $message2 = html_entity_decode($message2, ENT_QUOTES); JUtility::sendMail($mailfrom, $fromname, $row->email, $subject2, $message2); } } }}?>
  10. Is there a way that I can use the previously mentioned code and specify no redirect, but only to show the "Thank You" message? Or is this function entirely handled through the "missing" index.php file?Looking at the controller.php file it appears all actions or functions are handled there.
  11. Thats what I figured but there is no index.php file in the same directory as the user registration page. I don't know if its me or the previous programmer but there are some confusing things going on with this site.
  12. Will that be the main site's index.php or one that is within the subfolder of the user-registration? The reason I ask is I checked for both. The main index.php file had no such code for this action. And I cannot find an index.php file anywhere within relation to this functions subfolders.
  13. Hello, I am just getting into working with PHP and am helping someone make some minor adjustments to their site. I seem to have run into a bit of a snag and wanted to see if I can get some assistance.The website has a user registration. When the new user finishes submitting their information they are redirected to a "Thank you" page that informs them they need to check their email to activate their account. However this page is only shown for about 2 seconds before the browser is redirected to the home page. What the site owner wants is for it to stay on that page without redirecting to the home page.I searched the controller.php file for a redirect with a timer, but did not find one. What I found was this snippet of code which I believe is the culprit. Any help or advice would be much appreciated. $this->setRedirect('index.php?action=thankyou', $message); Thanks
  14. Thanks for the input, I actually wrote this code a long time ago, but when saving it from my old blog to my new blog I noticed a lot of inconsistencies between the two. So i have tried to weed out all the typo's, but obviously didn't catch them all.Oh and to answer your question I come from Graphic Design background :/I'll let you know if I get it working... but any other input would be greatly appreciated.
  15. Hello, I have a mouseover using image maps which I had operational on my old blog, though when switching it to my new blog, stopped working. I have searched through the code extensively but can't find the issue. The main image loads but not the mouseovers.Thanks for helping an HTML novice! See my code below: <img name="followme_01" src="follow-me/images/followme_01.png" width="250" height="80" border="0" alt="" usemap="#followme_01_Map"><map name="followme_01_Map"><area shape="rect" alt="" coords="191,16,232,57" href="http://www.facebook.com/pages/wwwthetrepanationcom/88603750616?ref=mf" target="_blank" onMouseOver="changeimages 'follow-me/images/followme_01-facebook_over.png'; return true;"onmouseout="changeimages 'followme_01', 'follow-me/images/followme_01.png'; return true;"onmousedown="changeimages 'followme_01', 'follow-me/images/followme_01-facebook_over.png'; return true;"onmouseup="changeimages 'followme_01', 'follow-me/images/followme_01-facebook_over.png'; return true;"><area shape="rect" alt="" coords="143,16,184,57" href="https://twitter.com/thetrepanation" target="_blank"onmouseover="changeimages 'followme_01', 'follow-me/images/followme_01-twitter_over.png'; return true;"onmouseout="changeimages 'followme_01', 'follow-me/images/followme_01.png'; return true;"onmousedown="changeimages 'followme_01', 'follow-me/images/followme_01-twitter_over.png'; return true;"onmouseup="changeimages'followme_01', 'follow-me/images/followme_01-twitter_over.png'; return true;"></map>
×
×
  • Create New...