[cmi-marseille] [ahimsa-tech] requests from imc marseille

Pseudo Punk bart at indymedia.org
Dim 13 Aou 05:53:51 PDT 2006


550,

Do you really need both of them ?
did you test the file somewhere or should it be examined first ?
sorry for the delay in answerring.

Bart


cinq sangs secs hantent <01550 at wanadoo.fr> wrote:
> Hi,
> 
> 
> 550, from IMC Marseille, just doing the go-between for the collective.
> 
> Solidarity
> 550
> 
> ---------------------------------------------
> 
> Dear imc-sf-active,
> the collective of marseille would like to be able to have two types  
> of newswires, the current one but also one that lists the summaries  
> of the newswire articles.
> 
> 
> For this, we propose a new version of the shared file sf-active/ 
> shared/classes/newswire_class.inc
> Aim of the modification:
> to build 2 newswire cache per category (instead of just one); the  
> first one with the template "summary_row.tpl" (the only one that is  
> currently available, the file on cache is named [CATEGORY_] 
> summaries.html), the second one with the template  
> "summary_long_row.tpl" (the file in cache would be named [CATEGORY_] 
> summaries_long.html)
> to add new symbol that can be called in those templates
> S_UMMARY : contains the summary of the article
> I_MGSRC : contains the address of the file of the image that is  
> attached to the article (when it exists) with a thumbnail size
> L_ONGDATE : contains time and date and also the name of the months  
> with 3 letters (Jan ... Dec) and the hour in format 24h (00 ... 24)
> The modifications are:
> modification in the call to the database
> copy/paste of the functions Article.render_file_size ,  
> Article.set_paths and Article.set_mime_type in the file newswire.inc;  
> those functions are modified in order to fit with the needs, in  
> particular everything that do not concern the images is cuted in  
> set_mime_type
> modification of the function render_summary_list , in order to  
> produce (when assigning the value true to the optional variable  
> $long) a cache file that corresponds to the template  
> "summary_long_row.tpl"
> Note that the second newswire [CATEGORY_]summaries_long.html is  
> created only when the template summary_long_row.tpl does exist. All  
> those modifications are compatible with the current use of the file  
> newswire.inc and can be applied without any update of the templates  
> or anything else.
> 
> In solidarity
> 
> P.S. links related to this proposition (in french):
> meetings where this was discussed (in 2006):
> http://docs.indymedia.org/view/Local/ 
> ImcMarseilleCr13012006#Modifications_du_site
> http://docs.indymedia.org/view/Local/ 
> ImcMarseilleCr24022006#Refonte_du_site
> http://docs.indymedia.org/view/Local/ 
> ImcMarseilleCr19042006#Modifications_du_site
> http://docs.indymedia.org/view/Local/ 
> ImcMarseilleCr17052006#Modifications_site
> wiki page with the redaction of this email (contains the original  
> version in french): https://docs.indymedia.org/view/Local/ 
> ImcMarseilleMailModifSfa
> 
> ----------------------------------------------
> 
> This mail has an attachement  here :
> 
> http://docs.indymedia.org/pub/Local/ImcMarseilleMailModifSfa/ 
> newswire_class.inc
> _______________________________________________
> ahimsa-tech mailing list
> ahimsa-tech at lists.indymedia.org
> http://lists.indymedia.org/mailman/listinfo/ahimsa-tech
> 


Plus d'informations sur la liste de diffusion cmi-marseille