PDA

View Full Version : Modify link structure


nekhbet
08-06-2009, 02:34 PM
Hi,

I use v3 of vBadvanced CMPS and I have the most 30 recent topics on the main page. What I want to do is to edit the URL so instead of showthread.php?t=222 it will become TITLE_OF_THREAD-t222.html.

I modified the template like this :

<a href="$vboptions[bburl]/$thread[titleSEO]-t$thread[threadid].html">

but I don't know where on the PHP files I need to modify the $thread variable so I can create the titleSEO key. Can you please help me? ( I have tried editing recentthreads.php but with no luck)

Thanks

Sorin

Brian
08-07-2009, 10:11 AM
There's a plugin called 'vba_cmps_module_recthreadsbits' near the end of the recent threads loop that will work for things like that.

Our Sponsors
 

nekhbet
08-07-2009, 10:13 AM
Thank you Brian, I'll give it a try :)

nekhbet
08-09-2009, 06:32 AM
The strange thing is that even if I delete the modules/recentthreads.php it still works, I have tried editing it like this :


$thread['titleSEO'] = convertThreadSEO($titleSEO . '-');
$thread['forumSEO'] = convertThreadSEO($thread['forumtitle'] . '--f') . thread['forumid'] . '.html';

($hook = vBulletinHook::fetch_hook('vba_cmps_module_recthreadsbits')) ? eval($hook) : false;


but without any luck ( I modified the template file for doing the custom url too) .

Can you please tell me what I'm doing wrong?

Our Sponsors
 

nekhbet
08-12-2009, 02:28 AM
Can you please help me?

Thanks

Brian
08-12-2009, 12:08 PM
I'm sorry but I've never used vBSEO and customizations like that fall outside of our realm of support.

nekhbet
08-12-2009, 12:49 PM
I see. Ok thank you.