MyBB Community Forums

Full Version: Advanced Sidebox 2.1.1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a problem with the plug.


Why is that?
UPDATE: solution to the problem http://community.mybb.com/thread-131633-...pid1011787

[Image: di-Z65N.jpg]


Question 2
How to make this effect?

[Image: di-C3EZ.jpg]


Question 3
This can be corrected in such a way?

[Image: di-5JXD.png]


Code:
class Forumdisplay_template_handler extends Simple_template_handlers
 {
     /*
      * make_edits()
      *
      * set the script and a custom replacement then call Simple_template_handler::make_edit()
      */
     public function make_edits()
     {
         global $templates;

         // more than one {$multi_page} so we have to be sure we have the right one
         $newthread_div_open_pos = strpos($templates->cache['forumdisplay_threadlist'], '<div class="float_right">');
         $newthread_div_close_pos = strpos($templates->cache['forumdisplay_threadlist'], '</div>', $newthread_div_open_pos);
         $this->find_top = substr($templates->cache['forumdisplay_threadlist'], $newthread_div_open_pos, ($newthread_div_close_pos - $newthread_div_open_pos) + 6);
         $this->find_bottom = '{$inline_edit_js}';
         $this->template_name = 'forumdisplay_threadlist';
         parent::make_edits();
     }
 }

Replace:
class Forumdisplay_template_handler extends Simple_template_handlers
 {
     /*
      * make_edits()
      *
      * set the script and a custom replacement then call Simple_template_handler::make_edit()
      */
     public function make_edits()
     {
         $this->template_name = 'forumdisplay';
         parent::make_edits();
     }
 }

Is OK?
Hi thailand Smile

1. I am not that great with CSS so when I wrote this I kept changing things until the plugin seemed to work well on several themes I had downloaded to test with.

Since people have informed me that they would like to have greater control over things like padding and margin, but I am not sure the best way to give then that control.

I will look for better ways to handle these things.

2. If 3 was the answer for 2 then you are on the right track Smile

3. See above :p

Seriously though I am not sure if you were asking or telling me with the last two but in any event, your replacement code in 3 would/should look like the screen shot in 2.

If I have misunderstood I am sorry. Repost and I'll try again Big Grin

Thanks for your feedback Smile
Sorry, my English is not the best Sad

Solving problems.

I

[Image: di-Z65N.jpg]

Solution: http://community.mybb.com/thread-131633-...pid1011787


II

[Image: di-5JXD.png]

Code
class Forumdisplay_template_handler extends Simple_template_handlers
 {
      /*
       * make_edits()
       *
       * set the script and a custom replacement then call Simple_template_handler::make_edit()
       */
      public function make_edits()
      {
          global $templates;

          // more than one {$multi_page} so we have to be sure we have the right one
          $newthread_div_open_pos = strpos($templates->cache['forumdisplay_threadlist'], '<div class="float_right">');
          $newthread_div_close_pos = strpos($templates->cache['forumdisplay_threadlist'], '</div>', $newthread_div_open_pos);
          $this->find_top = substr($templates->cache['forumdisplay_threadlist'], $newthread_div_open_pos, ($newthread_div_close_pos - $newthread_div_open_pos) + 6);
          $this->find_bottom = '{$inline_edit_js}';
          $this->template_name = 'forumdisplay_threadlist';
          parent::make_edits();
      }
 }

change it to:

class Forumdisplay_template_handler extends Simple_template_handlers
 {
     /*
      * make_edits()
      *
      * set the script and a custom replacement then call Simple_template_handler::make_edit()
      */
     public function make_edits()
     {
         $this->template_name = 'forumdisplay';
         parent::make_edits();
     }
 }

Effekt:

[Image: di-1UX9.jpg]

OK resolved Blush



Question as to get this effect? Sidebar at the top

[Image: di-C3EZ.jpg]


You can achieve this effect?

Thanks for help Smile
Okay sorry, now I think I am with you.

I'd have to take a look at the template setup but it should be possible. Sorry I can't just say how to do it without looking.
O.K. :-)
Hi, I love this plugin. Thank you very much for developing it, it's so useful...

However I have 2 problems. I'm using the popular theme The Cure and this what I find using Advanced Sidebox:

1: http://i.imgur.com/sRDDU2q.png
The sideboxes don't appear in the category forums Undecided

2: http://imgur.com/Sdw6FsK
The sideboxes appear twice.

I don't know what could be the problem, any other theme seems to works well with this plugin. The Cure is a very popular theme though, so I'm sure fixing it would be really important for the community.

Greets.
Hi,

Sorry you are having problems. When I have a bit more time I will download that theme and give it a try. It probably just needs a little tweaking to work correctly.
I am having problems putting amazon affiliate code in my side box - nothing shows up when I put the code from amazon. This is the code:
<iframe src="http://theurlgoeshere" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>

Any ideas? Does iframe not work?
Iframe works for me. Try it out;

<tr><td><iframe src="http://community.mybb.com/thread-131633-post-1026614.html#pid1026614" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td></tr>
(2013-08-08, 11:46 AM)k1R@ Wrote: [ -> ]Iframe works for me. Try it out;

<tr><td><iframe src="http://community.mybb.com/thread-131633-post-1026614.html#pid1026614" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></td></tr>

Thanks, I just tested, and it worked.

However when I put in this code:
<tr><td><iframe src="http://rcm-na.amazon-adsystem.com/e/cm?t=alopeciinfo-20&o=1&p=8&l=as1&asins=B004ATTGSY&ref=tf_til&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
</td></tr>
nothing shows up.. The link works: http://rcm-na.amazon-adsystem.com/e/cm?t...FFFF&f=ifr

Any ideas? :/