247portal Themes

Started by xenovanis, July 27, 2005, 10:46:36 AM

Previous topic - Next topic

xenovanis

Well, for a start. Remember, this theme is adapted for mambo; the style.css is ripped so you need to add the missing entries again. Otherwise it will look like this:

http://testzone.xenovanis.nl/forum/index.php?theme=11

"Insanity: doing the same thing over and over again and expecting different results."

Nitro

oh man! i found that myself. well... i really liked this theme. i have to go back to the other themes. man! the mambo really KICKS!!! but somehow the integration is making the forum and the entire site to run slow, it is driving me crazy and the members as well. i don't know what to do.
argh!
anyway, i am going to start again working on this.
MPF Rocks!!!

xenovanis

Quote from: stephenvb on August 09, 2005, 12:19:31 PM
1.  I'd like to place a logo in the top header.  Is there an easy way to this?  I tried looking through the index.php file and the table structure is a little daunting.

In index.template.php find:

// The logo, user information, news, and menu.
echo '
<table cellspacing="0" border="0" align="center" width="97%">
<tr>
<td class="componentheading" valign="top"><div align="center" style="margin: 0 0 5px 0;" border="0">';


replace with:

// The logo, user information, news, and menu.
echo '
<table cellspacing="0" border="0" align="center" width="97%">
<tr>
<td valign="middle" align="left"><div style="margin: 0 0 10px 0;"><img src="', !empty($settings['header_logo_url']) ? $settings['header_logo_url'] : $settings['images_url'] . '/logo.gif', '" alt="" /></div></td>
</tr><tr>
<td class="componentheading" valign="top"><div align="center" style="margin: 0 0 5px 0;" border="0">';


Where logo.gif is the image (could be any name or imageformat though) you upload to the /Themes/PortalBlue/images directory.

Quote from: stephenvb on August 09, 2005, 12:19:31 PM
2.  I have some font inconsistencies between the 247portal theme and the SMF Portal theme that I can't work out.  I've tried to copy the entire contents of the SMF .css file into the 247Portal .css file, but (admitting I not as familiar with the CSS files) am having trouble resolving the inconsistent fonts.

The site is www.criticaldetroit.org.  The inconsistencies are in the Login Module.  The module looks fine on the SMF forum page, but the fonts are larger when viewed from anywhere else.

Well, the link doesn't work.. Actually, the loginmodule is using the 'smalltext' class from the SMF stylesheet, so copying that to Mambo's template_css.css should have effect. You could also open the file /modules/mod_smf_login.php and

search for:

echo '<td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;" align="'.$smf_align.'">';


replace with:

echo '<td width="100%" valign="top" class="mainlevel" align="'.$smf_align.'">';
"Insanity: doing the same thing over and over again and expecting different results."

Kindred

Xeno,
I think he was asking how to add a logo into the Mambo Header...  not the SMF header...

in which case, find the line in your mambo template that lists mosConfig_sitename (or something along those lines...  I can't recall the actual variable name of the top of my head)
and replace that with your logo img information.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ali1984

#64
Quote from: xenovanis on August 09, 2005, 11:39:05 AM
Quote from: ali1984 on August 09, 2005, 07:35:19 AM
i did it, not errors, but still doesnt work.

Link? What doesn't work?

this is the link http://www.cdhitz.net/site/ [nofollow]

still there are text links instead buttons. i changed the code u said a couple pages ago. but nothing happend

xenovanis

I can't see anything because your forum is in Maintenance Mode. Are you sure you uploaded index.template.php to the PortalRed (?) directory after you changed it?

Try the attached file, I tested it and it does work...
"Insanity: doing the same thing over and over again and expecting different results."

xenovanis

#66
Quote from: Kindred on August 09, 2005, 03:26:08 PM
Xeno,
I think he was asking how to add a logo into the Mambo Header...  not the SMF header...

in which case, find the line in your mambo template that lists mosConfig_sitename (or something along those lines...  I can't recall the actual variable name of the top of my head)
and replace that with your logo img information.

:-X

* xenovanis will make an appointment with the optician tomorrow..
"Insanity: doing the same thing over and over again and expecting different results."

ali1984

Quote from: xenovanis on August 09, 2005, 03:47:55 PM
I can't see anything because your forum is in Maintenance Mode. Are you sure you uploaded index.template.php to the PortalRed (?) directory after you changed it?

Try the attached file, I tested it and it does work...

isnt in maintance anymore - i upload the file index.template u put in here, and still No Buttons.

xenovanis

Go to your adminpanel -> Current Theme and enable 'Show buttons as images instead of text'.
"Insanity: doing the same thing over and over again and expecting different results."

ali1984

Quote from: xenovanis on August 09, 2005, 04:00:26 PM
Go to your adminpanel -> Current Theme and enable 'Show buttons as images instead of text'.

YAYYY thanx ! it worked haha i though i had enabled that option - damn i feel stupid

{hugggsss}

stephenvb

Quote from: xenovanis on August 09, 2005, 03:04:58 PM
Well, the link doesn't work.. Actually, the loginmodule is using the 'smalltext' class from the SMF stylesheet, so copying that to Mambo's template_css.css should have effect. You could also open the file /modules/mod_smf_login.php and

search for:

echo '<td width="100%" valign="top" class="smalltext" style="font-family: verdana, arial, sans-serif;" align="'.$smf_align.'">';


replace with:

echo '<td width="100%" valign="top" class="mainlevel" align="'.$smf_align.'">';


Thank you, replacing this code worked great!

Quote from: Kindred on August 09, 2005, 03:26:08 PM
Xeno,
I think he was asking how to add a logo into the Mambo Header...  not the SMF header...

in which case, find the line in your mambo template that lists mosConfig_sitename (or something along those lines...  I can't recall the actual variable name of the top of my head)
and replace that with your logo img information.

I wasn't clear, I was refering to the Mambo template. Is this the section of code that you are refering to?

<td width="100%" style="padding-left:10px;"><a href="<?php echo $mosConfig_live_site;?>" title="<?php echo $mosConfig_sitename; ?>"><?php echo $mosConfig_sitename; ?></a></td>

I think it is, but I'm not sure which part of it get's replaced with the logo information.  Also, my logo is taller than the current header.  Will the template automatically adjust to the height or will it create havoc with the rest of the header?

Kindred

Well, I don't know your actual template... but it should just adjust the height to include the largest item.

yup...   replace:

<td width="100%" style="padding-left:10px;"><a href="<?php echo $mosConfig_live_site;?>" title="<?php echo $mosConfig_sitename; ?>"><?php echo $mosConfig_sitename; ?></a></td>

with

<td width="100%" style="padding-left:10px;"><a href="<?php echo $mosConfig_live_site;?>" title="<?php echo $mosConfig_sitename; ?>"><img src="logo.gif" alt="="<?php echo $mosConfig_sitename; ?>" /></a></td>

or something like that... you may need a directory in the call for logo.gif.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Aravot

Using 247Portal-b-blue template

Following is what I have and this is how it'll look Click Here use firefox

index.php (mambo template)

<td>
<table width="100%"  border="0" cellpadding="0" cellspacing="0" background="<?php echo $mosConfig_live_site;?>/templates/247portal-b-blue/images/centerbig.jpg">
<tr>
            <td width="26"><img src="<?php echo $mosConfig_live_site;?>/templates/247portal-b-blue/images/leftbig.jpg" width="26" /></td>
<td>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-top:22px;"><div><img src="<?php echo $mosConfig_live_site;?>/templates/247portal-b-blue/images/title.png" /></div></td>
<td align="right" width="0" height="0" style="padding-top:25px;" ><?php mosLoadComponent( "banners" ); ?></td>
</tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="400" height="38" style="padding-top:10px;" ><div id="search">
<?php mosLoadModules ( 'user4', -1 ); ?>
</div></td>
<td width="100%" height="38" valign="bottom" class="mainlevel-nav"><?php mosLoadModules ( 'user3' ); ?></td>
</tr>
</table>
</td>
<td width="26"><img src="<?php echo $mosConfig_live_site;?>/templates/247portal-b-blue/images/rightbig.jpg" width="26" /></td>
</tr>

stephenvb

It looks like you resized the left and right graphic to fit your logo?

Aravot

Quote from: stephenvb on August 09, 2005, 08:10:48 PM
It looks like you resized the left and right graphic to fit your logo?

Yes, I recreated the image

Psiloman

Also AMA's  theme "SMFone" could fit very nicely to 247 theme....

Im having some problems with my mambo theme such as the "Syndicate" section having its "RSS Feed" and the rest buttons not assuming the correct position the first time my page loads ( that is the  vertical length of the Syndicate space that accomodates them is too short and the buttons  go over its lower limit,if i reload though everything is ok!!!).


xenovanis

Quote from: Psiloman on August 14, 2005, 04:28:29 PM
Also AMA's  theme "SMFone" could fit very nicely to 247 theme....

Im having some problems with my mambo theme such as the "Syndicate" section having its "RSS Feed" and the rest buttons not assuming the correct position the first time my page loads ( that is the  vertical length of the Syndicate space that accomodates them is too short and the buttons  go over its lower limit,if i reload though everything is ok!!!).

I have no idea what to tell you... Is it the mambo template or the smf theme you are talking about? Do you have a link?
"Insanity: doing the same thing over and over again and expecting different results."

Nitro

why is the syndicate so important?
i have over 1800 members and no one ever bothers about this stuff, i wouldn't sign up for that class either.

is there something especial about that stuff?
MPF Rocks!!!

Bogie

Anyone know where I can find the blue2 broad (100%) for mambo?  I can't seem to find the broad version of blue2 anywhere.


Advertisement: