PHPFox: Insert the cover image into ALL website pages - phpfox

I need a bit help about as follow:
Into the "profile" page is present the cover image. This is visible only into the "profile" page. What I'm trying to do is to insert the cover image into ALL other pages too (home, friends, members, ext...). Into "template.html.php" file I found the reference to the module, that is: {module name='profile.logo'}
By following the path, I also found the two files: "logo.html.php" and "logo.class.php".
I've been able to edit the cover's position and size too, but any way after many attemps I haven't been able to make the cover visible on ALL other pages.
Can someone of you guys help me please?
Thank you very much!

How about making a block and placing it in position 9 or 7?
Another way might be editing template.html.php and removing the conditional to always display profile.logo regardless of controller
Ps im at my phone its 1:40am and i cant see the code right now

Related

Joomla - use full article image instead of intro image

I wanted to ask if there is a possibility to force Joomla to use full article image if intro image is empty (everywhere where image should be visible).
Is there a setting for this? Is it a feature of a template or Joomla engine itself? Right now I always have to specify both of this images, cause if I specify one only full article image Joomla does not display miniature in many places. If I specify the other one miniature is there but when I enter article it is missing.
I always end up having to specify the same image twice. Is there any way around this?
Thanks
UPDATE1:
I ended up overwriting the template for article to display $images->intro_image whenever $images->image_fulltext is not available.
This solves my problems yet one joomla user tells me she is sure that they were able to do that before without any modifications in the template. So now I'm just wondering if there is a setting for this in Joomla Admin so that it does not have to be forced in template code
It turned out that each element of my page except full article used intro_image. So what I did was to copy out the part responsible for showing article into the html folder of my template and just added a php code to use intro image instead of fulltext image (if it is present). You basically need to change $image->fulltext to $image->intro_image in the condition. But remember to keep the original condition as an elseif condition if you want to be able to still use full text image

Backend Product Info Grid Modificaiton

I want to create a new text field right under the SKU text field in the Product Information > General tab and populate it with the product's attribute set value. What I want can be seen in the picture below.
Unfortunately, for the past 4 hours I have been trying to locate the file that includes the code which produces the specific layout but so far I had no luck. I 'd be really grateful if anyone could give me a heads up.
Thank you for your time!
Enable backend path hints to find out which file it is. You can do it this way.
http://www.classyllama.com/development/magento-development/enable-templateblock-hints-in-admin-panel
Please note this is basically hacking. A better way to do it would be to follow something like this
http://www.marketingadept.com/blog/2014/01/magento-developers-add-a-custom-field-to-the-category-admin-page/
It's up to you, speed or do it the right way. Goodluck

Magento Specifications (Additional Data = Attributes) not showing ONLY on two product pages??

I’m scratching my head over this one as I can’t quite figure out what’s going on.
The Specifications tab is supposed to show all the attributes for these two products, but there’s nothing shown here:
http://www.centurioncctv.com/index.php/outlet/recordersoutlet/hd16p.html
http://www.centurioncctv.com/index.php/outlet/recordersoutlet/hd08p.html
These two products are in the Digital Recorders Attribute set, just like the rest of these DVRs on other pages...
All of these DVRs show Specifications (Additional Data) correctly.... but why only on the two pages above nothing would show...?
Please share some ideas with me…
I’ve tried recreating the product (not duplicating), but the result is the same.
Does anyone know where to start? I know that it has something to do with view.phtml… or something. Or is it that perhaps the folder in which the attributes are stored have wrong permission?
Does anyone know where to look for permission status for certain products’ attributes??
I also added “Downloads” and they are also not shown…
Anyone? Please help?
Thank you!!
The additional attributes are actually rendered if you look at the generated page source. There seems to be a <div> nesting error in the description content, so the javascript selector to show the attributes doesn't work correctly.
I suggest cleaning up the HTML for the description, and the other tab should start working again.

CEWP to show images (HTML) works until I use grouping. Then I see the DIV tag

I'm fairly new to Share Point so forgive me if this is to easy for you guys, but I could not seem to find the answer anywhere and I am rather stumped.
I am currently trying to make a website to track if particular tasks go over their due date. I have a calculated column that leaves a DIV tag to the image of a red/yellow/green circle which is displayed by the javascript for a Content Editor Web Part (CEWP) made by Christophe on his site here:
http://blog.pathtosharepoint.com/2008/09/01/using-calculated-columns-to-write-html/
I was able to put his code into the CEWP and everything looks great when it is in a standard list.
But I want a web part version of this on the homepage for easy view. When I make the web part (of a view grouping by the image tag) and place on the main site all I see is the DIV tag! I made sure to put an identical CEWP on the homepage as well but i get as grouping:
+[columnName] : DIV>img title=blahblahblah>/DIV> (2)
Needles to say when I expand this it stays the same for all entries below
Any Ideas?
Thanks for your time :D
Nobody has responded, but I found the answer so hopefully this will save someone the hours of grief I had. This will seem ridiculous but just go with it.
In the calculated column instead of returning the type as text, return it as a currency. Sounds ridiculous BUT IT WORKS!!

Unifying image management (ImageField vs. TinyMCE) in Plone

Does there exist anything akin "UberSelectionWidget for images?" I'd like to get rid of direct-upload image fields and make all images to be managed through an image bank folder.
1) In all use cases upload image to image-bank folder first
2) Pick image from the folder by using some sort of image friendly selection widget (both Archetypes, Dexterity)
This way adding images would be unified within TinyMCE editor and news content items.
The problem, however, is that I cannot find any examples for reference picker for images solution.
Please see also Making TinyMCE image pick dialog point to a default folder on Plone
I am willing to replace News Item with my own content type just to get around this problem.
This product helped me in a Plone 3 project:
http://plone.org/products/upload-reference-widget
I had to customize it a little but I think it's a good base to start with.
No Dexterity support IIRC.
Use ReferenceField instead of ImageField in your content types, it make the job done.
You can extend 'News Item' type by using schemaextender.
Bonus:
But asking for people to first add image before adding a news is weird. As widget you must use uploadreference widgets for archetypes as mentionned by marcosfromero . It works and let you add an images without going away of your addform.
I'm not sure but there is no z3cform widget at the moment to achieve this (upload & create ref), may be someone can create it or get me wrong ?

Resources