Thread: Major Additions - Links and Downloads Manager
View Single Post
  #62  
Old 08-04-2006, 12:29 PM
Tyegurl's Avatar
Tyegurl Tyegurl is offline
 
Join Date: Mar 2006
Location: NY
Posts: 480
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

($vb_version == "3.5") { define('VALID_VB_VERSION', "3.5"); } elseif ($vb_version == "3.6") { define('VALID_VB_VERSION', "3.6"); } } ?> ?>override']."', '".$catrow['catid']."' ) "); } $asb = $db->query_write(" ALTER TABLE ".THIS_TABLE."linkscat DROP catinstructions "); } unset($adminrow); } } // Kill unwanted templates from previous versions function delete_links_oldtemplates() { global $db; $asb = $db->query_write(" DELETE FROM ".TABLE_PREFIX."template WHERE title LIKE 'links_%' AND styleid>0 "); } // record new version function record_links_version($version, $installed) { global $db; $asb = $db->query_read("SHOW TABLES"); $hack_table_prefix = THIS_TABLE."links"; $hack_tables = array(); while ($myrow = $db->fetch_array($asb)) { foreach ($myrow AS $table) { if (preg_match ("/^$hack_table_prefix/", $table)) { $hack_tables[] = $table; } } } if (count($hack_tables) == 0) return (0); // something badly wrong unset ($hack_tables); $db->query_write(" UPDATE ".THIS_TABLE."linksadmin SET setting='".$version."' WHERE settingname='this_version' "); $db->query_write(" UPDATE ".THIS_TABLE."linksadmin SET setting='".$installed."' WHERE settingname='version_installed' "); return(1); } // Remove tables completely function delete_links_dbtables() { global $vbulletin; $queries = array( THIS_TABLE."linksadmin", THIS_TABLE."linksdebug", THIS_TABLE."linksdownloads", THIS_TABLE."linkscat", THIS_TABLE."linksfavs", THIS_TABLE."linkskeys", THIS_TABLE."linkslink", THIS_TABLE."linksltoc", THIS_TABLE."linksltok", THIS_TABLE."linksrate", THIS_TABLE."linkssearch" ); foreach ($queries as $query) { $asb = $vbulletin->db->query_write("DROP TABLE IF EXISTS ".$query); } // Clean up the profile fields $texts = array(); $texts[0] = $vbphrase['ldm_recent_hits']; if (!$texts[0]) $texts[0] = "My Recent LDM Hits"; $texts[1] = $vbphrase['ldm_recent_entries']; if (!$texts[1]) $texts[1] = "My Recent LDM Entries"; $profile = array(); // Take care - VB version specific if (VALID_VB_VERSION=="3.5") { $asb = $vbulletin->db->query_read(" SELECT profilefieldid, title FROM ".TABLE_PREFIX."profilefield "); while ($myrow = $vbulletin->db->fetch_array($asb)) { $profile[$myrow['profilefieldid']] = $myrow['title']; } } else { $asb = $vbulletin->db->query_read(" SELECT * FROM ".TABLE_PREFIX."phrase WHERE fieldname = 'cprofilefield' AND varname LIKE 'field%_title' AND text IN ('".implode("', '", $texts)."') "); while ($myrow = $vbulletin->db->fetch_array($asb)) { $profilefieldid = preg_replace("/field(\d*)_title/", "$1", $myrow['varname']); $profile[$profilefieldid] = $myrow['text']; } $asb = $vbulletin->db->query_read(" DELETE FROM ".TABLE_PREFIX."phrase WHERE fieldname = 'cprofilefield' AND varname LIKE 'field%' AND text IN ('".implode("', '", $texts)."') "); } // Take care - VB version specific foreach ($texts as $txt) { foreach ($profile as $kprofile=>$thisprofile) { if ($thisprofile==$txt) { $vbulletin->db->query_write(" ALTER TABLE ".TABLE_PREFIX."userfield DROP field".$kprofile ); $vbulletin->db->query_write(" DELETE FROM ".TABLE_PREFIX."profilefield WHERE profilefieldid='".$kprofile."' "); break; } } } $vbulletin->db->query_write("OPTIMIZE TABLE " . TABLE_PREFIX . "userfield"); } ?>.$kprofile."' "); break; } } } $vbulletin->db->query_write("OPTIMIZE TABLE " . TABLE_PREFIX . "userfield"); } ?>
--------------------------------------------------------------------------------
Links and Downloads Manager
LDM code files do not match product installer version
Product installer: 2.2.5
Code files: 2.2.2
Please *uninstall* LDM, upload correct files and reinstall

tried three times now oops wait.....think i didn't overwrite them 3 times....let me check...
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01173 seconds
  • Memory Usage 1,777KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete