Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help
Author Message
helsnicht
Hangin' Around



Joined: Jan 25, 2008
Posts: 44

PostPosted: Thu Mar 27, 2008 7:11 pm Reply with quote

I did a quick search and didn't see anything informative so I'll just ask.

Heres my site. Only registered users can see links on this board! Get registered or login!
Its running RN2.10.01

Currently it creates a new table around each news article added, what I'd like to happen is for them to stay within one table.
I've played around with the index.php and articles.php under the news module but I'm not seeing anything. Am I looking in the right file? The story_home.htm file does nothing for me either.

Any leads would be helpful,
helz
 
View user's profile Send private message Visit poster's website
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Thu Mar 27, 2008 7:20 pm Reply with quote

Well, unfortunately, there are a wide variety of themes out there, but, you can be rest assured that function themeindex() within theme.php drives it all. story_home.html was the right idea. What you have to find is the code within themeindex() that pulls in story_home.html. I think that you'll want to have story_home.html start and end with the <tr> and </tr> tags, and move the <table> and </table> into the function.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
helsnicht







PostPosted: Thu Mar 27, 2008 8:20 pm Reply with quote

Thanks for the quick reply. I played with the code abit but haven't a clue where to put the table tags at.

Code:
    $tmpl_file = "themes/Poisonblades/story_home.html";

    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$tmpl_file."\";";


I've tweaked the html file to start and end with <tr> </tr>. I then tried adding the open/closetags at the start and end, no luck. Tried adding
$thefile .= '<table>';
$thefile .= '</table>';
there at the ends but I'm having no luck with my trail and error approach. It looks like its something simple but its kicking my ass Razz
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Thu Mar 27, 2008 8:26 pm Reply with quote

Well story_home.html is processed per story. So you can't just wrap a table around that code

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
helsnicht







PostPosted: Thu Mar 27, 2008 8:46 pm Reply with quote

bustin my bubble you be lol. So... I would need to insert the entire story process/function into a table? Or even then I'd be sol?
 
evaders99







PostPosted: Thu Mar 27, 2008 8:58 pm Reply with quote

You probably need to find where themeindex is called in modules/News/index.php and put your table there
 
helsnicht







PostPosted: Thu Mar 27, 2008 9:30 pm Reply with quote

oh almost got it. looks like I got some sloppy code somewhere.
 
helsnicht







PostPosted: Thu Mar 27, 2008 9:47 pm Reply with quote

Sweet, fixed my sloppy rush job and now its working good enough. Still need to tweak it abit but thats the easy part. Thanks for the quick replies and for telling me where I needed to be looking.

Helz
 
montego







PostPosted: Fri Mar 28, 2008 7:29 am Reply with quote

helsnicht, sorry about that. Was thinking themeindex() was called only once. Sorry... was trying to go off of memory.

Thanks Evaders!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©