Link Directory (LD) [Deleted]

This is not fixed for me. Now both list and grid views (previously, just grid view) are redirecting to 404 page, /linkdirectory/inline-mod/switch

Ignore. I had a custom change to template forum_list which was stopping LD's template modification from applying.

If these problem on xenMade.com! please test
Templates Outdated or any changes in the template ld_links_grid_item or ld_index?

EDIT!!
 
It's getting a little bit buggy now...
  1. If I am admin user, "unapproved" links automatically get approved as soon as I click on "Moderation" in the user bar. It is automatically approved and removed from the moderation cue.
  2. As soon as a link is approved, the "Discuss Link" Call-to-Action button appears for that link, even if not wanted (not set up in Admin CP) [It should not appear if the option is not checked]
  3. Link description not showing at all (no matter which setup) in the Sidebar under the links.
  4. In "Member Profile View" under the "Links" and "Bookmark"tab the inline moderation is not working. Checkboxes are there, but overlay does not appear when clicked.
 
This is not fixed for me. Now both list and grid views (previously, just grid view) are redirecting to 404 page, /linkdirectory/inline-mod/switch
un-registered??? AHHH i test it ;(
Registered users are getting redirected to /linkdirectory/inline-mod/switch and "Security error occurred. Please press back, refresh the page, and try again."
 
This is a mistake!
Unregistered should not rate a link! Because there is missing information for the rating user!


I am thinking
 
OK, I can turn-off unregistered usergroup's permission "Rate Link" if not supported.

More importantly to me, still the issue with registered users trying to rate links, https://xenforo.com/community/threads/link-directory-ld-paid.105024/page-26#post-1033512
I work on a Fixe for u

Registered users are getting redirected to /linkdirectory/inline-mod/switch and "Security error occurred. Please press back, refresh the page, and try again."
Can you reproduce this on XenMade? I unfortunately do not

I test it on your Forum - later
 
If I am admin user, "unapproved" links automatically get approved as soon as I click on "Moderation" in the user bar. It is automatically approved and removed from the moderation cue.
I cannot replicate, but am unable to approve links from moderation queue (but can do it from LD's inline moderation and "Approve Link" hyperlink for the entry listing). Approving links from the moderation queue and then approving the links fails (moderation queue page refreshes, still showing unapproved link) with the following in Server Error Logs ...
Code:
Server Error Log
Error Info
ErrorException: Undefined index: status - library/phc/LinkDirectory/Helper/Helper.php:274
Generated By: Mouth, 11 minutes ago
Stack Trace
#0 library/phc/LinkDirectory/Helper/Helper.php(274): XenForo_Application::handlePhpError(8, 'Undefined index...', '', 274, Array)
#1 library/phc/LinkDirectory/ModerationQueueHandler/Links.php(43): phc_LinkDirectory_Helper_Helper::confirmLink(Array)
#2 library/XenForo/Model/ModerationQueue.php(200): phc_LinkDirectory_ModerationQueueHandler_Links->approveModerationQueueEntry(954, 'Saferider Herve...', 'Saferider InBal...')
#3 library/XenForo/ControllerPublic/ModerationQueue.php(74): XenForo_Model_ModerationQueue->saveModerationQueueChanges(Array)
#4 library/XenForo/FrontController.php(351): XenForo_ControllerPublic_ModerationQueue->actionSave()
#5 library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 index.php(13): XenForo_FrontController->run()
#7 {main}
Request State
array(3) {
  ["url"] => string(45) "https://netrider.net.au/moderation-queue/save"
  ["_GET"] => array(1) {
    ["/moderation-queue/save"] => string(0) ""
  }
  ["_POST"] => array(2) {
    ["queue"] => array(1) {
      ["ld_links"] => array(1) {
        [954] => array(3) {
          ["title"] => string(30) "Saferider InBalance Hervey Bay"
          ["message"] => string(130) "Saferider Hervey Bay delivers Qride Motorcycle Training in Hervey Bay Queensland on behalf of InBalance Motorbike Training Pty Ltd"
          ["action"] => string(7) "approve"
        }
      }
    }
    ["_xfToken"] => string(8) "********"
  }
}




Link description not showing at all (no matter which setup) in the Sidebar under the links.
Confirmed, I can replicate this.

In "Member Profile View" under the "Links" and "Bookmark"tab the inline moderation is not working. Checkboxes are there, but overlay does not appear when clicked.
Confirmed, I can replicate this.
 
Can you reproduce this on XenMade? I unfortunately do not
No, I cannot. Not sure of what the difference would be.

On xenmade.com, code is ...
Code:
<div class="rating LDRating" data-rateurl="linkdirectory/link/sugar-with-milk.116/rate">
        <dl>
            <dt class="prompt muted"></dt>
            <dd>
                <span class="ratings">
                     <button type="submit" name="rating" value="1" class="star Full" title="Terrible">1</button
                    ><button type="submit" name="rating" value="2" class="star Full" title="Poor">2</button
                    ><button type="submit" name="rating" value="3" class="star Full" title="Average">3</button
                    ><button type="submit" name="rating" value="4" class="star " title="Good">4</button
                    ><button type="submit" name="rating" value="5" class="star " title="Excellent">5</button>
                </span>
           
                <span class="RatingValue"><span class="Number" itemprop="average">3</span>/<span itemprop="best">5</span>,</span>
                <span class="Hint">1 rating</span>
            </dd>
        </dl>
</div>

On my site, code is ...
Code:
<div class="rating LDRating" data-rateurl="linkdirectory/link/roadtrip-motorcycle-rental-uk.957/rate">
        <dl>
            <dt class="prompt muted"></dt>
            <dd>
                <span class="ratings">
                     <button type="submit" name="rating" value="1" class="star " title="Terrible">1</button
                    ><button type="submit" name="rating" value="2" class="star " title="Poor">2</button
                    ><button type="submit" name="rating" value="3" class="star " title="Average">3</button
                    ><button type="submit" name="rating" value="4" class="star " title="Good">4</button
                    ><button type="submit" name="rating" value="5" class="star " title="Excellent">5</button>
                </span>
           
                <span class="RatingValue"><span class="Number" itemprop="average">0</span>/<span itemprop="best">5</span>,</span>
                <span class="Hint">0 vote(s)</span>
            </dd>
        </dl>
</div>
 
Registered users are getting redirected to /linkdirectory/inline-mod/switch and "Security error occurred. Please press back, refresh the page, and try again."

register on your forum . i have testet on your LD - i have ratet 5 Links! No Problems!

Which Link the error occur?
 
register on your forum . i have testet on your LD - i have ratet 5 Links! No Problems!
Which Link the error occur?
Very sorry, my problem. :(:whistle: Apologies!

I previously added the below code to the very bottom of template ld_rating, which is causing the problem (remove it, and no more rating issue) ;
Code:
<xen:if is="{$link.canRate}">
    <span>Click the stars above to rate this link</span>
</xen:if>

My intention being that the user will only see this span text (just below the rating stars) if they have permission to rate links from "Rate Link:" usergroup permission.
 
Very sorry, my problem. :(:whistle: Apologies!

I previously added the below code to the very bottom of template ld_rating, which is causing the problem (remove it, and no more rating issue) ;

My intention being that the user will only see this span text (just below the rating stars) if they have permission to rate links from "Rate Link:" usergroup permission.


in the template ld_links_list_item bzw - ld_links_grid_item change it so:
HTML:
   <div class="rating">
                    <xen:include template="ld_rating">
                        <xen:set var="$action">{xen:if $link.canRate, {xen:link linkdirectory/link/rate, $link}}</xen:set>
                        <xen:set var="$rating">{$link.rating}</xen:set>
                        <xen:set var="$prompt"></xen:set>
                        <xen:set var="$hint">{xen:if '{$link.rating_count} == 1', {xen:phrase ld_1_votes}, {xen:phrase ld_x_votes, 'count={$link.rating_count}'}}</xen:set>
                    </xen:include>
                   <xen:if is="{$link.canRate}"><span>Click the stars above to rate this link</span></xen:if>
                </div>
 
Updated to 2.3 an got these ones

Code:
Server Error Log
Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Table 'xf_examplecom.phc_linkdirectory_bookmarks' doesn't exist - library/Zend/Db/Statement/Mysqli.php:77
Generated By: Unknown Account, 41 minutes ago
Stack Trace
#0 /home/admin/domains/example.com/private_html/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('\r\n             ...')
#1 /home/admin/domains/example.com/private_html/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '\r\n             ...')
#2 /home/admin/domains/example.com/private_html/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('\r\n             ...')
#3 /home/admin/domains/example.com/private_html/library/Zend/Db/Adapter/Abstract.php(825): Zend_Db_Adapter_Abstract->query('\r\n             ...', Array)
#4 /home/admin/domains/example.com/private_html/library/phc/LinkDirectory/Model/Bookmark.php(47): Zend_Db_Adapter_Abstract->fetchOne('\r\n             ...')
#5 /home/admin/domains/example.com/private_html/library/phc/LinkDirectory/Extend/XenForo/ControllerPublic/Member.php(17): phc_LinkDirectory_Model_Bookmark->countUserBookmarks(4981)
#6 /home/admin/domains/example.com/private_html/library/DigitalPointBetterAnalytics/ControllerPublic/Member.php(7): phc_LinkDirectory_Extend_XenForo_ControllerPublic_Member->actionMember()
#7 /home/admin/domains/example.com/private_html/library/XenForo/FrontController.php(351): DigitalPointBetterAnalytics_ControllerPublic_Member->actionMember()
#8 /home/admin/domains/example.com/private_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#9 /home/admin/domains/example.com/private_html/index.php(13): XenForo_FrontController->run()
#10 {main}
Request State
array(3) {
  ["url"] => string(47) "https://www.example.com/members/roosie.4981/"
  ["_GET"] => array(1) {
    ["/members/roosie_4981/"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
Updated to 2.3 an got these ones

Code:
Server Error Log
Error Info
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Table 'xf_examplecom.phc_linkdirectory_bookmarks' doesn't exist - library/Zend/Db/Statement/Mysqli.php:77[/QUOTE]

During the update was probably LD visited - but the table was still missing! After the update, you should be there! Please check!

is probably unfortunate accident;)
 
Back
Top Bottom