vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v4.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-09-2012, 03:59 AM
cheykawebdesign cheykawebdesign is offline
Web Designer
 
Join Date: Sep 2009
Location: wisconsin
Posts: 17
Exclamation Make module title not a link?

Hi I am trying to edit the adv_portal_module_wrapper so that in the news module the thread title isn't a link.

I used firebug and this is what is there <h2 class="blockhead">

I changed the code so many times that the determining factor seems to be this line of code:

PHP Code:
{vb:raw mods.link
here is a bit more code around it, but if you delete the above then the thread title disappears. I need help figuring out where to look to make these edits. What I did was created a module page and then put a news module that just pulls 1 thread into the news module. I don't want people clicking the module link because then it takes them to the normal forum view that looks ugly. I also set the news module to have no limit on how much text it displays.

PHP Code:
<vb:if condition="$mods['link']"><a href="{vb:raw mods.link}">{vb:raw mods.title}</a><vb:else />{vb:raw mods.title}</vb:if></strong>
        <
vb:if condition="$vba_style['portal_collapsemods']">
            <
class="collapse" id="collapse_module{vb:raw mods.collapse}" href="{vb:raw relpath}#top" style="top: 6px"><img src="{vb:stylevar imgdir_button}/collapse_40b{vb:raw mods.collapseimg}.png" alt="" /></a>
        </
vb:if> 


Thanks in advance for reading.
Reply With Quote
  #2  
Old 08-09-2012, 07:38 AM
cheykawebdesign cheykawebdesign is offline
Web Designer
 
Join Date: Sep 2009
Location: wisconsin
Posts: 17
Default

I figured it out, and also there was another post on this but the guy who figured it out didn't share what he did but I will.

I am using vbulletin 4+ by the way with vbadvanced_cmps_4_2_1_(vb_4_0_-_4_2)_112483


Open up your news.php module file found in your: root directory/modules/news.php


Do a search for:
PHP Code:
<a href="' . $vbulletin->options['bburl'] 
found on line 736 for me,

Now delete

PHP Code:
<a href="' . $vbulletin->options['bburl'] . '/' . fetch_seo_url('thread', $news) . '"
and

PHP Code:
</a
from this line.



The line should now look like this when your done editing it:
PHP Code:
$mods['title'] = ($news['prefix'] ? $news['prefix'] : '') . ' ' $news['title'] . ''
Now just save it and enjoy.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Make title of module into a heading pianoperformer "How Do I..." Questions 1 07-15-2009 12:17 PM
News Module question, remove title link vbuser49 Module & Modification Discussion & Requests 5 05-23-2009 06:31 PM
Remove title link in News module stonehenge "How Do I..." Questions 2 04-04-2009 03:45 PM
Hod do I make the "Module Title" not show in modules? trgreen "How Do I..." Questions 5 03-19-2007 06:40 PM
font size of news module title link indie Troubleshooting / "How do I..." Questions 1 10-04-2004 10:14 AM


All times are GMT -4. The time now is 01:24 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.