Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Advertisements in quick reply
Author Message
Andraž Rihtar Offline
Theme designer
Premium Users

Posts: 1,736
Joined: Aug 2009
Reputation: 9
Post: #1
Advertisements in quick reply
John1 requested this feature for his forum and I've decided to make it into full tutorial as well, for all those people who want this implanted on their forum. This basically adds two advertisement images into quick reply box as seen in the attached image. This tutorial is for 1.4.x series of MyBB and I cannot guarantee that it will work with any other versions of the software.

Edited files:
  • showthread_quickreply

Easy part of this tutorial
  1. Login to Admin CP using your username and password (duh!)
  2. Navigate yourself to YOURTHEME templates (Templates & Style -> Templates -> YOURTHEME)
  3. Locate Show Thread Templates and expand it (Click its name or click Expand)
  4. Click the 18th template located in Show Thread Templates, its called showthread_quickreply
  5. Find this part of code:
    PHP Code:
    <td class="trow1"
    Add this bellow that code:
    PHP Code:
    <div style="width: 30%; float: right;">
    <
    img src="#" height="75px" width="200px">
    <
    img src="#" height="75px" width="200px">
    </
    div
  6. Find this part of code:
    PHP Code:
    <div style="width: 95%"
    And replace it with this code:
    PHP Code:
    <div style="width: 65%"
  7. Save your edit by clicking Save and Return to Listing button
That's basically end of the tutorial, that was easy huh?

Feel free to style the code as you wish and desire. Feel free to ask for help if you're having troubles figuring it out and I'll try to help you. Also make sure to say thanks bellow if you like the tutorial Wink

Demo: Comming soon

Credits:
  • John1 (for wanting this feature)
  • Svizy (meh) for "making" it

Andraž Rihtar - Ex-Support Team Member
08-05-2010, 07:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
groovybluedog Offline
Member
***

Posts: 148
Joined: Feb 2010
Reputation: 0
Post: #2
RE: Advertisements in quick reply
Can i edit the PX without it going astray?
08-09-2010, 10:25 AM
Find all posts by this user Quote this message in a reply
Andraž Rihtar Offline
Theme designer
Premium Users

Posts: 1,736
Joined: Aug 2009
Reputation: 9
Post: #3
RE: Advertisements in quick reply
(08-09-2010 10:25 AM)groovybluedog Wrote:  Can i edit the PX without it going astray?
Nope. You'll have to edit some other aspects of the code as well (the width of the table) 001_smile

Andraž Rihtar - Ex-Support Team Member
08-11-2010, 04:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
micro1000 Offline
Junior Member
**

Posts: 13
Joined: Aug 2010
Reputation: 0
Post: #4
RE: Advertisements in quick reply
Nice tutorial thanks for sharing.
08-17-2010, 02:02 AM
Find all posts by this user Quote this message in a reply
JohnFL Offline
Junior Member
**

Posts: 13
Joined: Jul 2010
Reputation: 0
Post: #5
RE: Advertisements in quick reply
Works great and thank you making this a public tutorial 001_smile
08-17-2010, 10:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Don+ Offline
Member
***

Posts: 68
Joined: Aug 2010
Reputation: 0
Post: #6
RE: Advertisements in quick reply
Thankx, its useful
08-21-2010, 10:01 AM
Find all posts by this user Quote this message in a reply
Kaleb Offline
Junior Member
**

Posts: 3
Joined: Nov 2010
Reputation: 0
Post: #7
RE: Advertisements in quick reply
Good tut, but in my opinion it looks sloppy.
11-09-2010, 12:48 PM
Find all posts by this user Quote this message in a reply
slankeydoodle Offline
Member
***

Posts: 50
Joined: Jan 2010
Reputation: 0
Post: #8
RE: Advertisements in quick reply
Neat thanks for this.
11-14-2010, 08:08 AM
Find all posts by this user Quote this message in a reply
flamehosts Offline
Member
***

Posts: 152
Joined: Oct 2010
Reputation: 1
Post: #9
RE: Advertisements in quick reply
Nice tut i might use it for my gaming site
12-06-2010, 02:44 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***

Posts: 88
Joined: Aug 2010
Reputation: 0
Post: #10
RE: Advertisements in quick reply
thanks but there is already a plugin which does these edits.
02-24-2011, 07:24 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)