Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Sponsor's 2nd Post?
Avatar
Andrew Mason
Member
sp_UserOfflineSmall Offline
Jan 5, 2013 - 4:24 pm

Is there a "Sponsor's 2nd post" option? Are you guys familiar with this feature? Have you looked into it or considered it?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 5, 2013 - 4:38 pm

No, afraid I dont know what that means... can you elaborate?

Avatar
Andrew Mason
Member
sp_UserOfflineSmall Offline
Jan 5, 2013 - 4:42 pm

Yes. Here it is on a forum using UBB Threads:


http://www.snipershide.com/for.....ost3791061

It automatically produces the advertisement even when no one has responded to a topic yet too.

It would definitely add value to forum admins trying to monetize their site. Just an idea. What do you think?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 5, 2013 - 5:14 pm

you can do it already... in your theme, where you loop through the posts, you can check if second post and output an ad... search these forums for inserting ads or text links.. concept the same... come on back if you still having trouble after searching... we can help more or point to right posts...

Avatar
Andrew Mason
Member
sp_UserOfflineSmall Offline
Jan 5, 2013 - 5:32 pm

Are you talking about going to "Themes" in the admin and then going to "Theme Editor" and editing the php file?

If not, I'm not sure what you mean by "loop through the posts."

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 5, 2013 - 6:28 pm

just like a wp theme and its template files with a loop, simple press themes have a loop... the loop varies depending on which page type (ie group, forum, topic, etc) that you are on...

so for viewing a topic (list of posts), your template file is the spTopicView.php template file in the sp theme your are using... just like in a wp theme, you will see the loop:

if (sp_has_posts()) : while (sp_loop_posts()) : sp_the_post();

that iterates over all the posts for that page in the topic... so you can check if post is number two:

if ($spThisPost->post_index == 2) { # output your ad here }

and you should be all set... just put the check in the loop, where you want it to show...

also, as always we strongly recommend you create your own the in case of editing ours or you will lose changes on updates to the theme... see:

http://codex.simple-press.com/.....g-a-theme/

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online: Francisco Faundez
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: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625