| Please you can tell me how put some costumisable text in each page of sections? |
| Author | Text |
Cylon Junior Member

Posts: 92

Gender:  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 |
|
 |
| |
chris Junior Member

Posts: 40

Gender:  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  |
|
 |
| |
mem MemHT's Dad Admin & Developer

Posts: 5118

Gender:  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 |
|
 |
| |
Cylon Junior Member

Posts: 92

Gender:  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 |
|
 |
| |
Cylon Junior Member

Posts: 92

Gender:  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 |
|
 |
| |
paulo89 Moderator Developer

Posts: 1280

Gender:  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 |
|
 |
| |
paulo89 Moderator Developer

Posts: 1280

Gender:  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 |
|
 |
| |
Cylon Junior Member

Posts: 92

Gender:  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 |
|
 |
| |
Cylon Junior Member

Posts: 92

Gender:  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 |
|
 |
| |
paulo89 Moderator Developer

Posts: 1280

Gender:  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? |
|
 |
| |