vForums Support > Programming & Coding :: Programming Discussion :: > List of IDs & Common 'Areas'

List of IDs & Common 'Areas' - Posted By Michael (wrighty) on 30th Dec 07 at 2:15am
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.

Re: List of IDs & Common 'Areas' - Posted By Michael (wrighty) on 30th Dec 07 at 2:17am
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]

Re: List of IDs & Common 'Areas' - Posted By Danny (schnooble) on 30th Dec 07 at 2:24am
{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

Re: List of IDs & Common 'Areas' - Posted By Michael (wrighty) on 30th Dec 07 at 2:27am
I wasn't on the main page when I checked the source... woops... I'll add it now ... thanks! {Smile}

Re: List of IDs & Common 'Areas' - Posted By Danny (schnooble) on 30th Dec 07 at 2:36am
no problem {Smile} I love this place {Tongue Out}

Re: List of IDs & Common 'Areas' - Posted By Ross (admin) on 30th Dec 07 at 11:33pm
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.

Re: List of IDs & Common 'Areas' - Posted By Graham (amusedtodeath) on 30th Dec 07 at 11:35pm
Nice little collection here - it'll help me when i get back to learning coding {Smile}

Re: List of IDs & Common 'Areas' - Posted By Reverse Blade (zohvi) on 30th Dec 07 at 11:36pm
 
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}

Re: List of IDs & Common 'Areas' - Posted By Michael (wrighty) on 30th Dec 07 at 11:37pm
 
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}

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

Re: List of IDs & Common 'Areas' - Posted By Danny (schnooble) on 1st Jan 08 at 3:38am
you should add all the seperate id's inside the info center

Re: List of IDs & Common 'Areas' - Posted By Michael (wrighty) on 1st Jan 08 at 10:13am
I have! {Wink}

Re: List of IDs & Common 'Areas' - Posted By Danny (schnooble) on 1st Jan 08 at 4:55pm
good lad {Tongue Out}

Re: List of IDs & Common 'Areas' - Posted By Michael (wrighty) on 1st Jan 08 at 5:29pm
it's easier to see them as an image.

Re: List of IDs & Common 'Areas' - Posted By BizzD (0wnzer) on 1st Jan 08 at 5:50pm
Aye, these could be very helpful in the future. Thanks Wrighty but, i know exactly where you got the Global Variables.

Re: List of IDs & Common 'Areas' - Posted By Michael (wrighty) on 1st Jan 08 at 8:16pm
But some people can't be bothered looking! {Wink}

Re: List of IDs & Common 'Areas' - Posted By Danny (schnooble) on 1st Jan 08 at 8:42pm
exactly, its good that youv put these up. is that all of them from the whole forum ?

Re: List of IDs & Common 'Areas' - Posted By Michael (wrighty) on 1st Jan 08 at 8:47pm
No there's still a couple more, which I'll add later tonight. I'm working on something atm.

Re: List of IDs & Common 'Areas' - Posted By gray929 (gray929) on 2nd Jan 08 at 4:52am
If you right click (on Windows) and select "view page source" its a more convienent way to view it. I love the page source. Its like the blueprint of a forum or the "backstage" You see all the things involved in making the forum. One forum claimed to have 20,000 in a month or something, which I knew was bogus, I view their page source, and sure enough there was a code to alter it.

Not a coder, but it seems to be making them happy, so thanks for adding this "feature"

Re: List of IDs & Common 'Areas' - Posted By Danny (schnooble) on 2nd Jan 08 at 4:55am
theres only that way and right clicking and clicking view source to view it {Confused}

and they both do the same.

Re: List of IDs & Common 'Areas' - Posted By Marc (cr0w) on 2nd Jan 08 at 5:12am
Actually, these are the ways to view the source:

Right Click -> View [Page] Source
View -> [Page] Source
CTRL + U [Firefox]

Not sure of the shortcut in Opera.

Re: List of IDs & Common 'Areas' - Posted By Danny (schnooble) on 2nd Jan 08 at 5:14am
its ctrl and f3, and they are just shortcuts to View -> Source

but what I mean is they all do the same thing

Re: List of IDs & Common 'Areas' - Posted By Jake (jake) on 17th Feb 08 at 6:26pm
OHHH I SEE NOW I CAN MAKE CODES ROTFL... Hah.

Re: List of IDs & Common 'Areas' - Posted By Aiken (ionfortuna) on 30th Dec 09 at 3:56am
Is there any instructions to using the hidden variable? have some codes I want to make but I need the hidden variable to make them

Re: List of IDs & Common 'Areas' - Posted By Michael (wrighty) on 30th Dec 09 at 12:14pm
The hidden variable can only be updated on the modify profile page. It can then be called anywhere using vf_hiddenvars {Smile}

Re: List of IDs & Common 'Areas' - Posted By Johnny (relaxopedia) on 19th Jun 10 at 5:51pm
 




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




Image is broken {Sad}


Re: List of IDs & Common 'Areas' - Posted By Michael (wrighty) on 19th Jun 10 at 6:08pm
This thread is outdated, I'll get round to a new one at some stage, a lot of things can be done through the Templating System now. If you have a specific question, best to start a new thread


- Locked