This topic was locked 19th Jun 10 at 6:08pm by Michael |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | 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!
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
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | 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: - 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
Posts: 180 Status: Offline Gender: Male Location: Durham Age: 33 Joined:
pmmsnxfire | Re: List of IDs & Common 'Areas' (30th Dec 07 at 2:24am UTC) | | 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
also you forgot the info center id
info_center | |
|
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | 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! | |
|
Danny Full Member
Posts: 180 Status: Offline Gender: Male Location: Durham Age: 33 Joined:
pmmsnxfire | Re: List of IDs & Common 'Areas' (30th Dec 07 at 2:36am UTC) | | no problem I love this place | |
|
|
Ross Administrator
Posts: 3,709 Status: Offline Gender: Male Age: 8 1⁄1 Joined:
Additional Groups: Support Team
pmwwwgtalkvForum | 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
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. | |
|
|
Graham Support Administrator
Posts: 1,642 Status: Offline Gender: Male Location: Sussex, UK Age: 39 Joined:
Additional Groups: Support Team
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 | |
|
Reverse Blade Full Member
Posts: 152 Status: Offline Gender: Male Joined:
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 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 | |
Reverse Arts, Comming soon! |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | 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 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
I was hoping you would have added it! | |
|
Marc vChat Developer
I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 32 Joined:
Additional Groups: Coding Team
pmwww | Re: List of IDs & Common 'Areas' (30th Dec 07 at 11:56pm UTC) | | I've added Ross' tips to the first post. | |
rroll.to— Shorten a link, rickroll your friends. |
|
Danny Full Member
Posts: 180 Status: Offline Gender: Male Location: Durham Age: 33 Joined:
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 | |
|
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: List of IDs & Common 'Areas' (1st Jan 08 at 10:13am UTC) | | I have! | |
|
Danny Full Member
Posts: 180 Status: Offline Gender: Male Location: Durham Age: 33 Joined:
pmmsnxfire | Re: List of IDs & Common 'Areas' (1st Jan 08 at 4:55pm UTC) | | good lad | |
|
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | 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:
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. | |
|