vb.org Archive

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

AndrewD 05-20-2009 02:29 PM

Quote:

Originally Posted by xug (Post 1814088)
What could possibly be wrong?

I entered one link entry with an image, when I browse through my cat and select the link I dont see the image.

When I select view enlarged image I see the image appear on a new page.

There's not enough information here for me to help. Would you like me to take a look at your site? If so, send me a PM with details, plus username/pwd for an account with vb admin permissions.

xug 05-20-2009 03:11 PM

Quote:

Originally Posted by AndrewD (Post 1814107)
There's not enough information here for me to help. Would you like me to take a look at your site? If so, send me a PM with details, plus username/pwd for an account with vb admin permissions.

This is on a local machine.

DotSauce 05-20-2009 09:42 PM

I am trying to add a "Tweet This" button next to the the Rate/Comment button.

How would I edit links_linkbit template to do this...

Code:

<a href="http://twitter.com/home?status=$linkname: $linkshortdesc $linkurl">Tweet This</a>
I don't know the proper syntax for calling these values. Any help would be appreciated.

xug 05-21-2009 02:09 AM

Quote:

Originally Posted by AndrewD (Post 1814107)
There's not enough information here for me to help. Would you like me to take a look at your site? If so, send me a PM with details, plus username/pwd for an account with vb admin permissions.

Quote:

Originally Posted by xug (Post 1814136)
This is on a local machine.

Maybe not a few ideas where I should look?

AndrewD 05-21-2009 03:21 AM

Quote:

Originally Posted by xug (Post 1814433)
Maybe not a few ideas where I should look?

OK, as I understand you: The images are not being displayed in the entrybit, but there is a magnifying glass icon. When you click on that icon, you do get the full image displayed in a new window?

Take a look at the url which is being displayed by the browser for the enlarged image. It should be something like .../local_resize?linkid=nnn&size=0

Change the url so that the size= parameter is followed by the number such as 250. See whether you get a smaller version of the image scaled to 250 icons along its larger dimension. Maybe you will get the image, more interesting would be an error message.

Also, take a look at the settings you have given on ldm/admin/settings for images. Have you filled a setting for the thumbs directory? If so, try clearing that setting and see if it makes a difference.

AndrewD 05-21-2009 03:35 AM

Quote:

Originally Posted by DotSauce (Post 1814322)
I am trying to add a "Tweet This" button next to the the Rate/Comment button.

How would I edit links_linkbit template to do this...

Code:

<a href="http://twitter.com/home?status=$linkname: $linkshortdesc $linkurl">Tweet This</a>
I don't know the proper syntax for calling these values. Any help would be appreciated.

The links_linkbit template includes a section:
PHP Code:

<if condition="$links_permissions['can_rate_link'] and $linkratebitdropdown">
        <
tr>
            <
td align="$stylevar[left]">
            
$linkratebitdropdown
            
</td>
        </
tr>
</if> 

which displays the Rate/Comment button (at least if you are using the drop-down option for ratings/comments). Add your code here.

As far as the syntax goes, you should replace spaces by the sequence %20.

E.g.:
PHP Code:

<if condition="$links_permissions['can_rate_link'] and $linkratebitdropdown">
        <
tr>
            <
td align="$stylevar[left]">
            
$linkratebitdropdown
            
</td>
        </
tr>
</if>
        <
tr>
            <
td align="$stylevar[right]">
            <
a href="http://twitter.com/home?status=$linkname:%20$linkshortdesc%20$linkurl">Tweet This</a>
            </
td>
        </
tr


drfenning 05-25-2009 05:19 AM

I have installed and am successfully editing other than one thing. I have created a new subscription usergroup that I want to have access to download links. They would pay for the subscription in Xcart and then we would give access permissions. The only problem we are having is being able to set an expiration for how long they are in that particular user group. I can add them to a paid subscription in VBulletin, but then I can only choose forum permissions not download manager permissions.

So the only way that I can give and take away access to download from the download manager is by manually unchecking that usergroup when their subscription expires. Here is the site that I'm trying to mimic:

http://www.gottapixel.net/forum/loca...s.php?catid=70


Thanks
Danielle

http://www.gottapixel.net/forum/loca...s.php?catid=70

AndrewD 05-25-2009 05:51 AM

Quote:

Originally Posted by drfenning (Post 1816646)
I have installed and am successfully editing other than one thing. I have created a new subscription usergroup that I want to have access to download links. They would pay for the subscription in Xcart and then we would give access permissions. The only problem we are having is being able to set an expiration for how long they are in that particular user group. I can add them to a paid subscription in VBulletin, but then I can only choose forum permissions not download manager permissions.

So the only way that I can give and take away access to download from the download manager is by manually unchecking that usergroup when their subscription expires. Here is the site that I'm trying to mimic:

http://www.gottapixel.net/forum/loca...s.php?catid=70


Thanks
Danielle

http://www.gottapixel.net/forum/loca...s.php?catid=70

As far as I recall, gottapixel is using LDM's forum-based permissions to control subscriber access, but it should also be possible using the regular LDM usergroup-based permissions.

You can associate both your LDM categories and entries with individual vb forums by specifying their 'parent forum' on the Add/Edit Category/Enty form. Then, users can only access these entries if they have "can view forum" and "can view others threads" permission for that forum. (It is also possible to create a vb forum which is in fact a link to an LDM category. In that way, you can kill two birds with one stone, by providing a direct link into LDM and also providing the forum from which to take the forum-based permissions.)

Also, categories (but not individual entries) can have different usergroup permissions, set using LDM/Add Edit Category/Usergroup Permissions. Have you tried using this approach?

Please get back to me if I have misunderstood anything or you need further help.

drfenning 05-25-2009 06:23 AM

Quote:

Originally Posted by AndrewD (Post 1816663)
As far as I recall, gottapixel is using LDM's forum-based permissions to control subscriber access, but it should also be possible using the regular LDM usergroup-based permissions.

You can associate both your LDM categories and entries with individual vb forums by specifying their 'parent forum' on the Add/Edit Category/Enty form. Then, users can only access these entries if they have "can view forum" and "can view others threads" permission for that forum. (It is also possible to create a vb forum which is in fact a link to an LDM category. In that way, you can kill two birds with one stone, by providing a direct link into LDM and also providing the forum from which to take the forum-based permissions.)

Also, categories (but not individual entries) can have different usergroup permissions, set using LDM/Add Edit Category/Usergroup Permissions. Have you tried using this approach?

Please get back to me if I have misunderstood anything or you need further help.

Perhaps it's my ignorance, but I am not having problems giving access to a particular usergroup but the timeframe that they are allowed to have access. For example, I have a registered user that purchases a one month subscription to the download manager and they can download anything they want for that timeframe. So I created a usergroup called "Club Scrap Subscriber". In VB, I keep them as a registered user and check that they have now have access to "Club Scrap Subscriber." Now I give only "Club Scrap Subscriber" usergroup access to the download manager to access links. Everyone else can view. Problem is...when that month is up, I have to manually go into VB and remove them from "Club Scrap Subscriber" usergroup.

So is it possible to use the "paid subscription" portion of VB to determine the timeframe that a user can be in a usergroup? You have a plugin that has time of day and amount they can download but I didn't see one for how long they can download. I would want to have three different subscriptions 1, 3 and 12 month...I could create three different usergroups for each time frame and change it in the LDM/users/allowances, but if they paid to extend their subscription would it lock them out from using it further? Can it be recurring?

I could also create three paid subscriptions in VB. But in VB's paid subscriptions, I can choose all of my other forums, but "download manager" is not a forum option to choose from. Does any of this make sense?

Here's my site: http://www.scrapoutsidethebox.com/fo...ocal_links.php

Thanks so much for all you do.

Dani

AndrewD 05-25-2009 07:55 AM

Quote:

Originally Posted by drfenning (Post 1816669)
Perhaps it's my ignorance, but I am not having problems giving access to a particular usergroup but the timeframe that they are allowed to have access. For example, I have a registered user that purchases a one month subscription to the download manager and they can download anything they want for that timeframe. So I created a usergroup called "Club Scrap Subscriber". In VB, I keep them as a registered user and check that they have now have access to "Club Scrap Subscriber." Now I give only "Club Scrap Subscriber" usergroup access to the download manager to access links. Everyone else can view. Problem is...when that month is up, I have to manually go into VB and remove them from "Club Scrap Subscriber" usergroup.

So is it possible to use the "paid subscription" portion of VB to determine the timeframe that a user can be in a usergroup? You have a plugin that has time of day and amount they can download but I didn't see one for how long they can download. I would want to have three different subscriptions 1, 3 and 12 month...I could create three different usergroups for each time frame and change it in the LDM/users/allowances, but if they paid to extend their subscription would it lock them out from using it further? Can it be recurring?

I don't think this question is really about LDM. You are wanting to change the user's usergroup membership when their subscription starts (adding them) and ends (removing them)?

I thought (but have not checked) that the vb subscription manager handles this automatically but I'm afraid I have no idea whether X-cart can handle it or not.

If you choose to do this via x-cart, it's easy enough to code a new LDM addin that grants/restricts access based on some condition that can be checked via php (assuming that this is possible with x-cart). I am willing to help you implement this, but I don't want to have buy/learn about x-cart.

Quote:

Originally Posted by drfenning (Post 1816669)
I could also create three paid subscriptions in VB. But in VB's paid subscriptions, I can choose all of my other forums, but "download manager" is not a forum option to choose from. Does any of this make sense?

I've just tried the following approach, which seems to work fine.
- First, create a new forum called "Download Manager", which is set up as a link to LDM. Then, that forum would appear in the list of available subscriptions on your admin page.
- Second, create a new vb subscription to that forum, which adds users to a new usergroup, let's say LDM Subscribers.
- Then, set up your LDM database so that entries are only accessible to users who have usergroup rights to that forum.

We could also easily tailor the message that unsubscribed users get when they visit LDM to tell them that they need a subscription.

Have I understood you correctly?


All times are GMT. The time now is 09:43 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.02553 seconds
  • Memory Usage 1,803KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (10)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