HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


editing blocks

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#75528 (In Topic #15638)
Avatar

Fan in action

where are the files?

could somebody point me towards the file I need to edit to change a block?
I found the 'block_main_content.tpl' but all this has is a{CONTENT} tag.
if it helps, it's the galleries module on my site (www.mistveil.net) that I want to edit.

thanks guys
Back to the top
 
Posted
Rating:
#75530
Avatar

Community saint

The contents of "{CONTENT}" is generated in \sources\blocks\main_content.php . It is assigned by this line:  

Code

'$rendered_content=$object->run($award_content_row,$zone);

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#75531
Avatar

Fan in action

so which file would I edit to change the gallery?
Back to the top
 
Posted
Rating:
#75532
Avatar

Community saint

Go to Admin Zone Style Manage themes Choose   Edit templates and type "gallery" into the search field at the bottom. That will return a list of the gallery related templates. The specific template you want will depend on exactly what aspect of the gallery you want to change.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#75533
Avatar

Fan in action

I am specificly looking to edit the "Galleries!" section onhttp://www.mistveil.net
but I can't find the template that has the existing code for this within that search


Last edit: by CyberJacob
Back to the top
 
Posted
Rating:
#75555
Avatar

Community saint

It is in search result.  They are:

GALLERY_SUBGALLERY.tpl
GALLERY_SUBGALLERY_WRAP.tpl

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#75561
Avatar

Fan in action

neither of these contain the HTML img tag, which is what I want to edit
Back to the top
 
Posted
Rating:
#75562
Avatar

Community saint

{THUMB} in GALLERY_SUBGALLERY.tpl is what contains the image tag.

{THUMB} in turn is generated by php code that uses IMG_THUMB.tpl .

So what you want then is IMG_THUMB.tpl . Just be aware that if you change IMG_THUMB that it will almost certainly affect other thumbnails images on your site, not just the ones in that section of the gallery.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#75563
Avatar

Fan in action

ahh, finally found it.
thanks for the help last/temp
:)
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: