Friday, January 14, 2011

I'm back!

Today I'm going to document my experiences in designing a website with joomla 1.5.2 & phoca gallery.

I know I promised more blogs on the previous website I designed and have not yet posted them (due to time constraints), but I thought I should document this before I go much further.

Let me be honest, this is my first time working with phocagallery and so far it is one joomla extension that I have had no problems with whatsoever.

My major issue has been getting rid of the Powered by text at the bottom of the page on the front end. Now, don't get me wrong, I have no problem with giving credit where it is due, but, as a designer, who often uses multiple components and modules on websites, it looks untidy (to say the least) to have "powered by" or "designed by" text all over the place on the front end of the website.

Anyways, so on to the methods I discovered to remove this from the front end (without removing it completely.

for my work I used Joomla 1.5.2 with Phocagallery 2.7.5

to remove the powered by text, I basically edited two files:

1. Root Folder>components>com_phocagallery>views>categories>view.html.php
2. Root Folder>administrator>components>com_phocagallery>libraries>phocagallery>render>renderfront.php

In the first one I located the following code:
$tmpl['phoac'] = '
Power'.'ed by Phoc'.'a Gal'.'lery
';

now highlight, cut and replace that code with this:

//$tmpl['phoac'] = '
Power'.'ed by Phoc'.'a Gal'.'lery
';

then click save.

This will remove the powered by text from the main categories page, but not the other pages

to remove the powered by text from other pages go to the second file and locate the following code:

function getString() {
return '<'.'d'.'i'.'v'.' '.'s'.'t'.'y'.'l'.'e'.'='.'"'.'t'.'e'.'x'.'t'.'-'.'a'.'l'.'i'.'g'.'n'.':'.' '.'c'.'e'.'n'.'t'.'e'.'r'.';'.' '.'c'.'o'.'l'.'o'.'r'.':'.' '.'r'.'g'.'b'.'('.'2'.'1'.'1'.','.' '.'2'.'1'.'1'.','.' '.'2'.'1'.'1'.')'.';'.'"'.'>'.'P'.'o'.'w'.'e'.'r'.'e'.'d'.' '.'b'.'y'.' '.'<'.'a'.' '.'h'.'r'.'e'.'f'.'='.'"'.'h'.'t'.'t'.'p'.':'.'/'.'/'.'w'.'w'.'w'.'.'.'p'.'h'.'o'.'c'.'a'.'.'.'c'.'z'.'"'.' '.'s'.'t'.'y'.'l'.'e'.'='.'"'.'t'.'e'.'x'.'t'.'-'.'d'.'e'.'c'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' '.'h'.'r'.'e'.'f'.'='.'"'.'h'.'t'.'t'.'p'.':'.'/'.'/'.'w'.'w'.'w'.'.'.'p'.'h'.'o'.'c'.'a'.'.'.'c'.'z'.'"'.' '.'s'.'t'.'y'.'l'.'e'.'='.'"'.'t'.'e'.'x'.'t'.'-'.'d'.'e'.'c'.'o'.'r'.'a'.'t'.'i'.'o'.'n'.':'.' '.'n'.'o'.'n'.'e'.';'.'"'.' '.'t'.'a'.'r'.'g'.'e'.'t'.'='.'"'.'_'.'b'.'l'.'a'.'n'.'k'.'"'.' '.'t'.'i'.'t'.'l'.'e'.'='.'"'.'P'.'h'.'o'.'c'.'a'.'.'.'c'.'z'.'"'.'>'.'P'.'h'.'o'.'c'.'a'.'<'.'/'.'a'.'>'.' '.'<'.'a'.' '.'h'.'r'.'e'.'f'.'='.'"'.'h'.'t'.'t'.'p'.':'.'/'.'/'.'w'.'w'.'w'.'.'.'p'.'h'.'o'.'c'.'a'.'.'.'c'.'z'.'/'.'p'.'h'.'o'.'c'.'a'.'g'.'a'.'l'.'l'.'e'.'r'.'y'.'"'.' '.'s'.'t'.'y'.'l'.'e'.'='.'"'.'t'.'e'.'x'.'t'.'-'.'d'.'e'.'c'.'o'.'r'.'a'.'t'.'i'.'o'.'n'.':'.' '.'n'.'o'.'n'.'e'.';'.'"'.' '.'t'.'a'.'r'.'g'.'e'.'t'.'='.'"'.'_'.'b'.'l'.'a'.'n'.'k'.'"'.' '.'t'.'i'.'t'.'l'.'e'.'='.'"'.'P'.'h'.'o'.'c'.'a'.' '.'G'.'a'.'l'.'l'.'e'.'r'.'y'.'"'.'>'.'G'.'a'.'l'.'l'.'e'.'r'.'y'.'<'.'/'.'a'.'>'.'<'.'/'.'d'.'i'.'v'.'>';
}

This last one will remove all other traces of the powered by text on the front end of your website, without actually removing the code itself.