• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
[TH] CTA Featured Threads Widget

[TH] CTA Featured Threads Widget 1.0.1 Patch 1

No permission to download

tajhay

Well-known member
#3
any screenshot available?
All it does currently is list out hyperlinked featured threads titles.

@Audentio Design anty plans on expanding on this widget to display a small icon/image as per what the FT&P setting is for that featured thread? Also perhaps expanding on the types of renderers so that it can display the full featured thread including snippet, so that it can be used in main content widget positions and not just the sidebar?
 

Gemma

Well-known member
#4
Not entirely sure what this widget is supposed to be showing?

My most recent featured threads
c5f3ede9_o.png

What your widget lists....just looks like a random selection of featured threads? (using the BD Framework render)
Forums_General_Chatter_-_2015-03-20_15.44.12.png
 

Mike Creuzer

Well-known member
#6
any screenshot available?
Oops, will add one in.

All it does currently is list out hyperlinked featured threads titles.

@Audentio Design anty plans on expanding on this widget to display a small icon/image as per what the FT&P setting is for that featured thread? Also perhaps expanding on the types of renderers so that it can display the full featured thread including snippet, so that it can be used in main content widget positions and not just the sidebar?
We whipped it together in just a few minutes so we didn't add any features to it, just thought someone might want a basic feed. But I think we can add this in sure, it can be useful. We'll add

[] Show Avatar
[] Show date
[] Show author's username

This sound good?

As for other renders, since FT already has such powerful functionality, this was mainly just for a quick sidebar block I guess.

Not entirely sure what this widget is supposed to be showing?

My most recent featured threads
View attachment 101765


What your widget lists....just looks like a random selection of featured threads? (using the BD Framework render)
View attachment 101766
Eek! Will check this out.
 

Brogan

XenForo moderator
Staff member
#7
Try using getFeaturedThreadsByDate or getFeaturedThreadsByThreadDate, depending on how you want to order them.

You're currently using getFeaturedThreads which is not ideal as that is the query used pre-permission checks, which has ordering based on slider date.
 

Mike Creuzer

Well-known member
#8
Try using getFeaturedThreadsByDate or getFeaturedThreadsByThreadDate, depending on how you want to order them.

You're currently using getFeaturedThreads which is not ideal as that is the query used pre-permission checks, which has ordering based on slider date.
Thank you very much, will do. Sorry for the trouble.
 

Gemma

Well-known member
#10
Getting errors with the update...

Trying to edit the widget gives me this error
Template Errors: wf_widget_edit
  1. Illegal string offset 'raw' in /home/xxx/public_html/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 197:
    196: ';
    197: $__compilerVar1 .= XenForo_Template_Helper_Admin::textBoxUnit('Conditional', htmlspecialchars($namePrefix, ENT_QUOTES, 'UTF-8') . 'conditional[raw]', htmlspecialchars($options['conditional']['raw'], ENT_QUOTES, 'UTF-8'), array(
    198: 'explain' => '
Trying to save the widget also gives me this error
The following error occurred
The server responded with an error. The error message is in the JavaScript console.
Console details
"PHP string(5) "limit"
int(5)
string(9) "tab_group"
string(0) ""
string(10) "expression"
string(0) ""
string(11) "conditional"
array(1) {
["raw"]=>
string(0) ""
}
string(21) "deactivate_for_mobile"
int(0)
{"_redirectStatus":"ok","_redirectTarget":"http:\/\/www.generalchatter.co.uk\/admin.php?widgets\/#_151","_redirectMessage":"Your changes have been saved.","_visitor_conversationsUnread":"0","_visitor_alertsUnread":"0"}"
And forum index gives me this error at the top
Template Errors: adctaftwidget_widget
  1. htmlspecialchars() expects parameter 1 to be string, array given in /home/xxx/public_html/internal_data/templates/S.24,L.1,adctaftwidget_widget.php, line 11
  2. htmlspecialchars() expects parameter 1 to be string, array given in /home/xxx/public_html/internal_data/templates/S.24,L.1,adctaftwidget_widget.php, line 11
  3. htmlspecialchars() expects parameter 1 to be string, array given in /home/xxx/public_html/internal_data/templates/S.24,L.1,adctaftwidget_widget.php, line 11
  4. htmlspecialchars() expects parameter 1 to be string, array given in /home/xxx/public_html/internal_data/templates/S.24,L.1,adctaftwidget_widget.php, line 11
  5. htmlspecialchars() expects parameter 1 to be string, array given in /home/xxx/public_html/internal_data/templates/S.24,L.1,adctaftwidget_widget.php, line 11
 

Jake B.

Well-known member
#12
Getting errors with the update...

Trying to edit the widget gives me this error


Trying to save the widget also gives me this error


Console details


And forum index gives me this error at the top
I've just fixed this and reuploaded the package.

Regards,

Jake