EllisLab text mark
Advanced Search
     
“New topic” button not working
Posted: 16 April 2012 02:55 AM   [ Ignore ]
Joined: 2010-02-13
35 posts

I’m using v2.4.0 - Build: date 20120123

I’m using the Shares template, and the “New topic” button is not working properly. It is linked to ‘#’, which I’m assuming is supposed be replaced by some javascript on click.

Here’s the code on the Topics.html template where this problem is taking place.

{if can_post}
<td class="button150"><a href="#" title="{lang:post_new_topic}">img src="{path:image_url}bt_new_topic.gif" border='0' width='151' height='26' alt="{lang:post_new_topic}"/></a></td>
{/if} 

Is that the correct code?

I’ve also looked at my .htaccess as I’ve researched this problem, and here’s the code for that:

<IfModule mod_rewrite.c>
        
RewriteEngine On

        
# Removes index.php
        
RewriteCond $!\.(gif|jpe?g|png)$ [NC]
        RewriteCond 
%{REQUEST_FILENAME} !-f
        RewriteCond 
%{REQUEST_FILENAME} !-d
        RewriteRule 
^(.*)$ /index.php/$1 [L]

        
# If 404s, "No Input File" or every URL returns the same thing
        # make it /index.php?/$1 above (add the question mark)
        
</IfModule

I’m not sure what to do next.

 
Posted: 16 April 2012 03:01 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2010-02-13
35 posts

For some reason, when I paste the code for the Topics.html template, it strips out the on click part, right after the title tag. So I’ll add a space to the on click part and see if it pastes the whole thing. Ignore the extra space.

{if can_post}
<td class="button150"><a href="#" title="{lang:post_new_topic}" click="navJump('{path:new_topic}')"><img src="{path:image_url}bt_new_topic.gif" border='0' width='151' height='26' alt="{lang:post_new_topic}"/></a></td>
{/if} 

 

 
Posted: 16 April 2012 03:02 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2010-02-13
35 posts

Okay, it just removed the “on” entirely. Which it may do again with this post. Anyway, I’m sure you probably already know that.

 
Posted: 16 April 2012 09:13 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2010-02-13
35 posts

Never mind. Theme error. Carry on. smile

 
Posted: 17 April 2012 09:48 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi Sarah!

I’m glad to see you were able to sort it out in our absence! Thank you for sharing your notes along the way.

If you need anything else in the future, just let us know in a new thread!

Cheers,

 Signature 

How may I help you?