![]() |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| How to identify the index page? how to identify if the page is the index page - ie the page displayed is http://www.domain.com/index.php or http://www.domain.com/ or if it is the first page of the published news? Any help is really appreciated. TIA
__________________ Get the latest Pligg nightly - updated daily and packed as an archive | Help to translate Pligg to other language Meme or Lame Magazine - a top rated niche site that sends more traffic - citizen media for Gizmophiles Have a Mobile phone try Dollars 5 Complete software to make your mobile complete |
| Sponsored Links |
|
Check out the New Modules at the Pligg Pro Shop.
|
| ||||
| Thanks for the reply, me too tried the same, but the index.php has the $pagename as "published" instead of "index" - so the code does not work. I use 9.6 from Sourceforge. Is it fine If I change the name back to "index" in index.php - I am not sure which version this was changed - with pre 9.x version there is an $pagename "index" - was that change intentional?
__________________ Get the latest Pligg nightly - updated daily and packed as an archive | Help to translate Pligg to other language Meme or Lame Magazine - a top rated niche site that sends more traffic - citizen media for Gizmophiles Have a Mobile phone try Dollars 5 Complete software to make your mobile complete |
| ||||
| I just used the {if $pagename eq "index" } code a week ago on a 9.6 template, it has to work. I guess I'm just misunderstanding something. |
| ||||
| Enclosed is the /index.php from the package located at http://sourceforge.net/project/showf...ease_id=511871 lines 85-87 has the following code: Code: // pagename
define('pagename', 'published');
$main_smarty->assign('pagename', pagename); Thanks for all help.
__________________ Get the latest Pligg nightly - updated daily and packed as an archive | Help to translate Pligg to other language Meme or Lame Magazine - a top rated niche site that sends more traffic - citizen media for Gizmophiles Have a Mobile phone try Dollars 5 Complete software to make your mobile complete |
| ||||
| Am still confused why this was changed this way? any help is appreciated.
__________________ Get the latest Pligg nightly - updated daily and packed as an archive | Help to translate Pligg to other language Meme or Lame Magazine - a top rated niche site that sends more traffic - citizen media for Gizmophiles Have a Mobile phone try Dollars 5 Complete software to make your mobile complete |
| ||||
| I just searched the SVN - to find this interesting - kb has changed the index page to published page in revision 1005 on April 28, 2007 http://pligg.svn.sourceforge.net/vie...r1=891&r2=1005 I just tried changing the $pagename in index.php - but the effect is that if any category is selected - it passes the if $pagename eq "index" test - totally struck. Thanks for any help on this.
__________________ Get the latest Pligg nightly - updated daily and packed as an archive | Help to translate Pligg to other language Meme or Lame Magazine - a top rated niche site that sends more traffic - citizen media for Gizmophiles Have a Mobile phone try Dollars 5 Complete software to make your mobile complete |
| ||||
| index.php.... line 39/40 says: Code: // figure out what "page" of the results we're on $search->offset = (get_current_page()-1)*$page_size; Code: $main_smarty->assign('pagenumber', $search->offset); use it in your template: Code: {if $pagename eq 'published'}
{if $request_category eq ""}
{if $pagenumber eq "0"}this is the homepage{/if}
{/if}
{/if}
__________________ Like my work? Donations are welcome if you would like to support my work! Finger pliggin' good sites of mine: receptencocktail.nl / numarketing.nl / goboz.com Last edited by beatniak : 06-28-2007 at 08:51 AM. Reason: minor code typo |
| The Following User Says Thank You to beatniak For This Useful Post: | ||
| ||||
| thanks steef: just changed it a bit to teh following code: Code: {if $pagename eq "published" and $request_category eq "" and $pagenumber eq 0}
this is home
{/if}
__________________ Get the latest Pligg nightly - updated daily and packed as an archive | Help to translate Pligg to other language Meme or Lame Magazine - a top rated niche site that sends more traffic - citizen media for Gizmophiles Have a Mobile phone try Dollars 5 Complete software to make your mobile complete |
| The Following User Says Thank You to dollars5 For This Useful Post: | ||
| ||||
| Thanks again steef, it works like a pro - i had been bugging on this for 2 days and didnt pass on - dunno how I missed basic simple steps - should have relaxed before thinking fresh :)
__________________ Get the latest Pligg nightly - updated daily and packed as an archive | Help to translate Pligg to other language Meme or Lame Magazine - a top rated niche site that sends more traffic - citizen media for Gizmophiles Have a Mobile phone try Dollars 5 Complete software to make your mobile complete |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| full story (not summary) on index page | revolver | General Help | 2 | 06-24-2007 10:03 AM |
| not appear the Avatar in the index page Question | trh792 | General Help | 2 | 03-31-2007 06:57 PM |
| Display Top Users in Index page | scasey | Pligg Templates | 0 | 07-02-2006 02:03 AM |
| tag cloud on index page | solutionsphp | "Mollio-Beat" | 2 | 06-17-2006 01:16 PM |
| /var/log/httpd/error_log messages | gr8rcake | Bug Report | 3 | 01-28-2006 08:28 PM |





Linear Mode

