Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 08 Apr 2009, 03:25
Ipuck's Avatar
Ipuck Ipuck is offline
 
Join Date: Jun 2006
Real name: William O
Help with mod

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.

Attached Files
File Type: xml posts_and_threads_prduct.xml (2.8 KB, 2 views)
Reply With Quote
  #2  
Old 08 Apr 2009, 04:40
TigerC10's Avatar
TigerC10 TigerC10 is offline
 
Join Date: Apr 2006
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.
__________________
~TigerC10~

Last edited by TigerC10; 08 Apr 2009 at 04:52.
Reply With Quote
  #3  
Old 08 Apr 2009, 06:28
Ipuck's Avatar
Ipuck Ipuck is offline
 
Join Date: Jun 2006
Real name: William O
Thank you very much!

I'll try that.

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

Thanks TigerC10, but it didn't work.

Last edited by Ipuck; 09 Apr 2009 at 01:32. Reason: Auto-Merged DoublePost
Reply With Quote
Reply



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

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


New To Site? Need Help?

All times are GMT. The time now is 16:30.

Layout Options | Width: Wide Color: