1
Xanavieaus
Re: developing a Flash Banner script... need help
  • 2005/10/16 16:21

  • Xanavieaus

  • Just popping in

  • Posts: 22

  • Since: 2005/10/1


What are you talking about? This shows absolutely nothing about how to include my script into the header, these are just instructions how to configure YOUR script. Your script can easily be used because it can be used in an <IMG> HTML and simply returns an image.

My script is a little more complicated then that.



2
Xanavieaus
developing a Flash Banner script... need help
  • 2005/10/16 15:56

  • Xanavieaus

  • Just popping in

  • Posts: 22

  • Since: 2005/10/1


I am writing a PHP script that gives the user a choice of a flash banner, image banner, or no banner... it works by reading a profile field I created for it from the database.
I have been working for a while on this script, and had it checked by many experts, and the script itself appears to be valid... however, the real problem I have is I can't seem to find anywhere in the entire XOOPS 2.2 to include this script so that it will show up in the header.

First I tried renaming theme.html to theme.php (and also changing the value for this in /class/theme.php), then
I included the file in place of where the banner was.
It did not work at all, like it wasn't getting included.

Next I tried including the script directly in /header.php,
it either did not show up, or gave me a "Fatal error: call to a member function on a non-object".

I REALLY need to know where and how I can include this script so that it will be placed at the top of the page.

If you need to see my script, it is here.
It is a PHP file, but renamed to .TXT so that you can view it.
If you can point out something wrong in it, please tell me.



3
Xanavieaus
Re: getting a variable for currently logged in user... is it possible?
  • 2005/10/15 21:11

  • Xanavieaus

  • Just popping in

  • Posts: 22

  • Since: 2005/10/1


Still the same error...
I've looked in the mainfile.php, and $xoopsUser->uid() is not defined or even mentioned anywhere in the file.



4
Xanavieaus
Re: getting a variable for currently logged in user... is it possible?
  • 2005/10/15 20:49

  • Xanavieaus

  • Just popping in

  • Posts: 22

  • Since: 2005/10/1


Didn't help at all... same error :(



5
Xanavieaus
Re: getting a variable for currently logged in user... is it possible?
  • 2005/10/15 20:41

  • Xanavieaus

  • Just popping in

  • Posts: 22

  • Since: 2005/10/1


$query = $xoopsDB->query("SELECT flashbanner FROM dnet_user_profile WHERE profileid = \"".$xoopsUser->uid()."\"");

It might have something to do with the fact that this value becomes NULL when you are logged out.



6
Xanavieaus
Re: getting a variable for currently logged in user... is it possible?
  • 2005/10/15 20:35

  • Xanavieaus

  • Just popping in

  • Posts: 22

  • Since: 2005/10/1


Thanks, but now I get this:

Fatal error: Call to a member function on a non-object in d:\htdocs\dragyn\include\flashbanner.php on line 7

when I'm logged out....



7
Xanavieaus
getting a variable for currently logged in user... is it possible?
  • 2005/10/15 20:02

  • Xanavieaus

  • Just popping in

  • Posts: 22

  • Since: 2005/10/1


I'm trying to make a script that enables people to choose between a flash banner and a plain image banner. In it, i'm making it read the database to find out exactly what the user has selected. To achieve this, I have to finish the following code:

$fbannerenabled = mysql_query("SELECT 'flashbanner' FROM 'dnet_user_profile' WHERE 'profileid' = '<!!!!>'");

Where <!!!!> is, is where I need to be able to somehow get a variable that indicates which user you are logged in as.

I always thought this was $uid;, but that didn't work.

I have created a script called "flashbanner.php" which resides in the "/include" folder, and is included from "header.php".

Who is able to help me?



8
Xanavieaus
Re: Problem with NewBB 1
  • 2005/10/11 10:17

  • Xanavieaus

  • Just popping in

  • Posts: 22

  • Since: 2005/10/1


Ok, switched to CBB 2.2, and same problem...

perhaps it's not related to the module? I've tried switching to the default theme, and I still get this problem... so it's not related to the theme...

Resized Image



9
Xanavieaus
Problem with NewBB 1
  • 2005/10/11 9:10

  • Xanavieaus

  • Just popping in

  • Posts: 22

  • Since: 2005/10/1


Ok, I've tried dozens of different forum modules for XOOPS 2.2, and everything seems to have a problem...

NewBB 2 had problems in the ACP when editing a forum, and CBB gave me fatal errors when I tried to access the forum index, and X-IPB refused to stay in sync with the XOOPS database...

I'm currently using the ORIGINAL NewBB module in XOOPS 2.2.2, and I have a problem where categories and forums don't show up at all and the page appears incomplete, looking like this:

Resized Image

Can someone either tell me how I can fix this or suggest a forum module that WORKS?



10
Xanavieaus
Re: Fatal error in xcGallery
  • 2005/10/9 15:48

  • Xanavieaus

  • Just popping in

  • Posts: 22

  • Since: 2005/10/1


Never mind! ^o^ I looked in the comments for xcGallery and found a hack that fixed it.

(I should really look everywhere before posting these)




TopTop
(1) 2 3 »



Login

Who's Online

221 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits