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)

benjaminbih 07-31-2007 09:50 AM

Quote:

Originally Posted by AndrewD (Post 1305894)
I don't know how to fix this, because it's an internal php error and I haven't seen it before.

From a quick search on Google, I guess that your site is using php 4?

Please check the entries you are providing for *thumbs_dir* and *upload_dir*. LDM validates these by attempting to create test files in the directories specified. The error you are reporting is connected to that test (actually to the vbulletin function vbmkdir() which sits underneath the test). So maybe something is going wrong there.

Am happy to help further if this does not solve the problem, but will need vb admin access to your site.

Ok it seems that i fix this with a point before begenning slash.


But a other problem, Jukebox is unable to play mpeg mpg files that are larger, i have a file with 230MB uploaded and on the beginning the strema goes, but it hangs now and a other file with 120MB hangs to.

How to fix this

AndrewD 07-31-2007 10:00 AM

Quote:

Originally Posted by benjaminbih (Post 1306045)
Ok it seems that i fix this with a point before begenning slash.


But a other problem, Jukebox is unable to play mpeg mpg files that are larger, i have a file with 230MB uploaded and on the beginning the strema goes, but it hangs now and a other file with 120MB hangs to.

How to fix this

You are almost certainly running out of cpu time allowed for the php script.

How are you setting up the urls for the entries - a) are they on your own server and b) do you use a full url or just the local filename. *Much much better* to use local filenames on the local server, otherwise it's expensive for the server to stream the file.

benjaminbih 07-31-2007 10:19 AM

Quote:

Originally Posted by AndrewD (Post 1306049)
You are almost certainly running out of cpu time allowed for the php script.

How are you setting up the urls for the entries - a) are they on your own server and b) do you use a full url or just the local filename. *Much much better* to use local filenames on the local server, otherwise it's expensive for the server to stream the file.


a) The files are all uploaded on my server
b) On creating an entry, i use path/file_name like this /uploads/etc/etc/file.mpeg

AndrewD 07-31-2007 10:34 AM

Quote:

Originally Posted by benjaminbih (Post 1306062)
a) The files are all uploaded on my server
b) On creating an entry, i use path/file_name like this /uploads/etc/etc/file.mpeg

Is your server running in safe mode, and what is the maximum cpu time allowed for a php script (phpinfo/max_execution_time)?

benjaminbih 07-31-2007 10:46 AM

this are the configs

max_execution_time = 240 ; Maximum execution time of each script, in seconds
max_input_time = 240 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M

safe_mode is off

AndrewD 07-31-2007 11:09 AM

Quote:

Originally Posted by benjaminbih (Post 1306083)
this are the configs

max_execution_time = 240 ; Maximum execution time of each script, in seconds
max_input_time = 240 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M

safe_mode is off

Then I'm puzzled - this should be quite sufficient. I'll try some experiments at home and see if I can spot anything obvious.

jGas 07-31-2007 02:09 PM

Quote:

Originally Posted by AndrewD (Post 1305991)
With version 2.2.7, if you've got uploads enabled and the user who is editing the entry has permission to upload, then part of the 'Edit Entry' form should look like the attached image.

To replace the exiting upload with another, you simply browse for a new upload.

Does this not work for you?


yes, my pages are like the photo attached to your post..

but i didn't realize that "file upload" could replace the file...it seems to me that you can add an other file..whell, i'll add a line of text specifing it!

tnx a lot!

AndrewD 07-31-2007 03:03 PM

Quote:

Originally Posted by jGas (Post 1306209)
yes, my pages are like the photo attached to your post..

but i didn't realize that "file upload" could replace the file...it seems to me that you can add an other file..whell, i'll add a line of text specifing it!

tnx a lot!

Ok, will try to clarify the message

dilbert 08-01-2007 12:04 AM

This is a really great product, thank you very much!

Two questions.

Categories. What is this? With the mindset of forums, it sounds like a category, with forums to follow. Can there be more than one main category? For instance, I want to have a lot of file download sections, then a few separate image download sections.

Version number. Can the version number be removed?

AndrewD 08-01-2007 04:01 AM

Quote:

Originally Posted by dilbert (Post 1306627)
This is a really great product, thank you very much!

Two questions.

Categories. What is this? With the mindset of forums, it sounds like a category, with forums to follow. Can there be more than one main category? For instance, I want to have a lot of file download sections, then a few separate image download sections.

Version number. Can the version number be removed?

Categories hold entries. Entries are downloads, links to web sites, etc. There can be as many main categories as you wish (within reasonable limits, 32000 in total), and each category can have as many subcategories as required, and so on. (I realise this isn't the way that vb uses the word category.) Every category can have as many entries and subcategories as you want, and every entry can be placed simultaneously in one or many categories.

Version number - You mean the version number (2.2.7) that appears at the right hand side of the LDM navbar? This can be removed with a simple template edit. Edit the links_header template, find the string:
Code:

$LDM_environment[lfd_version]
(it appears twice) and replace it by
Code:

 

dilbert 08-01-2007 10:47 AM

Quote:

Originally Posted by AndrewD (Post 1306726)
Categories hold entries. Entries are downloads, links to web sites, etc. There can be as many main categories as you wish (within reasonable limits, 32000 in total), and each category can have as many subcategories as required, and so on. (I realise this isn't the way that vb uses the word category.) Every category can have as many entries and subcategories as you want, and every entry can be placed simultaneously in one or many categories.

Version number - You mean the version number (2.2.7) that appears at the right hand side of the LDM navbar? This can be removed with a simple template edit. Edit the links_header template, find the string:
Code:

$LDM_environment[lfd_version]
(it appears twice) and replace it by
Code:

 

Thanks for the category explanation. I have it set up as described, I was just looking for a better way to distinguish the two types of downloads I plan to offer.

As for the version number question, I just wanted to make sure it was OK to remove it.

Thanks again!

apokphp 08-01-2007 06:09 PM

Quote:

Originally Posted by AndrewD (Post 1305436)
I'm confused - I thought you said that the What's Hot and What's New on the Show menu were not working?

If you mean by 'main page' the box down the bottom right of the screen, the code for this is in includes/local_links_include.php, routine get_ldm_hitparade. You would have to modify the sql to filter on numrate and sort on totrate/numrate.

The code for What's New and What's Hot is in local_links_search.php.

The drop down (Show) menu works fine.

The links in the bottom right of the screen do not.

What is the template name where I can change the links in the bottom right, to be identical with that in the drop down (Show) menu?

I can't mess with sql routines, I know nothing about them. Can't I just change the code in the template to match the url in the drop down (Show) menu? Don't both places result in the same display?

AndrewD 08-02-2007 04:38 AM

Quote:

Originally Posted by apokphp (Post 1307349)
The drop down (Show) menu works fine.

The links in the bottom right of the screen do not.

What is the template name where I can change the links in the bottom right, to be identical with that in the drop down (Show) menu?

I can't mess with sql routines, I know nothing about them. Can't I just change the code in the template to match the url in the drop down (Show) menu? Don't both places result in the same display?

I took a look at your site, and I think I finally understood your question.

Please check your vb/admincp/languages and phrases. I think that you will find that you have modified the phrase "ll_recent" at some time in the past. It should look like this:

Code:

{2} new entries {3}since {1}
In an old version of LDM, the phrase had four parameters, something like this:

Code:

There have been:<br />&middot; {2} new entries [<span class="smallfont"><a href="{4}.php?catid=-8">what's new</a></span>]<br />&middot; {3} hits [<span class="smallfont"><a href="{4}.php?catid=-7">what's hot</a></span>]<br />during the last {1} days
which on your board has been modified to look something like this

During the last July 2nd, 2007 days:
? 42 new entries [what's new]
? [view] hits [what's hot]

Apologies for being slow on the uptake with this.

dilbert 08-02-2007 10:28 PM

I guess I don't get how to install a module.
Are CMPS modules as simple as going to CMPS an uploading the module?
When I do, it doesn't seem to work. I get it in the module list with a name of []. I can't edit any of the settings.

AndrewD 08-03-2007 03:47 AM

Quote:

Originally Posted by dilbert (Post 1308508)
I guess I don't get how to install a module.
Are CMPS modules as simple as going to CMPS an uploading the module?
When I do, it doesn't seem to work. I get it in the module list with a name of []. I can't edit any of the settings.

I've seen that problem myself once or twice and I've never worked out why. It seems to go away if you delete the empty module and try again.

Which versions of vba (2 or 3) and LDM (2.2.7 or 2.2.8)? The 2.2.7 vba modules work with vba version 2, and the 2.2.8 modules with both. It should be as simple as importing the .module files through the vba interface.

dilbert 08-03-2007 10:31 AM

vba 3 / ldm 2.2.8

I get this error when I upload the module:
Warning: unlink(./modules/ldm_new.module): No such file or directory in \admincp\vba_cmps_admin.php on line 3269

AndrewD 08-03-2007 10:44 AM

Quote:

Originally Posted by dilbert (Post 1308842)
vba 3 / ldm 2.2.8

I get this error when I upload the module:
Warning: unlink(./modules/ldm_new.module): No such file or directory in \admincp\vba_cmps_admin.php on line 3269

Does this message repeat when you uninstall/reinstall the module?

dilbert 08-03-2007 08:45 PM

Quote:

Originally Posted by AndrewD (Post 1308854)
Does this message repeat when you uninstall/reinstall the module?

Yes. I've tried different modules too, same message.

AndrewD 08-04-2007 05:44 AM

Quote:

Originally Posted by dilbert (Post 1309209)
Yes. I've tried different modules too, same message.

Looking at the vbadvanced code, this message can be generated if va is unable to write in your modules directory Have you checked that it has full write erissions? (ie mode 777 on unix)

AndrewD 08-04-2007 08:29 AM

Release Candidate version 2.2.8, uploaded 4/8/07.

*Superceded by RC2 *

I have continued to add a few more features planned to become part of the final release and fixed a couple of obscure bugs.

All the usual warnings apply - until this becomes the official release, take care - back everything up and don't use it on a live board, particularly if you want to provide gigabytes of downloads every day. However, I've been using it/developing it for some time and nothing has gone too badly wrong.

Once again, I welcome remarks/test reports/etc.

Important - for test users moving straight from the 2.2.8 alpha

There was a bug in the alpha release which sometimes messed up the userids in a couple of LDM tables. The plugin in the /bugfixes/2.2.8-alpha directory in the release zip will fix this. Install the plugin and visit one of your LDM admin pages to autorun the fix.

Changes from 2.2.8 beta 1 to 2.2.8 RC1

+ Admin
admin/categories/mass edit categories and admin/categories/mass edit links include option to mass edit the display orders
admin/import/export includes facility to download Google-type sitemap of your LDM database; imports/exports can be gzipped

+ Allowances
All files hit on local server count against allowances, even when "links" rather than "Downloads"

+ Add/Edit Entry
Data entry form modified to clarify options to replace existing entry with url or upload

+ Extras
external-links-framed opens external urls in an iframe
import-radiostations imports xml data files prepared using Dream's excellent radiostations hack (vb.org thread 152037)

+ Main page layout
Category information tidied up
Show Latest Ratings menu item added, displays most recently rated entries

+ Ratings
When *must_comment_and_rate* is set, submit button is disabled until user selects a rating
Users who can edit other's comments can also change their ratings

+ vba modules
thumbs module uses cached thumbnail when possible

+ Bug fixes
Partial content transfers work correctly with IIS webserver

Changes from 2.2.8 alpha to 2.2.8 beta 1

+ Add Entry
*allow_add_multi* setting allows users to create several entries during a single Add Entry
+ Admin
local_links_init.php (ADMIN_USER_GROUP) extended to allow multiple usergroups to have access to LDM admin
+ Entries
Size displayed for entries with filetype other than htm/html even if not in attachment table
+ Mirrors
Active/inactive switches added
+ Ratings
User avatars displayed within ratings bits
+ Extras
*secureurl* extra added to lock play/download urls to entries/times/userid/ip address
Jukebox-enhancements extra brought up to date
+ Bug Fixes
Changed autocreate thread to be inactive by default
Fixed broken admin layout when improper settings found in database
Validate entries resets invalid filesizes
Fixed invalid userid setting on edit entry
Fixed invalid userid test on edit category
+ Translations
Arabic language removed - obsolete and very incomplete

Changes from 2.2.7 introduced in 2.2.8 alpha

+ Categories
Add/Edit Category allows same username changes as Add/Edit Entry
autocreate linked forum includes choice whether to display linked forum on forumjump menus

+ Entries
Autocreate thread/post code extended and integrated into main product
(NB: users of existing autocreate 'extra', refer to 'extra' directory for info)

+ Comments and Ratings
Options to display summary inline within the linkbit or as drop-down,
*must_rate_download*, *must_rate_play* permissions added to force comment/rating
before allowing download/play
Moderators can create/edit comments by other users and change the submitting user for comments

+ Images
Options added to Edit Entry to delete/replace existing uploaded image

+ Keywords
*must_add_keyword* permission requires at least one keyword on add/edit entry

+ Mirror sites
Mirror sites supported by new admin page. When a download satisfies a mirror test, user is presented with list of available mirrors and is asked to choose one.

+ Searching
*can_search_link* permission allows/denies access to searches

+ Admin
Tidy hits table (archive/delete) accepts optional list of usernames
New settings variable *perpage_download* controls default hits per page on admin/hits

+ Extras
systematic revision of extras to use LDM admin settings page to control behaviour
*auto_threadcreate* removed and fully integrated into LDM
*block-context-menu* extra now works in player windows
*blockhit-bytime* extra added to allow usergroup d/l blocks by time of day
*filmstrip* extra provides strip overview of category contents when viewing single entry
*tagcloud* extra, as per vbadvanced module but displayed within category

+ vBulletin integration
apply_censor option defines whether to apply vBulletin censorship features
vb's forum password protection implemented within LDM
- when viewing categories associated with a password-protected forum
- when attempting to view/play entries associated with a password-protected forum

+ vbAdvanced integration
Keyword tagcloud module added
Code fixed to work correctly with vbAdvanced versions 2.x and 3.x in function-wrap and global modes

+ Bug fixes
Fixed bug for players requiring fullurl when playing offsite media files
Fixed allowance reporting bug (links counted as files on main displays)
Allowances apply to downloadable files even when force_redirect set to 1
Fixed Wimpy Button to work via vbAdvanced when not in forum directory
Searches work in utf-8 languages (but still don't highlight correctly)
DOI searches on advanced search work correctly
Fixed bug whereby image-type entries never gained thumbnail if link_imagesize=0 at time of creation
Fixed spurious 'Nothing to show' message when *featured_sites* enabled but none visible in current category
Fixed bug with *sync_username* parameter, leading to wrong associated userid.

itsblack 08-04-2007 04:42 PM

Thank you Andrew! It's great, now there's no more allowance problem. I have updated the chinese translation (although there are only a few new phrases).

I have some little suggestions:

1. About the vba moudule ldm_new_thumb. Now it uses the thumbnails which has been created. Unfortunately the thumb size I used in LDM is much bigger than which I assigned in vba moudule before. So it will be great, if you add a switch to let people choose which method (use the exist thumbs or use the former method) they would like to use.

2. The new Rating mechanism works great. But I think it needs a explanation to let the users know, why the submitt button is disabled. It can display near the submitt button or the rating field.

3. About the links_linkbit template. Now the thumb and the item infos (plus comment/rating, etc.) are put in the middle of the column. It is not convenient when there is a long item description. I prefer to putting them in the top of the column, so the users can see these infos at the first sight when they open the page. Of course I can do it myself, but I hope you can make it as default.

Thanks again for your great work! Merci bien!

Alfa1 08-04-2007 08:47 PM

Thanks for all your hard work Andrew!

dilbert 08-04-2007 11:32 PM

Of course I checked that, well, um, not actually checked, kinda sorta... OK, so I had no idea. :)
Thank you for figuring this out for me, and if this is something you already posted, my apologies.
Once again, this is terrific work.
Quote:

Originally Posted by AndrewD (Post 1309464)
Looking at the vbadvanced code, this message can be generated if va is unable to write in your modules directory Have you checked that it has full write erissions? (ie mode 777 on unix)


itsblack 08-05-2007 02:08 AM

Andrew, there's something wrong with autocreate_sync_comments. I have set it to yes, but it doesn't work.

Rouzbeh1 08-05-2007 02:14 AM

thank you andrew
update worked without any problem. xml LDM sitemap worked also. i have just added it to yahoo siteexplorer for testing reason to see if it works :D

obmob 08-05-2007 04:32 AM

WOW! RC is here! :D

Thanks Andrew! :)

AndrewD 08-05-2007 05:15 AM

Thanks.

Quote:

Originally Posted by itsblack (Post 1309740)
1. About the vba moudule ldm_new_thumb. Now it uses the thumbnails which has been created. Unfortunately the thumb size I used in LDM is much bigger than which I assigned in vba moudule before. So it will be great, if you add a switch to let people choose which method (use the exist thumbs or use the former method) they would like to use.


Mea culpa. The code is supposed to spot this and work out what to do. Unfortunately, I overlooked a couple of things. Will fix.

Quote:

Originally Posted by itsblack (Post 1309740)
2. The new Rating mechanism works great. But I think it needs a explanation to let the users know, why the submitt button is disabled. It can display near the submitt button or the rating field.

Agreed

Quote:

Originally Posted by itsblack (Post 1309740)
3. About the links_linkbit template. Now the thumb and the item infos (plus comment/rating, etc.) are put in the middle of the column. It is not convenient when there is a long item description. I prefer to putting them in the top of the column, so the users can see these infos at the first sight when they open the page. Of course I can do it myself, but I hope you can make it as default.

I've wondered about this for some time and I think you're right, but I recall someone felt otherwise. Probably the easiest solution is simply to add another linkbit into the choices, so that there's one with with top alignment.

Quote:

Originally Posted by itsblack (Post 1310117)
There's something wrong with autocreate_sync_comments. I have set it to yes, but it doesn't work.

It works for me, but there was a bug that I fixed between the beta and the RC code. Can you check that you've correctly uploaded the local_links_actions.php file? Line 2213 should read
Code:

        $links_defaults['autocreate_sync_comments'] and
In the old, incorrect, code, line 2205 read
Code:

        $links_defaults['autocreate_sync_comments_with_thread'] and

Slave 08-05-2007 06:07 AM

Hi Andrew :)

I've just installed .8 on a new 3.6.8 forum and imported my links from one of my old forums. I've noticed that the search is only working on stuff I've newly added to the db today and not on any of my old links. I've tried both types of search in the settings.

Any ideas? .. Do I need to rebuild the search table and if so where do I do it (I'm blind!)

Also, I've just noticed that on one of my old forums, when I try to access the LDM admin area all I get is a blank page in IE but all the code is there when I look at the source. It also works fine in Safari .. any ideas why that would happen? (was running .7, upgraded to .8 to see if that would help, it didn't)

Slave 08-05-2007 06:18 AM

Hmm .. I've just noticed that the plugin the LDM uses to show last link/download and number of links when you have a forum as a link to LDM doesn't take into account forum permissions. So unregistered and incorrect user groups are seeing the latest file from an area they shouldn't even know is there :)

Should this be working as I think it should, or has it always done that? Any chance of changing it if so?

AndrewD 08-05-2007 07:10 AM

Quote:

Originally Posted by Slave (Post 1310162)
Hi Andrew :)

Well, how do you do...

Quote:

Originally Posted by Slave (Post 1310162)
Hi Andrew :)
I've just installed .8 on a new 3.6.8 forum and imported my links from one of my old forums. I've noticed that the search is only working on stuff I've newly added to the db today and not on any of my old links. I've tried both types of search in the settings.

Any ideas? .. Do I need to rebuild the search table and if so where do I do it (I'm blind!)

This is weird. There is no search table to build - it's all done within sql (unlike vb). How did you import the old entries - via LDM or as a database import?

Quote:

Originally Posted by Slave (Post 1310162)
Hi Andrew :)
Also, I've just noticed that on one of my old forums, when I try to access the LDM admin area all I get is a blank page in IE but all the code is there when I look at the source. It also works fine in Safari .. any ideas why that would happen? (was running .7, upgraded to .8 to see if that would help, it didn't)

Couple of things to try - a) clear the browser cache, and b) go to vbulletin/admincp/options and set the gzip output option to 'no'.

Concerning the forum plugins, I don't think they've changed, but I'll take a look to see what can be done.

itsblack 08-05-2007 01:41 PM

Quote:

Originally Posted by AndrewD (Post 1310129)
It works for me, but there was a bug that I fixed between the beta and the RC code. Can you check that you've correctly uploaded the local_links_actions.php file? Line 2213 should read
Code:

        $links_defaults['autocreate_sync_comments'] and
In the old, incorrect, code, line 2205 read
Code:

        $links_defaults['autocreate_sync_comments_with_thread'] and

Yes, I've uploaded the newset version. I guess maybe it has someting to do with the language? Because I found that you use word "Dicussion" to check the threadid, but unfortunately I've translated it into chinese. What surprised me is, a) after the codes in local_links_actions.php, when there is already $row['linkthread' (I checked the database, some items have this), it should work without check the phrase, but it doesn't; b) Sometime before it works for me, although I use the chinese version all the time.

I have also tried to delete "Dicussion" in the code (local_links_actions.php, line 2232), but it doesn't work.

AndrewD 08-05-2007 02:17 PM

Quote:

Originally Posted by itsblack (Post 1310374)
Yes, I've uploaded the newset version. I guess maybe it has someting to do with the language? Because I found that you use word "Dicussion" to check the threadid, but unfortunately I've translated it into chinese. What surprised me is, a) after the codes in local_links_actions.php, when there is already $row['linkthread' (I checked the database, some items have this), it should work without check the phrase, but it doesn't; b) Sometime before it works for me, although I use the chinese version all the time.

I have also tried to delete "Dicussion" in the code (local_links_actions.php, line 2232), but it doesn't work.

OK, I'll rethink the logic

AndrewD 08-05-2007 05:35 PM

Quote:

Originally Posted by itsblack (Post 1310374)
Yes, I've uploaded the newset version. I guess maybe it has someting to do with the language? Because I found that you use word "Dicussion" to check the threadid, but unfortunately I've translated it into chinese. What surprised me is, a) after the codes in local_links_actions.php, when there is already $row['linkthread' (I checked the database, some items have this), it should work without check the phrase, but it doesn't; b) Sometime before it works for me, although I use the chinese version all the time.

I have also tried to delete "Dicussion" in the code (local_links_actions.php, line 2232), but it doesn't work.

I recall how all this developed now.

In the earlier versions of the 'extra', there was no special database field for the associated thread, so the code had to check for the relevant text (threadid=..) in the body of the link description. In 2.2.7, I realised that this was definitely a kludge, so added a an extra column in the database.

I imagine that you'll find that comments work with those entries where the linkthread column is set, and don't work where it is blank. But (on the assumption that you haven't got a load of threadid bb codes in your LDM descriptions, it should be ok to modify the regular expression, as follows. Instead of

Code:

        elseif ($forumid>0 and preg_match("/\[thread=(\d+)\]Discussion/", $row['linkdesc'], $match)) {
try

Code:

        elseif ($forumid>0 and preg_match("/\[thread=(\d+)\]/u", $row['linkdesc'], $match)) {
(there's an extra 'u' after the second slash)

Can you let me know if this solves it, and if my theory is correct about the linkthread field?

Slave 08-05-2007 05:52 PM

Quote:

Well, how do you do...
I'm doing all right :)

Quote:

This is weird. There is no search table to build - it's all done within sql (unlike vb). How did you import the old entries - via LDM or as a database import?
I exported via, and imported using the 2nd option if I remember


Quote:

Couple of things to try - a) clear the browser cache, and b) go to vbulletin/admincp/options and set the gzip output option to 'no'.
I've done the cache part, and I'm sure the forum is already set at no for gzip, but I will double check ..

Quote:

Concerning the forum plugins, I don't think they've changed, but I'll take a look to see what can be done.
Wonderful, thanks :)

Slave 08-05-2007 05:56 PM

btw .. both the spider links and the tag cloud plugins work superbly .. thank you! :)

Not sure about the spider icon though :p .. I'll see if I can find one that works on a black background. Would it be possible to make it so that in the linkbit if there isn't an image it would have "spider this link" type text like how the other icons work?

AndrewD 08-05-2007 05:58 PM

Quote:

Originally Posted by Slave (Post 1310545)
I exported via, and imported using the 2nd option if I remember

Could you email me the database dump - ad_rodin at noos.fr


Quote:

Originally Posted by Slave (Post 1310545)
I've done the cache part, and I'm sure the forum is already set at no for gzip, but I will double check ..

Keep me informed.

I've sorted out the forum permissions. It had always been that way, but it was a straightforward change to thhe code. Will be in the final release.

itsblack 08-05-2007 07:05 PM

Quote:

Originally Posted by AndrewD (Post 1310527)
I recall how all this developed now.

In the earlier versions of the 'extra', there was no special database field for the associated thread, so the code had to check for the relevant text (threadid=..) in the body of the link description. In 2.2.7, I realised that this was definitely a kludge, so added a an extra column in the database.

I imagine that you'll find that comments work with those entries where the linkthread column is set, and don't work where it is blank. But (on the assumption that you haven't got a load of threadid bb codes in your LDM descriptions, it should be ok to modify the regular expression, as follows. Instead of

Code:

        elseif ($forumid>0 and preg_match("/\[thread=(\d+)\]Discussion/", $row['linkdesc'], $match)) {
try

Code:

        elseif ($forumid>0 and preg_match("/\[thread=(\d+)\]/u", $row['linkdesc'], $match)) {
(there's an extra 'u' after the second slash)

Can you let me know if this solves it, and if my theory is correct about the linkthread field?

I've tried what you said, it took no effect.
Actually after upgraded to the later versions, there are already some entries which the linkthread column are set, but even with these entries the comment doesn't work.
It's weird.

AndrewD 08-06-2007 04:01 AM

Quote:

Originally Posted by Slave (Post 1310547)
btw .. both the spider links and the tag cloud plugins work superbly .. thank you! :)

Not sure about the spider icon though :p .. I'll see if I can find one that works on a black background. Would it be possible to make it so that in the linkbit if there isn't an image it would have "spider this link" type text like how the other icons work?

Indeed, I'll make that change.

I imported and tested each of the xml files you sent into a clean database. In both cases, search work correctly, using both the like and the fulltext methods. I wonder if you had a problem with character encodings or indices in your database. Can't think how to test that, except maybe phpmyadmin/sql/REPAIR TABLE local_linkslink QUICK or vb/admincp/maintenance/repair tables

Slave 08-06-2007 05:38 AM

K .. I'll give that a go and let you know :)

Slave 08-06-2007 06:22 AM

Quote:

Originally Posted by AndrewD (Post 1310550)
Keep me informed.

gzip is off as I thought ..

Quote:

Originally Posted by Slave (Post 1310891)
K .. I'll give that a go and let you know :)

hmm .. seems to have started working I think .. :)


All times are GMT. The time now is 09:03 PM.

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.06217 seconds
  • Memory Usage 1,927KB
  • 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
  • (14)bbcode_code_printable
  • (36)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
  • (40)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