Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help
Author Message
Johny44
New Member
New Member



Joined: Dec 07, 2005
Posts: 4
Location: UK

PostPosted: Tue Dec 20, 2005 10:33 am Reply with quote

My topic images are not showing up, i have added a news topic to my site and uploaded the new icons to images/topics/ but they do not show up.

Is there a file i have to edit somewhere i'm sure i have missed something.
[ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message AIM Address
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Tue Dec 20, 2005 12:11 pm Reply with quote

Double check you have uploaded your images to
images/topics/udshand.gif
and the file name is correct

If the images are deifnitely there and are not showing a 0byte file size then you may have to chmod the images files or topic directory to ensure it is world readable.
 
View user's profile Send private message Send e-mail
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Dec 20, 2005 4:05 pm Reply with quote

Are you using the latest Patched files?

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
Johny44







PostPosted: Wed Dec 21, 2005 3:38 am Reply with quote

I have checked and double checked the file is where it should be with the correct name.

All files and folder are set for 644 and 755 i am using RavenNuke76
 
Guardian2003







PostPosted: Wed Dec 21, 2005 4:51 am Reply with quote

Please PM me a temp nuke admin log-in so I can take a look and if you have the authorisation check in Sentinel, the user/pass for that.
 
Guardian2003







PostPosted: Wed Dec 21, 2005 5:42 am Reply with quote

OK I found the problem.
The code seems to be adding new topic images to an invalid url
images/topics//yourimage.gif
That is why it cannot be found.
Nuke is looking for the image in images/topics/yourimage.gif

I'll have a look at the code to see where this is.

If you got to 'Topics' then click on any of the missing image 'red x' the next page shows the blank image again - if you right click on thea image and select 'properties' you can see what I mean.
 
Johny44







PostPosted: Wed Dec 21, 2005 2:48 pm Reply with quote

The problem was with the image as you suggested it is now fixed Embarassed

Thanks for your help Cheers
 
quietlycrazy
New Member
New Member



Joined: Jan 28, 2006
Posts: 4

PostPosted: Sat Jan 28, 2006 3:22 pm Reply with quote

Hmmmm... Ive the same problem!

Topic images not showing up. Image box properties says /images/topics/
No image file name. images/topics has been chmod to 777. Images are in the images/topics directory and do show in the topics module but not in the story box. I also have the image tag in the allowable html array in the config.php file

Code in the deep blue theme is:

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#000000\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
."<img src=\"themes/DeepBlue/images/dot.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#FFFFFF\"><font class=\"option\"><b>&nbsp;$title</b></font></td></tr>\n"
."<tr><td colspan=\"2\" bgcolor=\"#FFFFFF\"><br>\n"
."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
."<a href=\"article-topic-.html$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
FormatStory($thetext, $notes="", $aid, $informant);
echo "</td></tr></table>\n"
."</td></tr></table><br>\n"
."</td></tr></table>\n"
."</td></tr></table><br><br>\n";
}

All looks ok there.

I can't figure out for the life of me why???


Any help out there???
 
View user's profile Send private message
Guardian2003







PostPosted: Sat Jan 28, 2006 3:55 pm Reply with quote

Quote:
."<a href=\"article-topic-.html$topic\
? Not sure what that url is all about. Which version of nuke are you using and are you using any mod_rewrite still like Google Tap or GT NG?
 
quietlycrazy







PostPosted: Sat Jan 28, 2006 4:04 pm Reply with quote

Guardian2003 wrote:
Quote:
."<a href=\"article-topic-.html$topic\
? Not sure what that url is all about. Which version of nuke are you using and are you using any mod_rewrite still like Google Tap or GT NG?


I'm using PHP-Nuke-7.9.0.3.1b Chatserv

No googletap (as of yet) or any other URL MOD.

I did a google search for phpnuke 7.9 image topic not showing and ended up here.
 
Guardian2003







PostPosted: Sat Jan 28, 2006 4:10 pm Reply with quote

To be honest, I have no idea of a 'fix' for this, it might simply be one of the many, many problems with this version of nuke.
One thing to check in your root/config.php file where the variable $tipath is set as this is part of the path it looks for your images.

If this is a new installation, you would be much better of starting again with Raven Nuke 7.6.
 
quietlycrazy







PostPosted: Sat Jan 28, 2006 4:17 pm Reply with quote

This install is fairly new except I have about 20 modules installed. I didn't notice the topic image not showing till I popped over to Internet Explorer to view the site. IE is something I rarely use ( not being a MS fan) and Mozilla didn't show the Xe'd out box for no image.
 
Johny44







PostPosted: Sun Jan 29, 2006 7:57 am Reply with quote

My original problem was rather simple turns out i was uploading the images in ASCII mode Rolling Eyes

Most ftp clients automatically choose which mode to use but mine does not you could try uploading the images again in binary mode that fixed my woes.
 
quietlycrazy







PostPosted: Sun Jan 29, 2006 8:32 am Reply with quote

Ok here's the fix for topic images not showing:

Find in mainfile.php:

function getTopics($s_sid) {
global $topicid, $topicname, $topicimage, $topictext, $prefix, $db;
$sid = intval($s_sid);
$result = $db->sql_query("SELECT t.topicid, t.topicname, t.topicimage, t.topictext FROM ".$prefix."_stories s LEFT JOIN ".$prefix."_topics t ON t.topicid = s.topic WHERE s.sid = ".$sid);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$topicid = intval($row['topicid']);
$topicname = check_html($row['topicname'], "nohtml");
$topicimage = check_html($row['topicimage'], "nohtml");
$topictext = stripslashes(check_html($row['topictext'], "nohtml"));
}

Replace with:

function getTopics($s_sid) {
global $topicid, $topicname, $topicimage, $topictext, $prefix, $db;
$sid = intval($s_sid);
$result = $db->sql_query("SELECT t.topicid, t.topicname, t.topicimage, t.topictext FROM ".$prefix."_stories s LEFT JOIN ".$prefix."_topics t ON t.topicid = s.topic WHERE s.sid = ".$sid);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$topicid = intval($row['topicid']);
$topicname = filter($row['topicname'], "nohtml");
$topicimage = filter($row['topicimage'], "nohtml");
$topictext = filter($row['topictext'], "nohtml");
}

This fix worked for me. I'm running phpnuke 7.9 patched 3.1
I applied this code and topic images popped right up.
 
Guardian2003







PostPosted: Sun Jan 29, 2006 9:22 am Reply with quote

Thanks for the insight.
Someone else also reported that topic images with hyphens in the file name did not show up either. Not had to chance to investigate further though at the moment.
 
tag
Regular
Regular



Joined: Dec 18, 2003
Posts: 53
Location: Worldwide

PostPosted: Fri May 26, 2006 11:08 pm Reply with quote

Thanks for posting the fix to this. I appreciate it

_________________
Tag
[ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ] [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©