Author |
Message |
fibercarbon
New Member
Joined: Jul 02, 2007
Posts: 14
|
Posted:
Wed Aug 15, 2007 12:04 pm |
|
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 |
|
|
|
fibercarbon
|
Posted:
Wed Aug 15, 2007 12:05 pm |
|
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
|
Posted:
Wed Aug 15, 2007 1:59 pm |
|
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 |
|
|
|
bugsTHoR
Involved
Joined: Apr 05, 2006
Posts: 263
|
Posted:
Wed Aug 15, 2007 2:50 pm |
|
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) |
|
|
|
Gremmie
|
Posted:
Wed Aug 15, 2007 3:16 pm |
|
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
|
Posted:
Thu Aug 16, 2007 7:43 am |
|
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 |
|
|
|
|
fibercarbon
|
Posted:
Thu Aug 16, 2007 7:46 am |
|
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
|
Posted:
Thu Aug 16, 2007 8:22 am |
|
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 |
|
|
|
|
fibercarbon
|
Posted:
Thu Aug 16, 2007 8:27 am |
|
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
|
Posted:
Thu Aug 16, 2007 8:35 am |
|
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
|
Posted:
Thu Aug 16, 2007 8:39 am |
|
ok heres the whole theme.php file:
[ Only registered users can see links on this board! Get registered or login! ] |
|
|
|
|
xblader
|
Posted:
Thu Aug 16, 2007 9:21 am |
|
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
|
Posted:
Thu Aug 16, 2007 9:24 am |
|
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. |
|
|
|
|
|