Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 Next > End >>
Ho do i change "sectiontableentry" to a new class?
Date: 2006/11/12 02:09 By: radio Status: CB Doc subscriber  
Karma: 5  
Expert Joomlapolitan

Posts: 181
graphgraph
How do i go about changing sectiontableentry in the comprofiler.class.php to a different class so that i can go in and edit my template css and basically get rid of the alternating field colors in the profiles and style them as i want without it changing all the sectiontableentry's throughout my template, as Cb is not the only one that uses it. If that makes sense lol?
Interested in improving Joomla as a social networking platform? If yes join joomlaplazza.com
Click here to see the profile of this user The topic has been locked.

Re:Ho do i change "sectiontableentry" to a new class?
Date: 2006/11/12 18:30 By: radio Status: CB Doc subscriber  
Karma: 5  
Expert Joomlapolitan

Posts: 181
graphgraph
ok so far iv copied sectiontableentry1 and 2 in my template.css file and renamed them sectiontableentry1_cb and sectiontableentry2_cb iv then went and changed the sectiontableentry in comprofiler.class.php and comprofiler.html.php to match this but so far its not working!
Interested in improving Joomla as a social networking platform? If yes join joomlaplazza.com
Click here to see the profile of this user The topic has been locked.

Re:Ho do i change "sectiontableentry" to a new class?
Date: 2006/11/12 23:15 By: beat Status: Admin  
Karma: 256  
Admin

Posts: 4215
graphgraph
you can use the cascading property of CSS without hacking:

e.g.:
Code:

        <table width="100%" border="0" cellspacing="0" cellpadding="0" id="cbUserTable"> ...     <tr class="sectiontableentry1" style="cursor:hand;cursor:pointer;" id="cbU0"> ...     <tr class="sectiontableentry2" style="cursor:hand;cursor:pointer;" id="cbU1">


can be styled specifically for CB users-lists as follows for example:
Code:

  table#cbUserTable tr. sectiontableentry1 {   backgroundsolid red; } table#cbUserTable tr. sectiontableentry2 {   backgroundsolid blue; }



This can be done in site template or in your cb template.
Beat - Developer on Community Builder core Team
- If you like CB and this forum, you will love Nick's CB 1.2 RC4 reference manual ! : Click here to Get it now
- Would like to help us move faster ? Get it, and/or help us spend more time coding by helping others in this forum, many thanks
Click here to see the profile of this user The topic has been locked.

Re:Ho do i change "sectiontableentry" to a new class?
Date: 2006/11/13 00:28 By: radio Status: CB Doc subscriber  
Karma: 5  
Expert Joomlapolitan

Posts: 181
graphgraph
Thanx I managed to do it the way i was trying, Your way is probably a better way but im not sure how to use the code for my purpose and exactly where to put it
Interested in improving Joomla as a social networking platform? If yes join joomlaplazza.com
Click here to see the profile of this user The topic has been locked.

Re:Ho do i change
Date: 2006/11/13 00:45 By: nant Status: Admin  
Karma: 467  
Admin

Posts: 6234
graph
radio wrote:
Thanx I managed to do it the way i was trying, Your way is probably a better way but im not sure how to use the code for my purpose and exactly where to put it

You should put it in your template.css file.
This way next time you upgrade CB your changes will not be lost.
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user The topic has been locked.

Re:Ho do i change
Date: 2006/11/25 19:39 By: bjraines Status: User  
Karma: 3  
Expert Joomlapolitan

Posts: 155
graphgraph
I think it would be great if CB has its own classes. But that is just my opinion.
Joomla Community Builder Paginated Article Plugin

Chemistry Homework Help
Click here to see the profile of this user The topic has been locked.

<< Start < Prev 1 2 3 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC4)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC4, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers and now also to all registered joomlapolitans.

CB Login