MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Moderators: Moderators
Page 1/5 1 2 3 4 > >|
Forum RSS feedReply
Please you can tell me how put some costumisable text in each page of sections?
AuthorText
Cylon
Junior Member
Avatar

Posts: 92
Contributes: 53

Gender: _MALE_
Online: No
Date: 02/07/2008 20:55
Please you can tell me how put some costumisable text in each page of sections?
#post9121
Hi again i know you are very bussy, but I need put some text like a little explanation of each page, i means like introductory features or sentences, also have the posibility to put Images either.

As you know im ammateur in PHP and afficionate programer not profesional, please is you can teachme how stepo by step I apreciate, I learn fast and with a simple sample i can do the all my job.

If im confuse yoo is similar like this you have:

http://www.memht.com/documents.html

Many Thanks
Cylon
Delete Edit Quote
 
chris
Junior Member
Avatar

Posts: 40
Contributes: 24

Gender: _NEUTRAL_
Online: No
Date: 02/07/2008 21:15
Re: Please you can tell me how put some costumisable text in each page of sections?
#post9126
Este funccion es parte del "addon" que se llama Documents. Si quires escribe lo que quires en espanol a lo mejor te entiendo mejor Smile
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5118
Contributes: 2461

Gender: _MALE_
Online: No
Date: 02/07/2008 21:17
Re: Please you can tell me how put some costumisable text in each page of sections?
#post9127
I have added manually that text.

I can only give you a hint, cannot create the code, sorry:

1) Add a field called "mydesc" or whatever you want in the memht_pagine table

2) inc/inc_header.php

Find
code
if ($row = $dblink->get_row("SELECT titolo,description,keywords,fullscreen,rank,enabled FROM memht_pagine WHERE nome='$page'")) {
        $pagetitle = outCode($row['titolo']);


Replace with
code
if ($row = $dblink->get_row("SELECT titolo,description,keywords,fullscreen,rank,enabled,mydesc FROM memht_pagine WHERE nome='$page'")) {
        $pagetitle = outCode($row['titolo']);
        $mydesc = outCode($row['mydesc']);


3) root/index.php
Find on row 169
code
$pagecontent['name'] = $page;
include("pages/$page/index.php");


Replace with
code
$pagecontent['name'] = $page;
global $mydesc;
echo $mydesc;
include("pages/$page/index.php");


The description have to be added manually from phpmyadmin, or if you know how, modify the admin page
Delete Edit Quote
 
Cylon
Junior Member
Avatar

Posts: 92
Contributes: 53

Gender: _MALE_
Online: No
Date: 02/07/2008 22:16
Re: Please you can tell me how put some costumisable text in each page of sections?
#post9136
Thanks Mem I inform you my progress.
Regards
Cylon
Delete Edit Quote
 
Cylon
Junior Member
Avatar

Posts: 92
Contributes: 53

Gender: _MALE_
Online: No
Date: 03/07/2008 08:09
Re: Please you can tell me how put some costumisable text in each page of sections?
#post9158
Sorry Mem Im declare no be an expert i try and try all day and without success, you dont know other way more easy to do thios remember im a amateur novice self learn in PHP.

lOl

please Help

Thanks
Cylon
Delete Edit Quote
 
paulo89
Moderator
Developer

Avatar

Posts: 1280
Contributes: 517

Gender: _MALE_
Online: Yes

Version: 3.8.1
Country: Portugal
Languages: Portuguese, Portuguese and little english ^^
Date: 03/07/2008 09:10
Re: Please you can tell me how put some costumisable text in each page of sections?
#post9161
The mem has to study ^^

I have to go work now, i´m back to 19h30m (time Portuguese)if you want to wait, when i back i help you with it
Delete Edit Quote
 
paulo89
Moderator
Developer

Avatar

Posts: 1280
Contributes: 517

Gender: _MALE_
Online: Yes

Version: 3.8.1
Country: Portugal
Languages: Portuguese, Portuguese and little english ^^
Date: 03/07/2008 09:33
Re: Please you can tell me how put some costumisable text in each page of sections?
#post9162
ok i made a faster example:

Check (index.php) lines 171 to 174
Check (inc/inc_header.php) lines 172 to 176

if you want to add that it in admin panel, then you have to wait until I back ^^

P.S phpmyAdmin field name = mydesc
Attachment: Cylon.rar
Delete Edit Quote
 
Cylon
Junior Member
Avatar

Posts: 92
Contributes: 53

Gender: _MALE_
Online: No
Date: 03/07/2008 09:35
Re: Please you can tell me how put some costumisable text in each page of sections?
#post9163
Thanks Paulo Now here is 3:34 am I tired and going to sleep a few hours but i see you in your night/my Morning.

Thanks
Obrigado
Cylon
Delete Edit Quote
 
Cylon
Junior Member
Avatar

Posts: 92
Contributes: 53

Gender: _MALE_
Online: No
Date: 03/07/2008 18:00
Re: Please you can tell me how put some costumisable text in each page of sections?
#post9187
Hello Paulo Im here again waiting for your commands

Thanks
Cylon
Delete Edit Quote
 
paulo89
Moderator
Developer

Avatar

Posts: 1280
Contributes: 517

Gender: _MALE_
Online: Yes

Version: 3.8.1
Country: Portugal
Languages: Portuguese, Portuguese and little english ^^
Date: 03/07/2008 20:19
Re: Please you can tell me how put some costumisable text in each page of sections?
#post9195
Hi

U tested the attachment?
Delete Edit Quote
 
Reply
Page 1/5 1 2 3 4 > >|
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.103.63.59

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo