Nov 23, 2008 | 12:46 PM  
Welcome

Don't have an account yet? You can create one, it is free, just click here

as a registered user you have some advantages like free downloads, comments and posting on our forums, depending upon this site's configuration and options.

 • •  Control Panel - Register - Login  • • 
Current Stable MDPro Lite 1.0821 Download
  Forum FAQForum FAQ   SearchSearch  UsergroupsUsergroups  PreferencesPreferences  Options forumOptions forum  Watched TopicsWatched Topics  Watched ForumsWatched Forums
Latest forum posts Latest forum posts  Log in to check your private messages Log in to check your private messages    Log inLog in 
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ilovemyself
MD user level 1
MD user level 1


Joined: Sep 13, 2008
Posts: 13

Member
Post  Posted: Sep 15, 2008 - 08:30 AM Reply with quote Back to top
Post subject: Banners for MDPro

I'm really not too sure where to place any type of html or java code in mdpro?

for example:-

(1) I wish for for the wunderland weather banner to placed at the top of site (in header, to the right of my site logo).... but when I try and place the html code for the banner at the bottom of all the header.php gumf already in there, I save and reload site, and only comes up with white screen and error writing in bold? i dont really know where to put the code to be honest............. I know I dont place it in the theme.html (I use point sky for now, but will change to auto theme soon) as I tried that and screwed the whole top of the site up


(2) Which files do I have to edit to add banners? e.g. I want banners and small logo's of companies all the way down the left and right hand side of my page, and the footer ..... where do I put these banner codes in mdpro?


(3)once I have figured out number 2 lol, how do I get the ad's to change for each different page? I mean.....

index page – 1 page of ads(banners)
forum page – different set of adsbanners)in header and footer
news page -different set of ads banners) in different places
blog page- different set of ads (banners)

for continual rotation of company adverts.........



I would have thought this could have been solved with a nice big module that could do advertising for mdpro, bu there wasnt one included in the new mdpro 1.0821 that I downloaded, and I cant find any advertising modules anywhere for mdpro, I did hear of something called ezbanner? but cant find that on the net.....

Isd there any site for mdpro modules?


I really dont know how to use mdpro from the start. I'm beginner but i've been with joomla for years and is so easy my son could do it lol. Is there not a downloadable pdf manual / help guide for mdpro ?? it's so much harder to interpret things than joomla or phpnuke.


i'm not giving up with mdpro just yet though Smile
best regards
rob / large world antiques website, UK
View user's profile
Skin
MD Staff
MD Staff


Joined: July 31, 2003
Posts: 410
Location: Italy

Post  Posted: Sep 16, 2008 - 12:10 AM Reply with quote Back to top

Here is a banner module

_________________
PointNet: Web and Design
View user's profile Visit poster's website
Skin
MD Staff
MD Staff


Joined: July 31, 2003
Posts: 410
Location: Italy

Post  Posted: Sep 16, 2008 - 12:16 AM Reply with quote Back to top

You can put html code in the templates of the theme,you can also create an html block using admin/settings/block/new block/.
There is also the funcs.php file, in the root of your theme, here you can put php functions, javascripts and so on.

_________________
PointNet: Web and Design
View user's profile Visit poster's website
ilovemyself
MD user level 1
MD user level 1


Joined: Sep 13, 2008
Posts: 13

bannato
Post  Posted: Sep 16, 2008 - 01:51 AM Reply with quote Back to top

ah thanks ^^
View user's profile
dpottier
MD user level 5
MD user level 5


Joined: July 17, 2004
Posts: 254
Location: Victoria, British Columbia
bannato
Post  Posted: Oct 04, 2008 - 09:29 AM Reply with quote Back to top

Skin

I just tried to get your Banner module working with 1.0821
I did uncomment function pnbannerdisplay () {}; in pntables and added the banner code as per your install.txt.

The module installed, I can access it from admin and the setup has no issues.

The site has
* Operating System: CentOS release 5 (Final) Linux
* apache-1.3.37
* php-5.2.3
* MySQL 5.0.45

but the minute I upload the modified pntables the site won't load. Any ideas?
View user's profile Visit poster's website MSN Messenger
Skin
MD Staff
MD Staff


Joined: July 31, 2003
Posts: 410
Location: Italy

Post  Posted: Oct 07, 2008 - 06:50 AM Reply with quote Back to top

Hi,
I've just installed banner module, but I didn't uncomment function pnbannerdisplay () ;

after uploading the module, and after inserting in pntables.php
Code:
$banner = $prefix . '_banner';
$pntable['banner'] = $banner;
$pntable['banner_column'] = array ('bid'      => $banner . '.pn_bid',
                                   'cid'      => $banner . '.pn_cid',
                                   'type'     => $banner . '.pn_type',
                                   'imptotal' => $banner . '.pn_imptotal',
                                   'impmade'  => $banner . '.pn_impmade',
                                   'clicks'   => $banner . '.pn_clicks',
                                   'imageurl' => $banner . '.pn_imageurl',
                                   'clickurl' => $banner . '.pn_clickurl',
                                   'date'     => $banner . '.pn_date',
                                   'module'   => $banner . '.pn_module',
                                   'moduleid' => $banner . '.pn_moduleid',
                                                                   'width'    => $banner . '.pn_width',
                                                                   'height'   => $banner . '.pn_height',
                                   'lang'     => $banner . '.pn_lang');

$bannerclient = $prefix . '_bannerclient';
$pntable['bannerclient'] = $bannerclient;
$pntable['bannerclient_column'] = array ('cid'       => $bannerclient . '.pn_cid',
                                         'name'      => $bannerclient . '.pn_name',
                                         'contact'   => $bannerclient . '.pn_contact',
                                         'email'     => $bannerclient . '.pn_email',
                                         'login'     => $bannerclient . '.pn_login',
                                         'passwd'    => $bannerclient . '.pn_passwd',
                                         'extrainfo' => $bannerclient . '.pn_extrainfo');

$bannerfinish = $prefix . '_bannerfinish';
$pntable['bannerfinish'] = $bannerfinish;
$pntable['bannerfinish_column'] = array ('bid'         => $bannerfinish . '.pn_bid',
                                         'cid'         => $bannerfinish . '.pn_cid',
                                         'impressions' => $bannerfinish . '.pn_impressions',
                                         'clicks'      => $bannerfinish . '.pn_clicks',
                                         'datestart'   => $bannerfinish . '.pn_datestart',
                                         'dateend'     => $bannerfinish . '.pn_dateend');


I simply regenerated and installed banner module, now I can see and manage it in administration area without errors, before installing the module probably you'll see an error message for templates calling function pnbannerdisplay () ; but after installing the module this error should disappear.

P.S. I didn't do this module, someone in italian forum converted it for MDLite.

_________________
PointNet: Web and Design
View user's profile Visit poster's website
dpottier
MD user level 5
MD user level 5


Joined: July 17, 2004
Posts: 254
Location: Victoria, British Columbia
bannato
Post  Posted: Oct 07, 2008 - 10:42 AM Reply with quote Back to top

Skin wrote:
Hi,
I've just installed banner module, but I didn't uncomment function pnbannerdisplay () ;


Thanks for the code snippet. I have the module working on one domain now, just 30 more to go. Wahoo

I think it might have partly been the tables code provided in the docs being added in the wrong place (my bad).
Normally I would simply use <"! -- banners --"> tag where I wanted the banner to appear or using
Quote:
<center><table><tr><td><"! -- banners --"> </td></tr></table></center>
instead of the code provided

David
View user's profile Visit poster's website MSN Messenger
Display posts from previous:     
Jump to:  
All times are GMT + 13 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by MDForum 2.0.8© 2003-2007 MAXdev Team
Credits