Author |
Message |
Johny44
New Member


Joined: Dec 07, 2005
Posts: 4
Location: UK
|
Posted:
Tue Dec 20, 2005 10:33 am |
|
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.
www.the-horde.info |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Tue Dec 20, 2005 12:11 pm |
|
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. |
|
|
|
 |
evaders99
Former Moderator in Good Standing

Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Tue Dec 20, 2005 4:05 pm |
|
Are you using the latest Patched files? |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
 |
Johny44

|
Posted:
Wed Dec 21, 2005 3:38 am |
|
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

|
Posted:
Wed Dec 21, 2005 4:51 am |
|
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

|
Posted:
Wed Dec 21, 2005 5:42 am |
|
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

|
Posted:
Wed Dec 21, 2005 2:48 pm |
|
The problem was with the image as you suggested it is now fixed
Thanks for your help  |
|
|
|
 |
quietlycrazy
New Member


Joined: Jan 28, 2006
Posts: 4
|
Posted:
Sat Jan 28, 2006 3:22 pm |
|
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> $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??? |
|
|
|
 |
Guardian2003

|
Posted:
Sat Jan 28, 2006 3:55 pm |
|
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

|
Posted:
Sat Jan 28, 2006 4:04 pm |
|
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

|
Posted:
Sat Jan 28, 2006 4:10 pm |
|
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

|
Posted:
Sat Jan 28, 2006 4:17 pm |
|
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

|
Posted:
Sun Jan 29, 2006 7:57 am |
|
My original problem was rather simple turns out i was uploading the images in ASCII mode
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

|
Posted:
Sun Jan 29, 2006 8:32 am |
|
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

|
Posted:
Sun Jan 29, 2006 9:22 am |
|
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


Joined: Dec 18, 2003
Posts: 53
Location: Worldwide
|
Posted:
Fri May 26, 2006 11:08 pm |
|
|
|
 |
|