Welcome, Guest
Username Password: Remember me

.componentheading still there after change menu
(1 viewing) (1) Guest

TOPIC: .componentheading still there after change menu

Re: .componentheading still there after change menu 2 years, 2 months ago #15657

  • Chacapamac
  • OFFLINE
  • Senior Boarder
  • Posts: 61
  • Points: 273
  • Karma: 0
To people with coding skill...

This is a rundown of ALL changes between .17 and .16 that seem relevant to me.

1— com_alphacontent/backend/configuration/configuration.php

Line 51 —>

.17 =
var $list_sizewebsnapr = 's';


.16 =
var $list_sizewebsnapr = 'CHANGE START—>S[/color]<—CHANGE END';






2— com_alphacontent/backend/install/plugins/plugin_content/alphacontent.php

Line 33 down

.17 =
@session_start();
		
		if ( @$_SESSION['acdirectory']!='' ){
			$selectedDirectory = @$_SESSION['acdirectory'];
		} else return;

		$id         = $article->id;
		$option     = JRequest::getVar ( 'option', '', 'GET', 'string' );
		$layout 	= JRequest::getVar ( 'layout', '', 'GET', 'string' );
		$Itemid 	= JRequest::getVar ( 'Itemid', 0, 'GET', 'int' );
		$ratingbar  = "";
		$googlemaps = "";

AND MORE..............................


.16 =
if ( @$_SESSION['acdirectory']!='' ){
			$selectedDirectory = @$_SESSION['acdirectory'];
		} CHANGE START—>//<—CHANGE END else return;

		$id         = $article->id;
AND MORE..............................






3— com_alphacontent/backend/install/plugins/plugin_system/alphacontentsys.php

Line 49 down

.17=
if ( $option != 'com_content' || $[b][color=#ff0000]option != 'com_alphacontent' || $[/color][/b]app->isAdmin() ) {
			CHANGE START—>//@ <—CHANGE END $_SESSION['acdirectory']='';


.16=
if ( $option != 'com_content' || $app->isAdmin() ) {
$_SESSION['acdirectory']='';






4—com_alphacontent/backend/views/alphacontent/view.html.php

line 207 down

.17=
CHANGE START—>//<—CHANGE END $options[] = JHTML::_('select.option', 'AC', JText::_( 'AC_GENERAL_WIDTH_IMAGE' ));
		$options[] = JHTML::_('select.option', 'CHANGE START—>t'<—CHANGE END, JText::_( 'AC_WEBSNAPR' ) . ' ' . JText::_( 'AC_MICRO' ) . ' (90x70)' );
		$options[] = JHTML::_('select.option', 'CHANGE START—>s'<—CHANGE END', JText::_( 'AC_WEBSNAPR' ) . ' ' .  JText::_( 'AC_SMALL' ) . ' (202x152)' );
		CHANGE START—>// <—CHANGE END $options[] = JHTML::_('select.option', 'M', JText::_( 'AC_WEBSNAPR' ) . ' ' .  JText::_( 'AC_MEDIUM' ) . ' (400x300)' );
		CHANGE START—>// <—CHANGE END $options[] = JHTML::_('select.option', 'L', JText::_( 'AC_WEBSNAPR' ) . ' ' .  JText::_( 'AC_LARGE' ) . ' (640x480)' );
		$


.16=
$options = array();		
		$options[] = JHTML::_('select.option', 'AC', JText::_( 'AC_GENERAL_WIDTH_IMAGE' ));
		$options[] = JHTML::_('select.option', 'T', JText::_( 'AC_WEBSNAPR' ) . ' ' . JText::_( 'AC_MICRO' ) . ' (92x70)' );
		$options[] = JHTML::_('select.option', 'S', JText::_( 'AC_WEBSNAPR' ) . ' ' .  JText::_( 'AC_SMALL' ) . ' (202x152)' );
		$options[] = JHTML::_('select.option', 'M', JText::_( 'AC_WEBSNAPR' ) . ' ' .  JText::_( 'AC_MEDIUM' ) . ' (400x300)' );
		$options[] = JHTML::_('select.option', 'L', JText::_( 'AC_WEBSNAPR' ) . ' ' .  JText::_( 'AC_LARGE' ) . ' (640x480)' );
		$




5— com_alphacontent/frontend/models/listing.php

Line 697

.17=
CHANGE START—> // " CONCAT(a.con_position, '&lt;br /&gt;', a.address, '&lt;br /&gt;', a.suburb, ' ', a.state, ' ', a.postcode, '&lt;br /&gt;', a.telephone) AS text," .<—CHANGE END







6— com_alphacontent/frontend/views/alphacontent/tmpl/default.php

Line 615 down

.17=
CHANGE START—> /* <—CHANGE END
					$forcewidth = "width=\"" . $params->get('list_widthimage') . "px\"";					
					if ( $params->get('list_keywebsnapr') && $params->get('list_sizewebsnapr', 'AC')!='AC') {						
						$sizewebsnapr = "size=".$params->get('list_sizewebsnapr');
						$sizewebsnapr .= "&key=".$params->get('list_keywebsnapr');
						$forcewidth = "";
					} else $sizewebsnapr = "size=s";
						$linkimgsrc = "<a href=\"" . $listing[$i]->href . "\" target=\"_blank\">"
								 . "<img src=\"http://images.websnapr.com/?".$sizewebsnapr."&url=" . $listing[$i]->reallink . "\" alt=\"" . $listing[$i]->reallink . "\" $forcewidth />"
								 . "</a>";

					CHANGE START—> */
					if ( $params->get('list_keywebsnapr')!='' ) {
						$document =& JFactory::getDocument();
						$document->addScript("http://www.websnapr.com/js/websnapr.js");
						$size_wsr = $params->get('list_sizewebsnapr', 's');
						$linkimgsrc = "<a href=\"" . $listing[$i]->href . "\" target=\"_blank\">"
								 . "<script type=\"text/javascript\">wsr_snapshot('" . $listing[$i]->reallink . "', '".$params->get('list_keywebsnapr')."', '".$size_wsr."');</script>"
								 . "</a>";
					
					} else $linkimgsrc = ""; <—CHANGE END
					
				} elseif



7— com_alphacontent/frontend/views/alphacontent/view.html.php

Line 36 down

My comparative programm see a difference here???? — I don’t see it ( I will replace the file 16 to 17 (just to see) I think it’s space added in the .16 end of this code...

.17
if ( $this->params->get('showalphabeticalbar') ) {
			$this->alphabeticalbar = $this->_getAlphabeticalBar( $this->alphabeticalbar, $this->params, $this->url_alphacontent );
		}


.16
if ( $this->params->get('showalphabeticalbar') ) {
			$this->alphabeticalbar = $this->_getAlphabeticalBar( $this->alphabeticalbar, $this->params, $this->url_alphacontent );
		}		




That’s the only major difference betwenn the 2 versions...
Last Edit: 2 years, 2 months ago by Chacapamac.

Re: .componentheading still there after change menu 2 years, 2 months ago #15673

  • Chacapamac
  • OFFLINE
  • Senior Boarder
  • Posts: 61
  • Points: 273
  • Karma: 0
OK, I test .17 on a fresh joomla install (1.5.22) I try 22 because my problem is on 1.5.23 with Milkiway template.

EXACT SAME PROBLEM GOING FROM DIRECTORY TO ANOTHER MENU

I install 1.5.16 = NO MORE PROBLEMS

I replace the files in 1.5.17 that have significant modifications in the 1.5.16 to repeat the problem —> NO PROBLEMS
• backend/configuration/configuration.php
• backend/views/alphacontent/view.html.php
• frontend/models/listing.php
• frontend/views/alphacontent/tmpl/default.php
• frontend/views/alphacontent/view.html.php


I replace the 1.5.16 admin with the 1.5.17 admin NO PROBLEMS

I replace the 1.5.16 frontend with the all the 1.5.17 frontend files — NO PROBLEMS

I replace the content plugin — NO PROBLEMS

I replace the system plugin —  PROBLEMS
replace with 1.5.16 — — NO PROBLEMS


The Murphy law win, the last file to be tested is the culprit

Only diff between the 2
Line 49 to 50

1.5.16 =
if ( $option != 'com_content' || $app->isAdmin() ) {
			$_SESSION['acdirectory']='';
			return;



1.5.17 =
if ( $option != 'com_content' || $option != 'com_alphacontent' || $app->isAdmin() ) {
			//@$_SESSION['acdirectory']='';
			return;



GOOD NIGHT !

Re: .componentheading still there after change menu 2 years, 1 month ago #15854

  • indiana71
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Points: 40
  • Karma: 0
Thanks to all. I removed the comments and it seems to works, in my configuration.
But... if the author have commented the lines perhaps something doesn't work anywhere....

if ( $option != 'com_content' || $option != 'com_alphacontent' || $app->isAdmin() ) {
$_SESSION['acdirectory']='';
return;

Re: .componentheading still there after change menu 2 years, 1 month ago #15862

  • Bernard
  • OFFLINE
  • Administrator
  • Posts: 3810
  • Karma: 94
Dependent component SEF used.
Comment or uncomment as appropriate after testing.
More components on this site are free but...
Ever thought about giving something back?
Please make a donation if you want to support its continued development. Your donations help by hardware, hosting services and other expenses.

Re: .componentheading still there after change menu 1 year, 7 months ago #17444

  • allyro
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Points: 50
  • Karma: 0
Hi

I have the same problem. For the coding impaired, what should I do to fix it?

Thanks!
Last Edit: 1 year, 7 months ago by allyro.
Moderators: flyman1664
Time to create page: 0.49 seconds
Goto Top