vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

tamborinegal 06-15-2006 04:06 AM

Hi Andrew,

Once again thank you for all the time you have put into this hack and thank you for adding in the avatar to the linkbit. It looks great now.

Just a couple of questions I'm hoping you could help me with...

I am using the create new thread plugin and was wondering if there is any way that a link to the thread created could also be included in the linkbit. (hope that makes sense).

And also, since we can use bbcode and smilies in the description field, is there any way that the standard controls could also be added to the "add a link" template? Most of my members don't know the bbcode offhand and use the controls when they need to add something in.

Thanks again for this. It's just great.

Clancy

AndrewD 06-15-2006 04:19 AM

Quote:

Originally Posted by tamborinegal
I am using the create new thread plugin and was wondering if there is any way that a link to the thread created could also be included in the linkbit. (hope that makes sense).

There's a small problem of timing with this - the autothread create needs to know the linkid of the new entry, so the plugin is triggered after the contents of the linkbit have already been stored in the database. We can work round this, at the cost of another database access, but it should be possible. Bear in mind that these actions are 'once and for all' - if someone subsequently deletes an entry in LDM, the autothread is not removed - so too if we provide a connection in the linkbit to the thread, that connection will 'break' if the thread gets deleted.

Quote:

Originally Posted by tamborinegal
And also, since we can use bbcode and smilies in the description field, is there any way that the standard controls could also be added to the "add a link" template? Most of my members don't know the bbcode offhand and use the controls when they need to add something in.

I'll take a look - this is a good idea which I had never got round to.

tamborinegal 06-15-2006 04:55 AM

Your support is incredible Andrew. Do you ever sleep? :)

Quote:

Originally Posted by AndrewD
There's a small problem of timing with this - the autothread create needs to know the linkid of the new entry, so the plugin is triggered after the contents of the linkbit have already been stored in the database. We can work round this, at the cost of another database access, but it should be possible. Bear in mind that these actions are 'once and for all' - if someone subsequently deletes an entry in LDM, the autothread is not removed - so too if we provide a connection in the linkbit to the thread, that connection will 'break' if the thread gets deleted.

Yeah I see what you mean. I guess this could be avoided by not allowing members to delete the links or threads created, but I guess they could always edit the link and that would cause a break. Is there any way to prevent users from editing their links altogether? If not, that's ok. I could live with the odd break here and there. I don't think it would be a major problem.

I would just use the comment system if it was set up with the standard controls and if it had the same "auto-notification" sent if a new post "comment" was added to all users subscribed to a thread (link)... but that would make it more like a forum and I'm not sure if that makes sense to do especially since the auto-create thread is already a plugin and works really well.

Quote:

Originally Posted by AndrewD
I'll take a look - this is a good idea which I had never got round to.

That would be so great.

Thanks again for all your help and time.

Clancy

AndrewD 06-15-2006 06:02 PM

Quote:

Originally Posted by kira
I guess to keep it flexible so that others besides me would find such a plugin useful, maybe the best format would be a straightforward table, looking much like a vbadvanced block. Or even better, an unordered list? They're so easily styled through css, if one chooses.

Kira, try these for size. You need to import the xml plugin, then patch the forumhome template to display $links['new'] and $links['hot'] - these each contain tables without the top and bottom table tags. The attached forumhome.txt shows one way to do this, and the attached links_vbalinks.txt gives a modified template for the individual table rows which adds the link description to the name/number of hits.

kira 06-15-2006 06:30 PM

You're amazing, AndrewD. I'll give it a try and report back.

Thank you so much!

EasyTarget 06-15-2006 07:19 PM

hey kira, could you post some ss too please? :D

kira 06-15-2006 08:51 PM

Hey Andrew, I tried it out -- works perfectly! :) I tweaked the code to use an unordered list (just so it matches the rest of my sidebar). Easy peasy. Thanks a million!

I just noticed that for some reason the hit counter isn't working on either this "top list" addon or the regular directory listings pages. Can you think of what might cause such a problem?

Quote:

Originally Posted by EasyTarget
hey kira, could you post some ss too please? :D

Sure thing! My setup is very different as I've moved all the "what's going on" stuff to a sidebar. So you can get a better picture of what this would look like on a standard setup, I re-added the what's going on section and took a screenshot. (See #1.)

The second screenshot shows my CSS-ized sidebar version without the description or hits.

AndrewD 06-16-2006 04:06 AM

Quote:

Originally Posted by kira
I just noticed that for some reason the hit counter isn't working on either this "top list" addon or the regular directory listings pages. Can you think of what might cause such a problem?

seems to be working to me - I visited your New York Times link, used it to visit the NYT then Nature, the hit countersd went up by one and the 'Most Popular Links' box appeared on your front page with these two entries in it.

kira 06-16-2006 04:45 AM

Oh, whoops, I didn't realize visits from admins apparently don't get counted. When I log out, or if I login as a member test account, the hits do indeed increase. Yay! :)

AndrewD 06-16-2006 04:53 AM

Quote:

Originally Posted by kira
Oh, whoops, I didn't realize visits from admins apparently don't get counted. When I log out, or if I login as a member test account, the hits do indeed increase. Yay! :)

Admin visits do get counted, unless you've given this group 'can_bypass_hit_recording' permission on the LDM admin/permissions page

Anyway, glad to hear that all is well.


All times are GMT. The time now is 04:54 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.02690 seconds
  • Memory Usage 1,756KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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