71
Zap_English
Re: Custom link in system menu

my menu or hard coded

you can use mymenu to recreate your entire menu, including the new stuff, and then make the admin menu show only to admin



72
Zap_English
Re: Related news ?

If you're using publisher you can clone the random news blocks, and you can specify exactly what categories to use for each one

It's what I did for the news features on our radio station website



73
Zap_English
TDMMoney can someone fix this

Create a category, say "Income"
Create another category "Expenses"
Then you want to create subcategories for expenses, i.e. rent, utilities, etc

You can't.

The drop down box should default to a blank. But it defaults to the first category created and any other category after that becomes a subcategory of the first category

And the category "Expenses" becomes a subcategory of "Income"

https://github.com/mambax7/tdmmoney



74
Zap_English
Re: Publisher Random Item Image

That fixed it

YOU DA MAN, BLEEKK!



75
Zap_English
Re: Publisher Random Item Image

OK, that worked, HOORAY!

But it caused another problem. Not sure why

The first line of the tpl file I had inserted <center><h4><{$block.title}></h4></center> so that it would display the title of the item.

the next line is your block image, modified as

<img src="<{$block.item_image}>" alt="" width="100" height="100" align="left" style="padding:5px;"/>

So now it displays the image correctly, and the beginning text of the article, but it stopped showing the Title. Now sure why that's happening



76
Zap_English
Re: Publisher Random Item Image

Quote:

trabis wrote:
$mainImage = $itemsObj ->getMainImage();

in #2 use this
$mainImage $itemsObj -
>
getMainImage(); 
if(!
$mainImage['image_path'] ){
$mainImage['image_path']='urltoyourdefaultimage';
}

Not tested, sent by phone.



77
Zap_English
Re: Publisher Random Item Image

what Trabis posted



78
Zap_English
Re: Publisher Random Item Image

Error : ParseError: syntax error, unexpected 'else' (T_ELSE), expecting end of file



79
Zap_English
Re: Publisher Random Item Image

I'm not a programmer but couldn't there just be an IF/ELSE in the tpl file to show the image?

you can see what's happening with it at franksrecipes.net



80
Zap_English
Re: Publisher Random Item Image

Quote:

Zap_English wrote:
Error : Smarty error: [in db:recipes_items_random_item.tpl line 5]: syntax error: unrecognized tag: $block['title'] (Smarty_Compiler.class.php, line 446)


that problem was $block['title'] should be $block.title

but there;s still a problem. My default image is a moving GIF and I thought that might be a problem so I created a 94x94 thumb.jpg and designated that as the image in $mainImage['image_thumb'] =

If the article does NOT have an image, it shows the thumb.jpg in the random item block

BUT

If the articles DOES have an image, it shows both the article image AND the thumb.jpg in the random item block, and the article image is now full sized and is no longer a thumb

The original code I posted in post #2 does work, it shows the articles attached image as a thumb. But if there is no image it shows as a missing image. Can't the original code from #2 be modified with an IF to show the default if an image isn't attached to the article?




TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 38 »



Login

Who's Online

124 user(s) are online (45 user(s) are browsing Support Forums)


Members: 0


Guests: 124


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits