Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Hottest Forum Topics
Avatar
underthegun
Atlanta, GA
Member
Free Members
Offline
Apr 14, 2012 - 9:27 pm

Ok I changed my editor to HTML and see a lot more options!

So I'm trying something like this:

<?php sp_hot_topics ?>

Comes up blank.

<?php sp_hot_topics(); ?>

Returns an error.

But even something that should work like:

<?php sf_recent_posts_alt_tag(5, false, true, true, 0, true, true, 50); ?>

Returns this error:

Fatal error: Call to undefined function sf_recent_posts_alt_tag() in /problem-with-post-edit-buttonome/pilecrap/public_html/problem-with-post-edit-buttonauntedpaulding.com/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()'d code on line 1

Of all the things I've lost I miss my mind the most...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Apr 14, 2012 - 9:34 pm

oh sorry... the code button - the fancy one anyway, is only available in tinymce, the rich text... html does have a button too just not as fancy output... wink

all three of those are wrong and from version 4...  they wont work in version 5... you have to use the template tags or shortcodes that are in the template tags plugin main file...

for hottest topics:

<?php sp_HotTopicsTag(); ?>

or the shortcode

[sp_HotTopicsTag]

if you were using template tags in v4, they all need to be changed to equivalent 5.0 tag...

Avatar
underthegun
Atlanta, GA
Member
Free Members
Offline
Apr 14, 2012 - 9:36 pm

THAT WORKED! And I assume I can input options the same as in the last example I posted?

Also Rich text - TinyMCE was selected by default for me and it didn't show any of the options.

I can tell I'm going to have to play with my theme code some. It creates a separate box from the widget I've made for it. So like

WIDGET TITLE
empty space
HOTTEST TOPICS

instead of
WIDGET TITLE
HOTTEST TOPICS.

Anyway, I'll figure that part out I'm sure. Thank you a lot!

Of all the things I've lost I miss my mind the most...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Apr 14, 2012 - 9:43 pm

no, options are entered differently...  there is a single argument to the template tags now

<?php sp_HotTopicsTag($args); ?>

the args are a classic php arg list...  so to change number of topics shown

<?php sp_HotTopicsTag('limit=10'); ?>

to go back 60 days,

<?php sp_HotTopicsTag('limit=10&days=60'); ?>

for example...  see the actual template tag file in the library of the plugin for the possible arguments...

Avatar
underthegun
Atlanta, GA
Member
Free Members
Offline
Apr 14, 2012 - 10:00 pm

Ok that makes more sense. Like your template tags page says, refer to the tags page for WP. So I don't know why I expected these to be different. Good stuff! Thanks again!

Of all the things I've lost I miss my mind the most...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Apr 14, 2012 - 11:25 pm

np. we are here to help.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626