Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
ACP Image Pack Uploader v1.0; The easy way to add images to themes
Topic Started: Oct 13 2008, 06:40 PM (5,095 Views)
Viral.
Member Avatar
Member
[ *  *  *  *  *  * ]
What does this code do? This allows you to, as an Admin, add a whole image pack to any theme you have installed. No more copying and pasting for each image now!
Note: This doesn't work in Google Chrome, or IE 7 I believe, but it does work fine in Firefox 3.0.3. This is not a problem as you can discard the code once you've used it.
Another Note: This isn't very modification friendly. If you have a lot of modifications, this may not work.

Installation: Add the following code below the board:

Code: HTML
 
<script type="text/JavaScript" src="http://209.85.62.24/162/122/0/f182885/acpimagepack.js"></script>


How to make it work: For this code to work, you obviously need an image pack. To create one, you must have the above code installed. Then follow the stages below:

Step 1
Step 2 - This will only show if you are not logged into the ACP, otherwise it moves straight to step 3.
Step 3 - Choose the skin you want to add the images to.
Step 4 - Click "Create Backup"
Step 5 - Copy the contents in the textarea, and that is the pack.

How to install a pack: Same steps as before, but instead of creating a backup, you paste the pack in the content box, and click Upload Image Pack.

Here is a sample image pack: (Zeta Original)

Code:
 
[Navigation Divider][ →]
[Navigation Marker][<img src='http://209.85.62.24/static/1/nav.png' alt='Navigation' />]
[Goto Top][<img src='http://209.85.62.24/static/1/p_top.png' alt='Goto Top' />]
[Forum Rules][<img src='http://209.85.62.24/static/1/rules.png' alt='Rules' />]
[Report Post][<img src='http://209.85.62.24/static/1/p_report.png' alt='Report Post' />]
[Default Avatar][<img src='http://209.85.62.24/static/1/default_av.png' alt='No Avatar' class='member' />]
[Pip Rank Image][<img src='http://209.85.62.24/static/1/pip_m.png' alt=' * ' />]
[Starting Pip Rank Image][<img src='http://209.85.62.24/static/1/pip_l.png' alt='[' />]
[Ending Pip Rank Image][<img src='http://209.85.62.24/static/1/pip_r.png' alt=']' />]
[Avatar Gallery Folder][<img src='http://209.85.62.24/static/1/gallery.png' alt='Folder' />]
[User Preferences Badge][<img src='http://209.85.62.24/static/1/ucp_settings.png' alt='User Prefs' />]
[Profile Preferences Badge][<img src='http://209.85.62.24/static/1/ucp_profile.png' alt='Profile Prefs' />]
[Upload Form Badge][<img src='http://209.85.62.24/static/1/doc.png' alt='[]' />]
[PM Manager Badge][<img src='http://209.85.62.24/static/1/pm_settings.png' alt='PM Manage' />]
[PM Controls Badge][<img src='http://209.85.62.24/static/1/pm_center.png' alt='PM Controls' />]
[Forward PM][<img src='http://209.85.62.24/static/1/p_forward.png' alt='Forward' />]
[Admin CP Menu Icon][<img src='http://209.85.62.24/static/1/m_acp.png' alt='ACP' />]
[Report CP Menu Icon][<img src='http://209.85.62.24/static/1/m_rcp.png' alt='RCP' />]
[PM Menu Icon][<img src='http://209.85.62.24/static/1/pm.png' alt='PM' />]
[Preferences Menu Icon][<img src='http://209.85.62.24/static/1/m_ucp.png' alt='Prefs' />]
[Events Icon][<img src='http://209.85.62.24/static/1/s_calendar.png' alt='Events' />]
[Stats Icon][<img src='http://209.85.62.24/static/1/s_stats.png' alt='Stats' />]
[Active Users Icon][<img src='http://209.85.62.24/static/1/s_users.png' alt='Active' />]
[Expand][<img src='http://209.85.62.24/static/1/expand.png' alt='+' />]
[Collapse][<img src='http://209.85.62.24/static/1/collapse.png' alt='-' />]
[Attachment Icon][<img src='http://209.85.62.24/static/1/attach.png' alt='Attachments:' />]
[Board Clock Icon][<img src='http://209.85.62.24/static/1/time.png' alt='Time:' />]
[Forum Marker][<img src='http://209.85.62.24/static/1/f_new.png' alt='Regular Forum' />]
[Forum Marker (No New Posts)][<img src='http://209.85.62.24/static/1/f_old.png' alt='Regular Forum (No New Posts)' />]
[Password Protected Forum][<img src='http://209.85.62.24/static/1/f_pass.png' alt='Password Protected Forum' />]
[Read-only Forum][<img src='http://209.85.62.24/static/1/f_readonly.png' alt='Read-only Forum' />]
[Redirect Forum][<img src='http://209.85.62.24/static/1/f_redirect.png' alt='Redirect Forum' />]
[Trash Can][<img src='http://209.85.62.24/static/1/trash.png' alt='Trash' />]
[New Topic Button][<img src='http://209.85.62.24/static/1/t_newtopic.png' alt='Make New Topic' />]
[Add Reply Button][<img src='http://209.85.62.24/static/1/t_addreply.png' alt='Add Reply' />]
[New Poll Button][<img src='http://209.85.62.24/static/1/t_newpoll.png' alt='Make New Poll' />]
[Locked Post Button][<img src='http://209.85.62.24/static/1/t_closed.png' alt='Locked Topic' />]
[Poll Only Post Button][<img src='http://209.85.62.24/static/1/t_pollonly.png' alt='Poll Only' />]
[Add Repeating Calendar Event][<img src='http://209.85.62.24/static/1/t_addrepeat.png' alt='Add Repeating Event' />]
[Add Calendar Event][<img src='http://209.85.62.24/static/1/t_addevent.png' alt='Add Event' />]
[Plain Folder][<img src='http://209.85.62.24/static/1/t_newpost.png' alt='Regular' />]
[Plain Folder (No new posts)][<img src='http://209.85.62.24/static/1/t_nonewpost.png' alt='Regular (No new posts)' />]
[Hot Topic Folder][<img src='http://209.85.62.24/static/1/t_hotnewpost.png' alt='Hot Topic' />]
[Hot Topic Folder (No new posts)][<img src='http://209.85.62.24/static/1/t_hotnonew.png' alt='Hot Topic (No new posts)' />]
[Poll Folder][<img src='http://209.85.62.24/static/1/t_pollnewpost.png' alt='Poll' />]
[Poll Folder (No new posts)][<img src='http://209.85.62.24/static/1/t_pollnonew.png' alt='Poll (No new posts)' />]
[Locked Folder][<img src='http://209.85.62.24/static/1/t_locked.png' alt='Locked' />]
[Moved Folder][<img src='http://209.85.62.24/static/1/t_moved.png' alt='Moved' />]
[Replied Marker][<img src='http://209.85.62.24/static/1/replied_mark.png' alt='*' />]
[Delete Post][<img src='http://209.85.62.24/static/1/p_delete.png' alt='Delete Post' />]
[Edit Post][<img src='http://209.85.62.24/static/1/p_edit.png' alt='Edit Post' />]
[Quote Post][<img src='http://209.85.62.24/static/1/p_quote.png' alt='Quote Post' />]
[Online Member PM Icon][<img src='http://209.85.62.24/static/1/p_onpm.png' alt='PM Online Member' />]
[Online Member (No PM)][<img src='http://209.85.62.24/static/1/p_on.png' alt='Online' />]
[Offline Member PM Icon][<img src='http://209.85.62.24/static/1/p_offpm.png' alt='PM Offline Member' />]
[Offline Member (No PM)][<img src='http://209.85.62.24/static/1/p_off.png' alt='Offline' />]
[Profile Icon][<img src='http://209.85.62.24/static/1/p_profile.png' alt='Profile' />]
[No warnings ][<img src='http://209.85.62.24/static/1/w_empty.png' alt='-' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' />]
[Warn (Level 1)][<img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' />]
[Warn (Level 2)][<img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' />]
[Warn (Level 3)][<img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' />]
[Warn (Level 4)][<img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_empty.png' alt='-' />]
[Full warn level][<img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_full.png' alt='#' /> <img src='http://209.85.62.24/static/1/w_full.png' alt='#' />]
[Increase Warning][<img src='http://209.85.62.24/static/1/w_up.png' alt='Increase' />]
[Decrease Warning][<img src='http://209.85.62.24/static/1/w_down.png' alt='Reduce' />]
[Warning Note][<img src='http://209.85.62.24/static/1/w_note.png' alt='Warning Note' />]
[Warn Note Marker][<img src='http://209.85.62.24/static/1/n_note.png' alt='Note' />]
[Warn Level Up Marker][<img src='http://209.85.62.24/static/1/n_up.png' alt='Up' />]
[ Warn Level Down Marker][<img src='http://209.85.62.24/static/1/n_down.png' alt='Down' />]


And that's it, any comments or questions please ask.
Edited by Viral., Oct 14 2008, 03:29 PM.
Offline Profile Quote Post Goto Top
 
Fission
Member Avatar
SRS BSNS
[ *  *  *  *  * ]
No. Freaking. Way. You are by far the most talented coder (on Zetaboards) that I have ever seen. *goes to add code to test board*

Edit: It doesn't work on my board (which happens to have a ton of codes), but I'm going to test it on another.

Nope, doesn't work on that board either. The ACP dropdown link doesn't appear.
Edited by Fission, Oct 13 2008, 06:48 PM.
Offline Profile Quote Post Goto Top
 
Viral.
Member Avatar
Member
[ *  *  *  *  *  * ]
The best thing to do is remove any modifications while using it, I had to make it using a process which I knew would conflict, but it was the only way I believed was possible. Still, you can remove the modifications, spend 10 seconds adding the images, then add it back ^_^ .

Link?
Edited by Viral., Oct 13 2008, 06:48 PM.
Offline Profile Quote Post Goto Top
 
Fission
Member Avatar
SRS BSNS
[ *  *  *  *  * ]
http://s1.zetaboards.com/FissionTesting/index/

I haven't tried removing all the modifications (most of which are my own) and beware of floatboxes.
Offline Profile Quote Post Goto Top
 
Viral.
Member Avatar
Member
[ *  *  *  *  *  * ]
This has no mods instaled:

http://s1.zetaboards.com/test_image/index/
User - Fission
Pass - testing
It is an Admin account.

Just tested it and it works fine.
Edited by Viral., Oct 13 2008, 06:54 PM.
Offline Profile Quote Post Goto Top
 
Fission
Member Avatar
SRS BSNS
[ *  *  *  *  * ]
lol! Idiot me put it in Javascripts and didn't read the post all the way. Works perfectly now.
Offline Profile Quote Post Goto Top
 
Viral.
Member Avatar
Member
[ *  *  *  *  *  * ]
Sounds good :) . I advise people to add the packs when creating skins with button sets, and if anyone does have any skins installed, with button sets, please be nice to my pet code and create a pack :ph34r:
Offline Profile Quote Post Goto Top
 
Fission
Member Avatar
SRS BSNS
[ *  *  *  *  * ]
Now that I've tested it, amazing work. Really, such an awesome thing that I'm surprised that something similar wasn't added to Zetaboards. Would have made skinning easier from the start.
Offline Profile Quote Post Goto Top
 
Viral.
Member Avatar
Member
[ *  *  *  *  *  * ]
Thanks Fission :) . As far as I know, Brandon is making some super awesome skinning modification which would include this ability, but in a much neater fashion, so this is just a placeholder.
Offline Profile Quote Post Goto Top
 
SkyDiver
Member
[ *  * ]
Holy Stanley the cow! GREAT work. I love it.
Offline Profile Quote Post Goto Top
 
Viral.
Member Avatar
Member
[ *  *  *  *  *  * ]
Thanks SkyDiver ^_^ .
Offline Profile Quote Post Goto Top
 
.Scott
Member Avatar
aka slayer766
[ *  *  *  *  *  *  * ]
Very nice Viral, I'm really impressed with the work you've been pumping out man. Love the "Create Backup" idea. :)

By the way I have one question which I've been wanting to know for awhile...I've seen you used this in your code:

Code:
 
//<![CDATA[

//]]>


What does that do?
Offline Profile Quote Post Goto Top
 
Dakota.
Member Avatar
Member
[ * ]
This is amazing.

Great job :)
Offline Profile Quote Post Goto Top
 
Viral.
Member Avatar
Member
[ *  *  *  *  *  * ]
Thanks Slayer and Dakota :) .

Slayer, it's for parsing errors in Internet Explorer, I see no use but apparently it should be there.
Edited by Viral., Aug 10 2009, 06:05 AM.
Offline Profile Quote Post Goto Top
 
Mullet Man
Member Avatar
Fear the Mullet!
[ *  *  *  *  * ]
Best ZB code ever!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Code & Modification Database · Next Topic »
Add Reply