Quick Login   
 
Register AdminFusion Tutorials Post Fusion Forum Matrix
 
Old 11-27-2006, 06:53 AM   #1
Forum Addict
 
Harlzard's Avatar
 
Join Date: Jan 2006
Location: Australia
Posts: 1,925
Harlzard is just really niceHarlzard is just really niceHarlzard is just really niceHarlzard is just really niceHarlzard is just really nice
Send a message via MSN to Harlzard
Modding Questions Topic

Ok, i might have a few questions to ask so i made a broad topic for it. Its all about modding on my forum. I have decided to go for the giant leap and try it out myself. Im suprised of my skill allready even though it may be nothing compared to real coders.

Anyway, im a little stuck on one bit, this is one section of 3, but the other 2 i know i have done correct, its just this part. You see where it says (In Function: do_output), what does that mean? what do i do? because the way i did it, was just added the code as it said below the code it said to find.

Any ideas?

Quote:
Open Up: sources/classes/class_display.php
Find: (In Function: do_output)

PHP Code:
$this->ipsclass->skin['_wrapper'] = str_replace"<% CHARSET %>"        $this->ipsclass->vars['gb_char_set'], $this->ipsclass->skin['_wrapper']); 

Add Below:
PHP Code:
//-----------------------------------------
        // D21-Affiliates
        //-----------------------------------------

        
require_once(ROOT_PATH.'sources/action_public/D2mods/Affiliates/d21_affiliates.php');
        
$d21_affs           =  new d21_affiliates;
        
$d21_affs->ipsclass =& $this->ipsclass;
        
$d21_affs->display_random(); 


Save & Close: sources/classes/class_dispay.php
Oh and if you would like me to attach the php file to see if you want ago, just let me know.
Harlzard is offline   Reply With Quote
Old 11-27-2006, 07:44 AM   #2
Apprentice
 
Join Date: Jun 2006
Posts: 178
Magnetism has a spectacular aura aboutMagnetism has a spectacular aura about
All you are meant to do is add that bit code below the line you had to find, did you make sure that you didn't edit anything else in that file by mistake?

Or are you certain that you uploaded the edited file? If you post your class_display.php I'll take a look see if I can spot any errors.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Magnetism is offline   Reply With Quote
Old 11-27-2006, 12:01 PM   #3
daviddamian.com
 
RedMatrix's Avatar
 
Join Date: Feb 2006
Location: back in TX
Posts: 4,043
RedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond repute
Send a message via ICQ to RedMatrix Send a message via MSN to RedMatrix
Harley, the way these things are set up seem too complicated at first. They did to me. I had to figure this out on my own, but Magnetism is correct.

When it says "Find this" and then shows code, it means you find that exact code in the template they specify.

Then, the next part will say one of 3 things: "Add below" "add above" & "Replace with". What they mean is paste the 2nd code either ABOVE the first code you just found, BELOW the code you found, or REPLACE the code you "found." Do you get it now?

If i were to say:

Quote:
Find
HTML Code:
<if x=y>Z</if> 
Add above
HTML Code:
<!-- If $name = "VIP" --> 
Add below
HTML Code:
<!-- End Block --> 
All this means is that that part of the code should be:
HTML Code:
<!-- If $name = "VIP" -->
<if x=y>Z</if>
<!-- End Block --> 
__________________
Do you poken? Take a picture and send it to the
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Hey, watch youtube here:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
I got a new and improved blog now.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
RedMatrix is offline   Reply With Quote
Old 11-28-2006, 12:21 AM   #4
Forum Addict
 
Harlzard's Avatar
 
Join Date: Jan 2006
Location: Australia
Posts: 1,925
Harlzard is just really niceHarlzard is just really niceHarlzard is just really niceHarlzard is just really niceHarlzard is just really nice
Send a message via MSN to Harlzard
Thanks Dave, appreciate the help. I would add rep, but i have allready earned rep from me today.

I have successfully installed the mod!
The code above was missplaced and i forgot to run the upload the d21_affs_install.php file and then run it my broswer. That explains why i got that error too.
Ah well, im still learning how to mod, and you learn from your mistakes... (and adminfusion!)

thanks everyone to who is helping me!
~Harley.
Harlzard is offline   Reply With Quote
Old 11-29-2006, 05:20 AM   #5
Forum Addict
 
Harlzard's Avatar
 
Join Date: Jan 2006
Location: Australia
Posts: 1,925
Harlzard is just really niceHarlzard is just really niceHarlzard is just really niceHarlzard is just really niceHarlzard is just really nice
Send a message via MSN to Harlzard
Another question:I have successfully installed the banner ad rotator mod, now where i want it is the problem. Its now currently sitting under the <% BOARD HEADER %> tags.
I was wondering, if there was a way to get it to appear aligned right on the logo strip?

I have an image for the logo strip, i was just hoping if there is a way to place this ad rotator above it. It would neat, Can anybody help?
Harlzard is offline   Reply With Quote
Old 11-29-2006, 07:05 AM   #6
daviddamian.com
 
RedMatrix's Avatar
 
Join Date: Feb 2006
Location: back in TX
Posts: 4,043
RedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond reputeRedMatrix has a reputation beyond repute
Send a message via ICQ to RedMatrix Send a message via MSN to RedMatrix
have you tried putting that code into the Image box? I don't know what IPB 2 shows, but there should be an IMAGES section in your ACP. For the logo, instead of just putting a path to your logo, put a script there, too? That's where I would start tweaking.

If that didn't work out, I would try putting it above the <% Board header %> tag, inside a division taht is aligned how you want it.

Code:
<div style="float:right"></div>
Or similar. (align:right)
__________________
Do you poken? Take a picture and send it to the
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Hey, watch youtube here:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
I got a new and improved blog now.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
RedMatrix is offline   Reply With Quote
Old 11-29-2006, 12:03 PM   #7
Forum Addict
 
Harlzard's Avatar
 
Join Date: Jan 2006
Location: Australia
Posts: 1,925
Harlzard is just really niceHarlzard is just really niceHarlzard is just really niceHarlzard is just really niceHarlzard is just really nice
Send a message via MSN to Harlzard
Im getting a good friend to check it out for me, I'll see if he can do it.
Harlzard is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
admins asking questions Lpspider Planning and Brainstorming 18 10-20-2006 02:03 PM
Questions about what to post thephpman Announcements, Questions, and Support 1 05-11-2006 05:47 PM
When off topic gets ugly! sarahk Handling Problem Members 4 01-06-2006 12:10 AM

AdminFusion

All times are GMT +1. The time now is 08:15 AM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

© 2009 AdminFusion | Advertising Opportunities | Legal | A member of the Crowdgather Forum Community
 
From:
Title:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77