News Topic Images do not show 7.9 patched

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   News Topic Images do not show 7.9 patched
SoftTag
CZ Super Newbie
 Codezwiz Site Donator
SoftTag has been a member for over 20 year's 20 Year Member
usa.gif newmexico.gif
Age: 35
Gender: Male
Status: Offline
Joined: Jun 30, 2004
0.01 posts per day
Posts: 44
Points: 5,366
   
Trying something new to me I am using the 7.9 Sand_Journey Theme and put the images/topics/ and icons in the directory.
[ Register or login to view links on this board. ]

For some reason the script is not seeing the topic assocated with the article/and or linking to it. You cannot see it in the topics area but you can see it when you are creating or editing a story. In this case it is news.gif

Thinking it was my set up, I deleted the Sand_Journey/images/topics/ dir and went straight to root/images/topics/
[ Register or login to view links on this board. ]

That didn't work either.

I then checked the other themes, same problem with all of them, they do not see the topics.

At that point I looked on here and checked the different references and the config file is correct. Since I know how to set up topics and catagories I am lost. When I am submitting an article and do a preview the topic icon shows up just fine. Maybe that will help narrow the problem down.

Just to be sure, I deleted nuke_stories_cat ;nuke_stories; and nuke_topics; then redid those three tables and started over. Still the same result. Re uplaoded modules and news, admin. Same Result.

I really could use some help or ideas at this point.
26/04/06 Does anyone have any ideas?



Back to top Reply with quote
#2   re: News Topic Images do not show 7.9 patched
SoftTag
CZ Super Newbie
 Codezwiz Site Donator
SoftTag has been a member for over 20 year's 20 Year Member
usa.gif newmexico.gif
Age: 35
Gender: Male
Status: Offline
Joined: Jun 30, 2004
0.01 posts per day
Posts: 44
Points: 5,366
   
Anyone have any idea where to start on this problem?



Back to top Reply with quote
#3   
CurtisH
CZ Active Member
 Codezwiz Site Donator
CurtisH has been a member for over 20 year's 20 Year Member
usa.gif texas.gif
Gender: Male
Status: Offline
Joined: Jun 14, 2004
0.01 posts per day
Posts: 112
Points: 5,900
AIM Address Yahoo Messenger  
Deleted by author




_________________
PHP-Nuke and ALL software and/or themes coded to be used with PHP-Nuke are GPL and are FREE to redistribute regardless of what an author may claim.
Back to top Reply with quote
#4   re: News Topic Images do not show 7.9 patched
SoftTag
CZ Super Newbie
 Codezwiz Site Donator
SoftTag has been a member for over 20 year's 20 Year Member
usa.gif newmexico.gif
Age: 35
Gender: Male
Status: Offline
Joined: Jun 30, 2004
0.01 posts per day
Posts: 44
Points: 5,366
   
Mine looked like:
$tipath = "images/topics/";

Changed it to: $tipath = 'images/topics/';

That didnt make a difference, so I put it back to the original for now.

just so you know the properties of the non showing topic show: [ Register or login to view links on this board. ]

so even tho it shows there suppose to be a pic there, there is no name for the pic. Thankyou for replying by the way I know other people have this problem.

Here is the solution:

In mainfile.php:

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");



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum