Bixie Forum

This is the forum for the free Bixie extensions and general questions.
Bixie customers can use the Support Center for their support questions.

You can visit the old forum here.

Video Tutorials

Bixie now provides video tutorials to help you setting up the Bixie VM-Chrono module.

Check out the video tutorials here for a step-by-step installation help!

Welcome, Guest
Please Login or Register.    Lost Password?

Hide attribute and comment label if no comments
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Hide attribute and comment label if no comments
#333
Hide attribute and comment label if no comments 1 Year, 6 Months ago  
Is here some easy way to hide:
1) upload attribute and it's value on all 3 templates (basket, order details, email template);
2) comments label if no comments posted?
darkheart
darkheart
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#334
Re:Hide attribute and comment label if no comments 1 Year, 6 Months ago  
I would like to hide comment in this place too (see attachment).
darkheart
darkheart
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/08/05 13:42 By darkheart.
The administrator has disabled public write access.
 
#339
Re:Hide attribute and comment label if no comments 1 Year, 6 Months ago  
These are not easy to hide. The attribute in cart is very hard, to other are more easy.
You can hide the comment in the cart in the file administrator\components\com_virtueupload\classes\output.class.php line 157:
Code:

if ( $vu_config['ShowComment'] == 1 ) {
$html .= '<br/>'.JText::_('VULANG_COMMENT').': '.nl2br($upload->comment);
}


change that to:
Code:

if ( $vu_config['ShowComment'] == 1 && $upload->comment != '-') {
$html .= '<br/>'.JText::_('VULANG_COMMENT').': '.nl2br($upload->comment);
}


In the uploadinfo simular:
File modules\mod_virtueupload\tmpl\rounded.php line 34:
Code:

 if ($vu_config['ShowComment'] == 1) {

Make it:
Code:

 if ($vu_config['ShowComment'] == 1 && $upload->comment != '-') {

Untested, so please let me know if it worked
malles
malles
Admin
Posts: 206
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Bixie customers can use the Support Center for their support questions.
 
#345
Re:Hide attribute and comment label if no comments 1 Year, 6 Months ago  
code for output.class.php works fine, but second code (mod_virtueupload\tmpl\rounded.php) is for hiding comment's textarea input, not output.
darkheart
darkheart
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#347
Re:Hide attribute and comment label if no comments 1 Year, 6 Months ago  
So, I searched through all VU files and still can not find the code I wish to hide. I suppose it is some javascript generated code that appears in iframe. In general page source view the code doesn't appear, but if I select it (in Firefox), I can see this:

Code:

<div>
<div id="image1043" class="vu_thumb">
<a href="http://bergafoto.lv/index.php?option=com_virtueupload&amp;controller=virtueupload&amp;task=download&amp;dl_id=1043&amp;lang=lv" class="vu_dllink"><img src="/components/com_virtueupload/themes/rounded/icons/ jpg.png" alt="Uzklikšķini, lai lejupielādētu" title="Uzklikšķini, lai lejupielādētu" class="vu_thumb" width="64px" height="64px"></a> </div>
<p>
Faila nosaukums:
<a href="http://bergafoto.lv/index.php?option=com_virtueupload&amp;controller=virtueupload&amp;task=download&amp;dl_id=1043&amp;lang=lv" class="vu_dllink">1043-11.jpg</a><br>
Faila tips:
JPG-attēls<br>
Faila izmērs:
10.8 MB </p>

<div id="view1043">
Komentārs:<br>
-
</div>
<div id="edit1043" class="hidden">
<textarea cols="25" rows="3" name="edit_comm1043" id="comment1043" class="inputbox">-</textarea><br clear="all">
<span id="sendcomm" class="vu_but sendcomm" onclick="sendcomment(1043)" title="Saglabāt"></span>
<span id="cancel" class="vu_but cancel" onclick="cancelcomment(1043)" title="Atcelt"></span>

</div>
<br clear="all">
<span id="delete" class="vu_icons delete" onclick="delupload(1043)" title="Dzēst"></span>
<span id="editicon1043" class="vu_icons edit" onclick="editcomment(1043)" title="Labot"></span>
<br clear="all">
</div>


I need to hide this part, if comment value is "-":
Code:

<div id="view1043">
Komentārs:<br>
-
</div>

darkheart
darkheart
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#363
Re:Hide attribute and comment label if no comments 1 Year, 5 Months ago  
All code is in the theme folder in the front-end files. Except for the moudle template, which you found.
The file you're looking for is components\com_virtueupload\themes\rounded\uploadinfo.html
malles
malles
Admin
Posts: 206
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Bixie customers can use the Support Center for their support questions.
 
Go to topPage: 12
Moderators: baf