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)

AndrewD 01-04-2007 04:36 AM

Quote:

Originally Posted by Slave (Post 1150118)
Andrew .. Does this work as per the wish list entry .. ?

Couldn't the autocreate-threads extra be changed to just create a thread once a comment had been made. At which point LDM would know the thread id and then be able to keep an eye on things like the amount of posts/comments as well as the rating the thread has been given (and therefore the rating for the entry) .. ?

If it doesn't could you explain the differences please? Thanks :)

It's the first step:

- the thread is created when the entry is actually submitted (or accepted by the moderator)
- when someone adds a comment, a post is appended to the thread, reflecting the comment and rating, i.e. the comments appear in two places (in LDM and in VB)

To go further (e.g. greg's suggestions to have new posts place comments back into ldm), I need to change the LDM data structure to track the threadid, etc, and I also need to find out a safe and simple way of tracking everything else in the vb post system.

|oR|Greg 01-04-2007 02:19 PM

Tried SNAP plugin too... doesn't work.

AndrewD 01-04-2007 02:26 PM

Quote:

Originally Posted by |oR|Greg (Post 1150626)
Tried SNAP plugin too... doesn't work.

They worked fine when they left me - let's sort this out this evening (my time) - I'll be home in about an hour from now.

|oR|Greg 01-04-2007 02:31 PM

It's probably a java scripting issue since that's what it always seems to be on my end. OH, I can't WAIT till you're home, I'll put the kettle on! :smiles with glee:

AndrewD 01-04-2007 04:07 PM

Quote:

Originally Posted by |oR|Greg (Post 1150637)
It's probably a java scripting issue since that's what it always seems to be on my end. OH, I can't WAIT till you're home, I'll put the kettle on! :smiles with glee:

No, it's not a javascripting issue (not quite).

You're using a vbadvanced wraparound for LDM, and as a result you never use the standard LDM header template. Consequently, the tags for snap were not being included.

Unfortunately, vba doesn't provide any hooks, and it sets up its header template *before* vb gets going, so there's no simple way to patch into the vba header template by a hook.

So - proof of concept - I've edited your adv_portal template in your AMAC midnight style and hard coded the javascript to load snap. All your LDM links which point to an external url now have a popup over the title which gives a snap image.

Now we take a look at the other plugins and see what's wrong...

AndrewD 01-04-2007 04:32 PM

Quote:

Originally Posted by AndrewD (Post 1150686)
No, it's not a javascripting issue (not quite).

You're using a vbadvanced wraparound for LDM, and as a result you never use the standard LDM header template. Consequently, the tags for snap were not being included.

Unfortunately, vba doesn't provide any hooks, and it sets up its header template *before* vb gets going, so there's no simple way to patch into the vba header template by a hook.

So - proof of concept - I've edited your adv_portal template in your AMAC midnight style and hard coded the javascript to load snap. All your LDM links which point to an external url now have a popup over the title which gives a snap image.

Now we take a look at the other plugins and see what's wrong...

And for the artviper and webthumbs, I admit to being a complete wally..

These require my bug-fixed 2.2.6, which I hadn't uploaded for the rest of you to use. (This is what happens when I try to bring Christmas cheer.)

Let me know if you want these, or if you are happy to wait for 2.2.7

|oR|Greg 01-04-2007 04:33 PM

I've gotten rid of the vba wrap around actually, but not fully cleaned out the code for it, just disabled the modules it was calling.

As for the other plugins, which ones are you referring to?

|oR|Greg 01-04-2007 04:36 PM

Whoops, just read about webthumbs, I'm perfectly ok with Snap for now then. When 2.2.7 comes along it'll be great.

|oR|Greg 01-05-2007 04:10 PM

Whatever changes you made, I had to disable the SNAP plugins. It was causing ALL links to open in a new window, even though I don't have LDM set in that way. And it was also causing any links people put in posts, or in signatures to use SNAP.

AndrewD 01-05-2007 04:24 PM

Quote:

Originally Posted by |oR|Greg (Post 1151401)
Whatever changes you made, I had to disable the SNAP plugins. It was causing ALL links to open in a new window, even though I don't have LDM set in that way. And it was also causing any links people put in posts, or in signatures to use SNAP.

Looks like a project that needs some more thinking....

If necessary, take a look at your adv_portal template. I added a line of javascript in there also.


All times are GMT. The time now is 11:39 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.02401 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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