Albus Dumbledore
Jul 11 2006, 03:48 AM
| | Ok, well what i am looking for is an "announcement box" like the one on the first page of Invision Powerboards Administration Panel... basicly all you do it type somthing into it, and hit submit, and it gets saved im guessing into a writable document somewhere in the admin directory, and what i am looking for is somthing exactly like that....
on my website, the webmaster and I both keep a backup of all of the files and every so often someone doesn't make a backup after the other has edited somthing, and so they may upload old content, so what i want is a box like the one on Invision Powerboard admin panel so we can put in there what we edited so the other one can update their backup just on the files that we changed...
ill be looking around the net, but i thought i might get somthing a little faster here 
thanks in advaced |
Reply
electriic ink
Jul 11 2006, 03:31 PM
I can write that for you now  Hopefully, it should all work okay: CODE <?php $file = '';
if (isset($_POST['submit'])) {
$content = $_POST['content']; $fopen = fopen($file, 'w'); $fwrite = fwrite($fopen, $content); if ($fwrite == FALSE) {
$error_msg .= ' <b> Error writing file. Check that both the file and its directory permissions are set to <i>0777</i> or <i>777</i> </b> ';
} else {
$done .= ' Announcement saved ';
}
fclose($fopen);
}
if ($_REQUEST['do'] == 'delete') {
$fopen_b = fopen ($file, 'w'); $fwrite_b = fwrite ($fopen_b, '');
if ($fwrite_b == FALSE) {
$error_msg .= ' <b> Error clearing file. Check that both the file and its directory permissions are set to <i>0777</i> or <i>777</i> </b> ';
} else {
$done .= ' Announcements cleared. ';
}
fclose($fopen_b);
} ?> <form method="post" action="<?php=$_SERVER['PHP_SELF'];?>"> <span style="font-size: 11pt"> Announcements: </span> <textarea style="border: 1px" name="content"> <?php=file_get_contents($file); ?> </textarea> <input type="submit" value="Change Announcements" name="submit"> <input type="button" onClick="window.location='<?php=$_SERVER['PHP_SELF'];?>?do=delete';"> </form>
<p> <?php
if (isset($error_msg)) {
echo ' <span style="color: red"> ERROR: </span> ' . $error_msg . ' <br>';
}
if (isset($done)) {
echo ' <span style="color: green"> ' . $done . ' </span>';
}
?>
There are probably some errors there somewhere. If you find them, tell me and I'll fix them. You need to: - Create a small text file and change its permissions to 0777
- Copy the absolute path of the file (ie. /home/you/public_html/dir/dir/file.txt) between the two apostrophes where it says $file = '';
- If the script does not work after doing those to things, you should set the directory's permissions to 0777 although that should not be neccessary.
Reply
Albus Dumbledore
Jul 11 2006, 09:43 PM
wow thank you now i have a problem... i figured out where i screwed up and amended it, but now, http://hogwartsmagic.net/updates/updates2.phpi can type in the "Invisible box" that is there and hit change announcement, but when i leave the page and come back, i cannot see what i typed in....
Reply
electriic ink
Jul 14 2006, 03:25 PM
Sorry for the late reply. I've just been busy and I've downloaded supercool VB 2005 Express Edition and tweaking with that. I've created a web browser  Well I've changed the code a bit. See if this works: CODE <?php $file = ' ';
if (isset($_POST['submit'])) {
$content = $_POST['content'];
$fopen = fopen($file, 'w'); $fwrite = fwrite($fopen, $content);
if ($fwrite == FALSE) {
$error_msg .= ' <b> Error writing file. Check that both the file and its directory permissions are set to <i>0777</i> or <i>777</i> </b> ';
} else {
$done .= ' Announcement saved ';
}
fclose($fopen);
}
if ($_REQUEST['do'] == 'delete') {
$fopen_b = fopen ($file, 'w'); $fwrite_b = fwrite ($fopen_b, ' ');
if ($fwrite_b == FALSE) {
$error_msg .= ' <b> Error clearing file. Check that both the file and its directory permissions are set to <i>0777</i> or <i>777</i> </b> ';
} else {
$done .= ' Announcements cleared. ';
}
fclose($fopen_b);
}
?> <form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> <span style="font-size: 11pt"> Announcements: </span> <br> <textarea style="border-width: 1px; background-color: blue; color: white" name="content"> <?php echo file_get_contents($file); ?> </textarea> <br> <input type="submit" value="Change Announcements" name="submit"> <input type="button" onClick="window.location='<?php echo $_SERVER['PHP_SELF'];?>?do=delete';" value="Clear All Announcements"> </form>
<p> <?php
if (isset($error_msg)) {
echo ' <span style="color: red"> ERROR: </span> ' . $error_msg . ' <br>';
}
if (isset($done)) {
echo ' <span style="color: green"> ' . $done . ' </span>';
}
?> If that doesn't then I can't see what it is. It works perfectly when I test it out here: http://games.trap17.com/announcement_box/box.php
Reply
Albus Dumbledore
Aug 3 2006, 05:03 PM
sorry i havent replyed, ive been on vacation for the last three weeks, so i just now uploaded it up to my site and that one works fine  thanks a bunch!!!
Reply
Recent Queries:--
news and announcement box ipb - 180.87 hr back. (1)
-
ipb administrator announcement - 534.02 hr back. (1)
-
announcement box ipb - 413.36 hr back. (3)
-
announcement box in ipb - 521.64 hr back. (2)
-
announcement box for ipb - 633.78 hr back. (1)
Similar Topics
Keywords : announcement, box, ipb, admin, panel
- How To Open Control Panel In Just My Regular Browser
(2)
Page Load Error When Trying To Get Into Control Panel
I just changed domain (2) I had put a domain name that I didn't have when I registered my website. I got the 15 credits
and changed it to a subdomain. Now I can't log into my control panel. At first it was telling me
I had the wrong password which I'm sure I don't. Now I just get a timed out error. Also my
confirmation email for changing my domain was kinda blank. QUOTE Hi, This mail is to notify
you that your domain has been changed to : Regards, trap17.com So yeah... any help? EDIT:
Also I don't see my request to change domain the proper forum I had attempte....
Admin Account?
Hpw? (2) I need a tutorial which is mainly about creating the administration page for my we-site. Those are
my requirements so far: 1. It has to have a default data to access. 2. Once you entered the admin
section, other administrators can be added. 3. The administrators are classified at many different
levels, priveleges. 4. More functions/requirements you can add if you consider them as useful
Thanks.....
Admin Password Xp
no admin pw for xp (5) Need some help or advice here please. Need to reinstall windows XP but have no Admin Password. I
bought this PC used from a office that was getting rid of a few computers and such. Thing was, they
did not give me the PW for the admin. I have called them to see if I could get it, but the I.T. guy
is no longer with them, and they knew nothing about it. well now I must reinstall XP due to ad ware
that has even trashed my anti virus programs and CC Cleaner. I had thought of maybe running down a
password cracker but I used one in the past but did more damage than good. A....
Kevin Paquet - Computinghost Hostee
The Young Admin from Davao (3) Hello everyone, I'm Kevin Georg Paquet , a 16 year old Filipino Teenager from Davao City,
Philippines. I've been a webmaster since the 16th May 2007, and now run more than 10 websites.
LOL, most of them proudly hosted by computinghost.com, since somewhere in November. Ahmm, I'm a
4th Year High School Student, independent web developer (I'm paying my own bills, with no help
from my parents or so). I love playing online games, administrating forums (that's where I
started) and blogging (my way of earning money). I also love playing soccer and write....
Php Allow Url Include Question!
Need an admin to clarify something... (10) Hi, i've just signed up to your hosting over the last few days, and its been very fustrating
that you don't allow the directive: allow_url_include. Do you think that there could be anyway
that you could turn it on? i've installed a login and hit counter script and i had to edit half
of it. I also want to 'include' my page list on all of my pages, to make it easier to
update them, but the only way i would be able to do this is upload a page list to every directory,
which defeates the purpose. And i can't use SSI because i can't use PHP with ....
My Cpanel
c panel (11) ok im hosted but when i tried to go to my c panel all it did was say login failed am i doing
something wrong and if so can someone tell me or can an admin pm my user and pass for the c panel
thated help ill be cheaking this post please help and thank you.....
Transferring From Old Server To New Server "database And Forum" [resolved]
I'm in need of aid from admin in transferring phpbb database and f (5) Ok, I have a question and would preferable ask if its possible as well. Currently I have a phpbb
forum (version 2) placed among another server. Thing is I would like to import it among my trap17
account, as this is the place I intend to stay as its so great. Problem is I have about 40+ users
already registered among that forum and have several mods implemented within it as example Cash Mod,
Jobs Mod, Rank Banners etc and fiblack template. I have tried using a few guides in trying to copy
my database over here but to no avail it is rendered useless. So in short is there a....
Admin Page
Tutorial Needed? (4) I need to look at a nice tutorial how do you create an admin access page with many functions as many
as possible.....
How Long Does It Take...
...for an admin to look through a request? (2) I've checked a few other requests that were approved and they usually took about 3 or 4 hours.
I'd just like to know when the admins usually come on, how long it usually takes, and if
they're on leave or something. It's been about 18 hours since I posted my request. (I saw
jlhaslip's private message, but that was yesterday at 10:10 PM. I guess I'll just have to
wait and see...)....
A Adsl Router With A Control Panel And A Log
Help me please! (4) Ok so my mum is wanting me to build her a server, fine thats easy. Howver its an ADSL router in
effect with a control panel and a type of logging system! I've seen it done but i want to
know how so i can build this thing! So it needs to have/do the following First it needs to
distribute the adsl over a network (4 different computers) wireless AND WIRED! It has to have a
logging system so th user can see whos been on the net, when and what they were looking at It needs
a type of tracking system, i guess, to remember analyze and monitor programs going thro....
Vista:backup Utility And Control Panel
How to use backup utility and control panel more efficiently in Vista (0) I have windows Vista and I just want to share some of my knowledge with the trap17 members and other
Vista users. Here I would be giving you some tips on setting up a backup for your computer and some
tips and tricks on how to use the control panel in windows vista more efficiently. SETTING UP A
BACKUP Its really simple.Just follow the given instructions: 1)Under the start menu(in the
"Start Search" box),type "ba r" and you should see Backup and Restore appear under programs.
2)Click on the entry to launch the program. 3)Now inside the Backuo and Restore Centre....
Changing Domain Name Without Losing High Traffic To My Site
Need Answer From Admin (13) I have a doubt to do what i want, so i am going to the point, m ysituation is that i have a trap17
free subdomain where i have my free flash clocks website, and its link is
http://free-flash-clocks.trap17.com . Recently i bought a domain name, its link is
www.freeflashclocks.com , and what i want to and i am not certain if i can is that i want to,
redirect all the visits of my free subdmain to my new domain, just for 1 or 2 months, if that is
possible, i apreciate it if it is not but you allow it because i have thousands of visitors a day
(~7000/day) and it is growing....
Birthday Boy Opaque
Happy Birthday Trap17 Admin OpaQue (30) Hello, Another year older yes boys and girls It is OpaQue's birthday today but wait it
isn't his birthday yet.. It is in another 4 hours /tongue.gif" style="vertical-align:middle"
emoid=":P" border="0" alt="tongue.gif" /> i.e 1st of December is OpaQue's birthday. I am happy
to wish him a very happy birthday for he has worked his *bottom* off for this forum and has never
taken a time out.. I mean whenever I come online, he is online and the weird bit is that we have
different time zones so that is a bit freaky to see him in the middle of the night working o....
Error During Upgrade [resolved]
Xisto tells me to contact Admin (3) While trying to upgrade my hosting account (I got an email I was approved), I encountered the
following: When I clicked on the link in my confirmation email, I was taken to the Xisto menu page,
where I selected "Upgrade your hosting account". I was then asked to enter my forum username and
password, and was then taken to the upgrade page, but almost immediately got the message: "There
were problems creating your account! Please Contact Administrator." Then, underneath, it said:
"Debug Info", followed by two lines with nothing in between them, and below the two lines ....
Control Panel Will Not Let Me In [resolved]
Login problems (4) I am frantically trying to get into my Trap 17 control panel. I tried to get into the login screen
by typing: http://www.trap17.com:2082 and indeed, the login screen comes up. I then type in my
username (mrdee, or should it be my trap 17 domain)? I then also enter my correct password, what
hapeens then is that the login screen keeps popping up again. I have no idea what I am doing wrong.
Can anyone help me please? Thanks in advance. ....
Questions For Admin Or Tech Team Or Anyone Who Can Help
A few questions? (4) Just a few questions guys. 1. When/if i get my hosting, many sites dont last long. Can i trust this
service 100%? 2. I know it says no adds. Will it stay like this? 3. Can i upgrade my account at
any time? Please do not take these questions in offence it's just i want to be really carefull
with freehosts. As some people ( freehosts) are only up for like 6 months then they go. And leave
people without a site /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif"
/> Also if i made this in the wrong section sorry, Just i thought general would....
Important - Major Hsphere Control Panel Upgrade Starting Friday, October 5th, 2007 At 12:00 Am Edt (gmt-4)
(0) QUOTE Dear Customer, In an effort to bring more services and features to our clients we will be
performing a major control panel upgrade 12:00 AM EDT (GMT-4) on Friday, October 5th, 2007. We will
be performing this maintenance in order to offer the users more control of the services and
selection of features. Here the Control panel will be upgraded to Hsphere 3.0 Patch6. New
features that will be made available are: 1. Possibility to tag an email as virus according to
the attachment's MIME Type: 2. Better mailbox list navigation in user control pane....
Admin Please Fix Fantastico
Its been off for a month (13) Admin i request to you to please fix the fantastico problem as i cannot access it and i need a
script from there which is out of date and i have to install that script. Thanks.....
Addon Domains. Having Problems?
My addon domains are not showing in the control panel. (2) Hi. I just want to find this out before I submit a support request. It may probably be a global
problem /rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0"
alt="rolleyes.gif" /> I have an addon domain in my account which is showing fine in my addon
domains section, however, the emails and subdomains associated with this domain just disappeared. I
can't add subdomains to the this addon domain either /sad.gif" style="vertical-align:middle"
emoid=":(" border="0" alt="sad.gif" /> Is this just my account or it's global?....
Happy Birthday Buffalohelp. Let's All Wish Buffalohelp A Wonderful Birthday.
Let's wish our great admin a nice birthday today. (28) I was checking things out here in here as usual. And I see in today's birthdays. It's
BuffaloHELP 's birthday today. Happy birthday BuffaloHELP I hope you have a wonderful
birthday today and that you eat lot's of cake and thanks for being such a wonderful Admin
in here. You help out alot of people in here when you are able to. And again Happy Birthday big guy
and many more yet to come. Happy Birthday to you, Happy Birthday to you Happy Birthday dear
BuffaloHELP, Happy Birthday to you and many more. HAPPY BIRTHDAY BuffaloHELP ....
Free .info Domains
Get free .info domain instantly | Your own Control Panel | No Advt. | (22) Hi all, I am going to offer .info domains for free of cost with the following T&C.
LIMITED TIME OFFER T&C 1. Only one domain /user 2. This free offer applicable for
one year only (You can continue next year by paying $8.9/year or u can transer it some other
Registrar from your control panel 3. The Index page of your site should have backlink to our site
(Sigle line text link like "Our Featured Linkpartner http://www.Pcprice.info" | Must be placed at
bottom of the index page | ) FEATURES 1. Your own control panel t....
How To Make A Counter Strike 1.6 Dedicated Server
CS 1.6 Dedicated Server with Admin Mod and Stats Me (17) How to make a Counter Strike 1.6 Dedicated server What do we need ? HLDSupdatetool ->
http://www.steampowered.com/download/hldsupdatetool.exe NoSteamPatcher ->
http://www.gameszone.ro/downloads/no-won-steam.zip AdminMod + MetaMod ->
http://ovh.dl.sourceforge.net/source....50.60-win.zip StatsMe ->
http://ovh.dl.sourceforge.net/source....3-cstrike.zip Step 1 Create a dir were the server will be
installed example C:\HLDS Open hldsupdatetool.exe, click next , then I agree we will get to the
destination folder, here we press browse and select Local Disk C ,....
Nettek 2.2 Script Admin:password
NetTek 2.2 Script Admin:Password (0) Does anyone know the nettek 2.2 Admin and Password when you made the clan scripts?....
Computer Admin Login With Lost Password?
Hack my own comp. (15) Im trying to fix some things on my acount but, i hava to be able to log into my Admin. acount. my
dad had the comp. before me and he forget the password to get into the acount. how do i hack into my
own computer to get the password, or is there any way of defragging my comp. without being a admin?....
Windows Admin Password Hack
(3) Windows Admin Password Hack: Forgot your NT admin password? Reinstall? Oh no... But not any more...
This is a utility to (re)set the password of any user that has a valid (local) account on your NT
system. You do not need to know the old password to set a new one. It works offline, that is, you
have to shutdown your computer and boot off a floppydisk or CD. The bootdisk includes stuff to
access NTFS and FAT/FAT32 partitions and scripts to glue the whole thing together. Will detect and
offer to unlock locked or disabled out user accounts! It is also an almost fully ....
Hlsw (gaming) Tutorial
Used if you have admin on servers (2) 1. Download HLSW -www.hlsw.net 2. Install the LATEST most recent update possible or there would be
no point of you trying to use HLSW with the old version. 3. Once installed there should be a
desktop icon if you checked the box during the setup. Now click on the icon and open HLSW. 4. At
top you should see "Server List" on the side of it, it should be set at "Custom Server List" 5.
Right under is IP/Port, type in the server ip and port (i.e 38.113.32.5:27015) 6. Below the top
part if a big white box. Inside you should see the server and its information as if your on....
How To Acess Domain Control Panel.help Needed
(5) I am very upset.I need urgent help please. My problem is that i bought a domain from Yahoo.And i put
DNS adress of 50webs and added that domain to 50 webs and hosted it there.It is working fine
there.but i wanted to change hosting company of my domain. But i can not access domain control panel
from yahoo small business.My domain name doesnt appear anywhere in the domain pannel of yahoo.It
used to be there before i hosted it here. Please anybody tell me how i can change setting of my
domain name now.how i can bring it back to yahoo and how i can acess it? Thanks alot.....
Forum Admin Needed/wanted
Read if interested! (5) Triple Triangle Org. is looking for a dedicated person who can be administrator of an Invision Power
Board. All I ask is that this person have experience in customizing the boards and moderating. If
you are interested in taking up this interesting project, please reply to this post or send an
e-mail directly to tripletriangleradio@hotpop.com . I hope to see many replies!....
Make Yourself Admin On A Computer
(28) Last year, my whole family used one computer, and I could never install anything because my account
was limited, and my parents were scared I would download a virus. One day I decided to try and find
a way to make myself able to install stuff, and I found out, but because of my parents carelessness.
It doesn't work if the Administrator, the one that doesn't show up on logon has a password.
Here's how to do it: Restart your computer, and when it first starts press f8, it's f5 on
some computers, and then select run Windows in safe mode with networking, a....
Looking for announcement, box, ipb, admin, panel
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for announcement, box, ipb, admin, panel
*MORE FROM TRAP17.COM*
|
advertisement
|
|