分享传递知识

Joomla "Phoca gallery"去除版权

 

 

Joomla “Phoca gallery”去除版权

 

1.将压缩包解压后,打开目录根目录\front\views\categories用记事本打开其中的文件:view.html.php找到如下代码:

$tmpl[‘s’] = ‘Power’.’ed by Phoc’.’a http://www.p’.’hoca.cz/phocagallery” style=”tex’.’t-decoration: none;” ta’.’rget=”_bla’.’nk” title=”Pho’.’ca Gal’.’lery”>Gal’.’lery

‘将其修改为:$tmpl[‘s’] = ‘’ ;

2.再打开目录根目录\front\views\category用记事本打开其中的文件view.html.php找到如下代码:

$tmpl[‘lm’] = ‘<‘.’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’.’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’.’>’; 

将其修改为:$tmpl[‘lm’] =‘’; 

3.打开目录根目录\libraries\phocagallery\render打开其中的文件renderfront.php注意这个文件里有两处代码需要更改。  

●找到如下代码:

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’.’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’.’>’;}

将其修改为:function getString() {return‘’}     

●找到如下代码: function getDivs()

{return ‘Power’.’ed by Phoc’.’a http://www.p’.’hoca.cz/phocagallery” style=”tex’.’t-decoration: none;” ta’.’rget=”_bla’.’nk” title=”Pho’.’ca Gal’.’lery”>Gal’.’lery

‘;} 将其修改为:function getDivs(){return ‘‘} 

好了修改完毕,然后将整个phoca gallery再压缩成.zip文件,然后按照正常步骤安装程序即可。

 

方法二:该方法所修改的的与上处所指出的相同,不同的是文件所在的位置不同。

1.通过ftp进入到你的网站的根目录下,进入文件夹根目录/components/com_phocagallery/views/categories/找到文件:view.html.php修改方法如 方法一。

2.进入文件夹根目录/components/com_phocagallery/views/category/找到文件:view.html.php修改方法如 方法一。

3.进入文件夹根目录/administrator/components/com_phocagallery/libraries/phocagallery/render/找到文件:renderfront.php

 


若你不是商业类型的站点,你可以保留版权的标志,表示对“phoca gallery”作者的支持!

 

{backbutton}
长空雪


关注公众号『长空雪』

搬孕工 分享孕妇写真 关注我微信公众号 长空雪 “情而不色”是我公众号的风格

赞(0) 打赏

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏