Welcome to the [HSX] website!

Been Gaming since 2003

Community Driven Site

Gaming, Web Development, and Support

  

 
Main Menu
 
DFG
 Home
 Join our Clan
 [HSX] Roster
 BF3 Stats
 Forums
 News
 Downloads
 News Letter
 Video tutorials
 Supporters
 Uploads
 F.A.Q
· FAQ
· Docs
· Forums FAQ
 [HS] History
 PHP Nuke Tools
 WhoIS Lookup
 Site Map
 Write a Review
 Image Repo
 Logout
DFG
DFG DFG DFG

 
[HSX] Donations
 
DFG
Donation
This here is a combined total of what we need to keep us going each month.

0 %

Donate

End DateApr 01
Target$50.00
Below Target$50.00
CurrencyUSD

Donators This Month
DFG
DFG DFG DFG

 
 Search our Site
 
DFG DFG
DFG DFG DFG

 
Theme Management
 
DFG


DFG
DFG DFG DFG

 
Survey
 
DFG What is your favorite game to play ATM?

WarThunder
World of Tanks
H1Z1
MechWarrior Online
ARK
WarFace
SWTOR
BattleField serier
COD Series
Diablo
Armored Warfare



Results
Polls

Votes 750
Comments: 0
DFG
DFG DFG DFG

 
Honey Pot
 
DFG
Bots in the pot!
We have [1405] bots stopped!

DFG
DFG DFG DFG

     
DFG HeadShot Extreme :: View topic - Header logo


Search for at
HeadShot Extreme Advanced Search

Header logo
Goto page 1, 2  Next
Post new topic   Reply to topic   printer-friendly view   Thank Post    HeadShot Extreme Forum Index -> Nuke Blocks / Modules Support
View previous topic :: View next topic  
Author Message
airsteam

NOOB!!!
NOOB!!!







  • » Show Info «


Status: airsteam is offline
PostPosted: Mon Feb 05, 2018 4:50 am Post subject: Note Header logo Reply with quote

Hi Corpse, I will want to know how I can make more than one logo with my style.css

Thank you Corpse
Back to top
View user's profile Send private message Visit poster's website
HeadShot Domain, Been in buisness for over 10 years...
[HSX]coRpSE

Top Dog
Top Dog
Nuke Dev / Coder
Nuke Dev / Coder



Clan Leader


This user has donated over $300 to the clan.

coRpSE
In-Game - GRID 2
Most Played:
This week: 43.3hrs.
Total played: 231hrs.


  



  • » Show Info «


Status: coRpSE is offline
PostPosted: Mon Feb 05, 2018 9:40 am Post subject: No icon Re: Header logo Reply with quote

What do you mean, "more than one logo"?

If your talking about having it randomly change on each page refresh, then there are several different ways, it really depends on your theme and how its set up and how you really want to go about it. You could do it with jquery, and CSS, or you can do it with PHP and CSS. Me personally, to make it easier on myself, I would just do PHP and an array. Then make the images and do it that way. But I can't say exactly how to do it because each theme is different and it really depends on your theme.


Expand
Back to top
View user's profile Send private message Visit poster's website
HeadShot Domain, Been in buisness for over 10 years...
airsteam

NOOB!!!
NOOB!!!







  • » Show Info «


Status: airsteam is offline
PostPosted: Mon Feb 05, 2018 10:31 am Post subject: No icon Re: Header logo Reply with quote

Ok I will look if I find a tutorial!
This is a theme I bought on clantheme (bf4_xtreme)


 
Back to top
View user's profile Send private message Visit poster's website
HeadShot Domain, Been in buisness for over 10 years...
Sponsor
[HSX]coRpSE

Top Dog
Top Dog
Nuke Dev / Coder
Nuke Dev / Coder



Clan Leader


This user has donated over $300 to the clan.

coRpSE
In-Game - GRID 2
Most Played:
This week: 43.3hrs.
Total played: 231hrs.


  



  • » Show Info «


Status: coRpSE is offline
PostPosted: Mon Feb 05, 2018 3:24 pm Post subject: No icon Re: Header logo Reply with quote

well, if you pack up the header file or the theme itself and send it to me, I can code it in for you.

The way I would do it is like this:
PHP:
  $ran_logo = array('logo_1.png''logo_2.png''logo_3.png''logo_4.png''logo_5.png' ); // array of filenames
 
 $i rand(0count($ran_logo)-1);
 
 $dispalyed_logo "$ran_logo[$i]"
 



then where the image is displayed, I would display the logo using the URL and $displayed_logo, sortof like this.

(HTML Version)
PHP:
<img src="./themes/Your_Theme/images/<?PHP echo $displayed_logo; ?>" width="500px" height="150px" alt=""  


(PHP Version)
PHP:
echo '<img src="./themes/Your_Theme/images/'$displayed_logo .'" width="500px" height="150px" alt="">'  



But each theme is different and the logo could be a background image instead, or, something else may be different where a slight rewrite of the header may need to be edited/changed.

Note:
But one thing to keep in mind is to make each image the same size in width and height.


 


Last edited by coRpSE on Mon Feb 05, 2018 9:02 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
HeadShot Domain, Been in buisness for over 10 years...
airsteam

NOOB!!!
NOOB!!!







  • » Show Info «


Status: airsteam is offline
PostPosted: Mon Feb 05, 2018 5:56 pm Post subject: No icon Re: Header logo Reply with quote

MP send with file lachen


 
Back to top
View user's profile Send private message Visit poster's website
HeadShot Domain, Been in buisness for over 10 years...
[HSX]coRpSE

Top Dog
Top Dog
Nuke Dev / Coder
Nuke Dev / Coder



Clan Leader


This user has donated over $300 to the clan.

coRpSE
In-Game - GRID 2
Most Played:
This week: 43.3hrs.
Total played: 231hrs.


  



  • » Show Info «


Status: coRpSE is offline
PostPosted: Mon Feb 05, 2018 9:44 pm Post subject: No icon Re: Header logo Reply with quote

Okay, Here is an example, let me know if this is what you were looking for.

My Testsite:
Please login to see this link
Get registered or Log in


In the left blocks, you will see a "Theme Changer" block. Just select the BF4_Multi, and once you have that theme selected, look at the logo image and hit refresh a few times, you will see it change randomly. I have Test Image 1 through Test Image 5. If thats what your looking for, then the way i did that is by editing 2 files.

Open you public_html/themes/BF4_Multi/style/style.css and find

Code:
#headerlogo {
   background: url("../images/header/logo.png") no-repeat;
   width:968px;
   height: 180px;
   margin:0 auto;
}


Remove the background: url("../images/header/logo.png") no-repeat; line so it will look like:
Code:
#headerlogo {
   width:968px;
   height: 180px;
   margin:0 auto;
}


Save & Close


Now, open up
public_html/themes/BF4_Multi/theme.php

Find:
PHP:
echo '<div class="headbg">'


On new line before, ADD:
PHP:
  $rl = array('logo1.png''logo2.png''logo3.png''logo4.png''logo5.png');
 
 shuffle($rl);
 
 $displayed_logo array_rand($rl1); 
 



Next, Find:
Code:
<div id="headerlogo"></div>


Replace with:
Code:
<div id="headerlogo" style="background: url("../images/header/'. $displayed_logo .'") no-repeat;"></div>



Save & Close

Now, what you want to do is upload all your logo images into the folder
public_html/themes/BF4_Multi/images/header/

Then, you will see in the edit above, a line that looks like this:
$rl = array('logo1.png', 'logo2.png', 'logo3.png', 'logo4.png', 'logo5.png');

In between each of the quotes, ('), you want to put in the name of the image and the file type. You really want all your images as .png images and keep them the same size as the default one, which is 968 x 200.


 
Back to top
View user's profile Send private message Visit poster's website
HeadShot Domain, Been in buisness for over 10 years...
Sponsor
airsteam

NOOB!!!
NOOB!!!







  • » Show Info «


Status: airsteam is offline
PostPosted: Tue Feb 06, 2018 2:25 am Post subject: No icon Re: Header logo Reply with quote

Corpse, look at my capture we can put here the logo because several site put it here.

Thank you Corpse.


 
Back to top
View user's profile Send private message Visit poster's website
HeadShot Domain, Been in buisness for over 10 years...
[HSX]coRpSE

Top Dog
Top Dog
Nuke Dev / Coder
Nuke Dev / Coder



Clan Leader


This user has donated over $300 to the clan.

coRpSE
In-Game - GRID 2
Most Played:
This week: 43.3hrs.
Total played: 231hrs.


  



  • » Show Info «


Status: coRpSE is offline
PostPosted: Tue Feb 06, 2018 9:43 am Post subject: No icon Re: Header logo Reply with quote

What capture?


 
Back to top
View user's profile Send private message Visit poster's website
HeadShot Domain, Been in buisness for over 10 years...
airsteam

NOOB!!!
NOOB!!!







  • » Show Info «


Status: airsteam is offline
PostPosted: Tue Feb 06, 2018 9:52 am Post subject: No icon Re: Header logo Reply with quote

Here sorry



Expand


 
Back to top
View user's profile Send private message Visit poster's website
HeadShot Domain, Been in buisness for over 10 years...
Sponsor
[HSX]coRpSE

Top Dog
Top Dog
Nuke Dev / Coder
Nuke Dev / Coder



Clan Leader


This user has donated over $300 to the clan.

coRpSE
In-Game - GRID 2
Most Played:
This week: 43.3hrs.
Total played: 231hrs.


  



  • » Show Info «


Status: coRpSE is offline
PostPosted: Tue Feb 06, 2018 11:15 am Post subject: No icon Re: Header logo Reply with quote

Clear your browser's cache and go back to here and check to see if that's what you're looking for.
Please login to see this link
Get registered or Log in


Again, make sure your on the BF4_Multi theme.


 
Back to top
View user's profile Send private message Visit poster's website
HeadShot Domain, Been in buisness for over 10 years...
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view   Thank Post HeadShot Extreme Forum Index ->  Nuke Blocks / Modules Support All times are UTC - 7 Hours [DST enabled]
Goto page 1, 2  Next
Page 1 of 2
 


 
Jump to:  
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 cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Sticky: coRpSE Complete mod compilation - v8.10 77 coRpSE 23179 Fri Feb 14, 2014 8:01 pm
Biteme View latest post
No new posts How To Make Sub-forums horizontal 2 MAGNET 292 Wed Sep 27, 2017 6:17 pm
Lonestar View latest post
No new posts Thanks coRpSE! 3 LIMBSAVER 1364 Sun Apr 08, 2012 4:36 pm
coRpSE View latest post
No new posts Found Corpse a theme for TS3 3 Ruphus 1638 Fri Mar 30, 2012 8:57 am
Slick View latest post
 




Powered By: phpBB © 2001 - 2008 phpBB Group
SimpleBlack V2 By: killigan
© DarkForge Graphics 2008 - 2009 All Rights Reserved

Googlepage: GooglePullerPage
DFG
DFG DFG DFG
Forums ©
Copyright © HeadShotDomain 2016 By: coRpSE
SimpleBlack V2 By: Killigan
Powered By: Evolution-Xtreme