Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - janfy

Pages: [1]
1
Edit file index.php,

FIND this line :

Code: [Select]
$news .= "<b>".$image_row['news_title']."</b>  -- Posté par <b>".$image_row['user_name']."</b> le <i>".format_date($config['date_format']." ".$config['time_format'], $image_row['news_date'])."</i>";
and REPLACE by this one :

Code: [Select]
$news .= "<b>".$image_row['news_title']."</b>".sprintf($lang['news_posted_by'], $news_row[$i]['user_name'], format_date($config['date_format']." ".$config['time_format'], $news_row[$i]['news_date']));

2
I fight with it but..... :oops:

when i dont have news i see "no news" how can I add something like {if_news} news table here {end_if_news)  :?:

I need to remowe whole table when no news

Hi, here is a solution

Find the following code in index.php file at the 4images root directory
Code: [Select]
if (!$num_rows)  {
  $news = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\"><tr class=\"imagerow1\"><td>";
  $news .= $lang['no_news'];
  $news .= "</td></tr></table>";
}

and replace by the following code :

Code: [Select]
if (!$num_rows)  {
  $news = "";
}

Find the following code in home.html file in directory <4images root directory>/templates/default (il you use the default template)

Code: [Select]
<table width="450" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="head1">
      <table width="100%" border="0" cellspacing="0" cellpadding="4">
        <tr>
          <td class="head1">{news_main}</td>
          <td class="head1" align="right"><a class="head1" href="news.php">{news_archives}</a></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="head1" colspan="2">{news}</td>
  </tr>
</table>

Add before this code :

Code: [Select]
{if news}
Add after this code :

Code: [Select]
{endif news}
That's all folks

3
Hi,

Find following code in index.php file at the 4images root directory :

Code: [Select]
$news .= "<td width=\"100%\" valign=\"top\">\n<br/>";
$news .= format_text($image_row['news_text'], ((isset($config['news_html']))?$config['news_html']:0), 0, ((isset($config['news_bbcode']))?$config['news_bbcode']:1), ((isset($config['news_bbcodeimg']))?$config['news_bbcodeimg']:1));
$news .= "<br/><br/>\n</td>\n";

And remove <br/> tags.

Thats all folks.

4
Mods & Plugins (Releases & Support) / Re: [MOD] Simple News Publishing
« on: December 12, 2005, 12:50:26 PM »
Try to ask in the appropriated topic  :?:

5
Mods & Plugins (Releases & Support) / Re: [MOD] Simple News Publishing
« on: December 07, 2005, 10:48:22 AM »
When I post a news, I have the following...

Quote
Prueba -- Posté par Busologo le 07.12.2005 00:18

I translate all to spanish in main.php and admin.php but always show the same... Can anybody help me?

Edit file index.php,

FIND this line :

Code: [Select]
$news .= "<b>".$image_row['news_title']."</b>  -- Posté par <b>".$image_row['user_name']."</b> le <i>".format_date($config['date_format']." ".$config['time_format'], $image_row['news_date'])."</i>";
and REPLACE by this one :

Code: [Select]
$news .= "<b>".$image_row['news_title']."</b>".sprintf($lang['news_posted_by'], $news_row[$i]['user_name'], format_date($config['date_format']." ".$config['time_format'], $news_row[$i]['news_date']));
 8)

6
Mods & Plugins (Releases & Support) / Re: [MOD] Simple News Publishing
« on: December 07, 2005, 10:38:11 AM »
Installation Manual of this MOD is so messed up :evil: !

Sorry, but i'm french, and i try to do my best to write install guide in english.

English isn't my mother tongue :evil:

If you think you can do better than me, DO IT !

PS: Double post for the same MOD : http://www.4homepages.de/forum/index.php?topic=9064.0

PS2: Next release compliant with version 1.7.1 will be packaged ASAP


7
Yes i have !
I'll post the new version of this MOD ASAP !

8
Français / Re: MOD News
« on: August 23, 2005, 07:45:55 PM »
Pas de pb.
J'ai déjà pris en comptes les principales remarques sur le post du MOD.
Et la principale évolution est un nouveau paramètre qui indique si on affiche les news pour tous les utilisateurs ou uniquement pour les utilisateurs enregistrés.
Si vous avez fait d'autre modifications, je pourrai peut-être les intégrer dans le nouveau package.

9
Français / Re: MOD News
« on: August 23, 2005, 06:17:20 PM »
Quote

Pourtant je vois tout dans la partie administration (j'ai inscrit 5 news pour tester, je peux administrer, corriger, mais rien après sur la page d'accueil)


Ce problème a déjà été reporté sous la section des MODs du forum. Des solutions sont présentement en application pour essayer de résourdre ce mystère.

Je dois refaire la procédure d'installation pr la v1.7.1 de 4images.
Il faudra ensuite vérifier que tout est bien correct.

@janfy :
Dois-je comprendre que vous êtes l'auteur de ce MOD ? Si oui, j'offrirai mon assistance personnellement pour aggrandir la présentation. ;)
Oui, c'est moi. ;)
Il y a encore les infos concernant l'auteur sur le post repris par Vincent suite au hack de l'ancien forum.

10
Français / Re: MOD News
« on: August 23, 2005, 04:57:19 PM »
C'est en cours... pour la version 1.7.1
Ca tourne déjà sur mon site www.bestof-sexe.com
J'essaye de faire le package dans la semaine.

Par contre, je n'ai pas tout compris à ton pb Bifrons.

11
Mods & Plugins (Releases & Support) / Re: [MOD] Simple News Publishing
« on: April 27, 2005, 01:25:40 PM »
I'm the creator of this mod.
Have solved your problem ?

Pages: [1]