Joomlatwork
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 19, 2013, 10:40:56 PM

Login with username, password and session length
Search:     Advanced search
15921 Posts in 5247 Topics by 10982 Members
Latest Member: Tusqhodr
* Home Help Search Login Register
+  Joomlatwork
|-+  Joomla SEF Patch extended version support (paid version)
| |-+  Support questions
| | |-+  Error in site since adding SEF Patch
« previous next »
Pages: [1] Print
Author Topic: Error in site since adding SEF Patch  (Read 2260 times)
confusedxx
Newbie
*
Posts: 1


View Profile
« on: August 04, 2006, 12:10:50 PM »

I just installed SEF patch onto Joomla 1.0.10 and now since doing so, I get a bunch of strange errors.

1.  When creating a new menu item under the main menu, the tool tips are missing and half the links do not appear to know what type of menu link I want to use.

2.  I have the following code appear after navigating to a content category or section via my menu system:
Code:
he email form for a given content item. * @param int The content item id */ function emailContentSend( $uid ) { global $database, $mainframe; global $mosConfig_live_site, $mosConfig_sitename; // simple spoof check security josSpoofCheck(1); $itemid = intval( mosGetParam( $_POST, 'itemid', 0 ) ); // check for session cookie // Session Cookie `name` $sessionCookieName = mosMainFrame::sessionCookieName(); // Get Session Cookie `value` $sessioncookie = mosGetParam( $_COOKIE, $sessionCookieName, null ); if ( !(strlen($sessioncookie) == 32 || $sessioncookie == '-') ) { mosErrorAlert( _NOT_AUTH ); } $email = strval( mosGetParam( $_POST, 'email', '' ) ); $yourname = strval( mosGetParam( $_POST, 'yourname', '' ) ); $youremail = strval( mosGetParam( $_POST, 'youremail', '' ) ); $subject_default = _EMAIL_INFO .' ' . $yourname; $subject = strval( mosGetParam( $_POST, 'subject', $subject_default ) ); if ($uid < 1 || !$email || !$youremail || ( is_email( $email ) == false ) || (is_email( $youremail ) == false)) { mosErrorAlert( _EMAIL_ERR_NOINFO ); } $query = "SELECT template" . "\n FROM #__templates_menu" . "\n WHERE client_id = 0" . "\n AND menuid = 0" ; $database->setQuery( $query ); $template = $database->loadResult(); // determine Itemid for Item if ($itemid) { $_itemid = '&Itemid='. $itemid; } else { $itemid = $mainframe->getItemid( $uid, 0, 0 ); $_itemid = '&Itemid='. $itemid; } // link sent in email $link = sefRelToAbs( $mosConfig_live_site .'/index.php?option=com_content&task=view&id='. $uid . $_itemid ); // message text $msg = sprintf( _EMAIL_MSG, $mosConfig_sitename, $yourname, $youremail, $link ); // mail function mosMail( $youremail, $yourname, $email, $subject, $msg ); HTML_content::emailSent( $email, $template ); } function is_email( $email ){ $rBool = false; if (preg_match( "/[\w\.\-]+@\w+[\w\.\-]*?\.\w{1,4}/", $email )) { $rBool = true; } return $rBool; } function recordVote() { global $database; $user_rating = intval( mosGetParam( $_REQUEST, 'user_rating', 0 ) ); $url = mosGetParam( $_REQUEST, 'url', '' ); $cid = intval( mosGetParam( $_REQUEST, 'cid', 0 ) ); if (($user_rating >= 1) and ($user_rating <= 5)) { $currip = ( phpversion() <= '4.2.1' ? @getenv( 'REMOTE_ADDR' ) : $_SERVER['REMOTE_ADDR'] ); $query = "SELECT *" . "\n FROM #__content_rating" . "\n WHERE content_id = $cid" ; $database->setQuery( $query ); $votesdb = NULL; if ( !( $database->loadObject( $votesdb ) ) ) { $query = "INSERT INTO #__content_rating ( content_id, lastip, rating_sum, rating_count )" . "\n VALUES ( $cid, '$currip', $user_rating, 1 )"; $database->setQuery( $query ); $database->query() or die( $database->stderr() );; } else { if ($currip != ($votesdb->lastip)) { $query = "UPDATE #__content_rating" . "\n SET rating_count = rating_count + 1, rating_sum = rating_sum + $user_rating, lastip = '$currip'" . "\n WHERE content_id = $cid" ; $database->setQuery( $query ); $database->query() or die( $database->stderr() ); } else { mosRedirect ( $url, _ALREADY_VOTE ); } } mosRedirect ( $url, _THANKS ); } } function _orderby_pri( $orderby ) { switch ( $orderby ) { case 'alpha': $orderby = 'cc.title, '; break; case 'ralpha': $orderby = 'cc.title DESC, '; break; case 'order': $orderby = 'cc.ordering, '; break; default: $orderby = ''; break; } return $orderby; } function _orderby_sec( $orderby ) { switch ( $orderby ) { case 'date': $orderby = 'a.created'; break; case 'rdate': $orderby = 'a.created DESC'; break; case 'alpha': $orderby = 'a.title'; break; case 'ralpha': $orderby = 'a.title DESC'; break; case 'hits': $orderby = 'a.hits DESC'; break; case 'rhits': $orderby = 'a.hits'; break; case 'order': $orderby = 'a.ordering'; break; case 'author': $orderby = 'a.created_by_alias, u.name'; break; case 'rauthor': $orderby = 'a.created_by_alias DESC, u.name DESC'; break; case 'front': $orderby = 'f.ordering'; break; default: $orderby = 'a.ordering'; break; } return $orderby; } /* * @param int 0 = Archives, 1 = Section, 2 = Category */ function _where( $type=1, &$access, &$noauth, $gid, $id, $now=NULL, $year=NULL, $month=NULL, $params=NULL ) { global $database, $mainframe; $noauth = !$mainframe->getCfg( 'shownoauth' ); $nullDate = $database->getNullDate(); $now = _CURRENT_SERVER_TIME; $where = array(); $unpublished = 0; if ( isset($params) ) { // param controls whether unpublished items visible to publishers and above $unpublished = $params->def( 'unpublished', 0 ); } // normal if ( $type > 0) { if ( isset($params) && $unpublished ) { // shows unpublished items for publishers and above if ( $access->canEdit ) { $where[] = "a.state >= 0"; } else { $where[] = "a.state = 1"; $where[] = "( a.publish_up = '$nullDate' OR a.publish_up <= '$now' )"; $where[] = "( a.publish_down = '$nullDate' OR a.publish_down >= '$now' )"; } } else { // unpublished items NOT shown for publishers and above $where[] = "a.state = 1"; //if ( !$access->canEdit ) { $where[] = "( a.publish_up = '$nullDate' OR a.publish_up <= '$now' )"; $where[] = "( a.publish_down = '$nullDate' OR a.publish_down >= '$now' )"; //} } // add query checks for category or section ids if ( $id > 0 ) { if ( $type == 1 ) { $where[] = "a.sectionid IN ( $id ) "; } else if ( $type == 2 ) { $where[] = "a.catid IN ( $id ) "; } } } // archive if ( $type < 0 ) { $where[] = "a.state = -1"; if ( $year ) { $where[] = "YEAR( a.created ) = '$year'"; } if ( $month ) { $where[] = "MONTH( a.created ) = '$month'"; } if ( $id > 0 ) { if ( $type == -1 ) { $where[] = "a.sectionid = $id"; } else if ( $type == -2) { $where[] = "a.catid = $id"; } } } $where[] = "s.published = 1"; $where[] = "cc.published = 1"; if ( $noauth ) { $where[] = "a.access <= $gid"; $where[] = "s.access <= $gid"; $where[] = "cc.access <= $gid"; } return $where; } function votingQuery( $active=NULL ) { global $mainframe; $voting = ( $active ? $active : $mainframe->getCfg( 'vote' ) ); if ( $voting ) { // calculate voting count $select = "\n , ROUND( v.rating_sum / v.rating_count ) AS rating, v.rating_count"; $join = "\n LEFT JOIN #__content_rating AS v ON a.id = v.content_id"; } else { $select = ''; $join = ''; } $results = array( 'select' => $select, 'join' => $join ); return $results; } // Joomlatwork function for adding correct META data function set_robot_metatag ( $robots) { global $mainframe; if ( $robots == 0 ) { $mainframe->addMetaTag( 'robots' , 'index, follow' ); } if ( $robots == 1 ) { $mainframe->addMetaTag( 'robots' , 'index, nofollow' ); } if ( $robots == 2 ) { $mainframe->addMetaTag( 'robots' , 'noindex, follow' ); } if ( $robots == 3 ) { $mainframe->addMetaTag( 'robots' , 'noindex, nofollow' ); } } ?>

Can you advise what I can do to fix this or go back to what it was like before I installed SEF Patch?
Logged
joomlatwork
Administrator
Hero Member
*****
Posts: 2817


View Profile Email
« Reply #1 on: August 05, 2006, 08:14:42 PM »

Looks like the code is shown instead of executed. Can you try the re-install the patch files?
This might help, at least to be sure nothing went wrong during installation.

John
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!