11
burfodus
Re: Interesting occurance - disappearing code...
  • 2009/7/9 13:10

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


your blank module idea will work ghia, i didnt think of that.

I will just do that, thanks.

sb..

XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



12
burfodus
Interesting occurance - disappearing code...
  • 2009/7/9 3:51

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


Hi Guys,
I have an interesting question, I have built a module that runs pretty much all pages for a site, however I would like to edit the homepage to be similar to the rest of the site, so I can change the right block on the home page.

currently I am adding code between the header and footer part of the code on the standard index.php file in root.

here is where it gets interesting.
echoing simple divs, text etc, it all works fine.

then i add the code that works fine in the index.php file of the module i have made.

I get nothing in the content area at all!

so I undo my changes and revert to the simple echo of some divs and text, and still i get nothing.!!??

any changes from then on are pointless as nothing apears in the content area.

first i tried this on the xoopsurl.com/ domain, once it dissapeared, it reappeared when i typed xoopurl.com/index.php

but repeating the process gained exactly the same result with all dissapearing once reverting to original code after the change.

there is nothing to tricky about the php code im trying to run in index.php as im not that advanced in php myself.

i feel it may be liked to where i am adding the code to the root index.php file, or something with session memory as it /index.php was seperate from / .

any help would be greatly appreciated.
thanks
steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



13
burfodus
Re: Multiple admin levels
  • 2009/5/21 10:04

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


thanks ghia, always helping me!

the reason i raised the security question is i plan to have users with accounts they put money into and make purchases from, and managers managing these users and stock all on the user side of the site, as i dont want the managers having full admin access.

ill have a peak at those modules you mentioned. thanks again.
steve.

XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



14
burfodus
Multiple admin levels
  • 2009/5/21 3:30

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


hello all,

Im a beginner in programming, and am hoping on some assistance.

Im aware this topic or similar too has been discussed a couple of times, and possibly being implemented into modules.

however, im currently interested in making a user side page within a module with access rights between user and admin, and would like to know if the framework for this already exists and how do i use it.

ie i could make someone a moderator status, and restrict the page to moderators? is this possible and how do i do this.

will this pose any security problems for sensitive information within these pages, and what measures should i take to avoid this.

thanks in advance,

steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



15
burfodus
Re: adding a new block position to xoops
  • 2009/5/14 23:54

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


Thanks, wasnt exactly what i was looking to do, but it works so ill go with that.

thx
steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



16
burfodus
Re: adding a new block position to xoops
  • 2009/5/14 10:30

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


No,

the menu will be unique to the 5 cuesports in the site, currently i have only created the snooker menu thats all, when you click on any of the others, there will be a different menu, and the home page has no menu in this position.

thanks
steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



17
burfodus
adding a new block position to xoops
  • 2009/5/14 6:49

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


hey guys and gals.

there may 'hopefully' be a module or hack for this, but currently i have separated the bottom block in theme.html and placed it above the main container of my site, to put horizontal multimenu in this position. see here

however now i lose my bottom center block, is there a way of doing this and adding this position to the currently avaialable block positions left, right, topleft, topcenter topright, bottomleft, bottomcent, bottom right.

the site is still under construction, and if your not using firefox there is currently a text highlight problem due to the multimenu items not having a close </a> tag that i havent fixed yet.

thanks
steve.

XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



18
burfodus
Re: Writing a module
  • 2009/4/17 0:50

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


as your starting like me, here are some resources i found very helpfull

this site has simple explanations of php and sql commands
http://www.1keydata.com/sql/sql.html
I found it helpfull
past that there several other helpfull sites for this like
http://www.w3schools.com/
http://dev.mysql.com/doc/refman/5.0/en/index.html

hope it helps.
steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



19
burfodus
how to store HTML with a textarea form?
  • 2009/3/30 5:35

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


like XOOPS allows you to do when creating a block, I would like to store HTML code in the DB using a form textarea to enter the data.
all i can find on the xoopsformloader is this (not that im sure using the formloader will fix my problem), and i cant really work out how to use it from that anyhow, and there is no tutorial.

is there a setting i can use to allow the html in a textarea to be submitted to db and retrieved without stuffing it up.
db field is set to text utf8_general_ci.

ps is there a list and explanation of the things like xoopsformloader for us to read up on?

thanks
steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



20
burfodus
Re: SELECT COUNT - sql wont work
  • 2009/3/29 10:35

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


from reading help files i could find on the net, it seemed the SELECT COUNT function returned the number in the form of a MySQL resource, and in php that is what would be displayed 'Resource ID #34' or whatever, the number was not relevent to anything.

I tried placing it in an array, but I would then just get 'array'.

this is why i asked the question here, cos if there was something i had to do to the resource to get it to work.

NB im not using it to count members, it will be for match numbers and to know which match number the winner goes to for my draw moduele. and it will only be in the backend when entering a draw, placing the winner goes to match number on submitting draw.

cheers
sb..

XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT




TopTop
« 1 (2) 3 4 5 ... 10 »



Login

Who's Online

231 user(s) are online (155 user(s) are browsing Support Forums)


Members: 0


Guests: 231


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