coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: flowmo on September 18, 2007, 11:04:44 PM

Title: Simple question regarding how not to rewrite just one URL
Post by: flowmo on September 18, 2007, 11:04:44 PM
$fileslnkr = "<li id=\"files\"><a href=\"http://www.mysite.com/thumbnails.php?album=lastupby&uid=$USER_ID\">Files<span></span></a></li>";
}


I'm using this to switch a navigation item for users when they are logged in (in theme.php).. The problem is, my site uses the SEF URL plugin, so the URL is being rewritten.. With the SEF URL plugin, the URL is rewritten to "http://www.mysite.com/thumbnails-lastupby.html&uid=4", which of course does not work..

Is there a way to force this to not be rewritten? It's not possible to put the link in template.html, so I'm pretty lost here  :-\
Title: Re: Simple question regarding how not to rewrite just one URL
Post by: Nibbler on September 18, 2007, 11:30:25 PM
Evade the SEF ;)


$fileslnkr = "<li id=\"files\"><a href=\"http://www.mysite.com/thumbnails.php?uid=$USER_ID&album=lastupby\">Files<span></span></a></li>";
}
Title: Re: Simple question regarding how not to rewrite just one URL
Post by: flowmo on September 18, 2007, 11:47:36 PM
Awesome... Thank you Nibbler  :)

I love the SEF plugin, too bad everyone seems to hate it.. If more people were using it and not putting it down there would be more discussion and improvement from the community  :-\

Only real issue I have seen with it is that the last uploaded pictures links and pagination are rewritten improperly and don't work, but that's what I aim to fix this afternoon.
Title: Re: Simple question regarding how not to rewrite just one URL
Post by: cl9m on October 07, 2008, 03:59:44 PM
Sorry but i don't understand where i must paste the code please can you tell me more
Title: Re: Simple question regarding how not to rewrite just one URL
Post by: Joachim Müller on October 08, 2008, 10:18:40 AM
The above code snippets refer to custom code that the thread starter has come up with on his page. That piece of code doesn't reside in a file that comes with coppermine. Hence, you can't paste it into an existing file and hope that it miraculously starts working and doing things. Start a thread of your own, describing what you're actually trying to accomplish. Posting a link to your gallery might be a good idea as well.