| Author |
Message |
Mercwar
Sergeant


Joined: Apr 14, 2003
Posts: 79
|
Posted:
Sun Apr 27, 2003 7:08 am |
  |
ok im a total noob to php and need help modifying a theme id like to ad a bg image for each page[its gonna be the sam image] a image to the top nav bar and a image to frame the blocks here is an example of what i would like to do if anyone can help it would be much aappreacited[i need to know everything exactly ie what files where in the code and what the code looks like] thanks in advancehttp://www.ionimagestudios.com/help.jpg |
|
|
    |
 |
Mercwar
Sergeant


Joined: Apr 14, 2003
Posts: 79
|
Posted:
Sun Apr 27, 2003 8:31 pm |
  |
another thing is id like to know how to stop the theme being forced on my phpbb forums i installed a new theme just for the forums but i have tried and the site theme still overides the forums can anyonehelp plzzzzz! |
|
|
    |
 |
Mercwar
Sergeant


Joined: Apr 14, 2003
Posts: 79
|
Posted:
Mon Apr 28, 2003 7:38 am |
  |
can someoneplzzz point me in the direction i need to go plzzzzzzzzzzzzz comon someone has to know..............  |
|
|
    |
 |
cakepro
Corporal


Joined: Apr 11, 2003
Posts: 55
|
Posted:
Wed Apr 30, 2003 1:22 am |
  |
In regard to your second post, the two places I would check are Administration Panel --> Forums --> Configuration. Scroll to mid-page and see if "Override User Style" is set to Yes. If it is, set it to no and save your changes at the bottom of the page. The second place I'd look is Your_Account --> Select Theme.
Sorry if your fix is not as simple as one of these two things. I know you're frustrated.
~ Sherri |
|
|
   |
 |
Mercwar
Sergeant


Joined: Apr 14, 2003
Posts: 79
|
Posted:
Wed Apr 30, 2003 4:58 am |
  |
yeah i have looked at both thoses areas and no go sigh well thanks for ya reply i just gonna go and get some books and learn it myself  |
|
|
    |
 |
foxyfemfem
Support Staff


Joined: Jan 23, 2003
Posts: 668
Location: USA
|
Posted:
Wed Apr 30, 2003 6:34 am |
  |
| Mercwar wrote: |
| a bg image for each page[its gonna be the sam image] a image to the top nav bar and a image to frame the blocks |
Hello, you can add the bg image to the theme < body > tag. I think this is found in the theme.php file. Take a look at your theme.php file you should be able to edit that file to remove a image or add your image (etc.) I removed the top half of theme to allow my bannerexchange script to go there in which I added the script to my_header.php file. The theme.php control the output of your theme. |
|
|
   |
 |
Mercwar
Sergeant


Joined: Apr 14, 2003
Posts: 79
|
Posted:
Wed Apr 30, 2003 7:00 am |
  |
ok i understand that i have been able to add a bg image to the header and behind the home message but it doesnt show behind all the news storys and behind the blocks and such i mean i didnt realize the site is broken up into so many dam sections and i have tried adding images to lots of files and some just screw up the site heres an example of what id like to do http://www.ionimagestudios.com/help.jpg i have even opened up the html files in dreamweaver and i see that there are like 4 or 5 tables ontop of each other which makes it impossible to add an image i mean why isnt there 1 table with all of the content and code all in one not top and bottom and middle and 2 tables behind thoes it seems a waste of code to me and i have tried to make new html myself but i alway screw up the php code insertion and it never coms out the way i want it to i have found a supposed theme creator but i think its costs like 20$ for it and i just cant rationalize paying 20$ just to change 1 theme that will be perment for the site that i should be able to do myself but thanks for the info much appreacited |
|
|
    |
 |
foxyfemfem
Support Staff


Joined: Jan 23, 2003
Posts: 668
Location: USA
|
Posted:
Wed Apr 30, 2003 7:35 am |
  |
Hello,
In the theme.php file look for something like this "function themeindex" somewhere in that function statement control the output of the stories, etc. In my theme you can modify this area "FormatStory". Play around with that and see what happen. Whatever you do, make sure you dont mess up the original theme files. Make a test theme folder and play around with it.
Another place to look is here "Function themearticle" and "Function themesidebox" Play around with some of those function codes. Remember to use a test theme folder. |
|
|
   |
 |
Mercwar
Sergeant


Joined: Apr 14, 2003
Posts: 79
|
Posted:
Wed Apr 30, 2003 8:02 am |
  |
well im looking at that now and im unsure what u mean play around with it i have no real php knowledge and really have no clue as how to "Play around with it" this is what it says in that section for function theme index
| Code: |
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"userinfo-.html$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ($counter "._READS.")";
$tmpl_file = "themes/fiblack/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file; |
yes im a total noob so some of what u are telling me is like asking a 3yr old to read shakesphere lol i mean i should just beable to edit the html files and add a bg to the whole thing this is soo dam fustrating
cant add images where i want forums new themes dont change and show im getting a few errors in the admiz section it just seems i am missing something or what not im unsure.......arghhh lol thanks for the help tho |
|
|
    |
 |
foxyfemfem
Support Staff


Joined: Jan 23, 2003
Posts: 668
Location: USA
|
Posted:
Wed Apr 30, 2003 8:12 am |
  |
{giggling} And I'm like a 2 year old trying to tell the 3 year old about Shakespear.
Anyway, this statement
| Code: |
| $tmpl_file = "themes/fiblack/story_home.html"; |
Apparently the story_home.html has the codes & graphics for the story output. Take a look at that file.
What I mean by "play around with it" uhm, modify and remodify it until you find the solution to your problem. Try, try and try again. If you don't succeed pick yourself up and try again
Create a test theme folder, copy all the originial files there and modify those files in your test theme folder until you reach the outcome of what you seek. |
|
|
   |
 |
Mercwar
Sergeant


Joined: Apr 14, 2003
Posts: 79
|
Posted:
Wed Apr 30, 2003 5:19 pm |
  |
yeah i have opened all thoses files and looked at them in dreamweaver theres too many tables on top of tables on top of tables on top of tables i mean more than 3 or 4 tables its a bit clutered of code for me anyway i just want to make sure i put all the php code in the proper place |
|
|
    |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Wed Apr 30, 2003 5:24 pm |
  |
Bit of advice. Don't use Dreamweaver to edit your theme files or any php/Nuke files whatsoever.
User UltraEdit or Editplus or some other text editor.
Dreamweaver or Frontpage or any other html editor can and will "mess" up your theme files.
mikem |
_________________ Getting Started | My Projects |
|
   |
 |
|
|