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.


Topics - Vincent

Pages: 1 [2] 3 4
16
Mods & Plugins (Requests & Discussions) / Comment Counter
« on: August 16, 2005, 05:37:34 PM »
Hello
i look for the code which say total comment: 18

i would like to add this information to the side navigationbar!

thanks for feedback

vincent

17
Kürzlich hatte ich diese anfrage geposted - man hat mir sogar die Datei eingefügt und jetzt ist alles weg :?:

gruss
vincent

18
The Oracle found some errors which required modifications to the MOD. I updated it at 13:50 swisstime 28.07.2005 - thanks TheOracle!
## MOD Title: Another Simple News Publishing Mod
## MOD Author: janfy < janfy@cagades.com > http://www.cagades.com/
## MOD Description: Adds news to your 4images gallery
##
## MOD Version: 1.3.0

Reference:
http://www.4homepages.de/forum/index.php?topic=6787.msg29663#msg29663

##############################################################
## Before Adding This MOD To Your Gallery, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]---------------------------------
#
Code: [Select]
includes/constants.php
#
#-----[ FIND ]---------------------------------
#
Code: [Select]
define('LIGHTBOXES_TABLE', $table_prefix.'lightboxes');
#
#-----[ AFTER, ADD ]------------------------------------------
#
Code: [Select]
define('NEWS_TABLE', $table_prefix.'news');
#
#-----[ OPEN ]---------------------------------
#
index.php

#
#-----[ FIND ]---------------------------------
#
Code: [Select]
unset($categories);
#
#-----[ AFTER, ADD ]------------------------------------------
#

Code: [Select]
//-----------------------------------------------------
// ----- Show news ------------------------------------
//-----------------------------------------------------

if (!isset($config['news_home_display']) || $config['news_home_display'] == 1)
$sql = "SELECT news_title, news_text, user_name, news_date FROM ".NEWS_TABLE." ORDER BY news_date DESC LIMIT 0, ".((isset($config['news_nb']))?$config['news_nb']:5);
else if ($config['news_home_display'] == 2)
$sql = "SELECT news_title, news_text, user_name, news_date FROM ".NEWS_TABLE." WHERE news_date > ".(time() - ((isset($config['news_nb_days']))?$config['news_nb_days']:15)*86400)." ORDER BY news_date DESC";

$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);

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>";
}
else  {
  $news = "<table width=\"".$config['image_table_width']."\" border=\"0\" cellpadding=\"".$config['image_table_cellpadding']."\" cellspacing=\"".$config['image_table_cellspacing']."\">";

  while ($image_row = $site_db->fetch_array($result))
  {
    $news .= "<tr class=\"imagerow1\">\n";
    $news .= "<td width=\"100%\" valign=\"top\">\n";
    $new_is_new = ($image_row['news_date'] > time() - ((isset($config['news_cutoff']))?$config['news_cutoff']:3)*86400);
$news .= "<b>".$image_row['news_title']."</b>".(($new_is_new)?" <sup class=\"new\">".$lang['new']."</sup>":"").sprintf($lang['news_posted_by'], $image_row['user_name'], format_date($config['date_format']." ".$config['time_format'], $image_row['news_date']));
    $news .= "\n</td>\n";
    $news .= "</tr>\n";

    $news .= "<tr class=\"imagerow2\">\n";
    $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";
    $news .= "</tr>\n";

  } // end while

  $news .= "</table>\n";
} // end else

$site_template->register_vars(array(
"news" => $news,
"news_archives" => "<a href=\"".$site_sess->url(ROOT_PATH."news.php"\" class=\"link\">".$lang['news_archive']."</a>",
"news_main" => $lang['news_main']
));
unset($news);

#
#-----[ OPEN ]---------------------------------
#
admin/index.php

#
#-----[ FIND ]---------------------------------
#
Code: [Select]
show_nav_option($lang['nav_comments_edit'], "comments.php?action=modifycomments");
#
#-----[ AFTER, ADD ]------------------------------------------
#
Code: [Select]
show_nav_header($lang['news_main']);
show_nav_option($lang['news_add'], "news.php?action=addnews");
show_nav_option($lang['modify_news'], "news.php?action=modifynews");


#
#-----[ OPEN ]---------------------------------
#
lang/english/main.php

#
#-----[ FIND ]---------------------------------
#
Code: [Select]
$lang['delete'] = "[Delete]";
#
#-----[ AFTER, ADD ]------------------------------------------
#
Code: [Select]
$lang['news_main'] = 'News';
$lang['no_news'] = 'No news';
$lang['news_deleted'] = ' news deleted';
$lang['newss_deleted'] = ' news deleted';
$lang['news_deletion'] = 'News deletion';
$lang['newss'] = 'news';
$lang['news'] = 'news';
$lang['news_modified'] = 'News modified successfully.';
$lang['news_modified_nok'] = 'Error during news modification.';
$lang['news_deletion_confirmation'] = 'Do you really want to delete the %s selected news.';
$lang['edit_news_title'] = 'News #%d posted by %s';
$lang['news_title'] = 'Title';
$lang['news_content'] = 'Content';
$lang['news_date'] = 'Date';
$lang['modify_news'] = 'Edit news';
$lang['news_author'] = 'Author';
$lang['news_add'] = 'Add a news';
$lang['news_add_ok'] = 'News added successfully.';
$lang['news_posted_by'] = ' -- Posted by <b>%s</b> on <i>%s</i>';
$lang['news_archive'] = 'Archives';
$lang['page'] = 'Page';
#
#-----[ OPEN ]---------------------------------
#
lang/french/main.php

#
#-----[ FIND ]---------------------------------
#
Code: [Select]
$lang['delete'] = "[Supprimer]";
#
#-----[ AFTER, ADD ]------------------------------------------
#
Code: [Select]
$lang['news_main'] = 'Nouvelles';
$lang['no_news'] = 'Pas de nouvelle';
$lang['news_deleted'] = ' nouvelle supprimée';
$lang['newss_deleted'] = ' nouvelles supprimées';
$lang['news_deletion'] = 'Suppression de news';
$lang['newss'] = 'nouvelles';
$lang['news'] = 'nouvelle';
$lang['news_modified'] = 'Nouvelle modifiée avec succčs';
$lang['news_modified_nok'] = 'Erreur lors de la modification de la nouvelle.';
$lang['news_deletion_confirmation'] = 'Etes vous sur de vouloir supprimer la(les) %s nouvelle(s) sélectionnée(s)';
$lang['edit_news_title'] = 'Nouvelle #%d postée par %s';
$lang['news_title'] = 'Titre';
$lang['news_content'] = 'Contenu';
$lang['news_date'] = 'Date';
$lang['modify_news'] = 'Editer les nouvelles';
$lang['news_author'] = 'Auteur';
$lang['news_add'] = 'Ajouter une nouvelle';
$lang['news_add_ok'] = 'Nouvelle ajoutée avec succés.';
$lang['news_posted_by'] = ' -- Posté par <b>%s</b> le <i>%s</i>';
$lang['news_archive'] = 'Archives';
$lang['page'] = 'Page';

#
#-----[ OPEN ]---------------------------------
#
template/default/home.html

#
#-----[ FIND ]---------------------------------
#
Code: [Select]
{whos_online}
#
#-----[ BEFORE, ADD ]------------------------------------------
#
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" height="20">{news_archives}</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="head1" colspan="2">{news}</td>
  </tr>
</table>
<br />

#
#-----[ OPEN ]---------------------------------
#
lang/english/admin.php

#
#-----[ FIND ]---------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
Code: [Select]
/*-- Setting-Group 8 --*/
$setting_group[8] = "News";
$news_display_optionlist = array(
  "1" => "Show the last 'X' news",
  "2" => "Show news of the last 'X' days",
);

$setting['news_home_display'] = "News display mode";
$setting['news_nb'] = "News number";
$setting['news_nb_days'] = "Days number";
$setting['news_cutoff'] = "Number of days each news is marked as new";
$setting['news_html'] = "Allow HTML in news";
$setting['news_bbcode'] = "Allow BB-Code in news";
$setting['news_bbcodeimg'] = "Allow images (BB-Code) in news";
#
#-----[ OPEN ]---------------------------------
#
lang/french/admin.php

#
#-----[ FIND ]---------------------------------
#
?>

#
#-----[ BEFORE, ADD ]------------------------------------------
#
Code: [Select]
/*-- Setting-Group 8 --*/
$setting_group[8] = "Nouvelles";
$news_display_optionlist = array(
  "1" => "Afficher les 'X' derničres nouvelles",
  "2" => "Afficher les nouvelles des 'X' derniers jours",
);

$setting['news_home_display'] = "Mode d'affichage des nouvelles";
$setting['news_nb'] = "Nombre de nouvelles";
$setting['news_nb_days'] = "Nombre de jours";
$setting['news_cutoff'] = "Nombre de jours ou la nouvelle est considérée comme 'nouvelle'";
$setting['news_html'] = "Autoriser le HTML dans les nouvelles";
$setting['news_bbcode'] = "Autoriser le BB-Code dans les nouvelles";
$setting['news_bbcodeimg'] = "Autoriser les images (BB-Code) dans les nouvelles";
#
#-----[ OPEN ]---------------------------------
#
admin/settings.php

#
#-----[ FIND ]---------------------------------
#
Code: [Select]
show_setting_row("highlight_admin", "radio");
#
#-----[ AFTER, ADD ]------------------------------------------
#
Code: [Select]
show_table_separator($setting_group[8], 2, "#setting_group_8");
show_setting_row("news_home_display", "show_news_display_options");
show_setting_row("news_nb");
show_setting_row("news_nb_days");
show_setting_row("news_cutoff");
show_setting_row("news_html", "radio");
show_setting_row("news_bbcode", "radio");
show_setting_row("news_bbcodeimg", "radio");
#
#-----[ FIND ]---------------------------------
#
Code: [Select]
// end of functions
#
#-----[ BEFORE, ADD ]------------------------------------------
#
Code: [Select]
function show_news_display_options($setting_name, $setting_value) {
  global $news_display_optionlist;
  foreach ($news_display_optionlist as $key => $val) {
    echo "<input type=\"radio\" name=\"setting_item[".$setting_name."]\" value=\"$key\"";
    if ($setting_value == $key) {
      echo " checked=\"checked\"";
    }
    echo "> ".$val."<br />";
  }
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

#
#-----[ DATABASE UPDATE ]------------------------------------------
#

Open a web browser and open the page http://your_domain/4images_dir/install_news.php

and thanks a lot to theOracle which saved the 4images_news.zip file on his computer
TheOracle also have done a addon --> http://www.4homepages.de/forum/index.php?topic=9059

19
Installation, Update & Configuration / lightbox button problem
« on: July 26, 2005, 11:10:07 PM »
Hello
i have a small Problem! I haver 3 picture, Lightbox_no.gif lightbox_yes.gif and lightbox_off pict!
the lightbox_off picuter should show up if somebody is not logged in - but this don't happen the lightbox_no.gif is showing up! this of course will confuse the people because if you click on the lightbox just nothing happen - no error nothing!

my last added MOD
http://www.4homepages.de/forum/index.php?topic=5321.0
but as V@no said it has nothing do to wiht this MOD  :wink:

could somebody help me?

sincerly
vincent

20
Mods & Plugins (Releases & Support) / [MOD] Contact Form
« on: July 22, 2005, 01:37:27 PM »
the Original MOD (by vividviews) have been lost since the hack! :twisted:
Honda2000 and myself have put it back a live!  :wink:

download the file - unzip the file - upload the file to the right place on your server!

the contact.php in the root
the email.php in the includes directory

the contact.html you put them in your templates/<your template>/
the contact_mailform.html in the your templates/<your template>/

the mailform_message.html in your lang/<your language>/email/

the file contact.php around line 74 and 75 you have to add your email adress and if you like a part of the email subject!

hope it helps
sincerly
Vincent

21
Mods & Plugins (Requests & Discussions) / travel websites
« on: July 19, 2005, 08:36:22 AM »
Hello
travelling to another country is wonderfull - then you have a lots of picture - and you put them in a categorie of 4images! so far all right!
what i would love is to take some of the added picture and writting some text and doing a travel Journal like the link

http://www.mytripjournal.com/

is there somebody else out there - needing a mod like this?

sincerly
vincent

22
Chit Chat / Signatur exhibition
« on: July 07, 2005, 10:10:02 AM »
a lot of people have V@no's-Signatur MOD  http://www.4homepages.de/forum/index.php?topic=6755.0  - but as i found out all (of course) looks diferent!
so please not comment just add your  signature!

23
Hello
first i had Imagemagik then i wished to have GD too.
my hoster add GD.
now i have the problem in the adminPanel i change to GD since the checkimages.php MOD is crashing after 3 or 4 picture!
then i changed back to Imagemagik in tht adminPanel includ the right path!

But the checkimages.php MOD is not working - it runs and search for new picture - it find picture and when showing me the thumb of this picture it is white with red cross!

so what should i do that imagemagik works again well?
or it is not possible to have GD an Imagemagik?

sincerly
vincent

24
Discussion & Troubleshooting / Sort Kategorie
« on: June 26, 2005, 02:46:06 PM »
es ist da aber ich find es nicht!

sortieren der unterkategorie - die darstelltung ist wie folgt
jetzt

1    4    7
2    5    8
3    6    9

neu möchte ich jetzt

1     2    3
4     5    6
7     8    9

kann mir  jemand helfen!

gruss
vincent
ach ja und benützt mal --- Foto des Monats http://www.foto-kocher.com/potm.php

25
Discussion & Troubleshooting / how to find stollen Photos
« on: June 22, 2005, 09:36:21 AM »
Guten Tag
gibt es eine möglichkeit im internet nach Fotos zu suchen die von meiner Homepage geklaut worden sind?

Hello
is ther a software to find Photos in the internet which have been stollen from my homepage?

sincerly
vincent

26
Hello
i would like to have a small CMS to add and show my camera and other stuff

any idee - how to do it?

sincerly
vincent

27
Installation, Update & Configuration / ImageMagick-5.5.7-Q8 or GD2
« on: May 17, 2005, 03:21:41 PM »
Hello
I would like to know which is better

ImageMagick-5.5.7-Q8 or GD2

the owner of my webserver told me the thumbnail quality is worser with GD2 he say so with ImageMagick i have the better quality! is it right or is there a thing to take care?

sincerly
vincent

28
Hallo
mir steht ein umzug auf einen neuen Server bevor!
Meine Frage - wer hat erfahrung!
was gibt es zu beachten?
welche files müssen angepasst werden?

gruss
vincent

29
Hello
i would like to know if it is possible to have picture hidden and only logged in peopel could see this picture!
so i could to a best of for everibody and who logs in see all picture

sincerly
vincent

30
Hello
the Mod memberlist.php is it possible to change it a bit to have a keyword list?

sincerly
vincent

Pages: 1 [2] 3 4
Post your comments here