Joomler!.net - Decided on Joomla!

デル株式会社

Jboard is Multiple Board!

Latest Posts

Requiring a login
Avatar abrill 2010/07/07 05:06
We created a new category, added links to it, and it asks for login after clicking on those links...
Re:Display weblinks in a nice table-grid - AllWeblinks plugin and module
Avatar rexkramer 2010/05/28 06:28
Hi, i really do like this one for a joomla core replacement (addition): http://extensions.jooml...
Adding a readmore link to mod_ weblink info
Avatar Jet 2010/05/20 01:02
Hi there. I really like your Weblink Info module. It would be perfect for me except I want to se...
How can one change the display order to a horizontal way?
Avatar a7tx42 2010/04/22 00:28
I’m struggling of how to display the links in horizontal order instead of vertical order. A put...
Re:Where can I change the link title size?
Avatar leeue 2010/03/30 17:14
Thanks for your reply. I added your two lines to the template css, and added _weblinkinfo to the...

Popular Posts

ja purity template - need to customize css
Avatar webrp 2008/12/20 13:06
hi 1st of all thank you for this usefull module! I love this thumbnail feature. I have it o...
weblink does not display
Avatar insight 2009/02/20 09:40
hi I am using weblink module based on Joomla 1.5.9, but I cannot see this module works on my s...
WebLink Info New Version(Test)
Avatar Joomler! 2008/09/23 09:05
少し前に作成してあって放置していたものです。 旧バージョンとの違い 並び順に指定順を追加 カラム数を指定し横並びもできる なぜ、ここかというとちゃんと確認していな...
showing the links in a different order than avail.
Avatar posternb 2008/09/13 18:17
Hi there. I would like to have my links show in the backend order, instead of random, new, or mo...
Wrapper
Avatar Lexchess 2009/11/05 06:41
Is there a way to display your links in a Joomla 1.5 wrapper when they are clicked?

Forum Stats

All times are UTC + 9 hours
Total Topics:201
Total Posts:1137
New Members:
Avatar JimJo

Forum Online

Total Online:114
Total Guest:114
Bottom
Home » Support » Modules » Free Module » WebLinkInfo » Errors occurring...
Errors occurring...
Errors occurring...
Sunday, 04 January 2009 05:20
0 votes
Hi-

Not sure what happened. I have had weblinkinfo set up on my test site for a while, but today when I went to the pages using the module, I got these errors for each link. Below the list of errors, the links would show up just fine with all the descriptions and everything. I have the setting for Thumbnails as "No".:

Notice: Undefined property: stdClass::$image in F:wampwwwmangrovemodulesmod_weblinkinfohelper.php on line 100

Notice: Undefined variable: width in F:wampwwwmangrovemodulesmod_weblinkinfohelper.php on line 103

Notice: Undefined variable: height in F:wampwwwmangrovemodulesmod_weblinkinfohelper.php on line 103

Notice: Undefined variable: snapcasacode in F:wampwwwmangrovemodulesmod_weblinkinfohelper.php on line 103

Notice: Undefined variable: snapcasasize in F:wampwwwmangrovemodulesmod_weblinkinfohelper.php on line 103

When I set Thumbnails to "Yes", I get:

Notice: Undefined property: stdClass::$image in F:wampwwwmangrovemodulesmod_weblinkinfohelper.php on line 100

The errors triggered by line 103 disappear. The thumbnails show up as expected with the links after the list of errors.

I don''t want thumbnails, but I was hoping this would help you figure out what is going on...

Thanks.
kgriffin
Fresh Boarder
Fresh Boarder
3
2009/01/04
Re:Errors occurring...
Sunday, 04 January 2009 05:33
0 votes
I just realized that in another section of the website where I am using weblinkinfo and also have the category descriptions set as "No" I get an additional error along with the thumbnail errors:

Notice: Undefined property: stdClass::$catdescription in F:wampwwwmangrovemodulesmod_weblinkinfohelper.php on line 99

It seems that there is something going on with the logic in the helper file. Can''t figure out why I didn''t get these errors before this!
kgriffin
Fresh Boarder
Fresh Boarder
3
2009/01/04
Re:Errors occurring...
Sunday, 04 January 2009 10:59
0 votes
I fixed the errors by adding in quite a few logic statements into the code so that there would be a check as to whether descriptions, thumbnails, etc. are set to yes or no.

in helper.php, starting at line 96 changed:

if($group){
	        foreach($rows as $row){
	        $temp[$row->catid][''title''] = $row->cattitle;
	        $temp[$row->catid][''description''] = $row->catdescription;
	        $temp[$row->catid][''image''] = $row->image;
	        $row->link = JRoute::_( ''index.php?option=com_weblinks&view=weblink&catid=''.$row->catslug.''&id=''. $row->slug);
	        $row->thumbnail = '''';
	        JWebLink_Information::makeThumbnail($row, $thumbAPI, $width, $height, $snapcasacode, $snapcasasize);
	        $temp[$row->catid][''list''][] = $row;
	        }


to

if($group){
	        foreach($rows as $row){
	        $temp[$row->catid][''title''] = $row->cattitle;
		if ($params->get(''showcatdesc'', 1)){
	        $temp[$row->catid][''description''] = $row->catdescription;
		}
		if ($params->get(''showcatimage'', 1)){
	        $temp[$row->catid][''image''] = $row->image;
		}
	        $row->link = JRoute::_( ''index.php?option=com_weblinks&view=weblink&catid=''.$row->catslug.''&id=''. $row->slug);
		if($params->get(''showthumb'', 1)){
	        $row->thumbnail = '''';
	        JWebLink_Information::makeThumbnail($row, $thumbAPI, $width, $height, $snapcasacode, $snapcasasize);
		}
	        $temp[$row->catid][''list''][] = $row;
	        }


and in default.php, starting at line 81, changed:

<a href="<?php echo $link->link; ?>" title="<?php echo $link->title; ?>" target="<?php echo $weblinkparams[''target'']; ?>">
	<?php echo $link->thumbnail. $link->title. $hits;?>
                      
	 </a>


to:

<a href="<?php echo $link->link; ?>" title="<?php echo $link->title; ?>" target="<?php echo $weblinkparams[''target'']; ?>">
	<?php if ($weblinkparams[''showthumb'']){
	echo $link->thumbnail. $link->title. $hits;
	} 
	echo $link->title. $hits;?>
                      
	</a>
kgriffin
Fresh Boarder
Fresh Boarder
3
2009/01/04
Re:Errors occurring...
Monday, 05 January 2009 08:00
0 votes
Great!!

Thank you.
Joomler!
Platinum Boarder
Platinum Boarder
477
2007/08/26
 
Home » Support » Modules » Free Module » WebLinkInfo » Errors occurring...
joomler.net is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla!(R) name is used under a limited license from Open Source Matters in the United States and other countries.
joomler.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.