Author |
Message |
Meoff
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 05, 2006
Posts: 55
Location: Thailand
|
Posted:
Thu Aug 24, 2006 11:54 am |
|
I've been searching for the answer to this, but can't find it.
I want to remove the "Forum Title" from the first column of the expanded list, leaving only the Topic Title visible. Reason being- my customer has some long a$$ed forum names, which run to several lines in the first column, and it is difficult to read.
What do I need to take out of the Block code to accomplish this?
Thanks in advance! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri Aug 25, 2006 6:12 am |
|
=== FIND ====
Code:
if (!$hideLinksFromGuests||is_admin($admin)||is_user($user)) {
$content .= <<<_JS_
tickercontents[$cnt] = "<tr><td width=\"60%\" bgcolor=\"$bgcolor1\" class=\"row1\"><a href=\"modules.php?name=Forums&file=viewforum&f=$forum_id\" title=\"$forum_name\"><span style=\"text-decoration:none;font-style: italic\">[$cat_title: $forum_name]<\/span><\/a><br /><a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id\" title=\"$topic_title\"><span style=\"text-decoration:none;\"> $lockTopic$topic_title<\/span><\/a><\/td><td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\" width=\"5%\">$topic_replies<\/td><td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row3\" width=\"20%\"><a href=\"forum-userprofile-.html$sifra\">$_avtor<\/a><\/td><td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\" width=\"5%\">$topic_views<\/td><td align=\"center\" nowrap bgcolor=\"$bgcolor1\" class=\"row3\"><font size=\"-2\" width=\"10%\"><i> $post_time <\/i><\/font><br><a href=\"forum-userprofile-.html$user_id\">$_username<\/a> <a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"><img src=\"images/blocks/icon_minipost_new.gif\" alt=\"Last Post\" border=\"0\" \/><\/a><\/td><\/tr>";
_JS_;
}
else {
$content .= <<<_JS_
tickercontents[$cnt] = "<tr><td width=\"60%\" bgcolor=\"$bgcolor1\" class=\"row1\"><a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\" title=\"$topic_title\"><span style=\"text-decoration:none;font-style: italic\">[$cat_title: $forum_name]<\/span><br /> $lockTopic$topic_title<\/a><\/td><td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\" width=\"5%\">$topic_replies<\/td><td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row3\" width=\"20%\">$_avtor<\/td><td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\" width=\"5%\">$topic_views<\/td><td align=\"center\" nowrap bgcolor=\"$bgcolor1\" class=\"row3\"><font size=\"-2\" width=\"10%\"><i> $post_time <\/i><\/font><br>$_username<\/td><\/tr>";
_JS_;
}
|
=== REPLACE WITH ====
Code:
if (!$hideLinksFromGuests||is_admin($admin)||is_user($user)) {
$content .= <<<_JS_
tickercontents[$cnt] = "<tr><td width=\"60%\" bgcolor=\"$bgcolor1\" class=\"row1\"><a href=\"modules.php?name=Forums&file=viewforum&f=$forum_id\" title=\"$forum_name\"><span style=\"text-decoration:none;font-style: italic\">[$forum_name]<\/span><\/a><br /><a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id\" title=\"$topic_title\"><span style=\"text-decoration:none;\"> $lockTopic$topic_title<\/span><\/a><\/td><td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\" width=\"5%\">$topic_replies<\/td><td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row3\" width=\"20%\"><a href=\"forum-userprofile-.html$sifra\">$_avtor<\/a><\/td><td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\" width=\"5%\">$topic_views<\/td><td align=\"center\" nowrap bgcolor=\"$bgcolor1\" class=\"row3\"><font size=\"-2\" width=\"10%\"><i> $post_time <\/i><\/font><br><a href=\"forum-userprofile-.html$user_id\">$_username<\/a> <a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"><img src=\"images/blocks/icon_minipost_new.gif\" alt=\"Last Post\" border=\"0\" \/><\/a><\/td><\/tr>";
_JS_;
}
else {
$content .= <<<_JS_
tickercontents[$cnt] = "<tr><td width=\"60%\" bgcolor=\"$bgcolor1\" class=\"row1\"><a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\" title=\"$topic_title\"><span style=\"text-decoration:none;font-style: italic\">[$forum_name]<\/span><br /> $lockTopic$topic_title<\/a><\/td><td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\" width=\"5%\">$topic_replies<\/td><td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row3\" width=\"20%\">$_avtor<\/td><td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\" width=\"5%\">$topic_views<\/td><td align=\"center\" nowrap bgcolor=\"$bgcolor1\" class=\"row3\"><font size=\"-2\" width=\"10%\"><i> $post_time <\/i><\/font><br>$_username<\/td><\/tr>";
_JS_;
}
|
Regards. |
_________________ 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! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Meoff
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Aug 25, 2006 8:36 am |
|
Hi montego-
Thanks for your reply!
I followed your instructions and made the modification you suggested. I found the exact lines with no problem, and replaced them using Crimson Editor.
When I uploaded the modded file, the ForumsCollapsing block would not load, and it caused the rest of the page to stop loading also... all blocks underneath and right hand side.
Could you be kind enough to have a look at it again / double check for me? I'm by no means smart enough to figure out whee it is going wrong on my own!
Much obliged.....
Meoff |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Aug 26, 2006 6:20 am |
|
You need to get a good text editor. Although I have never used Crimson Editor, I think that I have heard of issues like this with it. Don't use notepad or wordpad either. I would try TextPad or search here for other editors. It has introduced characters causing issues.
Send your original version file to me at montego {AT} montegoscripts __DOT__ com and I'll get this done for you. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Meoff
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Aug 26, 2006 7:49 am |
|
Hi montego,
I downloaded TextPad and tried to do it myself, and got the same result.
Hence- I have sent the file to you- from rs {AT} bkkok __DOT__ com.
Your help is much appreciated! You're a prince among the common people!
Rgds,
Meoff |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Aug 26, 2006 8:13 am |
|
I just sent it back... and it is tested on my local site. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Meoff
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Aug 26, 2006 10:21 am |
|
Hi montego-
Sad to say that the block you have modified and sent to me causes the same problem.... won't load and prevents all of the subsequent blocks / right side content from loading.
Could it be something to do with my PHPNuke setup? I'm using RavenNuke76_v2.02.02, which was originally PHPnuke 7.8 before downgrading.
Any suggestions would be welcome!
Rgds,
Meoff |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Aug 26, 2006 11:32 am |
|
Meoff,
This worked perfectly in my own RavenNuke 2.02.02 environment. There must be some other conflict with another block or code that you have employed on this site. You could try disabling other blocks one-by-one until you find the one causing the conflict.
I tried...
montego |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Meoff
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Aug 28, 2006 12:02 pm |
|
Definitely appreciate the effort Montego...
I figured out how to change the text color of the Topic line to make it stand out / easier to read. Can live with that.
Tks again for trying!
Meoff |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ahmedbahgat
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Apr 03, 2007
Posts: 5
|
Posted:
Tue Apr 03, 2007 9:49 pm |
|
Hello
I have removed the forum title link in the forum block, you can see it in here, if you are interested, please let me know and I will post the mod : http://www.free-islam.com/
btw I tried to implement the mod by Meoff and had the same problem, nevertheless I appreciate his try
Cheers |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|