Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 77
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 93
Total: 93

Author Topic: ad location above search results?  (Read 3438 times)

0 Members and 1 Guest are viewing this topic.

Offline ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
ad location above search results?
« on: November 12, 2012, 08:54:50 am »
I figured out how to put a ad at the top of our search page, index.php?action=search but were in the Search.template.php do I put the ad code so they display above the search results too?

Thanks,

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: ad location above search results?
« Reply #1 on: November 15, 2012, 07:18:48 pm »
In themes/default/Search.template.php
in the function template_results()


Add it right before
Code: [Select]
if ($context['compact'])
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline ApplianceJunk

  • Sr. Member
  • ****
  • Posts: 432
    • View Profile
    • ApplianceJunk.com
Re: ad location above search results?
« Reply #2 on: November 15, 2012, 07:46:16 pm »
Thanks,

 

Related Topics

  Subject / Started by Replies Last post
10 Replies
8464 Views
Last post June 21, 2009, 08:35:51 pm
by SMFHacks
2 Replies
4381 Views
Last post July 27, 2012, 10:41:18 pm
by shuban
1 Replies
2624 Views
Last post September 02, 2014, 04:37:43 pm
by SMFHacks
0 Replies
2803 Views
Last post February 23, 2015, 06:04:43 pm
by trifox
0 Replies
2753 Views
Last post June 01, 2015, 12:49:03 am
by shuban

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal