[Aphrodite] ezPortal

Specific instructions on how to apply certain mods to certain styles.

Moderator: Moderators

Postby StephenVB on Fri Jul 29, 2005 2:54 pm

[quote user="jz" post="45524"]Got you,

CAn anybody tell me how to resize the text of the portal center block ?

;)[/quote]
There's a width value tucked away that changes the width of the center column. This snippet of code (from portal_body.tpl) is just after the left side portal code.

Code: Select all
   <td valign="top" width="64%" style="padding: 0 5px">
      <!-- BEGIN fetchpost_row -->
      <table width="100%" cellspacing="0" class="forumline">

Hope that helps.
StephenVB
Registered User
Registered User
 
Posts: 13
Joined: Wed May 25, 2005 1:23 am

Postby netbjarne on Fri Jul 29, 2005 3:13 pm

[quote user="jz" post="45524"]Got you,

CAn anybody tell me how to resize the text of the portal center block ?

;)[/quote]

yup! - you have to chose another style class for your tekst.

open /templates/ca_aphrodite/portal_body.tpl

find the fetch_post block <!-- BEGIN fetchpost_row -->

scroll down a few lines until you find the line: <td colspan="3" class="row1g-left gen" align="left"><span class="gensmall" style="line-height:150%">{fetchpost_row.TEXT}<br /><br />{fetchpost_row.OPEN}<a href="{fetchpost_row.U_READ_FULL}">{fetchpost_row.L_READ_FULL}</a>{fetchpost_row.CLOSE}</span></td>

you have to replace the span class="gensmall" (which uses 10 point fonts) to something else. Try class="genmed" for 11 point fonts, or class="gen" for 12 point fonts. Just did that on my website, works nicely.
Best regards
Bjarne, http://6400.net
User avatar
netbjarne
Registered User
Registered User
 
Posts: 15
Joined: Fri May 13, 2005 7:18 am
Location: Sønderborg, Denmark

Postby jz on Fri Jul 29, 2005 3:21 pm

nice one, ;)

cheers mate
User avatar
jz
Registered User
Registered User
 
Posts: 234
Joined: Tue May 03, 2005 9:22 pm
Location: London

Postby SGD on Mon Sep 05, 2005 3:36 pm

How do I make AdSense show on my portal page ? It shows on my index page but not portal. I have tried to make it work by adding my AdSense code to the portal.tpl file but does not work. How do I code this ? thx.
Make It Happen !
User avatar
SGD
Registered User
Registered User
 
Posts: 287
Joined: Mon Apr 18, 2005 12:13 am
Location: Washington

image to the Announcements

Postby Uniko on Tue Sep 06, 2005 11:17 am

this code add a simpel image to the Announcements on the portal page

Demo Image
Or: http://www.uniko.navlemizer.com/portal.php

Code: Select all

#-----[ OPEN ]---------------------------------------------- 
#
portal_body.tpl


#-----[ FIND ]---------------------------------------------- 
#   

         <tr> 
           <th colspan="3" align="left">{L_POSTED}: <b>{fetchpost_row.POSTER}</b> @ {fetchpost_row.TIME}</th> 
         </tr>


#-----[ AFTER, ADD ]---------------------------------------- 
#

            <td colspan="3" class="row1" align="center"><img src="{PATH_TO_YOUR_IMAGE}" /></td>


#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 

# EoM

Replace {PATH_TO_YOUR_IMAGE} with your image.
+------------------------------+
+--------Hi there
+------------------------------+
User avatar
Uniko
Registered User
Registered User
 
Posts: 310
Joined: Thu Feb 03, 2005 8:42 pm

Postby Disturbed One on Wed Sep 07, 2005 12:19 am

You might want to provide instructions to make this show on the left or right site, not the top.
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby SGD on Wed Sep 07, 2005 8:02 am

Ok..how about adding the image to the left of the text ? plus it would look better if you only had the image showing without the white background. Looks like you are trying to emulate the news mod. Good idea though. I think bicet is working on a mod to add the news mod but not done yet.
Make It Happen !
User avatar
SGD
Registered User
Registered User
 
Posts: 287
Joined: Mon Apr 18, 2005 12:13 am
Location: Washington

Postby Uniko on Wed Sep 07, 2005 8:35 am

[quote user="SGD" post="49283"]Ok..how about adding the image to the left of the text ? plus it would look better if you only had the image showing without the white background. Looks like you are trying to emulate the news mod. Good idea though. I think bicet is working on a mod to add the news mod but not done yet.[/quote]

working on it

it will be good if someone can help me :D
+------------------------------+
+--------Hi there
+------------------------------+
User avatar
Uniko
Registered User
Registered User
 
Posts: 310
Joined: Thu Feb 03, 2005 8:42 pm

Postby Uniko on Wed Sep 07, 2005 8:40 am

+------------------------------+
+--------Hi there
+------------------------------+
User avatar
Uniko
Registered User
Registered User
 
Posts: 310
Joined: Thu Feb 03, 2005 8:42 pm

new version :D

Postby Uniko on Wed Sep 07, 2005 8:48 am

Code: Select all
#   
#-----[ OPEN ]----------------------------------------------   

portal_body.tpl 

#   
#-----[ FIND ]----------------------------------------------   
#   

           <td colspan="3" class="row1g-left gen" align="right"><span class="gensmall" style="line-height:150%">{fetchpost_row.TEXT}<br /><br />{fetchpost_row.OPEN}<a href="{fetchpost_row.U_READ_FULL}">{fetchpost_row.L_READ_FULL}</a>{fetchpost_row.CLOSE}</span></td> 

#   
#-----[ REPLACE WHIT]----------------------------------------   


           <td colspan="2" class="row1g-left gen" align="right" width="-2"><span class="gensmall" style="line-height:150%">{fetchpost_row.TEXT}<br /><br />{fetchpost_row.OPEN}<a href="{fetchpost_row.U_READ_FULL}">{fetchpost_row.L_READ_FULL}</a>{fetchpost_row.CLOSE}</span></td> 

#   
#-----[ BEFORE, ADD ]----------------------------------------   


          <td colspan="1" class="row1g-left gen" align="left" width="68"><img src="http://uniko.navlemizer.com/images/notepad.png" /img></td>   

#   
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------   
#   
# EoM 
+------------------------------+
+--------Hi there
+------------------------------+
User avatar
Uniko
Registered User
Registered User
 
Posts: 310
Joined: Thu Feb 03, 2005 8:42 pm

Postby SGD on Wed Sep 07, 2005 9:17 am

Nice work..Ok..How about making the image 72 X 72 pixels like on one of my sites. take a look... http://www.thepcwarzone.com also might want to make instructions for the image on the top right corner for those that like it that way also. Also, looks like your code made your cell smaller.
Make It Happen !
User avatar
SGD
Registered User
Registered User
 
Posts: 287
Joined: Mon Apr 18, 2005 12:13 am
Location: Washington

Postby Uniko on Wed Sep 07, 2005 11:05 am

yes i see that

i'm working on that to :D

tnxx

Fixed
http://www.uniko.navlemizer.com/portal.php
i will change the code later.. :wink:
+------------------------------+
+--------Hi there
+------------------------------+
User avatar
Uniko
Registered User
Registered User
 
Posts: 310
Joined: Thu Feb 03, 2005 8:42 pm

Postby SGD on Wed Sep 07, 2005 5:56 pm

Nice work, How about putting the image on the top left corner like you had it before.
Make It Happen !
User avatar
SGD
Registered User
Registered User
 
Posts: 287
Joined: Mon Apr 18, 2005 12:13 am
Location: Washington

Postby Disturbed One on Thu Sep 08, 2005 4:40 am

Looks much nicer.
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby MrBass on Thu Sep 08, 2005 8:28 am

Not wanting to hijack your thread but have you considered using this method: ;)

Code: Select all
#
#-----[ OPEN ]-----------------------------------------------------
#
templates/ca_aphrodite/portal_body.tpl

#
#-----[ FIND ]------------------------------------------------------
#
            <td colspan="3" class="row1g-left gen" align="left"><span class="gensmall" style="line-height:150%">{fetchpost_row.TEXT}<br /><br />{fetchpost_row.OPEN}<a href="{fetchpost_row.U_READ_FULL}">{fetchpost_row.L_READ_FULL}</a>{fetchpost_row.CLOSE}</span></td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
            <td colspan="3" class="row1g-left gen">
               <table width="100%" cellspacing="0">
                  <tr>
                     <td><img src="images/attachments/textdocument.png"></td>
                     <td valign="top"><span class="gensmall" style="line-height:150%">{fetchpost_row.TEXT}<br /><br />{fetchpost_row.OPEN}<a href="{fetchpost_row.U_READ_FULL}">{fetchpost_row.L_READ_FULL}</a>{fetchpost_row.CLOSE}</span></td>
                  </tr>
               </table>
            </td>

#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------
#
EoM


... and the outcome? http://www.petes-place.info/forum/portal.php

Image
MrBass
The heart has reasons that reason cannot know. --Pascal

Pete's Place | Pete's Forum
Latest MOD: File Upload Manager Installation guide coming soon...
User avatar
MrBass
Moderator
Moderator
 
Posts: 711
Joined: Thu Feb 17, 2005 2:06 pm
Location: Pete's Place

PreviousNext

Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 2 guests

cron