vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Programming Discussion :: List of IDs & Common 'Areas' - View Topic (Page 1 of 2)Page: 1 2
Topic Rating: *****
Printable View
This topic was locked 19th Jun 10 at 6:08pm by Michael
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
List of IDs & Common 'Areas' (30th Dec 07 at 2:15am UTC)
Below is a list of the IDs that are used through VForums... More a list for me to access... but also for all new coders! {Smile}

Welcome Table
Contains banner, menu etc..
id: welcome_table

User Bar
Contains Logged in as... & PM info & Mark all boards as read link
id:user_table

Whole Forum
Contains everything from the nav down to the bottom of the forums. Could be hidden when using custom pages.
id:forum_table

Nav Tree
vForums Support :: Improvements etc....
id: nav_tree

Info Center
-
id: info_center

Inside the Info Center
Most of the areas in the info center have an id. View the image to see them.
Image of IDs


There's a list of all of the Id's that are used... I will shortly be posting a list of Common places that people will need to access... Eg: Menu...

Viewing the pages source:
Adding /addspacing/1 to the end of any URL will output the source code with all of the line breaks and tabs. This is great for finding the IDs/class names/attributes of the elements you need to target.

Storing Information in the Mini-Profile:
There is a hidden input field on the modify profile page called "hidden". There is no maximum length for this field meaning you can store as much data in there as you wish. The value entered in this field will then be outputted in a hidden span (with the ID "hidden_vars") at the bottom of the mini-profile.
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: List of IDs & Common 'Areas' (30th Dec 07 at 2:17am UTC)
Menu
To access this, we need to grab the 2nd cell in the welcome table
Code:
 
  1. document.getElementById('welcome_table').getElementsByTagName('td')[2];
 





Global Variables

vf_username - Person's Username [text]
vf_displayname - Person's Displayname [text]
vf_usergroup - Person's Usergroups [array]
vf_posts - Person's Total Posts [number]
vf_total_pms - Person's Total PMs [number]
vf_new_pms - Person's New PMs [number]
vf_profile - Mini Profile Look (Normal, tabular, horizontal) [number]
vf_skin - Skin they're using [number]
Danny
Full Member
***

[Avatar]

Posts: 180
Status: Offline
Gender: Male
Location: Durham
Age: 29
Joined:  
Reputation: 1%  


pmmsnxfire
Re: List of IDs & Common 'Areas' (30th Dec 07 at 2:24am UTC)
{Smile} ive read this and looked through the source and this forum is amazing. it also has a hell of alot of classes even the last post cell has its own class {Cheesy}

also you forgot the info center id

info_center

Myspace | deviantART

"Suffer For Your Art"
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: List of IDs & Common 'Areas' (30th Dec 07 at 2:27am UTC)
I wasn't on the main page when I checked the source... woops... I'll add it now ... thanks! {Smile}
Danny
Full Member
***

[Avatar]

Posts: 180
Status: Offline
Gender: Male
Location: Durham
Age: 29
Joined:  
Reputation: 1%  


pmmsnxfire
Re: List of IDs & Common 'Areas' (30th Dec 07 at 2:36am UTC)
no problem {Smile} I love this place {Tongue Out}

Myspace | deviantART

"Suffer For Your Art"
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 7 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: List of IDs & Common 'Areas' (30th Dec 07 at 11:33pm UTC)
Not sure where to mention this, but here seems like a good enough place {Tongue Out}

Tip 1 - Viewing the pages source:
Adding /addspacing/1 to the end of any URL will output the source code with all of the line breaks and tabs. This is great for finding the IDs/class names/attributes of the elements you need to target.

Tip 2 - Storing Information in the Mini-Profile:
There is a hidden input field on the modify profile page called "hidden". There is no maximum length for this field meaning you can store as much data in there as you wish. The value entered in this field will then be outputted in a hidden span (with the ID "hidden_vars") at the bottom of the mini-profile.

Image
Graham
Support Administrator
*****

[Avatar]

Posts: 1,641
Status: Offline
Gender: Male
Location: Sussex, UK
Age: 35
Joined:  

Additional Groups:
Support Team
***


Reputation: 53%  


pmwww
Re: List of IDs & Common 'Areas' (30th Dec 07 at 11:35pm UTC)
Nice little collection here - it'll help me when i get back to learning coding {Smile}
Reverse Blade
Full Member
***

[Avatar]

Posts: 152
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pm
Re: List of IDs & Common 'Areas' (30th Dec 07 at 11:36pm UTC)
 
Not sure where to mention this, but here seems like a good enough place {Tongue Out}

Tip 1 - Viewing the pages source:
Adding /addspacing/1 to the end of any URL will output the source code with all of the line breaks and tabs. This is great for finding the IDs/class names/attributes of the elements you need to target.

Tip 2 - Storing Information in the Mini-Profile:
There is a hidden input field on the modify profile page called "hidden". There is no maximum length for this field meaning you can store as much data in there as you wish. The value entered in this field will then be outputted in a hidden span (with the ID "hidden_vars") at the bottom of the mini-profile.


Sweet Idea for #2, will come of use {Wink}

Reverse Arts, Comming soon!
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: List of IDs & Common 'Areas' (30th Dec 07 at 11:37pm UTC)
 
Not sure where to mention this, but here seems like a good enough place {Tongue Out}

Tip 1 - Viewing the pages source:
Adding /addspacing/1 to the end of any URL will output the source code with all of the line breaks and tabs. This is great for finding the IDs/class names/attributes of the elements you need to target.

Tip 2 - Storing Information in the Mini-Profile:
There is a hidden input field on the modify profile page called "hidden". There is no maximum length for this field meaning you can store as much data in there as you wish. The value entered in this field will then be outputted in a hidden span (with the ID "hidden_vars") at the bottom of the mini-profile.



I was going to ask about #2 {Tongue Out}

I was hoping you would have added it! {Cheesy}
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,386
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 28
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pm
Re: List of IDs & Common 'Areas' (30th Dec 07 at 11:56pm UTC)
I've added Ross' tips to the first post. {Smile}

Image

Image
Current Status: Private BETA testing.
Danny
Full Member
***

[Avatar]

Posts: 180
Status: Offline
Gender: Male
Location: Durham
Age: 29
Joined:  
Reputation: 1%  


pmmsnxfire
Re: List of IDs & Common 'Areas' (1st Jan 08 at 3:38am UTC)
you should add all the seperate id's inside the info center

Myspace | deviantART

"Suffer For Your Art"
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: List of IDs & Common 'Areas' (1st Jan 08 at 10:13am UTC)
I have! {Wink}
Danny
Full Member
***

[Avatar]

Posts: 180
Status: Offline
Gender: Male
Location: Durham
Age: 29
Joined:  
Reputation: 1%  


pmmsnxfire
Re: List of IDs & Common 'Areas' (1st Jan 08 at 4:55pm UTC)
good lad {Tongue Out}

Myspace | deviantART

"Suffer For Your Art"
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: List of IDs & Common 'Areas' (1st Jan 08 at 5:29pm UTC)
it's easier to see them as an image.
BizzD
Full Member
***

Posts: 306
Status: Offline
Gender: Male
Location: Washington
Joined:  
Reputation: 0%  


pm
Re: List of IDs & Common 'Areas' (1st Jan 08 at 5:50pm UTC)
Aye, these could be very helpful in the future. Thanks Wrighty but, i know exactly where you got the Global Variables.
 Printable View
Page: 1 2

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