Hi,
I would like to separate the Intro text from the form itself.
So have the Intro text on the left side of the page in a separate div (user1) and have the main form in the main component/content area.
Anyone got any suggestions as to how to achieve this?
Hi ttester14,
Firstly, I assume you have the latest 2.0.2 version of the component.
Secondly, I also assume that by 'intro text' you are referring to the instructions that are presented to the users for the component(?).
If that is the case, the file to be modified is recommendfriends.php - it should be the components/com_recommendfriends directory.
The HTML formatting for the component starts at line #406 in that file - should look something like:
<table width="100%" cellpadding="4" cellspacing="4" border="0" align="center" class="contentpane">
<tr>
<td><h1 class="componentheading"><?php echo JText::_( '_DM_TITLE' ); ?></h1></td>
</tr>
<tr>
<td>
Depending on exactly what you're after, you will have to decide how to reformat things. If you want the 'intro' text to be in the left position, I don't think that's possible. You'll only be able to 'split' the main component/content window into 2.
Hope that helps. Let us know how it goes.
Thanks!
D-Mack
Hi,
Thanks for your reply.
I was playing around with that file and that part of the file, tried everything my mind could think of, but as I am not a programmer I did not accomplish much with that. I also wasn't sure on how to split the main component window into 2, so came up with the following solution.
As I am working on a multilingual site, I basically made an article with the intro text that shows on the left side (user1) and only when the this component shows, with translations for each text through joomfish. The text changes when changing languages and so does the text of the component. Then I disabled the intro part from the recommendfriends.php.
Haven't tried it on a live site yet and still need to trial it, but all looking good sofar!
Great component!