Hello,

I am trying to use a flash file that contains the site name in place of the text that is input into the 'Site Configuration' > 'Site Information' > 'Name' field. Any direction is appreciated.

Thanks,

Andy

CommentFileSizeAuthor
#4 style.css_.txt20.69 KBafolz
#4 page-front.tpl_.php_.txt7.83 KBafolz

Comments

danpros’s picture

Hi,

You can do that by modify the page-front-tpl.php and page.tpl.php

 <?php if ($site_name) : ?><h1 class="logo-name"><a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a></h1><?php endif; ?>

Maybe the solutions

 <?php if ($site_name) : ?><div class="swf-file">
.............................    <!-- put the .swf file here -->
</div><?php endif; ?>

Adding new classes in style.css

.swf-file {
.............    <!-- put your css style here -->
}

Dan,

afolz’s picture

Thank you. I will be able to try this in a day or two.

Andy

danpros’s picture

Status: Active » Closed (fixed)

Hi Andy,

I'll closing it, please re-open if you need more helps.

Thanks,
Dan

afolz’s picture

Status: Closed (fixed) » Active
StatusFileSize
new7.83 KB
new20.69 KB

Hi, I've set status back to active in hopes of re-opening this. I've tried the suggested steps and the logo is not displaying, although it is much closer to working than before the generous help. I think I am not clear on what is needed in the css file so that the flash plays. I am including my page-front.tpl.php and my style.css files. I have inserted into the page-front.tpl.php the code that plays the flash file on our current (non-drupal) home page. Thanks again for any and all help. Also my .swf file is in the same folder as my page-front.tpl.php file, etc.

Thanks,

Andy

danpros’s picture

Hi Andy,

I'm busy lately :)

You can put the swf files directly to the theme (page-front.tpl.php and page.tpl.php), just upload the files in your server. How you put the swf files in your other site?

afolz’s picture

I will give it a try, I have found the code that the original developer used to embed now. I am very new and learning. Thanks much for the help and generous time.

Andy

afolz’s picture

Status: Active » Closed (fixed)

This is working using the suggestion provided. Thanks very much for the assistance.

Andy

JC8008’s picture

Dan

Love the theme. How do I replace the slideshow banner with a .SWF slideshow, so it plays instead of your slide show.

Thanks Joe

JC8008’s picture

If you could help, I would really appreciate it. I have loaded every possible module . I can/t work it out. I can replace the pictures easy enough, but I would like to display a .SWF slide show instead. Is that possible. I am new to css code, and don't want to rip up yours.

Thanks

danpros’s picture

Hi,

Image slideshow to .swf? you can read this post.

Thanks,
Dan

JC8008’s picture

Would this be the correct code

Only local images are allowed. print $base_path . $directory; /images/slideshows/myslideshow.swf" width="950" height="355" alt="slideshow 1"/>
Only local images are allowed. print $base_path . $directory; /images/slideshows/blank" width="950" height="355" alt="slideshow 2"/>
Only local images are allowed. print $base_path . $directory; /images/slideshows/blank" width="950" height="355" alt="slideshow 3"/>

I only have one slideshow.swf files, which runs automatically. I have put "blank" for the other pictures.

Thanks

danpros’s picture

Hi,

Yes that is okay, you can remove all images if you want. The slideshow is automatically so if only one object between the slideshow classes then no slideshow will shown.

JC8008’s picture

Thanks Dan I don't understand what you mean by" only one object between the slideshow classes then no slideshow will shown. "

I changed the code, directory, file name, I can see X slideshow, but it does not run.

Thanks

Superuser21’s picture

Component: User interface » Miscellaneous
Status: Closed (fixed) » Active

I do not have this file in the folder - page-front.tpl.php

I have this only- page.tpl.php

How do I get to the home page?

supriyarajgopal’s picture

Hi Superuser21,
You won't have that file(page-front.tpl.php) in your sites/all/themes/templates folder; you gotta create one.
1. Create a file 'page--front.tpl.php' if you are on Drupal 7
2. Copy the entire contents of page.tpl.php into page--front.tpl.php
3. Make the desired changes (adding

s, rendering blocks, etc)
4. Save
5. Go to admin/config/development/performance in your Drupal site and clear cache.
You will see the changes made.
kunal_kapoor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)
kunal_kapoor’s picture