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
sp_UserOfflineSmall Offline
Apr 14, 2012 - 1:28 pm

So I'm still getting use to the latest version and admittedly I haven't used Simple:Press in some time. I realized that in order to get many of the advanced features I wanted I was going to have to shell out some money, so I did.

I really enjoy this board and this is coming from someone who was using vB2.x, WBB2.x and so on. I love making forums.

ANYWAY... one feature I was looking for has gotten past me. I'm wondering how do I make a "hottest forum topics" widget similar to the one they have on this site.

Thank you

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 14, 2012 - 2:01 pm

the hottest topics is in the template tags plugin... grab it from the download page... its not a widget, but a template tag or a shortcode...

Avatar
underthegun
Atlanta, GA
Member
Free Members
sp_UserOfflineSmall Offline
Apr 14, 2012 - 2:21 pm

That explains why it wasn't just "obvious" to me, haha thank you 🙂

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 14, 2012 - 2:36 pm

Takes some getting used to...

andy-signature.png
YELLOW
SWORDFISH
Avatar
underthegun
Atlanta, GA
Member
Free Members
sp_UserOfflineSmall Offline
Apr 14, 2012 - 2:38 pm

Yeah but it's much more user-friendly than pretty much any other board I've used, too. The WP integration and the fact that I can more or less customize the look in a similar fashion makes it much more appealing, to me at least.

So my next dumb question... where can I find a list of the template tags I can use?

I only ask because I've looked around (briefly anyway) and didn't see any.

edited:::
I'm still a bit of a newb at coding so I know I'm doing this. I got to looking around in the plugin's main file and added this to my widget (I'm using exec php to run php code in a text widget).

sp_hot_topics (wrapped in php)

But it's not doing anything so what am I missing?

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 14, 2012 - 7:48 pm

the start of codex help:  http://codex.simple-press.com/.....late-tags/

really needs more work... we are working the codex but slow going...

but best place to look is at the bottom of the template tags plugin main file... everything after:

# ==========================================================
# Simple Links
# ==========================================================

is a template tag or shortcode...

if you have exec php, then template tags are fine.. or shortcodes if you dont want to use php...

then when you find an interesting tag, look in the library at the specific file for the options...

and dont hesitate to ask here either...

what did you add??? seems stripped out... when pasting code, paste in the code, highlight it and then use the code button and select php... code button is the one that looks like ${}

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

I don't see the code button you had mentioned.

sp_HotTopicsTag (this wrtapped in PHP)

and I tried

sp_hot_topics

edited:

now I'm trying something like this:

sf_latest_posts(5);

and getting this:

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

But I partly wonder if I'm using depreciated code?

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

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

as I said, the code button looks has the text ${} on it...

code.pngImage Enlarger

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

whoops... hit submit too quick...

you want:

<?php sp_HotTopicsTag(); ?>

to use the default options

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

ah you're using a different editor than me, that's why.

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

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: 17366
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626