PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
helsnicht
Hangin' Around


Joined: Jan 25, 2008
Posts: 42

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

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 to the forums!

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: 7459
Location: Arizona

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

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.
View user's profile Send private message Visit poster's website
helsnicht
Hangin' Around


Joined: Jan 25, 2008
Posts: 42

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

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
View user's profile Send private message Visit poster's website
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2847

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

Well story_home.html is processed per story. So you can't just wrap a table around that code
View user's profile Send private message Visit poster's website
helsnicht
Hangin' Around


Joined: Jan 25, 2008
Posts: 42

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

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?
View user's profile Send private message Visit poster's website
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2847

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

You probably need to find where themeindex is called in modules/News/index.php and put your table there
View user's profile Send private message Visit poster's website
helsnicht
Hangin' Around


Joined: Jan 25, 2008
Posts: 42

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

oh almost got it. looks like I got some sloppy code somewhere.
View user's profile Send private message Visit poster's website
helsnicht
Hangin' Around


Joined: Jan 25, 2008
Posts: 42

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

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
View user's profile Send private message Visit poster's website
montego
Site Admin


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

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

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

Thanks Evaders!
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum