-
AuthorPosts
-
Sherlock Friend
Sherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 24, 2008 at 4:52 am #276787Hi mwanakijiji !
MOSImage Control in content edit of Joomla 1.0 only gets images form stories folder,so you can’t change image directory for content.October 24, 2008 at 5:21 am #276790<em>@hainn84 87740 wrote:</em><blockquote>Hi mwanakijiji !
MOSImage Control in content edit of Joomla 1.0 only gets images form stories folder,so you can’t change image directory for content.</blockquote>Hi hainn84!!
Sure, it takes from the stories folder. But it accepts images also within folders inside stories as long as they`re in stories folder. i.e /stories/news/politics
But what seems to be the problem here is that the code reserves space of an image no matter there`s an image or not.
I think you can go through the articles backend there and see if there`s anything wrong.
Try to add a new article of your own and see what`s gonna happen.
Just give me the name of the article and location so that I can trace it back later.
Thanks hainn84
questbg Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
October 24, 2008 at 5:42 am #276792<em>@mwanakijiji 87743 wrote:</em><blockquote>
But what seems to be the problem here is that the code reserves space of an image no matter there`s an image or not.
</blockquote>I think from hainn 84’s explanation above … it seems that the articles with the problem still have a {mosimage} code in the article.
Open one of the problem articles and remove the {mosimage} tag and save again. This could solve the problem!
Good Luck
ChrisOctober 24, 2008 at 6:15 am #276798<em>@questbg 87745 wrote:</em><blockquote>I think from hainn 84’s explanation above … it seems that the articles with the problem still have a {mosimage} code in the article.
Open one of the problem articles and remove the {mosimage} tag and save again. This could solve the problem!
Good Luck
Chris</blockquote>Dear Chris,
I clearly know how that mosimage tag works and I`ve added the articles without and mosimage.
I`ve given hainn84 access to the administration panel so that he can try to add a new article by himself and see what`s gonna happen.
I asked him to add an article without and image. I`m still waiting to see what he`s gonna say.I`m gonna pm you right now to give you the link so that you can see a live problem.
questbg Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
October 24, 2008 at 6:28 am #276800I see now, every article in the category has a ‘space’ even though no image or image tag has been inserted. Very odd.
I hope hainn84 can produce a new article without the space to maybe track down this problem.
October 24, 2008 at 6:33 am #276801<em>@questbg 87755 wrote:</em><blockquote>I see now, every article in the category has a ‘space’ even though no image or image tag has been inserted. Very odd.
I hope hainn84 can produce a new article without the space to maybe track down this problem.</blockquote>
Sure, Let`s wait for hainn84 to come back here and prove that he`s been able to produce a new article without any problem.
I can see he`s still ONLINE.questbg Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
October 24, 2008 at 7:09 am #276807I’ve just reopened the Premium Support Ticket so hopefully Hainn 84 wil be back with some ideas!
My own feeling is maybe there is something in the CSS to force the text wrap, even if no image is used?
1 user says Thank You to questbg for this useful post
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 24, 2008 at 7:27 am #276808Hi mwanakijiji and questbg !
I have received email of questbg. i’m checking the problem in mwanakijiji’s site , Please wait !1 user says Thank You to Sherlock for this useful post
October 24, 2008 at 7:30 am #276809<em>@hainn84 87764 wrote:</em><blockquote>Hi mwanakijiji and questbg !
I have received email of questbg. i’m checking the problem in mwanakijiji’s site , Please wait !</blockquote>Thanks hainn84!!
I`ll be waiting Sir.
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 24, 2008 at 7:38 am #276811Hi mwanakijiji !
I need super admin account to check mambot on your site ! the account what you sent for me is Administrator, it can’t see mambot.October 24, 2008 at 7:47 am #276813<em>@hainn84 87767 wrote:</em><blockquote>Hi mwanakijiji !
I need super admin account to check mambot on your site ! the account what you sent for me is Administrator, it can’t see mambot.</blockquote>Administrator Permission now GIVEN.
Log out and try to log in again.
Thanks.
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 24, 2008 at 10:03 am #276841Hi mwanakijiji !
there is a problem with JA News mambot in your site, now, it is ok , i fixed it by set image size to 0px*0px in ja news mambot ,but that is not good way to solve it , this is strange problem i have tested it in teline ii of my local , but doesn’t appear this problem. I’m try to detect root of problem !1 user says Thank You to Sherlock for this useful post
October 24, 2008 at 10:12 am #276845<em>@hainn84 87800 wrote:</em><blockquote>Hi mwanakijiji !
there is a problem with JA News mambot in your site, now, it is ok , i fixed it by set image size to 0px*0px in ja news mambot ,but that is not good way to solve it , this is strange problem i have tested it in teline ii of my local , but doesn’t appear this problem. I’m try to detect root of problem !</blockquote>Thank You hainn84!!
Can you try to visit the TRAVEL Page and see what happened to already existed images!? It now appears to be so strange.
I’ve tried to install the Quickstart of 1.0.15 several times in different locations as a way of testing but the problem is the same.
May be there something wrong with the 1.0.15 Quickstart
October 25, 2008 at 9:27 am #276889I’ve figured out that the problem sounds to be in mosjanews.php
<?php
/**
* @version $Id: mosimage.php 5941 2006-12-06 12:43:29Z predator $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html 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.
*/// no direct access
defined( ‘_VALID_MOS’ ) or die( ‘Restricted access’ );$_MAMBOTS->registerFunction( ‘onPrepareContent’, ‘botMosJANews’ );
$_MAMBOTS->registerFunction( ‘onAfterDisplayTitle’, ‘botMosJANews_DT’ );
$_MAMBOTS->registerFunction( ‘onBeforeDisplayContent’, ‘botMosJANews_BDC’ );
$_MAMBOTS->registerFunction( ‘onAfterDisplayContent’, ‘botMosJANews_ADC’ );/**
*/function botMosJANews_DT( $published, &$row, &$params, $page=0 ) {
}function botMosJANews_BDC( $published, &$row, &$params, $page=0 ) {
}function botMosJANews_ADC( $published, &$row, &$params, $page=0 ) {
}function botMosJANews( $published, &$row, &$params, $page=0 ) {
global $database, $_MAMBOTS, $mosConfig_absolute_path, $Itemid;
static $janewsi = 0;
if(!isset($row->_Itemid)) return;
require_once ($mosConfig_absolute_path.’/modules/ja_news/helper.php’);
//Get mambot parameter
$botParams = getMambotParams (‘mosjanews’);
//$botParams = getMambotParams (‘mosjanews’);
$option = mosGetParam($_REQUEST, ‘option’);
$task = mosGetParam($_REQUEST, ‘task’);
$mparams = null;
if($option = ‘com_content’ && ($task==’blogsection’ || $task==’blogcategory’)) {
$query = “select params from #__menu where id=’$Itemid'”;
$database->setQuery($query);
$mparams = new mosParameters($database->loadResult());
}
if(!$mparams) return;$autoresize = true;
$showimage = true;
if($janewsi < $mparams->get(‘leading’)) {
$img_align = $botParams->get(‘leading_align’, ‘left’);
$img_w = $botParams->get(‘leading_w’, 0);
$img_h = $botParams->get(‘leading_h’, 0);
$maxchar = $botParams->get(‘leading_maxchar’, 0);
} else if ($janewsi < $mparams->get(‘leading’) + $mparams->get(‘intro’)) {
$img_align = $botParams->get(‘intro_align’, ‘left’);
$img_w = $botParams->get(‘intro_w’, 0);
$img_h = $botParams->get(‘intro_h’, 0);
$maxchar = $botParams->get(‘intro_maxchar’, 0);
} else return;
//if($leading)
$row->introtext = $row->text;
$image = modJANewsHelper::replaceImage ($row, $img_align, $autoresize, $maxchar, $showimage, $img_w, $img_h );
$float = $img_align?”float:$img_align”:””;
$row->text = “<div class=”article-content clearfix”><div class=”article-image” style=”width:{$img_w}px;height:{$img_h}px;$float;”>$image</div>n” . ($maxchar?$row->introtext1:$row->introtext).”</div>”;
$janewsi++;
}function getMambotParams ($botname) {
global $database, $_MAMBOTS;
if ( !isset($_MAMBOTS->_content_mambot_params[$botname]) ) {
// load mambot params info
$query = “SELECT params”
. “n FROM #__mambots”
. “n WHERE element = ‘$botname'”
. “n AND folder = ‘content'”
;
$database->setQuery( $query );
$database->loadObject($mambot);// save query to class variable
$_MAMBOTS->_content_mambot_params[$botname] = $mambot;
}// pull query data from class variable
$mambot = $_MAMBOTS->_content_mambot_params[$botname];
return new mosParameters ($mambot->params);
}
?>Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 27, 2008 at 8:45 am #277022Dear mwanakijiji !
i have find solution for this problem , you can fix it following wayy below :
Open mosjanews.php file in mambotscontent folder , find following code line at about line 71 :
$row->text = "<div class="article-content clearfix"><div class="article-image" style="width:{$img_w}px;height:{$img_h}px;$float;">$image</div>n" . ($maxchar?$row->introtext1:$row->introtext)."</div>";
change to :
if($image) {
$row->text = "<div class="article-content clearfix"><div class="article-image" style="width:{$img_w}px;height:{$img_h}px;$float;">$image</div>n" . ($maxchar?$row->introtext1:$row->introtext)."</div>";
} else {
$row->text = "n" . ($maxchar?$row->introtext1:$row->introtext)."</div>";
}
2 users say Thank You to Sherlock for this useful post
-
AuthorPosts
This topic contains 35 replies, has 3 voices, and was last updated by mwanakijiji 16 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum