-
AuthorPosts
-
5268311 Friend
5268311
- Join date:
- March 2013
- Posts:
- 77
- Downloads:
- 25
- Uploads:
- 55
- Thanks:
- 7
- Thanked:
- 2 times in 1 posts
November 24, 2013 at 1:10 am #192497pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
November 24, 2013 at 8:38 am #513297Hi
In this file templatesja_teline_iiiblocksheader.php
now you have at line 17
[PHP] <?php $this->genBlockBegin ($block) ?>
<div class=”inner clearfix”>
<?php[/PHP]add a new block as showed below
[PHP] <?php $this->genBlockBegin ($block) ?>
<div class=”inner clearfix”>
<?php if($this->countModules(‘banner1’)) : ?>
<div id=”ja-banner1″>
<jdoc:include type=”modules” name=”banner1″ />
</div>
<?php endif; ?>
<?php[/PHP]where banner1 is your module name
Then in this file templatesja_teline_iiitemplateDetails.xml add the new position
<position>banner1</position>
Then to customize css for your new position add this at the end of your templatesja_teline_iiicsstemplate.css
#ja-banner1 {
HERE your customization as background image
}1 user says Thank You to pavit for this useful post
5268311 Friend5268311
- Join date:
- March 2013
- Posts:
- 77
- Downloads:
- 25
- Uploads:
- 55
- Thanks:
- 7
- Thanked:
- 2 times in 1 posts
November 29, 2013 at 10:52 pm #513970thank you very much!!! for your Help!!!
regards
5268311
mjandia Friendmjandia
- Join date:
- December 2013
- Posts:
- 48
- Downloads:
- 0
- Uploads:
- 9
- Thanked:
- 3 times in 1 posts
December 20, 2013 at 11:25 am #516072Hello,
I’ve tried your solution to put banner in the position of ” 5268311 “. That runs congratulation but It remains one thing in the template. You said : Then to customize css for your new position add this at the end of your templatesja_teline_iiicsstemplate.css
#ja-banner1 {
HERE your customization as background image
}But i don’t know what add because it’s not an image but these code as a banner :
<object style=”display: block; margin-left: auto; margin-right: auto;” width=”690″ height=”85″ data=”flashvortex.swf” type=”application/x-shockwave-flash”><param name=”quality” …………………………<param name=”pluginspage” value=”http://www.macromedia.com/go/getflashplayer” /><param name=”allowscriptaccess” value=”sameDomain” /></object>
May you help me please because I have that error :
Thank you for your help.
Regards
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 20, 2013 at 2:08 pm #516086Hi
You need to create a custom-html module – inside it add the code you posted above and then publish it in the banner1 position
First to add your content in the custom-html module disable your editor from the global configuration settings
then save it and enable again the editor
mjandia Friendmjandia
- Join date:
- December 2013
- Posts:
- 48
- Downloads:
- 0
- Uploads:
- 9
- Thanked:
- 3 times in 1 posts
December 20, 2013 at 2:21 pm #516087But I have error in template as shown in the screenshot and it not depend on how to make a custom module.
Regards
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 20, 2013 at 5:02 pm #516097mjandia:
Perhaps THIS TUTORIAL may be of some further assistance to you.
mjandia Friendmjandia
- Join date:
- December 2013
- Posts:
- 48
- Downloads:
- 0
- Uploads:
- 9
- Thanked:
- 3 times in 1 posts
December 20, 2013 at 5:07 pm #516098As I wrote I dont’t know how code I have to put in that following line :
#ja-banner1 {
HERE your customization as background image
}I’ve tried a lot of code and it doesn’t run. Thank for your help.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 20, 2013 at 5:14 pm #516100<em>@mjandia 402813 wrote:</em><blockquote>As I wrote I dont’t know how code I have to put in that following line :
</blockquote>
You don’t need to know how to code . . . that’s why I wrote the tutorial I posted above.
Read through it – I think you will (should) be able to follow along and understand the process.In fact, you’re in more luck, because the tutorial uses the Teline template as an example. 🙂
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 20, 2013 at 6:08 pm #516103<blockquote>As I wrote I dont’t know how code I have to put in that following line </blockquote>
You don’t need to add nothing in the template.css file
The style for your module is already contained in the code you posted above , so you need only of the new position created then add a custom-html module containing your code and publish the module in the banner1 positionmjandia Friendmjandia
- Join date:
- December 2013
- Posts:
- 48
- Downloads:
- 0
- Uploads:
- 9
- Thanked:
- 3 times in 1 posts
December 20, 2013 at 6:13 pm #516104Sorry but I did that what wrong with the following code please :
div class="inner clearfix">
that appears in my website in frontpage and also all pages. The date at the top is on the left position as you can see in screenshot.
Thank you for your help.Regards
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 20, 2013 at 6:33 pm #516106check correctly the code seems that a closure for the div is missing
Also would be better if you send via Private Message a super user account to your backend in this way i can better check what is happening
mjandia Friendmjandia
- Join date:
- December 2013
- Posts:
- 48
- Downloads:
- 0
- Uploads:
- 9
- Thanked:
- 3 times in 1 posts
December 20, 2013 at 6:40 pm #516108My responsability. Thank you. You’re right. The
<
was missing. All is fine now. For my part, post closed.AuthorPostsViewing 13 posts - 1 through 13 (of 13 total)This topic contains 13 replies, has 4 voices, and was last updated by mjandia 10 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum