Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
fibercarbon
New Member
New Member



Joined: Jul 02, 2007
Posts: 14

PostPosted: Wed Aug 15, 2007 12:04 pm Reply with quote

Im Wondering if there is anyway to turn off the topic images that display when i post news on my main page to Save space on the page??? please help!


Last edited by fibercarbon on Thu Aug 16, 2007 7:55 am; edited 1 time in total 
View user's profile Send private message
fibercarbon







PostPosted: Wed Aug 15, 2007 12:05 pm Reply with quote

the main problem is my site is streched out and i want it all to fit on the screen. you can see what im talking about here [ Only registered users can see links on this board! Get registered or login! ]
 
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Wed Aug 15, 2007 1:59 pm Reply with quote

I believe you could modify your theme to not output the topic image tag.

You might want to change the subject of your post to something more relating to your problem as per the forum rules.

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
bugsTHoR
Involved
Involved



Joined: Apr 05, 2006
Posts: 263

PostPosted: Wed Aug 15, 2007 2:50 pm Reply with quote

sorry for jumping in,

where would you make the edit/s (which file/s) to make the pictures fit right. and not put the width over the edge of the screen (mainly firefox)I.E is`nt too bad at keeping it ok. (for a change lol)

_________________
LUV RAVEN DISTROBUTION BEBE

Clanthemes.com are great (free advertisements for now until i get to 20,000 posts LoL) 
View user's profile Send private message
Gremmie







PostPosted: Wed Aug 15, 2007 3:16 pm Reply with quote

Modify the functions themeindex() and themearticle() in themes/<yourtheme>/theme.php. You can see they are responsible for outputing news articles on the home page and with the "read more" link, respectively. They generate the HTML, including the <img> tags for the topics.
 
fibercarbon







PostPosted: Thu Aug 16, 2007 7:43 am Reply with quote

Gremmie wrote:
Modify the functions themeindex() and themearticle() in themes/<yourtheme>/theme.php. You can see they are responsible for outputing news articles on the home page and with the "read more" link, respectively. They generate the HTML, including the <img> tags for the topics.


i will try that thanks buddy Very Happy
 
fibercarbon







PostPosted: Thu Aug 16, 2007 7:46 am Reply with quote

so should i just erase this part


if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
 
xblader
Client



Joined: Aug 17, 2006
Posts: 28

PostPosted: Thu Aug 16, 2007 8:22 am Reply with quote

to test it, you should consider putting some comment tags around the code.

Code:
/* if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) { 

$t_image = "themes/$ThemeSel/images/topics/$topicimage"; */



Although you will need to expand on that code since you will recieve and error if you only delete that
 
View user's profile Send private message
fibercarbon







PostPosted: Thu Aug 16, 2007 8:27 am Reply with quote

xblader wrote:
to test it, you should consider putting some comment tags around the code.

Code:
/* if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) { 

$t_image = "themes/$ThemeSel/images/topics/$topicimage"; */



Although you will need to expand on that code since you will recieve and error if you only delete that


What do you mean expand on? im not to good with php
 
xblader







PostPosted: Thu Aug 16, 2007 8:35 am Reply with quote

the selection of code is missing an end tag such as }. So by deleting the those 2 lines will leave that curly bracer there and throw up an error, however it probably easier if you can copy and past the whole code and we can then tell you what to delete.
 
fibercarbon







PostPosted: Thu Aug 16, 2007 8:39 am Reply with quote

ok heres the whole theme.php file:
[ Only registered users can see links on this board! Get registered or login! ]
 
xblader







PostPosted: Thu Aug 16, 2007 9:21 am Reply with quote

Try replacing the following code below, i've have commented out the two Topic images, however i'm not sure if this will work. iirc there some coding in the index.php within the modules/news/ folder that actully displays the image. Also anther method you can try is to make a 1x1 image and replace the topic image with that. (With the topic image being the same color as your background, so it will not be visable.) Also i would post the whole file but the forums is blocking it.

Code:



/************************************************************/
/* Function themeindex()                                    */
/* This function format the stories on the Homepage         */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;

$ThemeSel = get_theme();
   /* if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
        $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
        $t_image = "$tipath$topicimage";
} */





/************************************************************/
/* Function themeindex()                                    */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
$ThemeSel = get_theme();
   /* if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
        $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
        $t_image = "$tipath$topicimage";
}*/
 
Gremmie







PostPosted: Thu Aug 16, 2007 9:24 am Reply with quote

No, you will have to look further down where the theme is outputing the <img> tag for the topic icon. You'll want to remove those echo statements.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©