Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support > "yget"

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-29-2007, 10:50 PM
Casual Pligger
 
Join Date: Mar 2007
Posts: 32
Thanks: 7
Thanked 0 Times in 0 Posts
How do I add another about pligg box????

Hi.

I want to add another box (like the about pligg) box on the right side of the side, with my own text.
So how do I do that????

Thank you
__________________
www.TechFeed.ca | www.TechFeed.info |
Reply With Quote
  #2 (permalink)  
Old 03-30-2007, 12:31 AM
onelessthang's Avatar
Constant Pligger
 
Join Date: Feb 2007
Location: Dallas, TX - USA
Posts: 120
Thanks: 39
Thanked 32 Times in 16 Posts
In templates>yget>sidebar>modules

1. Create new file mycontent.tpl


Code:
<div class="tlb">
{php}
	echo "<span><img src=\"".my_pligg_base."/templates/yget/images/expand.png\"  onClick=expandcontent(this,'s1') ></span>    ";
{/php}

<a href="#">My Content</a> --title of sidebar
Place your new content here
</div>
  </div>
3.Save your adsense.tpl file
4. make sure you upload your adsense.tpl file to

Next

1. Open sidebar.tpl file in
2. Add this line of code where ever you want the side bar to show up templates>yget>sidebar>modules



Code:
{assign var=sidebar_module value="mycontent"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
since I wanted my adsense above the categories I placed the code above this line

Code:
{assign var=sidebar_module value="categories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
so it looks like this

Code:
{assign var=sidebar_module value="mycontent"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}

{assign var=sidebar_module value="categories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
3. save your sidepar.tpl file

I hope this helps.


Be Well,
Onelessthang
Reply With Quote
  #3 (permalink)  
Old 03-30-2007, 02:41 AM
Casual Pligger
 
Join Date: Mar 2007
Posts: 32
Thanks: 7
Thanked 0 Times in 0 Posts
I'm not clear about step:

Quote:
3.Save your adsense.tpl file
4. make sure you upload your adsense.tpl file to
I dont see that file anywhere...

and if I do the rest of your instructions I see the new box on the right side, however the whole site gets misaligned...

Am I doing something wrong???
__________________
www.TechFeed.ca | www.TechFeed.info |
Reply With Quote
  #4 (permalink)  
Old 03-30-2007, 10:11 AM
onelessthang's Avatar
Constant Pligger
 
Join Date: Feb 2007
Location: Dallas, TX - USA
Posts: 120
Thanks: 39
Thanked 32 Times in 16 Posts
My apologies, I had copied my adding an adsense instructions and forgot to change the file name to mycontent.tpl.

You can find these instructions on thread:

http://www.pligg.com/forum/showthread.php?t=5013

All you would have to do is replace the adsense code with the code you want in your box.


Again sorry for the confusion.

OneLessThang
Reply With Quote
  #5 (permalink)  
Old 03-30-2007, 06:38 PM
Casual Pligger
 
Join Date: Mar 2007
Posts: 32
Thanks: 7
Thanked 0 Times in 0 Posts
Ok, I must be doing something wrong, because I keep getting the same misalignment problem.

here is what I did;

In templates>yget>sidebar>modules

1. Create new file adsense.tpl
2. Cut and paste code needed for sidebar module into adsense.

Code:
<div class="tlb">
{php}
	echo "<span><img src=\"".my_pligg_base."/templates/yget/images/expand.png\"  onClick=expandcontent(this,'s1') ></span>    ";
{/php}

<a href="#">Sponsored Links</a>

</div>
To place your Add here, please contact us. 
Thank you

  </div>
Next

1. Open sidebar.tpl file in
2. Add this line of code where ever you want the side bar to show up templates>yget>sidebar>modules

Code:
{config_load file="/libs/lang.conf"}


{if $user_authenticated ne true} {* show only if NOT logged in *}

	{assign var=sidebar_module value="about_box"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}

{/if}



{checkActionsTpl location="tpl_sidebar_top"} 

 

{if $user_authenticated ne true} {assign var=sidebar_module value="login"}{include file=$the_template_sidebar_modules."/wrapper2.tpl"} {/if}



{assign var=sidebar_module value="sidebar_stories_u"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}



{assign var=sidebar_module value="sidebar_stories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}


{assign var=sidebar_module value="categories"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}



{if $enable_tags eq 'true'} {assign var=sidebar_module value="tags"}{include file=$the_template_sidebar_modules."/wrapper.tpl"} {/if}


{assign var=sidebar_module value="rss"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}


{assign var=sidebar_module value="adsense"}{include file=$the_template_sidebar_modules."/wrapper.tpl"}
3. save your sidepar.tpl file


What am I doing wrong?????
__________________
www.TechFeed.ca | www.TechFeed.info |
Reply With Quote
  #6 (permalink)  
Old 03-30-2007, 06:53 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
Change this
Code:
<div class="tlb">
{php}
	echo "<span><img src=\"".my_pligg_base."/templates/yget/images/expand.png\"  onClick=expandcontent(this,'s1') ></span>    ";
{/php}

<a href="#">Sponsored Links</a>

</div>
To place your Add here, please contact us. 
Thank you

  </div>
to

Code:
<div class="tlb">
     {php}echo "<span> <a onclick=\"new Effect.toggle('ads','blind', {queue: 'end'}); \">  <img src=\"".my_pligg_base."/templates/yget/images/expand.png\"> </span>"; {/php}
     <a href="#">Sponsored Links</a>
</div>

<div id="ads">
     To place your Add here, please contact us. 
     Thank you
 </div>
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
The Following 2 Users Say Thank You to kbeeveer46 For This Useful Post:
  #7 (permalink)  
Old 03-31-2007, 12:19 AM
onelessthang's Avatar
Constant Pligger
 
Join Date: Feb 2007
Location: Dallas, TX - USA
Posts: 120
Thanks: 39
Thanked 32 Times in 16 Posts
Red face

Sorry for forgetting that other <div> start
Reply With Quote
The Following User Says Thank You to onelessthang For This Useful Post:
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 On
[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
Pligg integration with SMF Forum autoinc Modification Tutorials 64 05-19-2008 02:22 AM


Search Engine Friendly URLs by vBSEO 3.2.0