-
1 Attachment(s)
[REL] News Editor For Hablog! [REL]
Hi i have made a PHP page for housekeeping to update news instead of using NEWS.ini
Heres what you need to do:
1. Extract http://forum.ragezone.com/attachment...1&d=1225226583
2. Go to your Htdocs directory and replace your old me.php page with mine & Replace news.php aswell
3. Go to Admin folder then place news & campaign.php in there make sure you replace "campaign.php"
Now go into "Housekeeping" Campaign Management Then press add news Done :D
I tried to make it noob friendly and tell me if it didn't work
Credits: Me lol
EDIT:http://img386.imageshack.us/img386/6890/hilollb5.th.pnghttp://img386.imageshack.us/images/thpix.gif
-
Re: [REL] News Editor For Hablog! [REL]
sry mhh.
Its not very usefull
-
Re: [REL] News Editor For Hablog! [REL]
Quote:
Originally Posted by
xXTeyXx
sry mhh.
Its not very usefull
I think it is because it' make it so Moderator's & Admin's can edit news aswell and register events Hablog Rev 4 users have been asking for this and i keep getting asked on MSN for it :D
-
Re: [REL] News Editor For Hablog! [REL]
I think its usefull for some retros :)
Not for me using holo x]
Well done 7/10 x]
-
Re: [REL] News Editor For Hablog! [REL]
i think this is usefull for these ppl that using hablog rebuild :P
10/10
-
Re: [REL] News Editor For Hablog! [REL]
1 Sucks Thing . Only can use 1 news topstory image?
Correct me if im wrong
-
Re: [REL] News Editor For Hablog! [REL]
You colud mean 2 things
1. On Holo the top images change between 2 set pictures - No sorry you can't do that yet
2. You can change the image to anything you want just upate "image=top_story_news_christmas_creditus.PNG" to a URL or "./imagename.png"
-
Re: [REL] News Editor For Hablog! [REL]
Actually this is really unneeded.. But still quite usefull for them that using HabLog,Deluxe or V4,V5.
dubmood
-
Re: [REL] News Editor For Hablog! [REL]
I think this could be very useful for Hablog users. I and on the behalf of Hablog users think this is awsome.
Thanks for sharing it with the forums. Also you should go into more depth about putting it up.
-
Re: [REL] News Editor For Hablog! [REL]
Yes this is very useful, but like he says its for Hablog rebuild/deluxe but its still nice.
-
Re: [REL] News Editor For Hablog! [REL]
Thanks for all your good comments this wasn't even alot of work lol just makes things a little easyer for you :D
-
Re: [REL] News Editor For Hablog! [REL]
-
Re: [REL] News Editor For Hablog! [REL]
I updated the new.php page so it reads 0.php now
-
Re: [REL] News Editor For Hablog! [REL]
-
Re: [REL] News Editor For Hablog! [REL]
Thanks alot, I was just wondering why this wasn't in there.
-
Re: [REL] News Editor For Hablog! [REL]
Thanks for this ntl200 it will be handy for Hablog Rebuild!
I was amazed that no one else had tried making one!
-
Re: [REL] News Editor For Hablog! [REL]
-
Re: [REL] News Editor For Hablog! [REL]
-
Re: [REL] News Editor For Hablog! [REL]
good work, not very useful tho. 4/10 sorry.
-
Re: [REL] News Editor For Hablog! [REL]
I don't know why noone else tried to make this maybe not many users use Hablog anymore i think everyone likes Holograph which personaly i don't
-
Re: [REL] News Editor For Hablog! [REL]
Quote:
Originally Posted by
ntl200
I don't know why noone else tried to make this maybe not many users use Hablog anymore i think everyone likes Holograph which personaly i don't
I don't like holo too...
for that is why i'm making Hablog Data Viewer. I was making the notices editor but i've stopped for release it more fast.
Maybe for v3 i will finished it.
-
Re: [REL] News Editor For Hablog! [REL]
ill giv 8/10
it isnt really needed but its kool
-
Re: [REL] News Editor For Hablog! [REL]
Found a miner glitch, as there is no need for "0.ini".
Just go to "admin/news/index.php" and delete the code inside it, and paste this in there;
PHP Code:
</<?
$cmd_path = $_SERVER["SCRIPT_FILENAME"];
$cmd_file = $_SERVER["PHP_SELF"];
$cmd_htdocs = str_replace("$cmd_file", "", $cmd_path);
include("$cmd_htdocs/configuration/cms.php");
if (file_exists("$cmd_htdocs/web-gallery/certificates/$session_secure.sll")) {
}else{
echo '/><meta http-equiv="refresh" content="0; url=http://'.$hotel_host.'/certificate">';
exit;
}
?>/><?
function readini($file,$title,$item) {
$source = file($file);
$t_match = "/^\[".$title."\]/i";
$s_title = "no";
foreach ($source as $temp) {
if (preg_match("/^\[".$title."\]/i",$temp)) {
$s_title = "yes";
} elseif (preg_match("/^\[.+\]/",$temp) && $s_title = "yes") {
$s_title = "no";
} elseif (preg_match("/^".$item."=/i",$temp) && $s_title == "yes") {
$result = explode("=",$temp);
return $result[1];
}
}
}
function writeini($file,$title,$item,$data) {
if (file_exists($file)) {
$t_match=readini("$file","$title","$item");
$t_contents=file_get_contents($file);
$t_result=str_replace("$item=$t_match", "$item=$data
", "$t_contents");
{
$filename = "$file";
}
// hard code the variable from flash
$somecontent = "$t_result";
if (!$handle = fopen($filename, 'w')) {
exit;
}
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
fclose($handle);
}
}
?>
<?
$fuse_rights=readini("$hotel_path/DB/ranks/$session_rank.ini","rank",'fuse_rights');
$fuse_check=str_replace("fuse_housekeeping_access", "", $fuse_rights);
if($fuse_rights == $fuse_check){
echo ' <script language="JavaScript">
<!--
window.alert("SSL Handshake error. Error Code: -12279")
// -->
</script>';
exit;
}
?>
</ Template />
<link href="http://<? echo"$hotel_host"; ?>/admin/style.css" rel="stylesheet" type="text/css"><body>
<?
//ntl200 PHP news page
if($_POST["1"] == true)
{
echo "Your Content 1 is changed";
$post_1 = $_POST["1"];
$string = "$post_1";
$datei = fopen("$hotel_path\DB\NEWS.ini","w+");
fwrite($datei, $string);
fclose($datei);
}
else
{
echo "Here you can edit the site news!";
}
?>
<form method="post" action="index.php">
News:<br />
<textarea name="1" cols="150" rows="40"><? include("$hotel_path\DB\NEWS.ini"); ?>
</textarea>
<br>
<input type="submit" value="Save the news!">
</form><br><br>
If you want to break a line use "<br>".
</body>
</html>
-
Re: [REL] News Editor For Hablog! [REL]
Both ways work but yours is easyist i don't know why i didn't think of that lol thanks Rasta. I'll update my files later today
-
Re: [REL] News Editor For Hablog! [REL]
Hello Ntl I think you heard MM ShutDown. well can you give me your retros link ty:D:
-Diogo.