PHP WEB SCRIPTS    Support Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Multi color Adlinks

 
Post new topic   Reply to topic    PHP Web Scripts Forum Index -> Link Up Gold Support & Discussion
View previous topic :: View next topic  
Author Message
Aldoseri



Joined: 22 Apr 2008
Posts: 103
Location: Bahrain

PostPosted: Wed May 23, 2012 3:14 pm    Post subject: Multi color Adlinks Reply with quote

Hi Guys,

This is an easy way to create multi color Adlinks instead of just one color or size.



the idea is to use one of the text fields as way to pass the desired class or id name to the CSS class or id in the AdLink template.

Follow these easy steps to change the look of your adlinks and add the functionality to make it work.

1- first decide how many text fields you want in your AdLink. If for example you want 3 text fields then add an extra field to them in the forms



2- Open adlink_template.txt in your chosen styles templates folder
Edit this line.

<table border="0" cellspacing="0" cellpadding="2" width="100%" class="table_adlink">


to become

<table border="0" cellspacing="0" cellpadding="2" width="100%" class="#%text4%#">

And make sure you delete it from the template body if it there. Usually you'll have

#%text1%#<br />
#%text2%#<br />
#%text3%#<br />


3- Now add the classes to your styles.css and save

/* ========== AdLinks ============ */
.yellow {width:294px; height: 70px; padding:3px; color: #000; background-color:#fbe217; text-align:left; font-size:14px; overflow: hidden;}
.red {width:294px; height: 70px; padding:3px; color: #000; background-color:#f8052d; text-align:left; font-size:14px; overflow: hidden;}
.red a {color: #fff}
.green {width:294px; height: 70px; padding:3px; background-color:#59bc4b; text-align:left; font-size:14px; overflow: hidden;}
.green a {color: #fff}
.blue {width:294px; height: 70px; padding:3px; color: #fff; background-color:#11a4c4; text-align:left; font-size:14px; overflow: hidden;}
.blue a {color: #fbe217}


4- The Magic. Just create your Adlinks as usual and in text field 4 or whichever number you've chosen type the class name.



This is all. You can create any style, any size. whatever can be controlled by CSS will be available to you.

I hope this helps someone
Back to top
View user's profile Send private message
PHPWebScripts
Richard - Admin


Joined: 13 Jan 2003
Posts: 6233

PostPosted: Thu May 24, 2012 9:14 am    Post subject: Reply with quote

Thank you very much for the tutorial Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PHP Web Scripts Forum Index -> Link Up Gold Support & Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group