PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Meoff
Hangin' Around


Joined: Aug 05, 2006
Posts: 45
Location: Thailand

PostPosted: Thu Aug 24, 2006 11:54 am Reply with quote Back to top

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!
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Fri Aug 25, 2006 6:12 am Reply with quote Back to top

=== FIND ====

Code:

if (!$hideLinksFromGuests||is_admin($admin)||is_user($user)) {
$content .= <<<_JS_
   tickercontents[$cnt] = "<tr><td width=\"60%\" bgcolor=\"$bgcolor1\" class=\"row1\"><a href=\"forums.html&file=viewforum&f=$forum_id\" title=\"$forum_name\"><span style=\"text-decoration:none;font-style: italic\">[$cat_title:&nbsp;$forum_name]<\/span><\/a><br /><a href=\"forums.html&file=viewtopic&t=$topic_id\" title=\"$topic_title\"><span style=\"text-decoration:none;\">&nbsp;$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=\"profile-.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>&nbsp;&nbsp;$post_time&nbsp;<\/i><\/font><br><a href=\"profile-.html$user_id\">$_username<\/a>&nbsp;<a href=\"forums.html&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=\"forums.html&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\" title=\"$topic_title\"><span style=\"text-decoration:none;font-style: italic\">[$cat_title:&nbsp;$forum_name]<\/span><br />&nbsp;$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>&nbsp;&nbsp;$post_time&nbsp;<\/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=\"forums.html&file=viewforum&f=$forum_id\" title=\"$forum_name\"><span style=\"text-decoration:none;font-style: italic\">[$forum_name]<\/span><\/a><br /><a href=\"forums.html&file=viewtopic&t=$topic_id\" title=\"$topic_title\"><span style=\"text-decoration:none;\">&nbsp;$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=\"profile-.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>&nbsp;&nbsp;$post_time&nbsp;<\/i><\/font><br><a href=\"profile-.html$user_id\">$_username<\/a>&nbsp;<a href=\"forums.html&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=\"forums.html&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 />&nbsp;$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>&nbsp;&nbsp;$post_time&nbsp;<\/i><\/font><br>$_username<\/td><\/tr>";
_JS_;
}


Regards.
View user's profile Send private message Visit poster's website
Meoff
Hangin' Around


Joined: Aug 05, 2006
Posts: 45
Location: Thailand

PostPosted: Fri Aug 25, 2006 8:36 am Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Sat Aug 26, 2006 6:20 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
Meoff
Hangin' Around


Joined: Aug 05, 2006
Posts: 45
Location: Thailand

PostPosted: Sat Aug 26, 2006 7:49 am Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Sat Aug 26, 2006 8:13 am Reply with quote Back to top

I just sent it back... and it is tested on my local site.
View user's profile Send private message Visit poster's website
Meoff
Hangin' Around


Joined: Aug 05, 2006
Posts: 45
Location: Thailand

PostPosted: Sat Aug 26, 2006 10:21 am Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 7236
Location: Arizona

PostPosted: Sat Aug 26, 2006 11:32 am Reply with quote Back to top

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... Sad

montego
View user's profile Send private message Visit poster's website
Meoff
Hangin' Around


Joined: Aug 05, 2006
Posts: 45
Location: Thailand

PostPosted: Mon Aug 28, 2006 12:02 pm Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
ahmedbahgat
New Member
New Member


Joined: Apr 03, 2007
Posts: 5

PostPosted: Tue Apr 03, 2007 9:49 pm Reply with quote Back to top

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 :
Only registered users can see links on this board!
Get registered or login to the forums!



btw I tried to implement the mod by Meoff and had the same problem, nevertheless I appreciate his try

Cheers
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum