Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-25-2008, 07:11 AM
New Pligger
 
Join Date: Jun 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question How to display user ad according to article submitter's username

My pligg-powered site has several managers. I want to display different manager's advertisment on the article pages that are submitted by he/she. I build a .tpl file to contain every manager's advertisment code,such as Google AdSense. Then, I want to insert the following sentences into template.

{if file_exists($aticle_submitter_username.".tpl")}
{include file=$aticle_submitter_username.".tpl"}
{else}
{include file="the admin's ads file"}
{/if}


But I donnot know the default variable which means aticle submitter's username. Who can help me? Or tell me better or right way to solve the problem. Thanks!
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
email user forgotten password and username momanity Customization Assistance 2 07-11-2008 06:47 PM
Is it possible to display Karma points along with user name johnvgross General Help 2 03-21-2008 08:49 AM
Featured article mod doesn't display time posted correctly AshMCairo General Help 0 10-05-2007 08:13 AM
Trouble getting user 'inbox' to display on new pages betagirl General Help 1 07-19-2007 05:06 PM


Search Engine Friendly URLs by vBSEO 3.2.0