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 - trez

Pages: 1 2 3 4 5 [6] 7 8 9 10 ... 41
77
Hi there,

as much know, we are selling a lot of mod's, but would like to enter into the template design area too.
But we want to (and can) make real "design" templates, not the usual templates you see here.
My questions are:

- Are you interested in abstract/unusual/vector art 4images templates?
- Are you willing to pay for them?

Just a small check, if there is an interest we will publish some design studies for 4images soon. Price will be around 50-120$ each (or 300$+ for exclusive rights)

78
Discussion & Troubleshooting / Re: Langsames ACP
« on: February 27, 2007, 05:15:53 PM »
Hallo Ivan,
dann liegt es mit dem MOD, YET ANOTHER STATISTIC also auch an den abfragen? Dann muss ich mir wohl eine schneller Statistik irgendwo suchen :-) Schauen wir mal was sich noch so anbietet.

Danke für die Antwort, dann suche ich da mal nicht weiter :-)

Gruß
Ingo

Alle statistik mods arbeiten nach dem gleichen prinzip. Von daher, am besten keinen statistik mod verwenden, oder nur begrenzt aufrufen.

79
Random User Profile for internal/external sites by 2XG MEDIA

NOTE
Thank's for the compliment's I've received on my previous MOD's, that really keeps me motivated to post more MOD's and share them with you,
even if i can make them payed. But yet i decided to make this MOD free, because it's simple ;) Enjoy it.

WHAT DOES THIS MOD
Well, just use it if you have more than 50 users with userpics, otherwise i don't recommend it. The MOD allows you to show anywhere a random user (with userpicture, username and country) - even outside your site, outside your gallery. I use that MOD to advertise my page on other sites.

REQUIRED MOD's
You need to have installed the following MOD's in order to use that one:

[MOD] Member personal photo v1.1.1 by V@no
[MOD] Select country and gender with gif when register

VERSIONS
1.7.X

Installation
Simply follow the steps. No additional SQL fields are required :)


STEP ONE

Make a new file and call it "random_user.php" and upload it into your 4images root.
Insert the following code:

Code: [Select]
<?php

$templates_used 
'';
$main_template 'random_user';

define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');


if (isset(
$HTTP_GET_VARS['template']) || isset($HTTP_POST_VARS['template'])) {
  
$template = (isset($HTTP_POST_VARS['template'])) ? basename(stripslashes($HTTP_POST_VARS['template'])) : basename(stripslashes($HTTP_GET_VARS['template']));
  if (!
file_exists(TEMPLATE_PATH."/".$template.".".$site_template->template_extension)) {
    
$template "";
  }
  else {
    
$main_template $template;
  }
}
else {
  
$template "";
}

// random USER
          
$sql "SELECT ".get_user_table_field("u.""user_id").get_user_table_field(", u.""user_name").", u.user_gender, u.userpic, u.user_country
                  FROM "
.USERS_TABLE." u
              WHERE "
.get_user_table_field("u.""user_id")." > ".GUEST." and u.userpic <> ''
              ORDER BY rand()
                  LIMIT 1"
;
$random_USER_result $site_db->query_firstrow($sql);

$site_template->register_vars(array(
"random_USER" => '<center><a href="member.php?action=showprofile&user_id=' $random_USER_result['user_id'] . '" target="_new"><img src="' ROOT_PATH "data/userpic/" $random_USER_result['userpic'] . '" height="100" border="0"></a><br />' $random_USER_result['user_name'] . '<br>îò ' $random_USER_result['user_country'] . '</center>',
));


$site_template->print_template($site_template->parse_template($main_template));  


echo 
$content;
include(
ROOT_PATH.'includes/page_footer.php');
?>


save and close the file.

STEP TWO

Make a new file and call it "random_user.html" and upload it into your 4images template folder (e.g. yoursite.com/4images/templates/default).
Insert the following code:

Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>///</title>

<table width="150" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="your_css_class">
{random_USER}
</td>
</tr>
</table>

</html>

save and close the file.

Thats it.
Now you can use the following code, anywhere on the internet to show the random user:

Code: [Select]
<iframe src="http://www.YOURSITE.com/random_user.php" width="150"
height="135" marginheight="0" marginwidth="0" frameborder="0"
scrolling="no"></iframe>

Greetings,

George

----------------------------------------------------------------------------------------------------------------------


If there are any questions feel free to write in this topic - DON'T send me PM's regarding this MOD.

Feel free to browse another 25 unreleased (payed) MOD's here: http://www.ggrec.com/mods


80
bro just a lil confusion so to add multiple mod do i have to do this in admin_global.php

    if ($user_info['user_id'] != XXX && $user_info['user_level'] == USER && isset($HTTP_POST_VARS['loginusername'])) {
    if ($user_info['user_id'] != XXX && $user_info['user_level'] == USER && isset($HTTP_POST_VARS['loginusername'])) {

Just copy paste these lines twice the one with xxx ???

There is maybe an easier way, but your way can work too. Just don't forget to repeat this step too:

Code: [Select]
if ($user_info['user_id'] != XXX) {
  show_admin_header();


81
Yes.
(Please don't write whole posts in capital letters)

82
Discussion & Troubleshooting / Re: Problem with dbase after migration
« on: February 25, 2007, 03:45:48 PM »
Quote
Unknown column 'i.user_id' in 'on clause'

sure they uploaded your whole database ?

83
*added further customization options to the first post*

84
Mods & Plugins (Releases & Support) / Re: MOD: Moderator Addon ;)
« on: February 25, 2007, 02:55:49 PM »
hi i dont see those lines to edit in my admin global.php is it cause i updated from 1.7.3 to 1.7.4 ??? i can also attach my admin global.php here  lemme know bro and yea thanks a lot i was lookin for this mod from long time back thanks a million

Well, those lines have to exist  :roll:
Please post your admin_global.php (as code) and i will have a look at it.


85
Discussion & Troubleshooting / Re: Langsames ACP
« on: February 23, 2007, 04:01:35 PM »
Hatte aehnliches problem.

Loesung:

ersetze deine jetzige admin/home.php mit diesem kod:

Code: [Select]
<?php

/**************************************************************************

 *                                                                        *

 *    4images - A Web Based Image Gallery Management System               *

 *    ----------------------------------------------------------------    *

 *                                                                        *

 *             File: home.php                                             *

 *        Copyright: (C) 2002 Jan Sorgalla                                *

 *            Email: jan@4homepages.de                                    *

 *              Web: http://www.4homepages.de                             *

 *    Scriptversion: 1.7.4                                                *

 *                                                                        *

 *    Never released without support from: Nicky (http://www.nicky.net)   *

 *                                                                        *

 **************************************************************************

 *                                                                        *

 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *

 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *

 *    ---------------------------------------------------------------     *

 *    This script is NOT freeware! Please read the Copyright Notice       *

 *    (Licence.txt) for further information.                              *

 *                                                                        *

 *************************************************************************/



$stats_limit 5;



define('IN_CP'1);

define('ROOT_PATH''./../');

require(
'admin_global.php');



if (
$action == "") {

  
$action "home";

}



show_admin_header();



$ip_whois_link "http://www.ripe.net/perl/whois/?searchtext=";



if (
$action == "home") {

  if (!
defined('USER_INTEGRATION')) {

    
printf("<span class=\"headline\">%s</span><br /><br />"$lang['headline_whosonline']);

    echo 
"<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" align=\"center\"><tr><td class=\"tableborder\">\n<table cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\">\n";

    echo 
"<tr class=\"tableseparator\">\n";

    echo 
"<td class=\"tableseparator\">".$lang['field_username']."</td>\n<td class=\"tableseparator\">".$lang['field_lastaction']."</td>\n<td class=\"tableseparator\">&nbsp;</td>\n<td class=\"tableseparator\">".$lang['field_ip']."</td>\n</tr>\n";



    
$num_total_online 0;

    
$num_visible_online 0;

    
$num_invisible_online 0;

    
$num_registered_online 0;

    
$num_guests_online 0;

    
$user_online_list "";

    
$prev_user_id "";

    
$prev_ip "";



    
$sql "SELECT ".get_user_table_field("u.""user_id").get_user_table_field(", u.""user_level").get_user_table_field(", u.""user_name").get_user_table_field(", u.""user_lastaction").get_user_table_field(", u.""user_location").get_user_table_field(", u.""user_invisible").", s.session_user_id, s.session_lastaction, s.session_ip

    FROM ("
.USERS_TABLE." u, ".SESSIONS_TABLE." s)

    WHERE "
.get_user_table_field("u.""user_id")." = s.session_user_id AND s.session_user_id <> ".GUEST." AND ".get_user_table_field("u.""user_lastaction")." > ".(time() - 300)."

    ORDER BY session_ip ASC"
;

    
$result $site_db->query($sql);



    while (
$row $site_db->fetch_array($result)) {

      if (
$row['session_user_id'] != $prev_user_id) {

        echo 
"<tr class=\"".get_row_bg()."\">\n";

        
$user_id $row['session_user_id'];

        
$username format_text($row[$user_table_fields['user_name']], 2);



        
$is_invisible = (isset($row[$user_table_fields['user_invisible']]) && $row[$user_table_fields['user_invisible']] == 1) ? 0;

        if (
$is_invisible) { // Invisible User but show to Admin

          
$invisibleuser "*";

        }

        else {

          
$invisibleuser "";

          
$num_visible_online++;

        }

        if (
$row[$user_table_fields['user_level']] == ADMIN) {

          
$username sprintf("<b>%s</b>"$username);

        }

        if (empty(
$user_profile_link)) {

          
$username "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$user_id)."\" target=\"_blank\">".$username."</a>";

        }

        echo 
"<td>".$username.$invisibleuser."</td>\n";

        echo 
"<td>".format_date($config['date_format']." ".$config['time_format'], $row[$user_table_fields['user_lastaction']])."</td>\n";



        if (
eregi("Control Panel"$row[$user_table_fields['user_location']])) {

          echo 
"<td>Control Panel</td>";

        }

        else {

          echo 
"<td><a href=\"".$site_sess->url(ROOT_PATH.$row[$user_table_fields['user_location']])."\" target=\"_blank\">".$row[$user_table_fields['user_location']]."</a></td>\n";

        }

        echo 
"<td><a href=\"".$ip_whois_link.$row['session_ip']."\" target=\"_blank\">".$row['session_ip']."</a></td>\n";

        
$num_registered_online++;

      }

      
$prev_user_id $row['session_user_id'];

    }



    
$sql "SELECT session_user_id, session_lastaction, session_ip, session_location

            FROM "
.SESSIONS_TABLE."

            WHERE session_lastaction >= "
.(time() - 300)." AND session_user_id = ".GUEST;

    
$result $site_db->query($sql);



    
$num_guests_online 0;

    while (
$row $site_db->fetch_array($result)) {

      if (
$row['session_ip'] != $prev_ip) {

        echo 
"<tr class=\"".get_row_bg()."\">\n";

        echo 
"<td>".$lang['userlevel_guest']."</td>\n";

        echo 
"<td>".format_date($config['date_format']." ".$config['time_format'], $row['session_lastaction'])."</td>\n";

        if (
eregi("Control Panel"$row['session_location'])) {

          echo 
"<td>Control Panel</td>";

        }

        else {

          echo 
"<td><a href=\"".$site_sess->url(ROOT_PATH.$row['session_location'])."\" target=\"_blank\">".$row['session_location']."</a></td>\n";

        }

        echo 
"<td>".$row['session_ip']."</td>\n";

        echo 
"</tr>\n";

        
$num_guests_online++;

      }

      
$prev_ip $row['session_ip'];

    }



    echo 
"</table></td></tr></table><br />";



    
$num_total_online $num_registered_online $num_guests_online;

    
$num_invisible_online $num_registered_online $num_visible_online;



    
$lang['online_users'] = preg_replace("/".$site_template->start."num_total".$site_template->end."/siU"$num_total_online$lang['online_users']);

    
$lang['online_users'] = preg_replace("/".$site_template->start."num_registered".$site_template->end."/siU"$num_registered_online$lang['online_users']);

    
$lang['online_users'] = preg_replace("/".$site_template->start."num_guests".$site_template->end."/siU"$num_guests_online$lang['online_users']);

    
printf ("<b>%s</b><br /><br /><br />"$lang['online_users']);

  } 
// End defined('USER_INTEGRATION')



  
$total_images 0;

  
$total_categories 0;

  foreach (
$cat_cache as $val) {

    
$total_categories++;

    if (isset(
$val['num_images'])) {

      
$total_images += $val['num_images'];

    }

  }



  

}

show_admin_footer();

?>


Muesste jetzt 200% schneller laufen. Die ganzen stats in dem ACP brauch man ja nicht.

86
Mods & Plugins (Releases & Support) / Re: MOD: Moderator Addon ;)
« on: February 23, 2007, 03:52:44 PM »
Thanks :) I've just done it for myself and decided to share it.

On monday i will publicate further modification wich will allow your moderators to have a direct link to the moderator panel after they login to the regular site, directrly edit/delete images from the regular site (if enabled for mod's) etc ... just give me some time to test it first on my site.

87
Mods & Plugins (Releases & Support) / [MOD] - MCP (Moderator Control Panel)
« on: February 23, 2007, 03:42:43 PM »
MODERATOR CONTROL PANEL (MCP) by 2XG MEDIA

Yes finally i've found a pleasant solution for having moderators on your site, without having to create usergroups etc.
Let's go :)

WHAT DOES THIS MOD
It gives you the ability to have moderators who can validate images on your site. This can be extended of course (edit images, comments, etc.) to your wishes
(Please look at the several additions at the end of this post for further customization)

IS IS SECURE?
Yes, because moderator won't have access to important files like "reset stats", "Settings" etc..

VERSIONS
1.7.X

Installation
Simply follow the steps. No additional SQL fields are required :)


STEP ONE

copy the whole folder "admin" to your harddrive, and rename it to "moderator". After that, upload the folder to your 4images root dir.

STEP TWO

open
yoursite.com/moderator/admin_global.php

find:
Code: [Select]
  else {
    if ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER || $user_info['user_level'] == USER_AWAITING) {
      $HTTP_COOKIE_VARS['adminon'] = 0;
    }
  }

change to:
Code: [Select]
  else {
    if ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER || $user_info['user_level'] == USER_AWAITING) {
      $HTTP_COOKIE_VARS['moderatoron'] = 0;
    }
  }

find:
Code: [Select]
  if (!isset($HTTP_COOKIE_VARS['adminon']) || $HTTP_COOKIE_VARS['adminon'] == 0) {
    $user_info['user_level'] = GUEST;
  }
  else {
    if ($user_info['user_level'] != GUEST  && $user_info['user_level'] == ADMIN && isset($HTTP_POST_VARS['loginusername'])) {
      setcookie("adminon", 1, 0, '/');
      $HTTP_COOKIE_VARS['adminon'] = 1;
    }
  }
}

change to:
Code: [Select]
  if (!isset($HTTP_COOKIE_VARS['moderatoron']) || $HTTP_COOKIE_VARS['moderatoron'] == 0) {
    $user_info['user_level'] = GUEST;
  }
  else {
    if ($user_info['user_id'] != XXX && $user_info['user_level'] == USER && isset($HTTP_POST_VARS['loginusername'])) {
      setcookie("moderatoron", 1, 0, '/');
      $HTTP_COOKIE_VARS['moderatoron'] = 1;
    }
  }
}

In the above code replace XXX with the userid of your user who would be the moderator

find:
Code: [Select]
if ($user_info['user_level'] != ADMIN) {
  show_admin_header();

change to:
Code: [Select]
if ($user_info['user_id'] != XXX) {
  show_admin_header();

In the above code replace XXX again with the userid of your user who would be the moderator

Save and close admin_global.php


STEP THREE

open
yoursite.com/moderator/index.php

find:
Code: [Select]
<?php

          show_nav_header
($lang['nav_categories_main']);

          
show_nav_option($lang['nav_categories_edit'], "categories.php?action=modifycats");

          
show_nav_option($lang['nav_categories_add'], "categories.php?action=addcat");



          
show_nav_header($lang['nav_images_main']);

          
show_nav_option($lang['nav_images_edit'], "images.php?action=modifyimages");

          
show_nav_option($lang['nav_images_add'], "images.php?action=addimages");

          
show_nav_option($lang['nav_images_validate'], "validateimages.php?action=validateimages");

          
show_nav_option($lang['nav_images_check'], "checkimages.php?action=checkimages");

          
show_nav_option($lang['nav_images_thumbnailer'], "thumbnailer.php?action=checkthumbnails");

          
show_nav_option($lang['nav_images_resizer'], "resizer.php?action=selectoptions");



          
show_nav_header($lang['nav_comments_main']);

          
show_nav_option($lang['nav_comments_edit'], "comments.php?action=modifycomments");



          
show_nav_header($lang['nav_users_main']);

          
show_nav_option($lang['nav_users_edit'], "users.php?action=modifyusers");

          if (!
defined('USER_INTEGRATION')) {

            
show_nav_option($lang['nav_users_add'], "users.php?action=addusers");

          }

          
show_nav_option($lang['nav_usergroups'], "usergroups.php?action=modifygroups");

          if (!
defined('USER_INTEGRATION')) {

            
show_nav_option($lang['nav_users_email'], "email.php?action=emailusers");

          }



          
show_nav_header($lang['nav_general_main']);

          
show_nav_option($lang['nav_general_settings'], "settings.php?action=modifysettings");

          
show_nav_option($lang['nav_general_templates'], "templates.php?action=modifytemplates");

          
show_nav_option($lang['nav_general_backup'], "backup.php?action=modifybackups");

          
show_nav_option($lang['nav_general_stats'], "stats.php?action=resetstats");

show_nav_option("phpinfo()""phpinfo.php");



          if (@
is_dir("plugins")) {

            
show_nav_header("PlugIns");

            
$handle = @opendir("plugins/");

            while (
$file = @readdir($handle)) {

              if (
eregi("^\.{1,2}$"$file) || !eregi("\.php$"$file)) {

                continue;

              }

              
$plugin_file file("./plugins/".$file);

              
$plugin_file[0] = trim($plugin_file[0]);

              if (
preg_match("/PLUGIN_TITLE:([a-zäöüß0-9\-_ ]+)/i"$plugin_file[0], $regs)) {

                
show_nav_option(trim($regs[1]), "./plugins/".$file);

              }

              else {

                
show_nav_option($file"./plugins/".$file);

              }

            }

            @
closedir($handle);

          }

          
?>

change to:

Code: [Select]
<?php

//          show_nav_header($lang['nav_categories_main']);

//          show_nav_option($lang['nav_categories_edit'], "categories.php?action=modifycats");

//          show_nav_option($lang['nav_categories_add'], "categories.php?action=addcat");



          
show_nav_header($lang['nav_images_main']);

//          show_nav_option($lang['nav_images_edit'], "images.php?action=modifyimages");

//          show_nav_option($lang['nav_images_add'], "images.php?action=addimages");

          
show_nav_option($lang['nav_images_validate'], "validateimages.php?action=validateimages");

//          show_nav_option($lang['nav_images_check'], "checkimages.php?action=checkimages");

//          show_nav_option($lang['nav_images_thumbnailer'], "thumbnailer.php?action=checkthumbnails");

//          show_nav_option($lang['nav_images_resizer'], "resizer.php?action=selectoptions");

//          show_nav_header('DREAMBOARD');

//          show_nav_option('Board Manager', "board_admin.php");

//          show_nav_option('Config Board', "board_config.php");



          
show_nav_header($lang['nav_comments_main']);

          
show_nav_option($lang['nav_comments_edit'], "comments.php?action=modifycomments");



//          show_nav_header($lang['nav_users_main']);

//          show_nav_option($lang['nav_users_edit'], "users.php?action=modifyusers");

//          if (!defined('USER_INTEGRATION')) {

//            show_nav_option($lang['nav_users_add'], "users.php?action=addusers");

//          }

//          show_nav_option($lang['nav_usergroups'], "usergroups.php?action=modifygroups");

//          if (!defined('USER_INTEGRATION')) {

//            show_nav_option($lang['nav_users_email'], "email.php?action=emailusers");

//          }



//          show_nav_header($lang['nav_general_main']);

//          show_nav_option($lang['nav_general_settings'], "settings.php?action=modifysettings");

//   show_nav_option($lang['nav_ann_settings'], "ann_settings.php?action=modifysettings");

//          show_nav_option($lang['nav_general_templates'], "templates.php?action=modifytemplates");

//          show_nav_option($lang['nav_general_backup'], "backup.php?action=modifybackup");

//          show_nav_option($lang['nav_general_stats'], "stats.php?action=resetstats");



/*          if (@is_dir("plugins")) {

            show_nav_header("PlugIns");

            $handle = @opendir("plugins/");

            while ($file = @readdir($handle)) {

              if (eregi("^\.{1,2}$", $file) || !eregi("\.php$", $file)) {

                continue;

              }

              $plugin_file = file("./plugins/".$file);

              $plugin_file[0] = trim($plugin_file[0]);

              if (preg_match("/PLUGIN_TITLE:([a-zäöüß0-9\-_ ]+)/i", $plugin_file[0], $regs)) {

                show_nav_option(trim($regs[1]), "./plugins/".$file);

              }

              else {

                show_nav_option($file, "./plugins/".$file);

              }

            }

            @closedir($handle);

          }
*/
          
?>

save and close index.php

Thats it.
Now you moderator can validate images with the following link:
YOURSITE.com/4images/moderator/index.php

The login will only work for the userid (the person) you specified in step two. You as an admin will continue to
use your normal /admin/index.php - the moderator won't have access to that. And you won't have access to the /moderator/ folder,
but you don't need to have to.

-----------------------------------------------------------------------------------------------------------------------------------

Additional Options for you moderator

If you want him to have access to more for example to edit comments or add pictures simply uncomment the regarding line in step 3.
For example, if you want him to to add images and have access to modify images simply change (in step three):

Code: [Select]
//          show_nav_option($lang['nav_images_edit'], "images.php?action=modifyimages");

//          show_nav_option($lang['nav_images_add'], "images.php?action=addimages");

to:

Code: [Select]
          show_nav_option($lang['nav_images_edit'], "images.php?action=modifyimages");

          show_nav_option($lang['nav_images_add'], "images.php?action=addimages");

I think the concept is understandable :)


Additional SECURITY for you moderator area
I recommend deleting the files you commented in step three for additional security, because if he knows the filename he can access it.

For example you want to be sure that your moderator don't have access to the site "settings", even if the line in step three is
commented --> simply delete moderators/settings.php

Do the same thing with other files, but be carefull deleting files like images.php, because it's used for 4 different actions.

-------------------------------------------------------------------------------------------------------------------------

ADDITONAL OPTION (added 25/02/2007)

Allow your moderator directly to delete/edit comments from your details.php

Well, deleting and editing comments for your moderator can be very sad, if he always have to login first to his MCP (Moderator Control Panel), search the comment by ID and so on.
SO this little addition to my MOD allows your moderator to directly delete and edit comments at the details.php (picture)

Have pHun :)

STEP ONE

open yoursite.com/4images/moderator/index.php

Make sure those lines...

Code: [Select]
         
show_nav_header($lang['nav_comments_main']);

show_nav_option($lang['nav_comments_edit'], "comments.php?action=modifycomments");

... are uncommented (without a "//" on the left)
Be also sure that you haven't deleted the "comments.php" in your moderator folder.

Everything fine? Good, let's proceed....


STEP TWO

open
yoursite.com/4images/details.php

find:

Code: [Select]
      $admin_links = "";
      if ($user_info['user_level'] == ADMIN) {
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=editcomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=removecomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['delete']."</a>";
      }

insert below

Code: [Select]
      $moderator_links = "";
      if ($user_info['user_id'] == XXX) {
        $moderator_links .= "<a href=\"".$site_sess->url(ROOT_PATH."moderator/index.php?goto=".urlencode("comments.php?action=editcomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
        $moderator_links .= "<a href=\"".$site_sess->url(ROOT_PATH."moderator/index.php?goto=".urlencode("comments.php?action=removecomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['delete']."</a>";
      }

In the above code replace XXX again with the userid of your user who would be the moderator

Okay, now lets find:

Code: [Select]
        "row_bg_number" => $row_bg_number,
        "admin_links" => $admin_links
      ));

replace it with:

Code: [Select]
        "row_bg_number" => $row_bg_number,
        "admin_links" => $admin_links,
        "moderator_links" => $moderator_links
      ));


save and close details.php


STEP THREE

open
yoursite.com/4images/templates/yourtemplate/comment_bit.html

find:

Code: [Select]
{if admin_links}{admin_links}{endif admin_links}
add below

Code: [Select]
{if moderator_links}{moderator_links}{endif moderator_links}

save and close comment_bit.html

Thats it.
Now you moderator can delete and edit comments directly from your site.


----------------------------------------------------------------------------------------------------------------------


If there are any questions feel free to write in this topic - DON'T send me PM's regarding this MOD.

Feel free to browse another 25 unreleased (payed) MOD's here: http://www.ggrec.com/mods


88
Discussion & Troubleshooting / Re: Template Error: /media/pps.html
« on: February 17, 2007, 02:34:40 PM »
yes, you can't find it because it was never there.
Maybe it would help if you make a new file, called pps.html with that code:

Code: [Select]
{media_icon}<br />
and save it in your templates/***/media folder

89
Discussion & Troubleshooting / Re: Anti Hack Guidelines for a secure site
« on: February 17, 2007, 01:44:58 PM »
hast schon irgendwie recht!
Klar brauchen die den Admin-Ordner
den Pfad kennt jeder, der die galerie runtergeladen (noch nicht einmal) installiert hat!
trozdem möchte ich gern wissen, welche Dateien genau angegriffen werden und was dann von dort aus WIE verknüpft wird :wink:

Ich denke ob diese Frage beantwortet werden darf muesste Kai oder ein anderer developer von 4images entscheiden, am besten du fragst ihn oder andere per PM.

90
Just a small note - doing this based on the 4images structure would be suicide (speed, security, etc). And doing that job on a 4images basis would be
very very expensive for you, since it's more than 2 weeks of work, bugfixing, security testing etc.

We've made a similar site based on a paid script, you can see it on:

http://vbox7.com

But you have to know that such a project that you describe can be done in 14 days, but not below 700 - 2000$ or even more. I think every programmer on that forum
would say the same. So i hope you have such a budged. If yes you can leave me your phone on a PM and i will contact you.

Greetings,

George
2XG Media





Pages: 1 2 3 4 5 [6] 7 8 9 10 ... 41