PDA


View Full Version : Style Issue


Itworx4me
05-20-2007, 12:53 PM
When intergrating modules into other forum pages it blows the page off to the right. Causing the site to have to scroll to the right to see the whole site. Any fix for this?

Itworx4me

Brian
05-20-2007, 01:33 PM
That's usually caused when you're trying to cram too much info into too small of a space... Can you link me to a page where you're having this problem?

Itworx4me
05-20-2007, 04:54 PM
Hello Brian,

It worked just fine with the old cmps and with the new one it just pushes the info out the right side.

http://www.nitromater.com/forumindex.php

Thanks,
Itworx4me

Brian
05-21-2007, 10:03 AM
It looks like it's the "show template comments" setting (or something like that) that's messing up the layout. The source of the page shows this as the first line:
<!-- BEGIN TEMPLATE: adv_portal -->
When that's removed, it aligns properly.

Itworx4me
05-21-2007, 12:26 PM
Hello Brian,

I have done a template search and found nothing. I then did a file search on the folder I downloaded from you and there was nothing in there that had <!-- BEGIN TEMPLATE: adv_portal -->. How do I get rid of this text?

Thanks,
Itworx4me

Itworx4me
05-21-2007, 12:47 PM
ok I figured out how to turn off comments. But why does this happen when its turned on? It wasn't that way before I upgraded to 3.0 RC1. Will there be a fix?

Thanks,
Itworx4me

Brian
05-21-2007, 01:31 PM
I see how that's happening now. The 'adv_portal' template is called in a different manner when it's integrated with other pages, so the comment isn't being added in the right place. It should be easy enough to just disable the template comment for that template and fix the problem though. If you'll look in your forum/includes/vba_cmps_include_top.php file for this line:
eval('$output = "' . fetch_template('adv_portal') . '";');

And add this right Above it:
$vbulletin->options['addtemplatename'] = 0;

Then that should take care of the problem. I've also updated the download package here to include this change.