Members: 16,996
Threads: 38,867
Posts: 159,477
Online: 50

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Development > Module 'How Do I' Questions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 17.04.2004, 22:58   #1 (permalink)
Mamber
 
webweever's Avatar
 
Join Date: Apr 2004
Posts: 62
webweever is on a distinguished road
Default Last 5 SB Posts Module -> How do I show it on all pages?

I have the Last 5 SB Posts Com installed. It is called by the "inset" code like this <?php mosLoadModules ( 'inset' ); ?>.

My problem is in its current config it shows up on all pages. I would like it to only show on the Frontpage of my site. Like mamboportal.com.

Here is my site. www.nascarnation.com
__________________
Dave
www.racinnation.com | www.burghsports.com
webweever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 17.04.2004, 23:01   #2 (permalink)
Mamber
 
wongnow's Avatar
 
Join Date: Apr 2004
Location: Toronto, Canada
Posts: 58
wongnow is on a distinguished road
Default Re: Last 5 Posts on all pages???

Go to your Module admin for Last 5 SB and make sure under 'Pages:' only 'Home' is selected instead of 'All'. That should do the trick.
__________________
My website: www.wongnow.com
wongnow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.04.2004, 04:18   #3 (permalink)
Mamber
 
webweever's Avatar
 
Join Date: Apr 2004
Posts: 62
webweever is on a distinguished road
Default Re: Last 5 Posts on all pages???

Well that was a pretty stupid questions huh... the answer was right in front of my face.

Another Question: I want to just show the title of the Last 5 post COM, as it is now it shows the same heading as all the other menus with the little checkered flag and red line. How do I remove that?

www.nascarnation.com
__________________
Dave
www.racinnation.com | www.burghsports.com
webweever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.04.2004, 04:27   #4 (permalink)
Expert Mamber
 
visualdensity's Avatar
 
Join Date: Apr 2004
Location: Melbourne
Posts: 385
visualdensity is on a distinguished road
Send a message via ICQ to visualdensity Send a message via MSN to visualdensity
Default Re: Last 5 Posts on all pages???

The Last 5 Post is not a component. Its a module.

The answer is you will have to hack the module's table class to point to a different CSS class.

This is because you have a standardized module CSS style for all the modules on your page. So, if you need one that doesn't follow the same CSS style, you'll need to go into the module codes manually.

Not sure how that's done exactly though. Haven't jumped into it before but I'm sure others will be able to shed light into this.
__________________
"If you cannot win, make the one ahead of you break the record."
| Visualdensity.com |
visualdensity is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.04.2004, 04:33   #5 (permalink)
Mamber
 
webweever's Avatar
 
Join Date: Apr 2004
Posts: 62
webweever is on a distinguished road
Default Re: Last 5 Posts on all pages???

I don't see a table class file for this mod (still learning the MAMBO Lingo . All I see is an xml file and the PHP?
__________________
Dave
www.racinnation.com | www.burghsports.com
webweever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.04.2004, 04:36   #6 (permalink)
Expert Mamber
 
visualdensity's Avatar
 
Join Date: Apr 2004
Location: Melbourne
Posts: 385
visualdensity is on a distinguished road
Send a message via ICQ to visualdensity Send a message via MSN to visualdensity
Default Re: Last 5 Posts on all pages???

Just to clarify are you using my Last 5 SB Topic Post module?
__________________
"If you cannot win, make the one ahead of you break the record."
| Visualdensity.com |
visualdensity is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.04.2004, 04:40   #7 (permalink)
Mamber
 
webweever's Avatar
 
Join Date: Apr 2004
Posts: 62
webweever is on a distinguished road
Default Re: Last 5 Posts on all pages???

Yes... That is correct.
__________________
Dave
www.racinnation.com | www.burghsports.com
webweever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.04.2004, 04:53   #8 (permalink)
Expert Mamber
 
visualdensity's Avatar
 
Join Date: Apr 2004
Location: Melbourne
Posts: 385
visualdensity is on a distinguished road
Send a message via ICQ to visualdensity Send a message via MSN to visualdensity
Default Re: Last 5 Posts on all pages???

Ok... here what you should do. Go to /modules/mod_last5SBtopics.php and BACK IT UP FIRST.

Go to line 48 and you'll see something like this:

PHP Code:
$meslist $database->loadObjectList();

$content .="<table cellpadding=\"1\" border=\"0\" >"// Edit this line

    
foreach ($meslist as $mes){
        
        
//check for Arrow option 
Edit the line above ( marked with "//Edit this line comment" ) and add "class=\"testClass\" after the border=\"0\" and the completed will look like the following:

PHP Code:
$meslist $database->loadObjectList();

$content .="<table cellpadding=\"1\" border=\"0\" class=\"testClass\">"//Notice this has changed

    
foreach ($meslist as $mes){
        
        
//check for Arrow option 
And now open up your current template's CSS which is usually in template/yourtemplatename/css/template_css.css.

Add a new set of testClass {} properties to the CSS to define your new Module's style:

Code:
table.testClass {
	margin: 0px 0px 0px 0px;
	width: 95%;
	border-left: solid 1px #000000;
	border-right: solid 1px #000000;
	border-top: solid 1px #000000;
	border-bottom: solid 1px #000000;
	}

table.testClass th {
	font-family: Arial, Verdana, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: bold;
	color: #333333;
	text-align: left;
	width: 100%;
	height: 20px;
	border-bottom: 1px solid #333333;
	line-height: 20px;
	}

table.testClass td {
	font-family: Arial, Verdana, Helvetica, sans-serif;
	font-size: 11px;
	}
Change anything you like and your module will use this CSS style.

Hop that helped.
__________________
"If you cannot win, make the one ahead of you break the record."
| Visualdensity.com |
visualdensity is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18.04.2004, 05:23   #9 (permalink)
Mamber
 
webweever's Avatar
 
Join Date: Apr 2004
Posts: 62
webweever is on a distinguished road
Default Re: Last 5 Posts on all pages???

I copy and pasted your code and check out the results.
__________________
Dave
www.racinnation.com | www.burghsports.com
webweever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Content -> Ordering: New items default to the last place doom4 Mambo 4.5 'How Do I' Questions 7 26.05.2004 11:05
Bug -> Double posts eyezberg Feedback 3 12.04.2004 13:16
Limit to number of smilies in posts [Resolved] Edi Feedback 5 08.04.2004 08:36
Joombers.com Moderators Guide Admin General Announcements 0 05.04.2004 00:01


All times are GMT +2. The time now is 06:09.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.