vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=210618

Help with mod
by Ipuck
08 Apr 2009 03:25

1 Attachment(s)
Hello

I'm trying to do a mod that replaced the "New Posts" link with "Posts and Threads".

When the link is press, a menu comes down showing 4 other links: New Posts, Today Post, New Threads, Unanswered Threads.

It works manually, but I wanted to share with others here and I wanted to make it a product.

If I upload the product to my site, it loads the template, add the menu to the page, but I cant make automatically replaced the "New Posts" link with "Posts and Threads".

I believe the problem is on the plugin, but I can't find it. I have tried 100 different ways and I can't make it work.

Here is the code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


TigerC10 08 Apr 2009 04:40

One big problem that I see is in your array creation.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You are making a 2 dimensional array. This is not necessary. Just take one of those out, and be sure to take out the matching parenthesis.

Next, you are searching for escaped quotes...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The only reason for escaping the quote symbol is if you START/END the string with a quote. You start the string with an apostrophe (see the blue ' at the beginning?).


So what you should do is either change the first/last apostrophe to a quote (") or get rid of all of the backslash escapes before the " in what you're looking for.

Ipuck 08 Apr 2009 06:28

Thank you very much!

I'll try that.

--------------- Added 09 Apr 2009 at 01:32 ---------------

Thanks TigerC10, but it didn't work.


All times are GMT. The time now is 03:59.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.