Newspic-Desperation

letsrock / 1 decade ago (12 November 2004 11:28)

Hey Guys,


after a night of trial-and-error i thought you could help me with this:

i already changed the db.inc.php paths - see here:

$news_path = "/usr/export/www/vhosts/funnetwork/hosting/letsrock/rotschrift/newman/gfx/news";

$news_url = "../newman/gfx/news/";


and referenced the local db.inc.php in the newman_lib.php, but the #*@! - WebMagazine wants to find the picture in the WebMagazine folder - i have no idea why...


try and see yourself @ http://letsrock.le.funpic.de/rotschrift/WebMagazine/


you have to be very quick to see the missing picture and hit the right mouse button to see its location


crazy side-effect: the smileys ARE working, the smiley´s path in the db.inc.php is:

$smileys_path = "/usr/export/www/vhosts/funnetwork/hosting/letsrock/rotschrift/newman/gfx/smileys";

$smiley_url = "../newman/gfx/smileys/";


CRAZY, ISTN´T IT?


thanks in advance for your help,


Stefan



Post replies:


1 decade ago (15.11.2004 09:46)
Reply by: letsrock
okay, at least the user menu doesn´t work, hehe...


p.s.: sorry for bugging you all the time
1 decade ago (15.11.2004 09:40)
Reply by: letsrock
no, the weekly poll ("umfragen") doesn´t work
1 decade ago (16.11.2004 08:36)
Reply by: letsrock
one little thing...

how do i make the news-pictures appear on the index-site (as you can see here: [LINK])?
1 decade ago (16.11.2004 09:16)
Reply by: Peter_Vazed
In newman_lib


line 414
//added this part to show picture is in the news preview


<br /><?if(!empty($ar[picture]) && file_exists.($GLOBALS[´news_pics_path´].$ar[picture])) <br /> echo ´<img src="´.$GLOBALS[´news_pics_url´].$ar[picture].´" align="left" style="padding-right:5pt;" alt="" />´;?> <br />


In this table:


<br /> <table width="100%" cellspacing="1" cellpadding="1" class="MojText"> <br /> <tr><td class="MojHead"><a class="MojHead" href="<?=$GLOBALS[´PHP_SELF´];?>?action=show&type=news&id=<?=$ar[id];?>"> <br /><?=$ar[headline];?></a></td></tr> <br /> <tr><td><?=$datum;?> / <a href="mailto:<?=$ar2[email];?>"><?=$ar[author];?></a></td></tr> <br /> <tr><td><p style="width:100%; text-align:justify;" class="MojText"> <br /> //added this part to show picture is in the news preview <br /> <?if(!empty($ar[picture]) && file_exists.($GLOBALS[´news_pics_path´].$ar[picture])) <br /> echo ´<img src="´.$GLOBALS[´news_pics_url´].$ar[picture].´" align="left" style="padding-right:5pt;" alt="" />´;?> <br />//end added <br /> <br />

Code is messed up here, but it is the same code as on line 1153
there is one for the gallery

:car

1 decade ago (16.11.2004 10:23)
Reply by: letsrock
you mean i have to replace the above code by the beneath one?
1 decade ago (16.11.2004 10:48)
Reply by: letsrock
what about this: i mail you my newman_lib.php and you can change it "on the fly" - good idea?
1 decade ago (16.11.2004 10:50)
Reply by: Peter_Vazed
No, you have to add a line.

I have uploaded the newman_lib file
So you can download it.
The link:
[LINK]

Open in your editor and save as php.
If you use ConText you will she the colored code and the lines.

The changes i made are as comments in the file.

Play safe:
never change and save a php file, but rename the old one to old_filename.
The new one has the original filename. If something goes wrong, you still have the old file to start over.




:car
1 decade ago (17.11.2004 12:23)
Reply by: letsrock
i think we finally have to change the paths:

www.rotschrift.net.tf
1 decade ago (17.11.2004 12:24)
Reply by: letsrock
for your convenience: [LINK]
1 decade ago (17.11.2004 12:42)
Reply by: letsrock
the only "improvement" was that the little arrows (more.gif) didn´t work any more like they didn´t work some time before. so i took my old newman_lib.php back...
1 decade ago (17.11.2004 12:46)
Reply by: letsrock
to be honest, i can´t see any difference between your newman_lib and mine in the concerning piece of code...
1 decade ago (17.11.2004 12:52)
Reply by: letsrock
for comparison reasons (i use two editors at the same time) - here you can find mine:
[LINK]
1 decade ago (17.11.2004 08:51)
Reply by: Peter_Vazed
Yep, the same.

About the more gif, this gif is not in the webmagazine gfx, so it did not show up.
If you copy the gif from newman gfx to webmagazine gfx it works,

Now the Preview image.

Have you add the image:
Newman - News - Add news
in
Preview at the right: "add picure"

:car
1 decade ago (17.11.2004 12:55)
Reply by: letsrock
if i click this button, nothing happens:
i made an account for you so try yourself:

link to the backend: [LINK]
login: peter
pwd: peter
1 decade ago (17.11.2004 03:26)
Reply by: Peter_Vazed
Troubles.

I already had used the sign-in in your Webmagazine.
Received an email with username and pasword.
But login is not possible.
So i cannot add comments.

Now in your newman the same: cannot login.

About the Add Picture.
This cannot be done in Netscape.
You have to use Internet Explorer.
A popup window will show up, but it uses a javacript and
in Netscape it does nothing.


:car
1 2 3 4