Go Back   Pligg CMS Forum > Other > Suggestions

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 07-06-2007, 02:59 AM
P1mpPanther's Avatar
Constant Pligger
 
Join Date: Feb 2007
Posts: 292
Thanks: 47
Thanked 10 Times in 9 Posts
you'll want to add an <a href> tag in your header with a link to your new static file.
__________________
RunStream :: RSS feed creator | RSS Marketing Platform | TagBlast!

...and a Pligg site on deck!
Reply With Quote
  #12 (permalink)  
Old 07-20-2007, 02:26 AM
Constant Pligger
Pligg Version: Pligg 9.9
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Ottawa, Ontario
Posts: 156
Thanks: 27
Thanked 9 Times in 9 Posts
Any idea on how to remove sidebars just from static pages. I tried tampering with the custom.php code but with no result. Could it be possible?
Reply With Quote
  #13 (permalink)  
Old 08-17-2007, 06:47 AM
amsy's Avatar
New Pligger
Pligg Template: TheMissingpiec
 
Join Date: Jul 2007
Location: İstanbul
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
anyone know how can I change this new page title???
Reply With Quote
  #14 (permalink)  
Old 09-03-2007, 06:23 PM
New Pligger
 
Join Date: Aug 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jrothra View Post
Creating the static page with this system was VERY easy! Thank you. Now I have one more question.

Okay, I feel silly asking this, but I'm not sure how to do this with all the if... then phrases.

I'm wanting to add a link to the static page I just made and put the link in the nav section in gray at the top (FaithTag / Published News)

The code for the header that includes that (header.tpl) is as follows (I think):
Code:
<div id="headbar" style="padding-bottom:2px;">
	<ul>
		{if $user_authenticated eq true}
			{#PLIGG_Visual_Welcome_Back#} {if $UseAvatars neq "0"} <img src="{$Current_User_Avatar_ImgSrc}" alt="Avatar" align="absmiddle"/>{/if} {$user_logged_in}!&nbsp;&nbsp;
			{if $isadmin eq 1} <a href="{$URL_admin}">{#PLIGG_Visual_Header_AdminPanel#}</a> &nbsp;&nbsp; {/if}		
			<a href='{$my_base_url}{$my_pligg_base}'>{#PLIGG_Visual_Home#}</a> &nbsp;&nbsp;
			<a href="{$URL_userNoVar}">{#PLIGG_Visual_Profile#}</a> &nbsp;&nbsp;
			{checkActionsTpl location="tpl_sidebar_logged_in_just_below_profile"}
			<a href='{$URL_topusers}'>{#PLIGG_Visual_Top_Users#}</a> &nbsp;&nbsp;
			{if $Enable_Tags eq 'true'}<a href="{$URL_tagcloud}">{#PLIGG_Visual_Tags#}</a> &nbsp;&nbsp; {/if}
			<a href="{$URL_logout}">{#PLIGG_Visual_Logout#}</a> &nbsp;&nbsp;
		{else}
			<a href='{$my_base_url}{$my_pligg_base}'>{#PLIGG_Visual_Home#}</a> &nbsp;&nbsp;
			<a href='{$URL_login}'>{#PLIGG_Visual_Login_Title#}</a> &nbsp;&nbsp;
			<a href='{$URL_register}'>{#PLIGG_Visual_Register#}</a> &nbsp;&nbsp;
			<a href='{$URL_topusers}'>{#PLIGG_Visual_Top_Users#}</a> &nbsp;&nbsp;
			{if $Enable_Tags eq 'true'}<a href="{$URL_tagcloud}">{#PLIGG_Visual_Tags#}</a> &nbsp;&nbsp; {/if}
		{/if}
		 <a href="http://www.faithtag.com/module.php?module=ajaxcontact">Contact Us</a> &nbsp;&nbsp;

	</ul>
</div>
Now, what do I enter to create the link to my static page?

EDIT -----
Okay, I feel really foolish now. I just created a standard link to the page and it worked. I guess the lesson is this: don't overlook the simple things just because other things seem to confuse you. I got lost in the if... then PHP and didn't think about a standard link. The standard link worked.
How did you link your static page. I want to add a link on the bar with the "tag cloud" section and the "submit news" section.

Thanks!

Steve
Reply With Quote
  #15 (permalink)  
Old 09-22-2007, 08:23 AM
KPR KPR is offline
Casual Pligger
 
Join Date: Aug 2007
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Excellent this was something i needed.

cheers.
Reply With Quote
  #16 (permalink)  
Old 09-22-2007, 11:57 AM
davemackey's Avatar
Pligg Donor
Pligg Version: 9.9.
Pligg Template: siChunkBlue
 
Join Date: Aug 2007
Location: Langhorne, PA
Posts: 286
Thanks: 33
Thanked 18 Times in 14 Posts
Ash, what's the chance we can eventually see some static CMS pages built-in? It would be wonderful to be able to add pages without hacking to hack the PHP.
David.
Reply With Quote
  #17 (permalink)  
Old 02-01-2008, 01:56 AM
Divisive Cotton's Avatar
Pligg Donor
 
Join Date: Sep 2007
Posts: 219
Thanks: 2
Thanked 12 Times in 7 Posts
What's the best way of sorting out a unique title and meta tags if you use this?
Reply With Quote
  #18 (permalink)  
Old 02-02-2008, 03:45 AM
Divisive Cotton's Avatar
Pligg Donor
 
Join Date: Sep 2007
Posts: 219
Thanks: 2
Thanked 12 Times in 7 Posts
It's alright, figured it out - it's pretty straight forward
Reply With Quote
  #19 (permalink)  
Old 02-08-2008, 01:43 PM
New Pligger
Pligg Version: 9.8.1
Pligg Template: Blue-Eye Template
 
Join Date: Nov 2007
Location: USA
Posts: 7
Thanks: 0
Thanked 2 Times in 1 Post
Applying these mods I get a Fatal error

Hello,

I am using the convergence temple on a new pligg site version 9.9. I edited my pages as you outlined above and everything looks great except that I recieve a

Fatal error: Cannot redeclare shortentext() (previously declared in /home/gilberto/domains/real-estate-mini-sites.com/public_html/sidebar_comments.php:45) in /home/gilberto/domains/real-estate-mini-sites.com/public_html/sidebar_comments.php on line 45

Note: I did not edit any other page of code.

Anyone know how to correct this issue?

Thanks.

Convergence, the template I am using is awesome, I just need help in tweaking it.

Thanks again.
Reply With Quote
  #20 (permalink)  
Old 03-06-2008, 02:17 PM
New Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Nov 2007
Posts: 23
Thanks: 3
Thanked 1 Time in 1 Post
Quote:
Originally Posted by AshDigg View Post
I've attached an update version of the code above to work with 9.5/9.6. Upload the custom.php file into your pligg folder and the custom_center.tpl file into your /templates/yget folder. If you want to rename the .php file there should be no problems. If you rename the .tpl file, change line 5 in the .php file.

You can use static text in the .tpl file or if you look at it there is an example of how to include some PHP to make it more dynamic.
Is there something similar for latest Pligg version?

Thanks!
__________________
Kelby Carr, operator of the Type-A Mom Network

Type-A Mom, a site where moms can write, share and earn | momShare, a Pligg-based social bookmarking site just for moms | Foodie Mama, where foodie moms can share recipes and tips for revenue
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 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
Page Variables Yankidank Wiki Articles 1 08-13-2008 03:59 AM
Static page not working KPR General Help 1 04-10-2008 11:11 AM
Creating Static Page whiteclothed Modification Tutorials 3 02-16-2008 12:55 AM
How to make a static page cooldudeny General Help 3 12-07-2007 01:03 PM


Search Engine Friendly URLs by vBSEO 3.2.0