vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=119041)

Tyegurl 08-04-2006 12:29 PM

($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...

AndrewD 08-04-2006 12:35 PM

Quote:

Originally Posted by Tyegurl
** lots of garbage ***
--------------------------------------------------------------------------------
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 ;)

Send me a PM with details of a VB admin account and password and I'll take a look. No idea what's happening to you.

Tyegurl 08-04-2006 12:37 PM

okay i restarted my ftp and uploaded now it still is doing something odd....sending you info....

AndrewD 08-04-2006 12:44 PM

Quote:

Originally Posted by Tyegurl
okay i restarted my ftp and uploaded now it still is doing something odd....sending you info....

username and password still work, however, it's not a full admin, so I can't get at the product installer part.

Tyegurl 08-04-2006 01:03 PM

try again i will fix it right now

AndrewD 08-04-2006 02:03 PM

Quote:

Originally Posted by Tyegurl
try again i will fix it right now

Well, my friend:

- I can see there's a problem on your site. I've no idea what it is. I've tried uninstalling and reinstalling LDM, but I've no idea if that process is running properly, because you've patched the VB product installation process.

- So I backed up your LDM database and installed it on my test machine. Everything works fine with the same version of LDM (2.2.5 rc) and VB 3.6.0.

Either you've not uploaded the code correctly or there's something messed up inside your VB admin system.

Tyegurl 08-04-2006 03:08 PM

you mean i upgraded??? lol that's the only patching i did...

i will reupload the admincp folder for vb and i will reupload ldm and try .... let you know later... thanks for looking!

Tyegurl 08-04-2006 03:23 PM

okay i reran the upgrade to 3.6.0
i reran the ldm product

can you cnd see if it's okay now??? please??

AndrewD 08-04-2006 03:50 PM

Quote:

Originally Posted by Tyegurl
okay i reran the upgrade to 3.6.0
i reran the ldm product

can you cnd see if it's okay now??? please??

Looks fine to me! Glad this is sorted.

obmob 08-04-2006 05:59 PM

Hmm... what's the best way to upgrade from 2.2.1 to 2.2.5?

Make xml backup, copy files into forums... then import new product with overwrite and that's it? o_รณ


All times are GMT. The time now is 09:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02858 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete