PDA

View Full Version : Miva Tip: Larger image at product display page


lfreeman
03-29-06, 04:09 PM
LARGER IMAGE AT PRODUCT DISPLAY TEMPLATE
<mvt:if expr="NOT ISNULL l.settings:product:image">
<div align="center"><a href="Javascript:window.open('graphics/00000001/&mvt:product:code;_lg.jpg','Image','scrollbars=no,s tatus=no,width=470,height=470').focus();"><img src="graphics/00000001/bt_zoom.jpg" border="0"></a></div>

truXoft
03-29-06, 04:40 PM
LARGER IMAGE AT PRODUCT DISPLAY TEMPLATE...
Another tip: when posting code, you can turn off similes or better yet using the # button in the message editor for posting it really as code, whjch is usually better readable:


<mvt:if expr="NOT ISNULL l.settings:product:image">
<div align="center">
<a href="javascript:window.open('graphics/00000001/&mvt:product:code;_lg.jpg','Image','scrollbars=no,s tatus=no,width=470,height=470').focus();">
<img src="graphics/00000001/bt_zoom.jpg" border="0">
</a>
</div>

lfreeman
03-29-06, 05:15 PM
Thanks for the tip, it does look kind of silly with those little tongue waggers ...
<mvt:if expr="NOT ISNULL l.settings:product:image">
<a href="Javascript:window.open('graphics/00000001/&mvt:product:code;_lg.jpg','Image','scrollbars=no,s tatus=no,width=470,height=470').focus();">
<img src="graphics/00000001/bt_zoom.jpg" border="0">
</a>
Just testing the # theory ... learning something every day ....

truXoft
03-29-06, 05:24 PM
Thanks for the tip, it does look kind of silly with those little tongue waggers ...Well, I use vBulletin since longer time, so I am aware that users do not see all the features immediately.

For frequent posters it is better to switch to the full advanced message editor in the Options of your user Control Panel (http://extranet.miva.com/forums/usercp.php). It is also worth of reading the vBulletin help and documentation - there are many keyboard shortcuts that you can use for formatting your posts (i.e. Ctrl-B for "bold-ing" selected text).

As for smilies - when one pops up somewhere where you do not want it (for example "8" followed by ")" parsed into a "cool" smiley 8) - simply turn on the check box "Disable smilies in text" down below the message editor.

DesignExtend-MSI
03-29-06, 05:29 PM
And here we all thought Ivo lived and breathed just MIVA.

:)

<smiley not disabled intentionally>

lfreeman
03-29-06, 06:04 PM
Like I said, lots to learn. I am an ex-Snitz user myself but have been forum-less for a couple of years. Just not enough time to devote to researching them effectively. Just one more reason I will miss the email lists ... forgive some of us our learning curves and Miva list withdrawal symptoms. Change is inevitable and knowledge is power, so on goes the education for all of us, painful as it may be. Thanks for the help and feel free to lend that helping hand [brain] to lots of others during this phase.

truXoft
03-29-06, 08:39 PM
In fact, even better than the plain code box (the # button), is the HTML code box (the <> button). It then makes it better readable through the colored syntax. Just a pity Miva did not go far enough and did not replace the PHP syntax template for the PHP code box (the PHP button) with Miva Script code syntax template :(

<mvt:if expr="NOT ISNULL l.settings:product:image">
<div align="center">
<a href="javascript:window.open('graphics/00000001/&mvt:product:code;_lg.jpg','Image','scrollbars=no,s tatus=no,width=470,height=470').focus();">
<img src="graphics/00000001/bt_zoom.jpg" border="0">
</a>
</div>