REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need some help with my own modification
#1
Hi, I hope this is the right place to ask for support. I'm trying to add a new column to the main forum display page to place small images for advertisers that want to "sponsor" a certain forum.

I opened up the forumbit_depth1_cat template and added a column:

<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>Sponsor</strong></span></td>

I then changed the number of columns from 5 to 6.

And thats where I'm stuck.

If you look at my forum at http://www.skidsteertalk.com, the table rows, backgrounds, etc., aren't carrying over into my new column. I tried taking a look at how the "ficons" worked since they appear to be somewhat similar, but I just don't have enough experience with modding MyBB to really know what I'm doing.

When its all finished, I'd like for there to be a "Sponsor" column, with just empty cells that I can manually ad an image into that an advertiser provides me with when they want to sponsor a section of the forum.

I'm not asking someone to create the mod for me, nor do I want them to - I'd like to learn myself, but could use a little help. Thanks!

Dennis
Now I've made some progress.

I added the following line to forumbit_depth2_forum:

<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap"></td>

Now the background/dividers carry over into my new section.

Now I need to figure out how to place different images within the section for each forum.
Well, I've changed some things around, hopefully this isn't too confusing xD
#2
Hi,
Your almost there. You need to do the changes in three(3) places:
1) forumbit_depth1_cat
2) forumbit_depth2_cat
3) forumbit_depth2_forum
The changes are very similar in each of the places and thus are easy to understand.
Numbers '1' and '3' are for the displaying of forums on the index and below it (like on a category page) and number '2' solves the problem of displaying forums with sub forums inside them.

Hope this helps,
Ori...
P.S. You could have used "Ficons 2.0" plugin in this forum: http://www.mybbcentral.com/thread-1663.html . It solves a lot more small problem (like what picture to show when don't want to show one).
Of two equivalent theories or explanations, all other things being equal, the simpler one is to be preferred.
simplified translation of Occam's razor

[Image: 82pwtx]


Possibly Related Threads...
Thread Author Replies Views Last Post
  Overview Block Modification [1.4] Jozefronki 0 1,349 Feb 10, 2009, 10:47 AM
Last Post: Jozefronki

Forum Jump:


Users browsing this thread: 1 Guest(s)