Simple question regarding how not to rewrite just one URL Simple question regarding how not to rewrite just one URL
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Simple question regarding how not to rewrite just one URL

Started by flowmo, September 18, 2007, 11:04:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

flowmo

$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  :-\

Nibbler

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>";
}

flowmo

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.

cl9m

Sorry but i don't understand where i must paste the code please can you tell me more

Joachim Müller

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.