what a terrible mod

A mod witch will add a new links page to your froum.
fully ACP insterface, from where you may add/delete and update link categorys/sub categorys and links.

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

what a terrible mod

Postby darakhshan on Sat 12. Feb, 2005 18:18

This link MOD has a big issue it is only here to give users hard time
I have never in my life encoutered such a difficult and complex and time consuming mod as this , the only reason why I try to find an answer is that there is not any other mod out there if there is one I will be the first person which will get rid of this mod

Hope some day some body make one until then I have to come back and get an ansewer

editting , moving all impossible
darakhshan
Poster
Poster
 
Posts: 46
Joined: Sat 15. May, 2004 12:19

Re: what a terrible mod

Postby Claire B on Thu 19. May, 2005 18:19

darakhshan wrote:editting , moving all impossible

Late answer, but may I suggest the following
Code: Select all
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_links.php

#
#-----[ FIND ]------------------------------------------------
#
   $cat_sub_sql = (isset($HTTP_POST_VARS['cat_sub']) || isset($HTTP_GET_VARS['cat_sub'])) ? ", link_cat='$cat', link_sub='$sub'" : "";

#
#-----[ REPLACE WITH ]------------------------------------------------
#
   if( $sub_old != 0 )
   {
      $sql="SELECT max(link_id) as id FROM ".LINKS_TABLE." WHERE link_cat='$cat' AND link_sub='$sub'";
      if ( !($result = $db->sql_query($sql)) )
      {
         message_die(GENERAL_ERROR, "Couldn't get link count info", "", __LINE__, __FILE__, $sql);
      }
      if ($db->sql_numrows())
      {
         $count_info = $db->sql_fetchrow($result);
      } else
      {
         message_die(GENERAL_ERROR, "It seams, that you are trying to add a link when no sub category exist, please add one as the first");
      }
   
      $cat_sub_sql = (isset($HTTP_POST_VARS['cat_sub']) || isset($HTTP_GET_VARS['cat_sub'])) ? ", link_cat='$cat', link_sub='$sub', link_id=".($count_info['id']+1) : "";
   }
   else
   {
      $cat_sub_sql = (isset($HTTP_POST_VARS['cat_sub']) || isset($HTTP_GET_VARS['cat_sub'])) ? ", link_cat='$cat', link_sub='$sub'" : "";
   }

#
#-----[ SAVE/CLOSE ]--------------------------------
#
Claire B
Poster
Poster
 
Posts: 1
Joined: Thu 19. May, 2005 17:54


Return to Links [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron