|
#1
|
||||
|
||||
|
Multiple TXT Boxes II Updated
Installation instructions for 'Text Box MOD' Version 1.0.2
(Updated for Pixelpost version 1.5 RC1) About this MOD: Title: Text Box MOD Description: Adds a new form field in new_image.php allowing you to enter the photographs location at time of upload. You can also edit and add locations to previous photographs via images_edit.php Version: 1.0.2 Installation Level: Moderate Installation Time: 20 minutes Author Username: dwilkinsjr Realname: David Wilkins Jr WWW: http://dwilkinsjr.com Files To Edit:
!!!!INSTALL AT YOUR OWN RISK!!!! FYI, Downloading this MOD from other sites could cause malicious code to enter into your pixelpost installation. Author Notes: This MOD is copyright 2005-2006 David Wilkins, All Rights Reserved Be sure to edit all templates you have loaded. Do not save any file until all procedures have been completed. Once all the below modifications have been completed and saved, open the included install.php which should have been coppied to your pixelpost directory and follow the instructions within. MOD History: 2006-02-24 - Version 1.0.0
Other Notes: Before attempting this MOD to your Pixelpost instalation, You should back up all files related to this MOD. This MOD was designed for Pixelpost 1.5 RC1 and may not function as stated on other Pixelpost versions. File Copy: Copy: install.php To: pixelpost_root/install.php Edits: These are manual instructions that cannot be performed automatically. You should follow these instructions carefully. Open: index.php Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Open: admin/images_edit.php Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
HTML Code:
<div class='jcaption'>$admin_lang_imgedit_title</div> <div class='content'> <input type='text' name='headline' value='$headline' style='width:300px;' /> </div> HTML Code:
<div class='jcaption'>$admin_lang_imgedit_location</div> <div class='content'> <input type='text' name='location' value='$location' style='width:272px;' /> </div> Open: admin/new_image.php Find: HTML Code:
<input type="text" name="headline" style="width:450px;" /><p /> HTML Code:
<?php echo $admin_lang_ni_image_location; ?> <input type="text" name="location" style="width:428px;" /><p /> PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Open: language/admin-lang-english.php Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Open: language/lang-english.php Find: PHP Code:
PHP Code:
All my "hacks" follow phpBB forum MOD guidelines. If you need more guidance in following this hack, please check out phpBB's article on How to install a MOD. Please note that this article should be used as a guideline as to what each "command" means. e.g.- If you don't know what the following means; Find, After Add, In-line Find, In-line After add, etc. The above referenced link will explain it to you. Also, I have created a online version coded in XML. It is much easier to follow but you will need an XML viewer to see the file. I testing it out using the latest versions of Apple Safari and Firefox on my MAC and all looked well. However, I was not able to test it on a Microsoft Windows machine using its supported browsers. 'Text Box MOD' Version 1.0.2 MODX.xml Download Installer File (Installer file is needed to make the necessary changes to your database)
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#2
|
||||
|
||||
|
this would be more than easy to turn into an addon.
__________________
Affordable Website Design in North Wales |
|
#3
|
|||
|
|||
|
Are there instructions somewhere on how to create an admin addon?
I would also like to make my language switch hack into an addon, but I don't know how to make the new language text boxes appear on the new image page, something I wish to do, just as I imagine David does as well. I don't want to have to switch over to a new page in the admin to enter the alternative language text. Looks great, btw David. Rob |
|
#4
|
|||
|
|||
|
Quote:
there is really documentation: doc\creating_admin_addons living in a world of blinds ... who by some strange fate are photographers ;=) |
|
#5
|
||||
|
||||
|
Quote:
I "hack" code. When it comes to real programming, I don't know a thing and I'm not ashamed to admit it
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#6
|
|||
|
|||
|
Thanks for the tip, Connie.
But really, this: Quote:
Quote:
|
|
#7
|
|||
|
|||
|
Firstly, many thanks for doing this David.
I have tried the install and have had more success than last time. However, I have received the following error in the admin screen: Parse error: syntax error, unexpected T_VARIABLE in /home/XXXX/public_html/admin/options.php on line 133 Any ideas on what has occurred? |
|
#8
|
||||
|
||||
|
Im not sure why options.php is having an error b/c we did not edit it!
I have had many problems copying code from this forum! It seems to copy fine and paste fine, but hidden in all the spaces are weird characters that you don't see. so either enter all the code manually or go back and backspace all the spaces in the code and manually input the space again. did this make sense? anyone else know what I'm talking about?
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#9
|
||||
|
||||
|
the code, html and php tags shouldnt mess this up, its part of the reasons we switched forum scripts...humm
__________________
i should say more clever stuff |
|
#10
|
||||
|
||||
|
Quote:
So you know what I have been encountering!?! What a pain in the @ss! Myabe its my setup? Latest version of OSX 10.4.6, using latest version of Safari, pasting to the latest version of BBEdit. Who knows, but BBEdit does not like when I copy and paste code from this forum!
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
| Post Reply |
| Thread Tools | |
|
|