about PHP

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-20-2009, 10:28 AM
New Pligger
Pligg Version: 1.0.3
 
Join Date: Dec 2009
Posts: 2
Hello, Thank you for such a wonderful CMS. I'm now having a great time using Pligg.

I have a question on PHP.
I am trying to get the last numbers from URL (the last number thats put when the story title is overlapped like "story.php?title=overlapped_title-2") and trying my poor PHP, but not working.

Can anyone teach me why this is not working?

<a href="{$story_url}">{$title_short}
{php}
$str = substr("{$story_url}",15);
echo "$str";
{/php}</a>
Reply With Quote
  #2 (permalink)  
Old 12-24-2009, 04:32 PM
New Pligger
Pligg Version: 1.0.3
 
Join Date: Dec 2009
Posts: 2
...or is there any alternative ways to show overlapped number after the story title?

following numbers are what I'm talking about. Its now showing in the URL but I also want it in the story title.

overlapped_title
overlapped_title-2
overlapped_title-3
overlapped_title-4
overlapped_title-5

I will appreciate a lot if you give me any advise possible.

Merry Christmas!
Reply With Quote
Reply

Tags
php, title, url

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/log/httpd/error_log messages gr8rcake Questions and Comments 4 06-01-2010 12:25 PM
Pligg Errors tcritic Questions and Comments 4 09-01-2009 10:40 AM
Submitting stories...again kingp Questions and Comments 5 05-07-2007 01:58 PM
cann't vote in pligg (buliding 802) haxhax Questions and Comments 27 03-10-2007 07:53 AM
dreamhost and validation image problem Xanatos Questions and Comments 17 01-17-2007 02:14 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development