XFileSharing Pro - Add new meta tag on download0 and download1 only

Message
Author
glumbo
Posts: 211
Joined: Mar 11, 2011 6:26 am

Add new meta tag on download0 and download1 only

#1 Postby glumbo » Aug 29, 2011 5:20 pm

How can I add a meta tag to the head of download0 and download1?

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#2 Postby PowerChaos » Aug 31, 2011 10:57 pm

you can edit the template files ( /www/cgi-bin/templates ) and add there the meta tag code ( use google)

but the meta tag will not be unic , or you can put the file description in the meta tag

Code: Select all

<TMPL_VAR file_descr>
but the best thing to add it is in the main.html file as that is the main file
and other files just get included in the main file
release wrote: because it is you i going give you a nice code to get unic meta tags per page based on file description

search for

Code: Select all

<META NAME="description" CONTENT="<TMPL_IF meta_descr><TMPL_VAR meta_descr><TMPL_ELSE><TMPL_VAR site_name> - Free file upload service</TMPL_IF>">
replace with

Code: Select all

<TMPL_UNLESS file_descr><META NAME="description" CONTENT="<TMPL_IF meta_descr><TMPL_VAR meta_descr><TMPL_ELSE><TMPL_VAR site_name> - Free file upload service</TMPL_IF>"><TMPL_ELSE><META NAME="description" CONTENT="<TMPL_VAR file_descr>"></TMPL_UNLESS>
enjoy
Please note , i use version 1.8 so i can not say if the other versions are the same or that the codes are changed

Greetings From PowerChaos