Skinbase.org Skinbase.org

phpNewsManager & phpWebMagazine Quoestions

By Gregor Klevže
37,273 views 259 replies
brub avatar
brub
Member
OP
I actually have to install them and try them. As soon as I do, i´m talking to you mister big boss :)
anxiety35 avatar
anxiety35
Member
Never Mind... I got it
highvoltag3 avatar
highvoltag3
Member
POLARIS any chance you can please send me your gallery.php file, since you got it working... <br /> <br />I&acute;ll really apreciate it... <br /> <br />Thanks in advanced. <br /> <br />My email: <br />darionovoa@hotmail.com (MSN messeger too). <br /> <br /> }:?
polaris avatar
polaris
Member
As I could remember, problem is in pictures.php not in gallery.php so I&acute;m sending you this file. Hope it helps. <br />Regards.
wary109 avatar
wary109
Member
LOL
checog0 avatar
checog0
Member
Hi, Recently I install phpNewsManager & phpWebMagazine and I have some problems. <br /> <br />1.- Can&acute;t add categories, If I select add category only see category name & image, any submit buttom. This happend with weather. <br /> <br />2.- Error message when I want add a picture <br /> <br />Any help? <br /> <br />At moment that&acute;s error, I will be testing.. <br />
peter_vazed avatar
peter_vazed
Member
======================================================= <br />Before you upload the files of newman and webmagazine to your webspace: <br /> open them all in your editor. <br /> Why? <br /> To fix some errors/typos. <br />I use ConText to edit php files. <br />Find: gid <br />Replace by: id <br />Find: thumbnail <br />Replace by: picture <br />There are about ten errors. <br />In the partners.php is a typo: <br />patrner has to be partner <br /> <br />Now upload newman (all files in the folder: newman) and run install. <br /> <br />If succesfull: delete install. <br /> <br />Now ftp from your webspace to your computer the db.inc.php file <br />This file has to go in the webmagazine folder. <br />Open the db.inc.php file. <br />Look at the gallery path url <br />$gallery_url = &quot;./newman/gfx/gallery/&quot;; <br />look if after gallery there is the / <br />change the root ./ to ../ <br />$gallery_url = &quot;../newman/gfx/gallery/&quot;; <br /> <br />Now upload webmagazine. <br />(all files in the folder: webmagazine) <br />In your root you have the folders newman and webmagazine. <br />If you open your siteadres followed by webmagazine and you cannot see <br />the uploaded images change the db.inc.php file. <br />You can use the full http path: <br />$gallery_url = &quot;http://yoursite.com/newman/gfx/gallery/&amp;quot;; <br />if this does not work: <br />$gallery_url = &quot;../newman/gfx/gallery/&quot;; <br /> <br />In newman http://yoursite.com/newman/ <br />you edit your content, storys, images, items and so on. <br />It is you manager. <br />You can allow other people to update and add items and news. <br />Newman is not the public part. <br /> <br />Webmagazine is what people see: your news and images. <br />http://yoursite.com/webmagazine/ <br /> <br />Now if it is running you can give webmagazine your own layout. <br />Center the page, own logo and so on. <br />But do not use the original files to edit. <br />Copy all the files in a new folder on your computer and use these to <br />edit. If you mess it up, you still have have your original files. <br /> <br />If you are new to php find some tutorials, so you can understand what the <br />code means and what is where. <br /> <br />Good Luck. <br />--------------
jckm2001 avatar
jckm2001
Member
Hi <br />I&acute;ve just installed phpnewsmanagewr on my server, seemed to install ok. But how do I se it? how do I integrate it into my site? <br /> <br />Cheers <br /> <br />Jon.
peter_vazed avatar
peter_vazed
Member
Hi Jan, <br /> <br />you have to edit these files <br />header.php <br />newman_lib.php <br />index.php <br />to give it the layout you want. <br /> <br />I heve renamed it to <br />header2.php <br />newman_lib2.php <br />index2.php <br /> <br />Still testing around. <br /> <br />See it here: <br />http://members.lycos.nl/dvz/webmagazine/index2.php <br /> <br />The original one: <br />http://members.lycos.nl/dvz/webmagazine/index.php <br /> <br />Still trying to find out why the topc images are not showing op. <br /> <br />PV
peter_vazed avatar
peter_vazed
Member
<br />Grrrrrr#&%..rrrr <br /> <br />One answer wil be ok, <br />cannot delete this post. <br /> <br />Se you around. <br /> <br /> <br />PV

Edited

antonio avatar
antonio
Member
Polaris, <br />Can you send a copy too of the file pictures.php that you edited? <br />Thanks in advance.
vmlp2003 avatar
vmlp2003
Member
good day to all. <br />i would like to use ur newman for our academic site. i dowloaded ur PHPmanager zip file and extracted it and uploaded in our webserver. since there is no Readme in there, i automatically executed install.php inn the newman folder. i also chmod 666 db.inc.php and entered the necesaary data required (username & password.) but after i presed the button,nothing happens. could u please giv me a detailed step on how to properly set up the newman? what should i do with my problem? <br />many thnx <br /> <br />vmlp2003
antonio avatar
antonio
Member
vmlp2003 <br />You have to create the database newman in MySQL, <br />chmod 755 the Install script, then run it <br />Good luck! <br />
vmlp2003 avatar
vmlp2003
Member
antonio <br />thank u 4 d responce. <br />i have tried it already,i created the newman in mySQL in our webserver and no problem with it., and chmod 666 db.inc.php and chmod 755 install.php, how ever, when i tried again to execute the intall.php in the web and enterd my username and password, stil, it returns to the login page. <br />is there anything that i missed? i have tried installing scripts in this manner so many times, are they are all ok, but i dnt knw y this thing is not succesful with me. <br />vmlp2003
vmlp2003 avatar
vmlp2003
Member
antonio <br />thank u 4 d responce. <br />i have tried it already,i created the newman in mySQL in our webserver and no problem with it., and chmod 666 db.inc.php and chmod 755 install.php, how ever, when i tried again to execute the intall.php in the web and enterd my username and password, stil, it returns to the login page. <br />is there anything that i missed? i have tried installing scripts in this manner so many times, are they are all ok, but i dnt knw y this thing is not succesful with me. <br />vmlp2003
polaris avatar
polaris
Member
Antonio, yes, I could send my pictures.php file. To your private email address? <br />Regards.
comptherapy avatar
comptherapy
Member
Polaris, <br /> <br />I am encountering the same installation problem. I did a chmod 755 of install.php and a chmod 666 of db.inc.php. My database name is schoolonwheelsorg instead of newman, but from what I understand that should not be a problem as long as I specify that name on the setup page. I have used other installation scripts that have worked perfectly on this server and with this database. Any ideas?
polaris avatar
polaris
Member
Sorry, it is long time ago when I first install this script so can&acute;t remember if there is some bug in installation process (which should not suprise you) but try to post error that you got so someone maybe could help you. I can&acute;t reinstall it again to see where is the problem.
antonio avatar
antonio
Member
polaris <br /> <br />Yes, please send me the file to my private address. <br />Thanks in advance.
polaris avatar
polaris
Member
Which is? In your info email isn&acute;t displayed because SPAM protection.
antonio avatar
antonio
Member
vmlp2003 <br />Sorry for the late reply, I don&acute;t come here frecuently. <br />I think it has to do with the datatabase. <br />Solaris, please help this friend!
polaris avatar
polaris
Member
I would like to help but I forgot is there any problems with installation process (and I think it is). At this time I can&acute;t install it on my server so only way to help your friend is to install it on his server or some temp server where I can check where is the problem.
antonio avatar
antonio
Member
polaris <br />send me the file to ae@nosotros.com
antonio avatar
antonio
Member
<b>Polaris: </b>Thanks for sendint pictures.php file. I updated it. But continue receiving this errors: <br /> <br />Warning: move_uploaded_file(/home/virtual/site84/fst/var/www/html/gfx/gallery/juan_luis_guerra2.jpg): failed to open stream: Permission denied in /home/virtual/site84/fst/var/www/html/pictures.php on line 215 <br /> <br />Warning: move_uploaded_file(): Unable to move &acute;/tmp/phpuBYNRu&acute; to &acute;/home/virtual/site84/fst/var/www/html/gfx/gallery/juan_luis_guerra2.jpg&acute; in /home/virtual/site84/fst/var/www/html/pictures.php on line 215 <br /> <br />I uploaded pictures via ftp to gfx folder in the magazine and I am able to use the pictures that way. <br /> <br />Also, when trying to edit a news story, edition works but receive this errors: <br /> <br />Warning: fopen(/home/virtual/site84/fst/var/www/html/rss/noticias.rss): failed to open stream: Permission denied in /home/virtual/site84/fst/var/www/html/functions.php on line 141 <br /> <br />Antonio
apachi avatar
apachi
Member
http://www.kutaisuri.com/new/ <<--- this my problem in magazine :( <br />======================================== <br />Warning: main(): Unable to access ../adm/db.inc.php in /home/virtual/site14/fst/var/www/html/new/newman_lib.php on line 7 <br /> <br />Warning: main(../adm/db.inc.php): failed to open stream: No such file or directory in /home/virtual/site14/fst/var/www/html/new/newman_lib.php on line 7 <br /> <br />Fatal error: main(): Failed opening required &acute;../adm/db.inc.php&acute; (include_path=&acute;.:/php/includes:/usr/share/php&acute;) in /home/virtual/site14/fst/var/www/html/new/newman_lib.php on line 7 <br />========================================= <br />???????????????????????? Help! plz
peter_vazed avatar
peter_vazed
Member
Antonio <br />here the code of picures line 215 <br /> <br /> $HTTP_POST_FILES[&acute;filename&acute;][&acute;name&acute;] = $nf; <br /> if(!move_uploaded_file($HTTP_POST_FILES[&acute;filename&acute;][&acute;tmp_name&acute;],$GLOBALS[&acute;gallery_path&acute;].&quot;/&quot;.$HTTP_POST_FILES[&acute;filename&acute;][&acute;name&acute;])) <br /> echo &quot; type=\&quot;text/javascript\&quot;>alert(&acute;&quot;._ERROR.&quot;&acute;);</script>&quot;; <br /> } <br /> else <br /> if(!move_uploaded_file($HTTP_POST_FILES[&acute;filename&acute;][&acute;tmp_name&acute;],$GLOBALS[&acute;gallery_path&acute;].&quot;/&quot;.$HTTP_POST_FILES[&acute;filename&acute;][&acute;name&acute;])) <br /> echo &quot; type=\&quot;text/javascript\&quot;>alert(&acute;&quot;._ERROR.&quot;&acute;);</script>&quot;; <br /> else <br /> { <br /> chmod($GLOBALS[&acute;gallery_path&acute;].&quot;/&quot;.$HTTP_POST_FILES[&acute;filename&acute;][&acute;name&acute;],0644); <br /> } <br /> } <br /> else <br /> echo _WRONGDATATYPE.&quot;: &quot;.$HTTP_POST_FILES[&acute;filename&acute;][&acute;type&acute;].&quot;<br />&quot;; <br /> <br /> <br />and here functions.php on line 141 <br /> <br /> $query = &quot;SELECT * from &quot;.$GLOBALS[&acute;db_news&acute;].&quot; order by datum desc, id desc LIMIT $arn[number]&quot;; <br /> <br /> if(!$fps = fopen($GLOBALS[&acute;rss_path&acute;].&quot;/$arn[filename]&quot;,&quot;w&quot;) && file_exists($GLOBALS[&acute;rss_path&acute;].&quot;/$arn[filename]&quot;)) <br /> { <br /> <br />Look if this ´rss_path´ is what you have <br />it has to be &acute;rss_path&acute;] <br />in the code the`has to be &acute; <br /> <br /> :fighter
peter_vazed avatar
peter_vazed
Member
Hi apachi, <br /> <br />line 7 <br />require (&quot;../newman/db.inc.php&quot;); <br /> <br />copy db_inc.php to the webmagazine directory <br />then use: <br />require (&quot;db.inc.php&quot;); <br /> <br />and in this db.inc.php check for the correct link: <br />$news_pics_path= &quot;/data/members/free/tripod/nl/d/v/z/dvz/htdocs/newman/gfx/news&quot;; <br />$news_pics_url= &quot;http://members.lycos.nl/dvz/newman/gfx/news/&amp;quot;; <br /> <br />where you find a url add the full siteadress <br /> <br /> :fighter

Edited

polaris avatar
polaris
Member
Antonio, try to chmod your &acute;gallery&acute; and &acute;rss&acute; folder to 666.
antonio avatar
antonio
Member
Apachi, <br />I see the lines, but, where I cut or replace? <br /> <br />One note: I put the phpWebMagazine in a folder named &quot;revista&quot; inside the <br />phpNewsManager. Is that the correct way? <br /> <br />Polaris, <br />I chmod the folders to 666
antonio avatar
antonio
Member
Apachi, <br />I see the lines, but, where I cut or replace? <br /> <br />One note: I put the phpWebMagazine in a folder named &quot;revista&quot; inside the <br />phpNewsManager. Is that the correct way? <br /> <br />Polaris, <br />I chmod the folders to 666
antonio avatar
antonio
Member
<b>Peter_Vazed,</b> <br />Thanks for your reply. <br />I see the lines, but, where I cut or replace the text? <br />Or, which text do I replace? <br /> <br />
peter_vazed avatar
peter_vazed
Member
Antonio <br />have you a php editor? <br />editor Context <br />http://www.fixedsys.com/context/ <br />or <br />Crimson Editor <br />http://www.crimsoneditor.com/ <br /> <br />In ConText with Shift/Ctrl+C you can comment lines, so they will still be there but are not working. <br /> <br />Now put in the new lines or changed lines. <br />The lines a have posted are working. <br /> <br />If it is not working i can send you the file. <br />There are al ot of errors and typos in the Newman files. <br />I am fixing the errors. <br />I have two newsmagazines on line to test. <br /> <br />If all errors are fixed i will test the new files. <br />If it is working i will open a site with information and put all files in a zip file, so it is possible to download. <br /> <br /> <br /> <br /> <br /> <br /> :fighter
antonio avatar
antonio
Member
<b>Peter_Vazed</b> <br />I did what you indicated with the editor, still receive the error: <br />Parse error: parse error in /home/virtual/site84/fst/var/www/html/pictures.php on line 146 <br /> <br />As you mention, is it possible to provide the files that you fixed in a zip? <br />The url of your 2 sites? <br /> <br />The site I am putting together is http://noticias.alabanzas.com/revista/ <br />Thanks in advance. <br /> <br />My email is ae@nosotros.com <br /> <br /> <br /> <br />
polaris avatar
polaris
Member
Peter_Vazed, <br />I also did lot of changes and bug fixes in news manager which all you can find on this board so if your planing to put it on download (maybe you should first ask gRAVE about this...because copyright and so) you can include those fixes to.
peter_vazed avatar
peter_vazed
Member
Antonio <br /> <br />Test links: <br />original <br />http://members.lycos.nl/dvz/webmagazine/index.php <br /> <br />without a few options <br />http://members.lycos.nl/dvz/webmagazine/index2.php <br /> <br />original layout <br />http://members.lycos.nl/vazed/webmagazine/ <br /> <br />Can you post the lines? <br />pictures.php on line 146 <br /> <br />Give me a few days to test the fixed files. <br /> <br />Polaris <br />yep, i have read this topic from start to the end, and i found your tips. <br />thanks. <br />If it all is working i will email gRave. <br /> <br /> <br /> :fighter
antonio avatar
antonio
Member
<b>Peter_Vazed & <br />Polaris</b> <br /> <br />You make a good combination, because are two experts helping the newbies. <br />Here is the whole picture.php file http://nosotros.com/pictures.txt as &quot;pictures.txt&quot; <br />It contains some fixes made by Polaris. <br /> <br />Antonio
brian avatar
brian
Member
I installed phpnewsmanager and it is working great. But, when i goto the index.php file i have to login and it takes me to the admin section. My question is what file shows the news and articles for my visitors to view?
brian avatar
brian
Member
I installed phpnewsmanager and it is working great. But, when i goto the index.php file i have to login and it takes me to the admin section. My question is what file shows the news and articles for my visitors to view? <br /> <br />Sorry, I hit the back button and made a double post. I&acute;m not sure how to delete it.

Edited

polaris avatar
polaris
Member
Brian, <br />you must install webmagazine which is fron-end script for news manages to display news to your visitors.
polaris avatar
polaris
Member
antonio, <br />in your pictures.php about line 146 there is this code: <br /> <br /> <? <br /> $query = &quot;SELECT * from &quot;.$GLOBALS[´db_news´].&quot; order by datum desc, id desc LIMIT $arn[number]&quot;; <br /> <br />if(!$fps = fopen($GLOBALS[´rss_path´].&quot;/$arn[filename]&quot;,&quot;w&quot; && file_exists($GLOBALS[´rss_path´].&quot;/$arn[filename]&quot;) <br />{ <br /> ?> <br /> <br />This is wrong! Don&acute;t know how that code got in there, I supose you put it. <br />This code is for RSS and pictures.php don&acute;t have anything to do with RSS feed. <br />The orgininal code which must be there is: <br /> <br /><? <br /> $res = mysql_query(&quot;SELECT * FROM &quot;.$GLOBALS[&acute;db_gallery&acute;]) or die(&quot;<b>Line 246:</b>&quot;.mysql_error()); <br /> echo _SUBMITEDPICTURES.&quot;: &quot;.mysql_num_rows($res); <br /> ?> <br /> <br />I&acute;m sending you my pictures.php file again which is working just fine! <br />
brian avatar
brian
Member
Thanks Polaris, <br /> <br />I already have some articles published. Can I use phpnewsmanager without webmagazine to generate a xml file or some other type of file with the rss code on? For now I&acute;m just trying to put a link on the article pages so my visitors can get the rss feeds. <br /> <br />
polaris avatar
polaris
Member
Brian, <br />you could do that but you&acute;ll have to edit code yourself and put those functions. PhpNewsManager don&acute;t have that options. Only thing you can do with NewsManager is creating RSS file which you can publish, nothing else.
antonio avatar
antonio
Member
<b>polaris</b> <br />I received the file. <br />It works fine, thanks. <br />The only small detail is that when I upload the pictures they go to the folder &quot;gallery&quot; so the magazine does not show them. <br />How do I indicate to the system that the pictures are in gallery? <br />The system look for the folder &quot;gfx/news&quot;
polaris avatar
polaris
Member
To add you picture to news you need to use button ADD PICTURE in you ADD NEWS section (NEWS --> Add News --> Add Picture). <br />By doing this, pictures will be added to gfx/news folder. <br /> <br />If you add pictures through Gallery (which I supose you&acute;re trying to do) pictures will be added to gfx/gallery folder. <br /> <br />Regards.
antonio avatar
antonio
Member
<b>polaris</b> <br />I just did that, but the pictures are sent to the gallery... <br />I click the link &quot;Add pictures&quot; and it works fine, I see the title, descripcion, etc, but the system sends the picture to the gallery folder. <br />Then, to display the pictures I have to go ftp and move then to the gfx/news folder.
polaris avatar
polaris
Member
Hm...do you have demo somewhere installed? This fix takes about 10-15 minutes so I could try to put it in your demo. <br /> <br />I&acute;ll try to explain. In newman_lib.php there is function ShowNewsList. <br />There is query: <br />$query = &quot;SELECT * FROM &quot;.$GLOBALS[&acute;db_news&acute;]; <br />$query .= &quot; WHERE type=&acute;1&acute; &quot;; <br /> <br />so here you could put just another WHERE something like this <br />$query = &quot;SELECT * FROM &quot;.$GLOBALS[&acute;db_news&acute;]; <br />$query .= &quot; WHERE type=&acute;1&acute; AND frontpage=&acute;1&acute;&quot;; <br /> <br />Regards. <br /> <br /> <br />
polaris avatar
polaris
Member
New bug: <br />newspix.php file (this file is for adding pictures in your news). <br />In function EditPicture there is SQL query when you update your picture that looks like this: <br /> <br />mysql_query(&quot;UPDATE &quot;.$GLOBALS[&acute;db_news_pics&acute;].&quot; SET picture=&acute;&quot;.$HTTP_POST_FILES[&acute;filename&acute;][&acute;name&acute;].&quot;&acute;,thumbnail=&acute;&quot;.$HTTP_POST_FILES[&acute;filename&acute;][&acute;name&acute;].&quot;&acute; WHERE id=&acute;&quot;.$_POST[&acute;id&acute;].&quot;&acute;&quot;) or die(&quot;<b>LINE 262:</b>&quot;.mysql_error()); <br /> <br />Well, you need to delete this part: <br />,thumbnail=&acute;&quot;.$HTTP_POST_FILES[&acute;filename&acute;][&acute;name&acute;].&quot; <br /> <br />Regards.
omth99 avatar
omth99
Member
Hi everybody, <br /> <br />I apologise if this issue has been brought up and solved before, but I can&acute;t seem to find it on this board. <br /> <br />My problem is to enable the admin in the newman to select a news item to show in the home page or not, with a click or a dropdown selection where it says breaking - visible - hidden news in the combo box. <br /> <br />In other words; another option to make the news item visible only in the news category selected when the news is added but shows only in the news cat itself not in the home page.. <br /> <br />Is this possible? I have tried some of the modules and managed to add a new field in the dB where I can store the value to say don&acute;t show in the home page, but I can&acute;t figure out how to extract this info from dB via newman_lib.php in the newsmagazine folder. It&acute;s using cases and when add or change the existing cases I end-up either no news item showing or no changes in the homepage. <br /> <br />Any input will be apreciated. I have some experience with PHP so don&acute;t be afraid to be technical. <br /> <br />Hopefully your answers will be a wealth of resources for the other users of this fantastic program. <br /> <br />Best wishes
polaris avatar
polaris
Member
I believe that it&acute;s possible but you&acute;ll need to change some code. Idea is this: first add option in breaking/visible/hidden news combo box, something like /front page/. So you need to look in code for part where news are added to mysql database. You need to add extra field in database (news table) with option 1 or 0 (show or not show). So when you add new news this field must be updated with 1 or 0. <br />Then you need to look in code for part where news are selected for front page and put something like this in mysql query: WHERE frontpage = 1. <br />Also, you need to update all old news which you want to show or not show in front page. <br />I could look in this but don&acute;t have local installation of newsmanager and don&acute;t want to mess up with one that&acute;s working on site.
omth99 avatar
omth99
Member
Thanks for the reply Polaris, <br /> <br />I was wondering if you could be more specific about <br /> <br /> ***mysql query: WHERE frontpage = 1*** . <br /> <br />Any help is highly apreciated here. <br /> <br />Best wishes <br /> <br />
omth99 avatar
omth99
Member
Thanks for the reply Polaris, <br /> <br />I was wondering if you could be more specific about <br /> <br /> ***mysql query: WHERE frontpage = 1*** . <br /> <br />Any help is highly apreciated here. <br /> <br />Best wishes <br /> <br />
Sign in to post a reply.