1

Topic: New page linked in header

Hi everybody,    i am new here and sharetronixguide.com is doing great job...i just want to know that how can i add a new page in sharetronix and i want to display the page link in header ....such like links in sharetronix for home,members, groups etc...please helpThanks in advance

Thumbs up Thumbs down

2

Re: New page linked in header

To create a new page with the sharetronix site .Please follow this guideline
http://sharetronixguide.com/topic/54/ho … aretronix/

After creating the pages you can straightaway embed the code (URL of the pages)  in your theme .
 

 

If the page is only visible to the logged in users then you can embed the code in the If (is_logged) tag
For Example  the 

<?php if( $this->user->is_logged ) { ?>
                            <div id="avatar"><img src="<?= $C->IMG_URL ?>avatars/thumbs2/<?= $this->user->info->avatar ?>" alt="" /></div>
                            <a href="<?= $C->SITE_URL ?><?= $this->user->info->username ?>" id="username"><span><?= $this->user->info->username ?></span></a>
                            <div id="userlinks">
                                <a href="<?= $C->SITE_URL ?>settings"><b><?= $this->lang('hdr_nav_settings') ?></b></a>
                                <a href="<?= $C->SITE_URL ?>signout"><b><?= $this->lang('hdr_nav_signout') ?></b></a>
                            </div>
                           

Add the new url  in between this div tag found one the line number " 83-89 " in  header.php file of Defualt Theme

Page available for non-login users

<?php } else { ?>
                            <div id="userlinks">
                                <a href="<?= $C->SITE_URL ?>signin"><b><?= $this->lang('hdr_nav_signin') ?></b></a>
                                <a href="<?= $C->SITE_URL ?>signup"><b><?= $this->lang('hdr_nav_signup') ?></b></a>
                            </div>
Add the new url  in between this div tag found one the line number " 91-95 " in  header.php file of Default Theme

Best of luck!

Install Turnkey Web Scripts start your own profit portals
Do someMicro Jobs and earn decent money on your part time

3

Re: New page linked in header

thanks for fast reply dear Admin....          as you told i used example page for new page and embed the code (url of the page) in header of default theme. now problem is that the link is created for sample page but text (name of page "about" )is not displaying... help please....thanks in advanced
the url code which i embed is

<a href="<?= $C->SITE_URL ?>about"><b><?= $this->lang('hdr_nav_about') ?></b></a>

Last edited by innocent_love6 (2010-07-28 23:07:36)

Thumbs up Thumbs down

4

Re: New page linked in header

Instead you can  try by directly embedding the URL in your anchor text


  <a href=" www.Yoursite.com/about"> <b> About </b></a>



Install Turnkey Web Scripts start your own profit portals
Do someMicro Jobs and earn decent money on your part time

5

Re: New page linked in header

thanks for quick reply dear admin.  i already try these kinds of links.these not work on sharetronix . on your telling i tried once again and this not work for me. please help to solve this problem once again...thanks in advanced

Thumbs up Thumbs down

6

Re: New page linked in header

There is preety easy way to create the pages has been shared by the member Zeronix ..I have tested the file and it works like charm

http://www.mediafire.com/?719zj5vgbr2j7ft


Download the file and follow the instruction present in the "Read me " File "

Note :
The file is shared by member Zeronix and read-me file is modified by sharetronixguide.com

Credits :
Author : Zeronix
Author Website : http://pixel4tune.de/tweet

Install Turnkey Web Scripts start your own profit portals
Do someMicro Jobs and earn decent money on your part time

7

Re: New page linked in header

Still my problem is not solved... Link is not being shown in the header with address links of groups and members, etc.

Thumbs up Thumbs down

8

Re: New page linked in header

After adding the page content ,you have add the link ( Menu) manually in your theme file For this reference the 2nd thread of this post surely it will helps

Install Turnkey Web Scripts start your own profit portals
Do someMicro Jobs and earn decent money on your part time

9

Re: New page linked in header

Look Brother, I have followed all the steps precisely, as told by you.I tried almost all the proposed solutions in the current topic.I also tried manually links as well, like:Case 1:

<a href="<?= $C->SITE_URL ?>about"><b><?= $this->lang('hdr_nav_about') ?></b></a>

Link is being created with the help of above code but the text (about) is not visible.
Case 2:

<a href=" www.Yoursite.com/about> <b> About </b></a>

Text (about) is visible but link is not working in this case!
But still not working for me actually.
The real problem em facing currently is that, text of the link is not visible in the header Menu links..! Thats my point.

Last edited by innocent_love6 (2010-08-04 18:19:17)

Thumbs up Thumbs down

10

Re: New page linked in header

You have error in your code in case 2 ( you have missed Double Quotes) :
It should be

<a href="www.Yoursite.com/about"> <b> About </b></a>

Try this

Install Turnkey Web Scripts start your own profit portals
Do someMicro Jobs and earn decent money on your part time

11

Re: New page linked in header

okay...
aaahh!!My mistake..
I will try it again and will update you sooner..Till then Thanks a lot smile

Thumbs up +1 Thumbs down

12

Re: New page linked in header

i tried this code for link

<a href="<?= $C->SITE_URL ?>about"> <b> About </b></a>

and it work for me..

Thumbs up Thumbs down

13

Re: New page linked in header

Ya.Thanks for sharing this. will helps our members for sure.

Install Turnkey Web Scripts start your own profit portals
Do someMicro Jobs and earn decent money on your part time

14

Re: New page linked in header

tried all the above, no use !
either the text appears without linkor text with link , but no classorJust the link , with No text..
huh!

Thumbs up +1 Thumbs down

15

Re: New page linked in header

greatkaniska wrote:

tried all the above, no use !
either the text appears without linkor text with link , but no classorJust the link , with No text..
huh!

Paste the code here. I will look into it  ,what made wrong?

Install Turnkey Web Scripts start your own profit portals
Do someMicro Jobs and earn decent money on your part time