Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Deseroka
Client


Joined: Apr 15, 2003
Posts: 466
Location: FL

PostPosted: Mon Jun 28, 2010 12:59 pm Reply with quote

Hopefully I have placed this in the correct forum. It's probably been touched on before, but I haven't found my answer...those of you who know me, know my patience for searching thru threads titled "Help Me Plz", "I Have a Problem" etc is next to none. My talent for getting the forum correct is sometimes lacking....so, I dunno--be patient.
I'm wanting to place a flash logo in the Sand Journey theme.(RavenNuke_v2.40.01.7) It's been awhile since I done something like this, so am wondering can I just place my logo where it should be & my swf file in my public_html file, or would I be better off putting the darn thing in the header & letting it run in the 2 themes I will be using on that site?
OK, PITA, signing out!
(Here's your chance for one of my weird questions & challenges, SixOne)
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2496

PostPosted: Mon Jun 28, 2010 8:37 pm Reply with quote

Ouch me an flash not friends but...
You can put it anywhere you like common location for 2 themes maybe /images/ or something new like /images/logos/

Code wise it would be something like Only registered users can see links on this board! Get registered or login!

Code:


    echo "<center><object width=\"550\" height=\"400\"><param name=\"movie\" value=\"./images/somefilename.swf\"><embed src=\"./images/somefilename.swf\" width=\"550\" height=\"400\"></embed></object></center>"
    ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"$bgcolor1\"><tr><td colspan=\"3\" align=\"center\">"


Good Luck! Maybe someone else will stepup with the perfect answer!

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
Deseroka
PostPosted: Mon Jun 28, 2010 9:10 pm Reply with quote

I don't care if it runs in both themes or not, but why not? Thanks sixone!
But wait! I'm not sure we just said the same thing. (you know I have trouble spitting out what I'm trying to say).
Can I embed the code into theme.php for just one of the themes & into say header.php for both themes?
Oh heck, I've forgotten what I know........
 
sixonetonoffun
PostPosted: Tue Jun 29, 2010 9:19 am Reply with quote

I think for future updates (Raven did mention chance of upcoming release) it would be best to mod the theme.php not site header.php while it would be possible future updates might be less friendly. A little more work today less headache tomorrow.
 
Deseroka
PostPosted: Tue Jun 29, 2010 11:41 am Reply with quote

Well, stand by for Indigenous Melt-Down. Cause you know my crazy self is gonna stick it in the wrong place, come over here, scream & yell a little, then hopefully figure it out before someone tells me to calm down & do so & so.
What can I say? Most people find me atypical, but once ya get to know me, I'm really quite amiable. Rolling Eyes
 
Deseroka
PostPosted: Wed Jun 30, 2010 2:45 pm Reply with quote

OK, melt down in action. Will someone please tell the woman having a blond moment where in the heck to put the darn code within theme.php???
Please?
 
sixonetonoffun
PostPosted: Wed Jun 30, 2010 7:37 pm Reply with quote

Sand Journey theme
theme.php
Around line #88 depends on how exactly you wish to place it but thats where the logo starts I think.
 
Deseroka
PostPosted: Wed Jun 30, 2010 8:56 pm Reply with quote

I'll take it all apart & try to embed it there. I thought I was gonna be smart & just put it in the advertising banners. I works fine, even with the mod inactive. However, it makes the advertising mod kinda useless. I see that this module now has positions, & this is posted in the mod concerning positions.

Quote:
To use the position you must include the code: ads(position); in your theme file, where 'position' is the number of the position you want to use in that ad space.
You can have a look at the file /blocks/block-Advertising.php and file /header.php to have a clear example on how to implement this in your site.

I now have the banner in the "top" position, but am wondering if I got all this stuff about ad positions straightened out, could I change the position to header so that other banners would ride above it, or just create a place for them to ride above?
Sometimes I hate it when I think. It's just scary.
*******Edit******
I don't think what I've done will work. It doesn't look too good with the other theme I'm gonna keep in there. It's late, I'll try again tomorrow. I found an old article over at php.org (ugh) that Chris Karakas wrote, so I thought "Allright!!!" But I had no joy with it either.

Quote:
You can put the above code in the themes/YourTheme/theme.php file, in the themeheader() function, after the call to the banners code:

if ($banners == 1) {
include("banners.php");
}
...put Flash code ("echo") here...

Tomorrow I'll take the one out of the banner section & try again at line 88.
Someone just shoot me.
 
sixonetonoffun
PostPosted: Fri Jul 02, 2010 7:38 pm Reply with quote

Here's to tomorrow! Good Luck!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©