Leech
Full Member
.know your limits.
Posts: 554
inherit
54705
0
Jul 9, 2012 16:32:44 GMT -8
Leech
.know your limits.
554
August 2005
stephen
|
Post by Leech on Aug 13, 2005 11:52:08 GMT -8
Any methods you use to create these types of codes?
Well to put links in the admin panel I just grab the ul tag, I loop it, find the one I want using innerHTML and add the link using either innerHTML or DOM.
For the rest, I usually link it to a page where I pretty much do the rest of the coding from there.
|
|
inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Aug 13, 2005 13:37:21 GMT -8
Well I've only half done a admin panel so far and for that I looped for the correct Div in which I could add the link to the editing page; because of the pages like headersfooters3, newsfader2, fixaboard2 etc etc I didn't bother checking the actual location. And from there I used plain old innerHTML to hide the Headers/Footers table and then write out the new information of stuff they can edit.
|
|
inherit
Banned
31900
0
Dec 18, 2011 9:00:11 GMT -8
The Lizard King
13,818
October 2004
aaron310
|
Post by The Lizard King on Aug 15, 2005 12:05:02 GMT -8
How do you add links to your admin panel...?
|
|
inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Aug 15, 2005 12:19:00 GMT -8
How do you add links to your admin panel...? It depends where you want to add them. For the one I'm making, I used: var div=document.getElementsByTagName('div'); for(d=0;d<div.length;d++){ if(div[d].innerHTML.match(/Headers and Footers/i) && div[d].parentNode.innerHTML.match(/Customize Your Forum/)) { div[d].innerHTML+='<br/><a href="Link">TEXT to Show</a>'; }}It appears in the same group as the "Headers/Footers"
|
|
inherit
Banned
31900
0
Dec 18, 2011 9:00:11 GMT -8
The Lizard King
13,818
October 2004
aaron310
|
Post by The Lizard King on Aug 15, 2005 13:05:18 GMT -8
How do you add links to your admin panel...? It depends where you want to add them. For the one I'm making, I used: var div=document.getElementsByTagName('div'); for(d=0;d<div.length;d++){ if(div[d].innerHTML.match(/Headers and Footers/i) && div[d].parentNode.innerHTML.match(/Customize Your Forum/)) { div[d].innerHTML+='<br/><a href="Link">TEXT to Show</a>'; }}It appears in the same group as the "Headers/Footers" you don't need the <script> tags? and say i wanted a whole new category for a chatroom....then what...?
|
|
inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Aug 15, 2005 13:28:42 GMT -8
That bit came from the middle of the code so I didn't bother with the script tags.
|
|
inherit
Proboards Legend
212
0
May 11, 2006 12:32:55 GMT -8
california
21,035
December 1999
california
|
Post by california on Aug 16, 2005 3:38:36 GMT -8
You'd need to create a new page, basically, or just use the admin panel page as a template and remove everything from the main table and add in your own HTML. It really doesn't sound to me like either of you should be worried about admin panel hacks at this point. Any n00b can add links to page, creating the form that modifies the headers/footers coding is something else entirely.
|
|
inherit
5116
0
Jun 1, 2012 11:13:33 GMT -8
Ben Woodruff
23,954
August 2002
bwoodruff
|
Post by Ben Woodruff on Aug 18, 2005 19:27:16 GMT -8
Forms are not difficult to create, so idk wtf you're talking about.
But then again, Javascript and HTML are not very difficult languages to learn.
|
|
inherit
Proboards Legend
212
0
May 11, 2006 12:32:55 GMT -8
california
21,035
December 1999
california
|
Post by california on Aug 21, 2005 22:00:01 GMT -8
Perhaps I should have been more clear then, creating the form isn't difficult, but the form needs to grab the content of the headers/footers textarea and replace the value based on the information that is inputted into the form, as soon as the form submits. That is the advanced part.
|
|