vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Move footer thing to center - View Topic
Topic Rating: *****
Printable View
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,009
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
Move footer thing to center (26th Apr 10 at 7:09pm UTC)
Resolved
I would like to move this:

Purchase Ad-Free Credits
This Forum is Powered By vForums (v2.3)
Create a Forum for Free | Find Forums


To center in the forum. I've tried

<style>
.credit {
text-align: center;
}
</style>

I also tried:


<style>
.bottomtext {
text-align: center;
}
</style>

But it's not working, unless it's the wrong ID's. But I don't see any other ID's for that.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Move footer thing to center (26th Apr 10 at 10:11pm UTC)
You got a forum link? Because there is the part on the left also...
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,009
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
Re: Move footer thing to center (26th Apr 10 at 10:13pm UTC)
Yeah http://dmtesting.vforums.co.uk/

But it's mostly for iDirectory Support.
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Move footer thing to center (26th Apr 10 at 10:19pm UTC)
What do you want happening to the left section?
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,009
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
Re: Move footer thing to center (26th Apr 10 at 10:36pm UTC)
The Left section with the stats are gone, there is nothing I want to do with:

All times are GMT-5 :: The current time is 5:38pm
Page generated in 0.3546 seconds
with 46 Database Queries and 1 cache files

All I want to deal with is this:

Purchase Ad-Free Credits
This Forum is Powered By vForums (v2.3)
Create a Forum for Free | Find Forums

^^^ I want that Centered with the forum.
dog199200
Guest
Re: Move footer thing to center (26th Apr 10 at 10:37pm UTC)
Michael, the left side is gone {Wink} I already have a code that sets it to display.none {Tongue Out}
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,009
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
Re: Move footer thing to center (26th Apr 10 at 10:39pm UTC)
I tried editing that code to the ID credit, but didn't work. {Tongue Out} and it brought back the Stats. {Tongue Out}
dog199200
Guest
Re: Move footer thing to center (26th Apr 10 at 10:52pm UTC)
lol you baka, you broke the script them XD ok well I guess taht explains why michael asked XD
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Move footer thing to center (26th Apr 10 at 10:58pm UTC)
What is the code that you're using to hide the left section, then I can modify the right one as it would be on your forum.
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,009
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
Re: Move footer thing to center (27th Apr 10 at 12:20am UTC)
This one:

<script type="text/javascript">
window.onload = function() {
if(get('footerstats', ID)) {
get('footerstats', ID).style.display = 'none';
get('footertime', ID).style.display = 'none';
}
}
</script>


and Dwight now I actually had it like this: {Tongue Out}

<script type="text/javascript">
window.onload = function() {
if(get('credit', ID)) {
get('credit', ID).style.display = 'center';
get('credit', ID).style.display = 'center';
}
}
</script>

and that's when it broke the footerstats one. xD
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Move footer thing to center (27th Apr 10 at 12:38am UTC)
Remove that coding... and just use this in your global header:

<style type = 'text/css'>
#footertime, #footerstats {
     display: none;
}
#bottomtext div {
     float: none !important;
     text-align: center !important;
}
</style>
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,009
Status: Offline
Gender: Male
Location: vForums
Age: 31
Joined:  
Reputation: 62%  


pm
Re: Move footer thing to center (27th Apr 10 at 2:40am UTC)
Thanks it works. {Smile}
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Move footer thing to center (27th Apr 10 at 3:09am UTC)
{Smile}
 Printable View

All times are GMT+0 :: The current time is 3:42am
Page generated in 0.3291 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums