Main menu
Home
News
News from Alphaplug
Download
Forum
Support us
Search
Links
Demo site
Contact
Invite a friend
Sign-up





Lost Password?
No account yet? Register

If you find my free stuff useful, why not leave me a little something with PayPal.

Donations are greatly appreciated, and help with the costs of providing FREE Joomla! addons.




Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: Modify Style Block
#6
Modify Style Block 3 Years, 4 Months ago Karma: 0
AlphaContent is a great tool. Makes building directory fast and simple.

I have been playing with it for some time now and decided to dig into the code and considered changing the block style for the listings.

I had no problem changing the css to reflect a certain look but it did not change the basic layout of the table, moved title, separate intro, change location of hits, rating, etc to create a more stylized look. I played with the fieldset, normal, and HR

Is it possible to create a custom style block and append it to AC? If so, do I do it in the alphacontent.html.php or through the standard Joomla?

I dug into the alphacontent.html.php to find the table layout but I must be overlooking something. Does the table style rely on the Joomla content table (I noticed the style for contentpaneopen) layout or is the layout determined by the AC html.php?

I thought if I could create some type of templating mechanism it could go along way to pushing AC over the top.

Any thoughts?

I'll keep digging in the meantime and anything I come up with I will share here.

Great job on the component!
ribisall
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7
Re:Modify Style Block 3 Years, 4 Months ago Karma: 28
I already thought of creating (for a forthcoming version) a kind of positioning of elements personalized and skeletal in the admin panel. Like a template, but just a choice of position of elements. In the moment, only the class contentpaneopen is used to be able to personalize item.
admin
Admin
Posts: 1095
graph
User Offline Click here to see the profile of this user
Gender: Male Location: Corbeil-Essonnes Birthday: 02/28
The administrator has disabled public write access.
All components are free but...
Ever thought about giving something back?
Please make a donation if you want to support its continued development. Your donations help by hardware, hosting services and other expenses.
 
#9
Re:Modify Style Block 3 Years, 4 Months ago Karma: 0
I figured you planned on that. It's just a natural extension of where you are going with the com.

I'll keep working from this end and anything of value I got is yours. In the meantime, I'll keep looking at styling it from hacking the core.

Best
ribisall
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11
Re:Modify Style Block 3 Years, 4 Months ago Karma: 0
hey I made it work for me.

I changed the template_css to reflect the fieldset setting in AC for the list and added this code:

Code:


fieldset {
background-color: #EEF0EF;
border: 1px solid #8E9DA5;
margin: 0px;
padding: 0px;
}
fieldset a {
width: 100%;
float: left;
text-align: center;
background-color:#8E9DA5;
font-weight: bold;
font-size: 14px;
color: #EEF0EF;
line-height: 15pt;
}
fieldset a:hover{
color: #A70900;
text-decoration: none;
}
fieldset .small a{
width: 100%;
float: left;
text-align: right;
background-color:#8E9DA5;
color: #ffffff;
font-size: 11px;
padding: none;
}
fieldset .small a:hover{
color: #A70900;
}
fieldset span.small {
margin: 0!important;
background: none!important;
padding: 0!important;
}



I only had to make a small tweaked in the alphacontent.html.php for the line breaks:
Code:


$linkItem = "<a href='" . sefRelToAbs( $row->href ) . "'>" . $row->title . "</a><br/><br/>";
$linkItemReadMore = "<br/><a href='" . sefRelToAbs( $row->href ) . "'>" . _READ_MORE . "</a>";




what it gave me was this:



The title and read more both have rollover colors, so this works for me.

I have not tried to add images directly to it yet but I'm comfortable in your code now so it should not be a problem.

Thanks again! Trying to give back a little.
ribisall
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#15
Re:Modify Style Block 3 Years, 4 Months ago Karma: 28
With the CSS, all is possible
admin
Admin
Posts: 1095
graph
User Offline Click here to see the profile of this user
Gender: Male Location: Corbeil-Essonnes Birthday: 02/28
The administrator has disabled public write access.
All components are free but...
Ever thought about giving something back?
Please make a donation if you want to support its continued development. Your donations help by hardware, hosting services and other expenses.
 
#4634
Re:Modify Style Block 1 Year, 9 Months ago Karma: 0
Hi,
I don't know where to add the code in alphacontent.html.php for the line breaks.

Code:
$linkItem = "<a href='" . sefRelToAbs( $row->href ) . "'>" . $row->title . "</a><br/><br/>"; $linkItemReadMore = "<br/><a href='" . sefRelToAbs( $row->href ) . "'>" . _READ_MORE . "</a>";

I have tried and I get an error.

Anybody knows?

Thanks
julius
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4759
Re:Modify Style Block 1 Year, 7 Months ago Karma: 0
Hello

I'm working on the same problem, above all changing colors (border color!) which don't fit my background color. Can somebody help? I still don't get it!

"I changed the template_css"

What do you mean? There is only litbox.css and rating.css. What should 'litbox' be anyway?

If you mean that you created a new '.fieldset' class in the CSS of your site template: how would Alphacontent access to this new class? Nothing to see of it in your PHP code...

thanks for your help!
MaMaaMa
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1