Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 31 Dec 2008, 15:13
Hex_legend Hex_legend is offline
 
Join Date: May 2007
Admin CP

I am looking to learn how to code pages and options for the admin control panel.

So far, I have:

Hack Enabled - Yes | No
Which Layout - Layout 1 | Layout 2

Submit.

I can't seem to work out how to submit it (as there is no location to submit to) and how to actually get the hack to enable if enable is selected etc.

I have read the article here

But now I am still really stuck. Can anyone offer any guidance?
Reply With Quote
  #2  
Old 31 Dec 2008, 17:24
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Are you just talking about adding settings for your product? If so, you just go into debug mode and add them.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 31 Dec 2008, 18:05
Hex_legend Hex_legend is offline
 
Join Date: May 2007
I'm in Debug mode.
Added the product
Uploaded cpnav_xxxx.xml
Uploaded profiles_admin.php into admincp/

Just stuck on how to get the features working.


For instance - Hack enabled (yes) turns it on
Hack enabled (no) turns it off

Profile Layout 1 - Uses layout 1
Profile Layout 2 - Uses layout 2
Profile Layout Unchanged - Uses vBulletin Layout
Reply With Quote
  #4  
Old 31 Dec 2008, 18:27
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Well, now you need to use those variables to do what you want. They are settings like any other setting in vbulletin. So, you have $vbulletin->options['youroptions'] in your php and $vboptions['youroptions'] in your templates.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 31 Dec 2008, 18:30
Hex_legend Hex_legend is offline
 
Join Date: May 2007
All my php file has is:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

there is no template edits yet
Reply With Quote
  #6  
Old 31 Dec 2008, 18:34
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You also don't seem to be doing anything with the inputs from your form. You have a form with a submit button that does nothing.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 31 Dec 2008, 18:53
Hex_legend Hex_legend is offline
 
Join Date: May 2007
This is what I am asking.
How do I get it to do things?
Is there anymore articles out there that help with this kind of thing?
Same with plugins / hooks etc.
Reply With Quote
  #8  
Old 31 Dec 2008, 19:05
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Best way to learn is to find a modification that does something similar (in this case, does something in the admin cp) and then see what they did.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #9  
Old 01 Jan 2009, 05:54
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Coding in the Admin CP is very different to "normal" coding in vBulletin. It is very much like "beginner PHP", where you echo one thing, process the next, then echo it again.
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #10  
Old 01 Jan 2009, 14:33
Hex_legend Hex_legend is offline
 
Join Date: May 2007
Originally Posted by Dismounted View Post
Coding in the Admin CP is very different to "normal" coding in vBulletin. It is very much like "beginner PHP", where you echo one thing, process the next, then echo it again.
Which do you think would be the easiest mod to look at to see how to get the hack to enable etc.
Reply With Quote
  #11  
Old 02 Jan 2009, 05:14
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Why not use the default "vBulletin Options" functionality?
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #12  
Old 03 Jan 2009, 04:16
Hex_legend Hex_legend is offline
 
Join Date: May 2007
Originally Posted by Dismounted View Post
Why not use the default "vBulletin Options" functionality?
I'm trying to learn how to do them.
At the mo, I've always got someone else to do it for me but I need the above for a new mod that I'm working on
Reply With Quote
  #13  
Old 03 Jan 2009, 05:19
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
My advice would be to look at the Admin CP, find a page you would like to replicate. Then look at that PHP file to see how it's done.
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 09:27.

Layout Options | Width: Wide Color: