Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support > "yget"

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-15-2007, 10:22 PM
Pligg Donor
 
Join Date: Apr 2006
Posts: 12
Thanks: 11
Thanked 0 Times in 0 Posts
Question re: mod of yget

Hello all!
I know I am going to catch hell for this... I have been experimenting with tweaks to the excellent yget template and one of the things I'd like to try doing is adding a table to the template. Yes... Yes... I know the evil of tables and about CSS goodness. Fact remains that IE sucks and tables help balance it. So what would I like to do? Make the link summary section (part where the links and descriptions actually show up on the page) all one table with each new link a separate row. I know about making changes to the link_summary.tpl file but if I add the table files to that then I end up with each link+description as it's own table instead of each link*description being its own row of a table.

Being a noob to Smarty type templating I am confused as to how this can be achieved. What would be the best place to add the opening table tag to the main template so that the link_summary.tpl file has the tr and td tags?
Reply With Quote
  #2 (permalink)  
Old 02-16-2007, 12:06 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
This may not be the best way or the most efficient way but if you look in index_center.tpl (just one of the places that calls link_summary) You'll see
Code:
include('./libs/link_summary.php');
Maybe you could change it to
Code:
echo '<table>';
include('./libs/link_summary.php');
echo '</table>';
And then you could put <tr><td> at the top of link_summary.tpl and </td></tr> at the bottom. I haven't tested this but maybe it will create a new row for each link_summary.tpl call.

--------

That was the first that that jumped to my mind but there is probably a much simpler way by editing /libs/link_summary.php where it actually pulls the links. If you use the first way you will need to edit every single file that has this code
Code:
include('./libs/link_summary.php');
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
The Following User Says Thank You to kbeeveer46 For This Useful Post:
  #3 (permalink)  
Old 02-16-2007, 11:25 AM
Pligg Donor
 
Join Date: Apr 2006
Posts: 12
Thanks: 11
Thanked 0 Times in 0 Posts
That seems to work! Thanks!

Not too bad either... A quick search shows index_center.tpl, search_center.tpl and shakeit_center.tpl include link_summary.php and so would require the table tag change.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Yget won't switch to 'mobile' neoshady Template Support 6 09-29-2008 03:32 AM
After switching templates, yget still shows jlebeau Customization Assistance 5 08-11-2008 11:28 PM
Google adsense revenue sharing, question dadaas Modification Tutorials 0 10-03-2007 01:13 PM
yget & Safari, and yget login tab sunstardude Template Support 7 06-05-2007 07:49 AM
"Top Today" and "Queued News" not showing when I mod yget pierrem "yget" 3 02-23-2007 11:55 AM


Search Engine Friendly URLs by vBSEO 3.2.0