![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Dec 2006
Posts: 1
Rep Power: 0
![]() |
I'm having a bizarre problem here. In the function that displays tags on a Wordpress blog, I'm trying to modify the code so that the tag list works on every blog instead of only on the main blog (it's a Multi User version of Wordpress).
What I did was declare the variable "$path" and set it to my main blog domain. Then later on in my function I have this line: echo '<a href="' . $path . '?c='.$key.'" style="font-size: '.$size.'%"'; The issue is that while this works fine when a user clicks on a Tag category that has no spaces, when a tag category does have spaces then the links point to /random%2520interesting/ instead of /random%20interesting/. The consequence is that nothing displays anymore for Tag categories with spaces. I'm desparately trying to figure out what is causing this to fandango. If anyone has any ideas (particularly if you know of a variable I could use to point to the main blog site instead of declaring a new $path variable) then I would truly be much obliged. Alternatively a string replace function I could run on the above echo command or pass through the $path variable would also rock the boat. Thanks! EDIT: I fixed this problem. Apparently by including "www" in the path I was mucking things up. Now I've since taken it out and all is well in the neighborhood ![]() Last edited by suleiman; Dec 19th, 2006 at 6:40 AM. Reason: Fixed |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I just want to say "thank you" for posting the solution you discovered. Searchers with similar problems may find this thread (although searchers are usually pretty thin on the ground).
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| replace space with ' * ' | TecBrain | C++ | 15 | Apr 13th, 2005 12:32 PM |