Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 25

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 Display Modes
Old 11.04.2004, 02:35   #1 (permalink)
Junior Mamber
 
Join Date: Apr 2004
Posts: 47
alfri is on a distinguished road
Default Browser Prefs Module -> How to put icons before the links

Hi! How can I put a folder icon before add as a favourite? Thnx
alfri is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 11.04.2004, 15:25   #2 (permalink)
Professional Mamber
 
stingrey's Avatar
 
Join Date: Apr 2004
Location: Marikina, Manila, Philippines
Posts: 776
stingrey is on a distinguished road
Default Re: How to put icons before ADD AS A FAVOURITE? (Browser Prefs module)

You need to hack/edit the /modules/mod_browser_prefs.php file.



Please remember to backup the original file, before undertaking any hacking/editing
__________________
Joomla! Core Team Member
Software Coding & Design - Stability Team Leader
www.joomla.org
Former Mambo Core Team Member
stingrey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11.04.2004, 20:49   #3 (permalink)
Professional Mamber
 
eyezberg's Avatar
 
Join Date: Apr 2004
Location: Gap / France
Posts: 860
eyezberg is an unknown quantity at this point
Default Re: How to put icons before ADD AS A FAVOURITE? (Browser Prefs module)

Code:
$content = "";
$content.="<a href='javascript:window.external.addFavorite(\"$mosConfig_live_site\", \"$mosConfig_sitename\")'>";
$content.="<img src=\"$mosConfig_live_site/images/stories/bookmark.png\" border=\"0\" alt=\"Add Favorite\" />"._ADD_FAV."</a><br />";
$content.="<a style='behavior:url(#default#homepage)' onClick='setHomePage(\"$mosConfig_live_site\")' href='#'>";
$content.="<img src=\"$mosConfig_live_site/images/stories/home.png\" border=\"0\" alt=\"Homepage\" />"._MAKE_HOME."</a><br />";
?>
to use in the file as per above path..
of course, you'll need to upload the images too
__________________
joe / ex Mambo ex Doc Team
Eyezberg.com
eyezberg is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 27.04.2004, 00:42   #4 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 2
estluis is on a distinguished road
Default Re: How to put icons before ADD AS A FAVOURITE? (Browser Prefs module)

Hello everyone. Great information on Browser prefs works really well. Hey does anyone know how to add an Icon to the hit counter module. I tried doing the same as with browser prefs and I do get icon but not where i wanted it.


PHP Code:
defined'_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
global 
$frontend_language;
global 
$my_language;

$content.="<img src=\"$mosConfig_live_site/modules/browser_prefs/bookmark.png\" border=\"0\"/>";

$query "SELECT sum(hits) AS count FROM #__stats_agents WHERE type='1'";
$database->setQuery$query );
$hits $database->loadResult();

if (
$hits == NULL) {
    echo 
"0 "._VISITORS;
} else {
    echo 
"$hits "._VISITORS;
}
?> 
My Icon is showingin up this way



Here is the way I would like my icon to show before the vistor count number.

Also anyone know how to change text "vistors" would like to change or add words? I got this idea from http://www.stupidscifi.com/



Any help would be appreciated.
estluis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 27.04.2004, 08:53   #5 (permalink)
Professional Mamber
 
eyezberg's Avatar
 
Join Date: Apr 2004
Location: Gap / France
Posts: 860
eyezberg is an unknown quantity at this point
Default Re: How to put icons before ADD AS A FAVOURITE? (Browser Prefs module)

Try not echo-ing the $hits directly, instead, add it to the $content...just an idea.
And then, add any words you want after that to _VISITORS (lang file?)
Code:
$content.="<img src=\"$......
if ($hits == NULL) { 
    $content.= "0 "._VISITORS; 
} else { 
    $content.= "$hits "._VISITORS; 
}
__________________
joe / ex Mambo ex Doc Team
Eyezberg.com
eyezberg is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 27.04.2004, 11:48   #6 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 2
estluis is on a distinguished road
Default Re: How to put icons before ADD AS A FAVOURITE? (Browser Prefs module)

Hi joe, thanks that worked.
estluis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
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



All times are GMT +2. The time now is 03:20.

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.